/* ============================================================================
   ROTI BAKAR RAGIL — Tema Coklat Karamel & Emas Keju (Mobile-First POS)
   ============================================================================ */
:root {
  --bg-top: #fdeee6;
  --bg-mid: #fffaf0;
  --bg-bot: #fef4df;
  --surface: #ffffff;
  --surface-soft: #fff9f2;
  --espresso: #3b1c0c;
  --caramel-dark: #4e2510;
  --caramel: #7c3b16;
  --caramel-mid: #9a4a1c;
  --gold-bright: #fbbf24;
  --gold-soft: #fef0a6;
  --gold-pale: #fff8d6;
  --terracotta: #d95d24;
  --green-ok: #15803d;
  --green-soft: #e9f9ee;
  --rose: #be123c;
  --rose-soft: #fff1f2;
  --text-main: #2d170c;
  --text-sub: #6b4e3d;
  --text-muted: #8c6d5a;
  --border: #ecd9c6;
  --shadow-card: 0 10px 28px rgba(78, 37, 16, 0.10);
  --shadow-hero: 0 14px 32px rgba(59, 28, 12, 0.28);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text-main);
  background: linear-gradient(175deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bot) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Desktop centering so it looks like a gorgeous native mobile app on any screen */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 106px;
}

/* ---- Top Header Bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 155, 92, 0.25);
  box-shadow: 0 2px 12px rgba(78, 37, 16, 0.06);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 3px 10px rgba(154, 74, 28, 0.2);
  flex-shrink: 0;
  background: #faf0c8;
}

.brand-meta { min-width: 0; }
.brand-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--espresso);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.brand-sub {
  font-size: 11.8px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease;
}
.sync-pill:active { transform: scale(0.95); }
.sync-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22);
}

/* ---- Main Content Area ---- */
.main-content {
  padding: 16px 14px 16px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 850;
  color: var(--caramel-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.date-sub {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-top: 3px;
  font-weight: 500;
}

.date-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--caramel-dark);
  cursor: pointer;
}
.date-picker-btn input[type="date"] {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--caramel-dark);
  outline: none;
  width: 108px;
}

/* ---- Hero Sales Banner Card (Coklat Karamel Panggang + Poster Roti Bakar!) ---- */
.hero-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 14px 18px 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 12%, rgba(251, 191, 36, 0.24) 0%, transparent 50%),
    radial-gradient(circle at 82% 88%, rgba(217, 93, 36, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #3b1c0c 0%, #6b3315 56%, #8f4318 100%);
  color: #ffffff;
  box-shadow: var(--shadow-hero);
  margin-bottom: 14px;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  z-index: 2;
}

.hero-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fde68a;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-amount {
  font-size: 33px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.hero-count {
  font-size: 13.5px;
  font-weight: 700;
  color: #fcd34d;
  margin-top: 7px;
}

.hero-drawer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(254, 243, 199, 0.28);
  color: #fffbeb;
  font-size: 11.5px;
  font-weight: 600;
  width: fit-content;
}

.hero-poster-wrap {
  flex: 0 0 96px;
  align-self: center;
  z-index: 2;
}

.hero-poster {
  display: block;
  width: 96px;
  height: 148px;
  object-fit: cover;
  border-radius: 16px;
  border: 2.5px solid #fde68a;
  box-shadow: 0 10px 22px rgba(25, 10, 3, 0.45);
}

/* ---- Modal Awal Card (Kuning Keju Mentega Lembut!) ---- */
.capital-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff6c2 0%, #fde68a 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.12);
  margin-bottom: 20px;
}

.capital-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #92400e;
  text-transform: uppercase;
}

.capital-amount {
  font-size: 27px;
  font-weight: 900;
  color: #3b1c0c;
  line-height: 1.15;
  margin: 4px 0 3px;
  font-variant-numeric: tabular-nums;
}

.capital-sub {
  font-size: 12.2px;
  color: #78350f;
}

.btn-ubah {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 15px;
  border: 1.5px solid rgba(180, 83, 9, 0.18);
  background: #ffffff;
  color: var(--espresso);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(120, 53, 15, 0.12);
  transition: transform 0.12s ease;
}
.btn-ubah:active { transform: scale(0.95); }

/* ---- Menu Section Header (Persis "PILIH MENU FAVORIT / Menu jualan ✦") ---- */
.menu-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #b45309;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.menu-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--caramel-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-heading .sparkle { color: #f59e0b; font-size: 20px; }

.menu-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 3px;
  margin-bottom: 10px;
}

.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12.8px;
  font-weight: 700;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}
