/* ================================================================
   Tiga Rasa — Web Pelanggan (Full-Width Responsive Edge-to-Edge)
   Palet Solid Anti-AI (No gradients, no transparency, solid colors)
   ================================================================ */
:root {
  --teal: #318380;
  --teal-dark: #2F706E;
  --teal-tint: #E7F2F1;
  --coral: #C0573E;
  --coral-dark: #A04028;
  --coral-tint: #F9E6E0;
  --navy: #1B2A4A;
  --navy-light: #2A3D66;
  --cream: #F7EEDB;
  --text: #111827;
  --muted: #6B7280;
  --label: #334155;
  --secondary: #475569;
  --placeholder: #94A3B8;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --subtle: #F3F4F6;
  --border: #E5E7EB;
  --border-subtle: #E2E8F0;
  --radius: 12px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
}
body {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ── Container Aplikasi Utama (100% Full-Width) ── */
.app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.content {
  flex: 1;
  width: 100%;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.has-nav .content { padding-bottom: calc(var(--nav-h) + 24px); }
.has-nav.has-cart .content { padding-bottom: calc(var(--nav-h) + 110px); }

/* ── Header Full-Width ── */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name {
  font-weight: 700;
  font-size: 19px;
  line-height: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-sub { font-size: 11.5px; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 8px; }
.table-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--subtle);
  border: 1px solid var(--border);
  color: var(--label);
  font-weight: 500;
  font-size: 13.5px;
}
.header-title { text-align: center; }
.header-title b { display: block; font-size: 15px; letter-spacing: -0.02em; }
.header-title span { font-size: 11px; color: var(--muted); }

/* ── Kartu & Elemen Global ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card.pad { padding: 18px; }
.muted { color: var(--muted); }
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: #FFFFFF;
  background: var(--teal);
}
.tag.coral { background: var(--coral); }
.tag.navy { background: var(--navy); }
.tag.cream { background: var(--cream); color: var(--text); border: 1px solid var(--border); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; margin-bottom: 2px; }
.section-title h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.section-title span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.label-caps { font-weight: 700; font-size: 12px; letter-spacing: 1.1px; color: var(--muted); text-transform: uppercase; }
.divider { height: 1px; background: #EEF0F3; border: 0; margin: 0; }

.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
}
.welcome p {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Chips Kategori ── */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  transition: all 0.15s ease-out;
}
.chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #FFFFFF;
  font-weight: 700;
}

/* ── Filter Bar (kategori chips + tombol filter) ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -16px;
  padding: 0 16px;
  overflow: visible;
}
.filter-bar .chips {
  flex: 1;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

/* ── Filter Wrap & Tombol ── */
.filter-wrap {
  position: relative;
  flex-shrink: 0;
}
.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.15s ease-out;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.filter-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

/* ── Dropdown Filter ── */
.filter-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50;
  overflow: hidden;
  padding: 6px 0;
}
.filter-section-label {
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.filter-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.1s;
}
.filter-option:hover { background: var(--subtle); }
.filter-option.selected {
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 700;
}
.filter-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.filter-reset {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--coral);
  transition: background 0.1s;
}
.filter-reset:hover { background: var(--coral-tint); }

/* ── Kartu Menu & Hero ── */
.hero { overflow: hidden; }
.hero-img { position: relative; aspect-ratio: 2 / 1; background: #1C1C1C; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
}
.hero-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.hero-body h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #EEF0F3;
}
.price { font-weight: 700; font-size: 17.5px; color: var(--text); }
.add-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 0;
  background: var(--teal);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.add-btn:active { background: var(--teal-dark); }
.add-btn.sm { width: 38px; height: 38px; border-radius: 8px; }

/* ── Menu List Container ── */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  transition: border-color 0.15s;
}
.menu-item:hover { border-color: #CBD5E1; }
.menu-item img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}
.menu-item .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-item .tag { align-self: flex-start; }
.menu-item h4 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-item p { margin: 0; font-size: 12.5px; line-height: 17px; color: var(--muted); }
.menu-item .price-row { padding-top: 8px; align-items: center; }
.in-cart { font-size: 11.5px; font-weight: 700; color: var(--teal); }