.status-banner .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}
.status-banner.recorded {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}
.status-banner.recorded .dot { background: #d97706; }

/* ---- Search Box Card ---- */
.search-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 13px 14px 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.search-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1.5px solid #e7d2be;
  background: #fffdf9;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}
.search-input:focus {
  border-color: var(--terracotta);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 93, 36, 0.14);
}

.cat-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 10px;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e7d2be;
  background: #fff8ef;
  color: var(--caramel-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cat-chip.active {
  background: linear-gradient(135deg, var(--caramel-dark), var(--caramel));
  color: #fde68a;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(78, 37, 16, 0.22);
}

/* ---- Grouped Menu Cards ---- */
.menu-group {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 13px 13px 10px;
  margin-bottom: 13px;
  box-shadow: var(--shadow-card);
}

.menu-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.menu-group-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--caramel-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-group-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #9a4a1c;
  background: #fef3c7;
  padding: 3px 9px;
  border-radius: 999px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf9 0%, #fff7ec 100%);
  border: 1.2px solid #f0decb;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
}
.menu-item-row:active {
  transform: scale(0.985);
  border-color: var(--terracotta);
}

.menu-item-info { min-width: 0; flex: 1; }
.menu-item-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}
.menu-item-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--terracotta);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.btn-quick-plus {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 13px;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #2d170c;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.28);
  transition: transform 0.1s ease;
}
.btn-quick-plus:active { transform: scale(0.92); }