/* ── Floating Cart Bar & Bottom Nav ── */
.cart-bar {
  position: fixed;
  left: 0;
  bottom: calc(var(--nav-h) + 12px);
  width: 100%;
  padding: 0 16px;
  z-index: 30;
}
.cart-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.cart-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
}
.cart-total { font-weight: 700; font-size: 17px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  background: var(--coral);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s;
}
.cta:active { background: var(--coral-dark); }
.cta.block { width: 100%; height: 52px; border-radius: 10px; font-size: 15px; }
.cta.teal { background: var(--teal); }
.cta.navy { background: var(--navy); }
.cta[disabled] { background: var(--border-subtle); color: var(--muted); cursor: not-allowed; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.bottom-nav a.active { color: var(--teal); font-weight: 700; }

/* ── Halaman: Pesanan ── */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
}
.step-box p { margin: 0; font-weight: 500; font-size: 13.5px; }
.pill-outline {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.order-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.order-top { display: flex; justify-content: space-between; gap: 12px; }
.order-top .left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.order-top .left .tag { align-self: flex-start; }
.order-top h4 { margin: 0; font-size: 16px; }
.order-top .right { text-align: right; flex-shrink: 0; }
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #EEF0F3;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: var(--subtle);
}
.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 0;
  background: var(--teal);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
}
.stepper span { width: 28px; text-align: center; font-weight: 500; }
.note {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
}
.note svg { flex-shrink: 0; }
.note input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}
.note input::placeholder { color: var(--placeholder); font-style: italic; }
.note:focus-within { border-color: var(--teal); background: #FFFFFF; }

.summary { padding: 20px 18px 18px; }
.summary .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 6px 0;
}
.summary .row span:first-child { color: var(--muted); }
.summary .row b { font-weight: 700; }
.summary .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
}
.summary .total b:last-child { font-size: 22px; color: var(--navy); }

.pay-info {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid #EFE4CF;
}
.pay-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--coral);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-info b { font-size: 14px; }
.pay-info p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--secondary);
}

.sticky-action {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 25;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sticky-action .cta.block { justify-content: space-between; padding: 0 14px 0 20px; }
.cta .amount { padding: 6px 10px; border-radius: 6px; background: var(--coral-dark); font-size: 13.5px; }
.link-btn { background: none; border: 0; color: var(--secondary); font-weight: 700; font-size: 13px; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty img { width: 80px; margin: 0 auto 14px; }

/* ── Halaman: Status ── */
.live {
  padding: 20px 20px 20px 22px;
  border-left: 4px solid var(--teal);
  display: flex;
  flex-direction: column;
}
.live-top { display: flex; justify-content: space-between; align-items: center; }
.live h3 { margin: 10px 0 2px; font-size: 20px; letter-spacing: -0.02em; }
.eta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
}
.eta .timer { padding: 6px 10px; border-radius: 5px; background: #111C33; font-variant-numeric: tabular-nums; }
.progress { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress span { height: 6px; border-radius: 3px; background: var(--border-subtle); }
.progress span.done { background: var(--teal); }
.progress span.now { background: #86D4D0; }
.detail-item { padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.detail-item .line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.detail-item .qty { color: var(--teal); font-weight: 700; }
.note-chip {
  align-self: flex-start;
  margin-left: 22px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--coral-dark);
}

/* ── Halaman: Bantuan ── */
.status-card {
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
}
.status-card .logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-card .logo-wrap img { width: 44px; }
.status-card h3 { margin: 10px 0 0; font-size: 22px; letter-spacing: -0.02em; }
.status-card p { margin: 6px 0 0; max-width: 360px; font-size: 13.5px; line-height: 20px; color: var(--muted); }
/* ── Halaman: Bantuan (1 Tombol Multifungsi + Papan Notepad + Cooldown 3 Menit) ── */
.req-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.req-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.quick-chips-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--subtle);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease-out;
}
.quick-chip:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.quick-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notepad-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notepad-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--label);
  letter-spacing: -0.01em;
}
textarea.notepad {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
  transition: border-color 0.15s, background-color 0.15s;
}
textarea.notepad:focus {
  outline: none;
  border-color: var(--teal);
  background: #FFFFFF;
}
textarea.notepad:disabled {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
  cursor: not-allowed;
}
.char-count {
  text-align: right;
  font-size: 11.5px;
  color: var(--muted);
}