/* ---- Floating Dark-Espresso Bottom Navigation Pill ---- */
.bottom-nav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.bottom-nav {
  max-width: 456px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 7px 8px;
  border-radius: 26px;
  background: linear-gradient(135deg, #2b1308 0%, #44200e 100%);
  box-shadow: 0 14px 34px rgba(43, 19, 8, 0.42), inset 0 1px 0 rgba(254, 243, 199, 0.14);
  pointer-events: auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: #e7d5c3;
  cursor: pointer;
  transition: all 0.16s ease;
}

.nav-item .nav-ico {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-item .nav-ico svg { width: 21px; height: 21px; }
.nav-item .nav-emoji { font-size: 19px; line-height: 1; }
.nav-item .nav-lbl { font-size: 11px; font-weight: 700; line-height: 1; }

.nav-item.active {
  background: linear-gradient(145deg, #fcd34d 0%, #f59e0b 100%);
  color: #2d1408;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}
.nav-item.active .nav-lbl { font-weight: 850; }

/* ---- Sub-pages: Cards, KPI Grids, Lists, Forms ---- */
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 15px;
  box-shadow: var(--shadow-card);
  margin-bottom: 13px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 850;
  color: var(--caramel-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.mini-stat {
  border-radius: 18px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(78, 37, 16, 0.06);
}
.mini-stat.warm { background: linear-gradient(145deg, #fffdf4, #fef3c7); border-color: #fde68a; }
.mini-stat.caramel { background: linear-gradient(145deg, #fff8f3, #ffedd5); border-color: #fed7aa; }
.mini-stat.green { background: linear-gradient(145deg, #f7fff9, #dcfce7); border-color: #bbf7d0; }
.mini-stat.rose { background: linear-gradient(145deg, #fff7f8, #ffe4e6); border-color: #fecdd3; }

.mini-stat-lbl { font-size: 11px; font-weight: 800; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.04em; }
.mini-stat-val { font-size: 19px; font-weight: 900; color: var(--espresso); margin-top: 3px; font-variant-numeric: tabular-nums; }
.mini-stat-sub { font-size: 11.2px; color: var(--text-muted); margin-top: 2px; }

.trx-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f3e4d5;
}
.trx-row:last-child { border-bottom: none; padding-bottom: 2px; }
.trx-main { min-width: 0; flex: 1; }
.trx-name { font-size: 14px; font-weight: 800; color: var(--text-main); }
.trx-meta { font-size: 11.8px; color: var(--text-sub); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.trx-right { text-align: right; flex-shrink: 0; }
.trx-total { font-size: 14.5px; font-weight: 900; color: var(--caramel-dark); font-variant-numeric: tabular-nums; }
.trx-total.out { color: var(--rose); }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.8px;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
}
.pill.green { background: #dcfce7; color: #166534; }
.pill.orange { background: #ffedd5; color: #c2410c; }
.pill.blue { background: #dbeafe; color: #1d4ed8; }
.pill.rose { background: #ffe4e6; color: #be123c; }

.btn-del-tiny {
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sm {
  padding: 7px 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--caramel-dark), var(--caramel));
  color: #fef3c7;
  font-size: 12.2px;
  font-weight: 800;
  cursor: pointer;
}
.btn-sm.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #2d1408; }
.btn-sm.outline { background: #fff8ef; color: var(--caramel-dark); border: 1px solid var(--border); }

/* ---- Stock Item Controls ---- */
.stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f3e4d5;
}
.stock-row:last-child { border-bottom: none; }
.stock-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1.5px solid #e7d2be;
  background: #fff8ef;
  color: var(--espresso);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn.plus { background: #fef3c7; border-color: #f59e0b; color: #78350f; }
.stock-num {
  min-width: 48px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--espresso);
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 10px;
  background: #fffdf8;
  border: 1px dashed #d9b99b;
}

/* ---- Forms ---- */
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--caramel-dark);
  margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1.5px solid #e5cfb9;
  background: #fffdf9;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}
.field input:focus, .field select:focus {
  border-color: var(--terracotta);
  background: #ffffff;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-primary-full {
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #4e2510 0%, #8f4318 100%);
  color: #fef3c7;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(78, 37, 16, 0.28);
}
.btn-primary-full.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #2d1408;
}
.btn-primary-full:active { transform: scale(0.985); }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.choice-btn {
  padding: 10px 8px;
  border-radius: 13px;
  border: 1.5px solid #e7d2be;
  background: #fff9f2;
  color: var(--caramel-dark);
  font-size: 12.8px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.choice-btn.active {
  background: linear-gradient(135deg, #fef08a, #fbbf24);
  border-color: #d97706;
  color: #2d1408;
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 14px;
}
.qty-stepper button {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1.5px solid #e7d2be;
  background: #fff7eb;
  font-size: 22px;
  font-weight: 900;
  color: var(--espresso);
  cursor: pointer;
}
.qty-stepper .val {
  font-size: 26px;
  font-weight: 900;
  min-width: 44px;
  text-align: center;
  color: var(--espresso);
}

.chip-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.chip-quick {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: #fef9c3;
  color: #78350f;
  font-size: 12.2px;
  font-weight: 800;
  cursor: pointer;
}

/* ---- Bottom Sheet Modal ---- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(35, 16, 7, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-box {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fffcf7;
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 40px rgba(35, 16, 7, 0.32);
}
.sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: #dec5ad;
  margin: 0 auto 10px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sheet-head h3 { margin: 0; font-size: 18px; font-weight: 900; color: var(--espresso); }
.sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f5e6d8;
  color: var(--espresso);
  font-weight: 800;
  cursor: pointer;
}

/* ---- Login Overlay ---- */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 15%, rgba(251, 191, 36, 0.34) 0%, transparent 48%),
    radial-gradient(circle at 82% 85%, rgba(217, 93, 36, 0.38) 0%, transparent 50%),
    linear-gradient(155deg, #2b1308 0%, #5c2b12 52%, #3a1a0b 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fffcf7;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.login-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  background: linear-gradient(135deg, #4e2510 0%, #9a4a1c 100%);
  color: #ffffff;
}
.login-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid #fde68a;
  object-fit: cover;
  background: #faf0c8;
  flex-shrink: 0;
}
.login-hero h1 { margin: 0; font-size: 19px; font-weight: 900; color: #fffbeb; }
.login-hero p { margin: 3px 0 0; font-size: 12.2px; color: #fde68a; }
.login-form { padding: 20px; }
.pwd-wrap { position: relative; }
.pwd-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}
.form-error {
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.login-hint {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e5cfb9;
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
}
.quick-login-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.chip-login {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: #fef9c3;
  color: #78350f;
  font-size: 11.8px;
  font-weight: 800;
  cursor: pointer;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%) translateY(20px);
  z-index: 150;
  padding: 10px 16px;
  border-radius: 999px;
  background: #2b1308;
  color: #fef3c7;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sound-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #78350f;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.sound-pill:active { transform: scale(0.92); }
.sound-pill.muted {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

.menu-head-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.empty-menu-box {
  background: linear-gradient(145deg, #ffffff 0%, #fff8eb 100%);
  border: 2px dashed #eab308;
  border-radius: 22px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-top: 4px;
}
.empty-menu-ico { font-size: 42px; margin-bottom: 8px; }
.empty-menu-title { font-size: 17px; font-weight: 900; color: var(--espresso); margin-bottom: 5px; }
.empty-menu-desc { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin-bottom: 16px; }

.sound-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}
.sound-mode-btn {
  padding: 9px 6px;
  border-radius: 13px;
  border: 1.5px solid #e7d2be;
  background: #fff9f2;
  color: var(--caramel-dark);
  font-size: 11.8px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.sound-mode-btn.active {
  background: linear-gradient(135deg, #fef08a, #fbbf24);
  border-color: #d97706;
  color: #2d1408;
}

.empty-state {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}