/* ── Banner Cooldown & Timbal Balik Kasir 3 Menit ── */
.cooldown-banner {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--coral);
}
.cooldown-banner.confirmed {
  border-left-color: var(--teal);
  background: #F4FBF9;
}
.cooldown-icon {
  width: 28px;
  height: 28px;
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cooldown-banner.confirmed .cooldown-icon {
  color: var(--teal);
}
.cooldown-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feedback-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.feedback-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  background: var(--coral-tint);
  color: var(--coral-dark);
}
.feedback-badge.confirmed {
  background: var(--teal);
  color: #FFFFFF;
}
.feedback-time {
  font-size: 11.5px;
  color: var(--muted);
}
.cooldown-info b {
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cooldown-info p {
  margin: 0;
  font-size: 13px;
  color: var(--secondary);
  line-height: 18px;
}

/* ── Kotak Timbal Balik Kasir ── */
.cashier-reply-box {
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--subtle);
  border: 1px solid var(--border);
}
.cooldown-banner.confirmed .cashier-reply-box {
  background: #FFFFFF;
  border-color: var(--teal);
}
.cashier-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}
.cashier-reply-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--label);
  letter-spacing: 0.5px;
}
.cashier-reply-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--coral-dark);
}
.cooldown-banner.confirmed .cashier-reply-status {
  color: var(--teal);
}
.cashier-reply-text {
  font-size: 13px;
  color: var(--text);
  line-height: 18px;
}
.cooldown-timer-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
}
.cooldown-timer-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* ── SATU TOMBOL MULTIFUNGSI ── */
.submit-help-btn {
  height: 52px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease-out;
}
.submit-help-btn:disabled {
  background: #CBD5E1 !important;
  color: #64748B !important;
  cursor: not-allowed;
}
.submit-help-btn.active-ready {
  background: var(--teal) !important;
  color: #FFFFFF !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(49, 131, 128, 0.25);
}
.submit-help-btn.active-ready:active {
  background: var(--teal-dark) !important;
}
.submit-help-btn.in-cooldown {
  background: var(--navy-light) !important;
  color: #E2E8F0 !important;
  cursor: not-allowed;
}

/* ── Section Rating & Ulasan Pelanggan ── */
.rating-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.star-rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 8px;
}
.stars {
  display: flex;
  gap: 6px;
}
.star-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--border);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: transform 0.15s ease-out, color 0.15s ease-out;
}
.star-btn:hover {
  transform: scale(1.15);
}
.star-btn.active {
  color: #F59E0B;
}
.star-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.aspect-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.aspect-chip {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.aspect-chip.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
}
.rating-success-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #E8F2F1;
  border: 1px solid var(--teal);
  margin-top: 8px;
}
.rating-success-box .success-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Toast Feedback ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 80px);
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease-out;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Notifikasi atas (pesanan siap / dikonfirmasi) ── */
.top-alert {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, calc(-100% - 20px));
  width: min(520px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.2);
}
.top-alert.show { transform: translate(-50%, 0); }
.top-alert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  font-size: 20px;
}
.top-alert-text { display: flex; flex-direction: column; min-width: 0; }
.top-alert-text b { font-size: 15px; }
.top-alert-text span { font-size: 12.5px; opacity: 0.85; }


/* ================================================================
   MODE FULL-WIDTH: TABLET & DESKTOP (Layar >= 768px, >= 1024px, >= 1360px)
   ================================================================ */

@media (min-width: 768px) {
  /* Header melebar 100% penuh */
  .header {
    height: 70px;
    padding: 0 calc(16px + 2vw);
  }
  .brand-name { font-size: 22px; }
  .brand img { width: 42px; height: 42px; }

  /* Konten melebar 100% penuh dengan padding proporsional */
  .content {
    padding: 24px calc(16px + 2vw) 48px;
    gap: 24px;
  }

  /* Chips kategori tidak terpotong */
  .chips {
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Hero Banner terbagi 2: Foto di kiri, Detail di kanan */
  .hero {
    display: flex;
    flex-direction: row;
    min-height: 220px;
  }
  .hero-img {
    width: 340px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .hero-body {
    flex: 1;
    padding: 24px 28px;
    justify-content: center;
  }

  /* Daftar Menu menjadi GRID 2 Kolom di Tablet */
  .menu-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
  .menu-item {
    height: 100%;
  }

  /* Bottom Nav melebar 100% penuh */
  .bottom-nav {
    width: 100%;
    left: 0;
    transform: none;
    height: 70px;
  }
  .bottom-nav a {
    flex-direction: row;
    gap: 8px;
    font-size: 14px;
  }

  /* Cart Bar meluas di bawah */
  .cart-bar {
    width: 100%;
    left: 0;
    transform: none;
    padding: 0 calc(16px + 2vw);
    bottom: calc(var(--nav-h) + 16px);
  }
  .cart-bar .inner {
    max-width: 100%;
    padding: 14px 24px;
  }

  /* Sticky Action di Pesanan */
  .sticky-action {
    width: 100%;
    left: 0;
    transform: none;
    padding: 16px calc(16px + 2vw);
  }
  .sticky-action .cta.block {
    max-width: 600px;
  }

  /* ── Layout Khusus Halaman BANTUAN di Tablet/Laptop (2 Kolom Lebar) ── */
  body[data-page="bantuan"] .content {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    grid-template-areas:
      "status req-panel"
      "pay req-panel";
    gap: 20px 32px;
    align-items: start;
  }
  body[data-page="bantuan"] .status-card { grid-area: status; }
  body[data-page="bantuan"] .req-panel { grid-area: req-panel; }
  body[data-page="bantuan"] .pay-info { grid-area: pay; }

  /* ── Layout Khusus Halaman PESANAN di Tablet/Laptop (2 Kolom Lebar) ── */
  body[data-page="pesanan"] .content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
      "step summary"
      "order-title summary"
      "order-list pay"
      "order-list table-note";
    gap: 18px 32px;
    align-items: start;
  }
  body[data-page="pesanan"] .step-box { grid-area: step; }
  body[data-page="pesanan"] .content > div:nth-of-type(2) { grid-area: order-title; }
  body[data-page="pesanan"] .order-list { grid-area: order-list; }
  body[data-page="pesanan"] #summary { grid-area: summary; }
  body[data-page="pesanan"] .pay-info { grid-area: pay; }
  body[data-page="pesanan"] .content > p:last-of-type { grid-area: table-note; }

  /* ── Layout Khusus Halaman STATUS di Tablet/Laptop (2 Kolom Lebar) ── */
  body[data-page="status"] #status-wrap {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "live detail"
      "pay detail"
      "btn detail";
    gap: 20px 32px;
    align-items: start;
  }
  body[data-page="status"] .card.live { grid-area: live; }
  body[data-page="status"] .card.pad { grid-area: detail; }
  body[data-page="status"] .card.pay-info { grid-area: pay; }
  body[data-page="status"] #status-wrap > .cta.block { grid-area: btn; }
}

@media (min-width: 1024px) {
  /* Layar PC / Laptop Lebar (>= 1024px): GRID 3 Kolom untuk Menu */
  .menu-list {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
  .hero-img {
    width: 400px;
  }
}

@media (min-width: 1400px) {
  /* Layar Sangat Lebar (>= 1400px / Full HD): GRID 4 Kolom Menu Penuh */
  .menu-list {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 22px !important;
  }
}

/* Layar Sangat Kecil (≤ 360px) */
@media (max-width: 360px) {
  .menu-item img { width: 76px; height: 76px; }
  .brand-name { font-size: 17px; }
  .hero-body h3 { font-size: 19px; }
}
