/* =========================================================
   Deer Café — app.css
   Cleaned mobile-first UI layer
   Goals:
   - Remove duplicated legacy styles
   - Keep bottom-nav / loyalty / cart-fab stable
   - Future-proof for menu modifiers and modal sheets
   - No bronze/silver/gold/vip tiers in UI
   ========================================================= */

/* ── local font ───────────────────────────────────────────── */
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-Thin.ttf') format('truetype');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-ExtraLight.ttf') format('truetype');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-FD-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── design tokens ───────────────────────────────────────── */
:root {
  --bg: #f7f2eb;
  --bg-2: #efe7dd;
  --surface: rgba(255,255,255,.76);
  --surface-solid: #fff;
  --surface-strong: #fffdf8;
  --surface-dark: #f2e7d8;

  --text: #161210;
  --text-soft: #6f655f;
  --text-muted: #9a8e85;

  --gold: #d08d36;
  --gold-2: #ad6f20;
  --gold-soft: rgba(208,141,54,.12);

  --accent: #7b3147;
  --accent-2: #5e2235;
  --accent-soft: rgba(123,49,71,.10);

  --ok: #4f8a52;
  --warn: #e38a2b;
  --danger: #c2574e;
  --info: #2563eb;

  --line: rgba(255,255,255,.55);
  --line-strong: rgba(208,141,54,.16);

  --shadow-xs: 0 2px 10px rgba(18,12,8,.04);
  --shadow-sm: 0 10px 26px rgba(18,12,8,.07);
  --shadow-md: 0 16px 40px rgba(18,12,8,.10);
  --shadow-lg: 0 22px 64px rgba(18,12,8,.14);
  --shadow-fab: 0 16px 34px rgba(123,49,71,.18);

  --r-xs: 14px;
  --r-sm: 18px;
  --r-md: 24px;
  --r-lg: 30px;
  --r-xl: 36px;
  --r-full: 999px;

  --nav-h: 80px;
  --max-w: 430px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --t-fast: 120ms cubic-bezier(.22,1,.36,1);
  --t: 220ms cubic-bezier(.22,1,.36,1);
  --t-slow: 420ms cubic-bezier(.22,1,.36,1);
}

/* ── reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at top left, rgba(208,141,54,.12), transparent 24%),
    radial-gradient(circle at top right, rgba(123,49,71,.08), transparent 18%),
    var(--bg);
}
body {
  margin: 0 auto;
  min-height: 100dvh;
  max-width: var(--max-w);
  direction: rtl;
  font-family: 'Estedad', Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(208,141,54,.12), transparent 24%),
    radial-gradient(circle at top right, rgba(123,49,71,.08), transparent 18%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.44), rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.44), transparent 40%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; direction: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(208,141,54,.20); }

/* ── typography ───────────────────────────────────────────── */
.t-hero, .hero-name { font-size: 32px; line-height: 1.06; font-weight: 800; letter-spacing: -.04em; }

.t-title { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.t-h2 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.t-h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.t-body { font-size: 14px; line-height: 1.75; font-weight: 400; }
.t-small { font-size: 12px; line-height: 1.6; font-weight: 500; }
.t-tiny { font-size: 10.5px; line-height: 1.4; font-weight: 600; }
.t-muted { color: var(--text-muted); }
.t-gold { color: var(--gold); }
.t-accent { color: var(--accent); }
.t-soft { color: var(--text-soft); }

/* ── app shell ───────────────────────────────────────────── */
.page-wrap { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 24px); }
.page-wrap.no-nav { padding-bottom: 0; }
.container { padding-inline: 18px; }
.section-gap { margin-bottom: 20px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* ── top header ──────────────────────────────────────────── */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
}
.top-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.top-header .logo .brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  white-space: nowrap;
}
.top-header .logo .brand-name span { color: var(--gold); }
.top-header .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── icon button ─────────────────────────────────────────── */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: 0 10px 22px rgba(18,12,8,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn img { width: 20px; height: 20px; object-fit: contain; }
.icon-btn .badge {
  position: absolute;
  top: -6px; left: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  border: 2px solid var(--bg);
  box-shadow: 0 4px 12px rgba(208,141,54,.25);
}
.icon-btn .dot {
  position: absolute;
  top: 8px; left: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

/* ── hero ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 116px;
  align-items: center;
  gap: 18px;
  padding: 4px 18px 20px;
}
.hero-text { min-width: 0; }
.hero-greeting {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.hero-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.55;
}
.hero-sub {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 24ch;
}
.hero-cup {
  width: 116px;
  height: 116px;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,.32);
  box-shadow: 0 18px 40px rgba(208,141,54,.10);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-cup img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ── quick actions ───────────────────────────────────────── */
.qa-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}
.qa-card {
  min-height: 118px;
  padding: 16px 12px 14px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 10px 24px rgba(18,12,8,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.qa-card:active { transform: scale(.975); }
.qa-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(208,141,54,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-icon img { width: 22px; height: 22px; object-fit: contain; }
.qa-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}
.qa-label small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}
.qa-sublabel {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}
.qa-caff-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-2);
}

/* ── active order ────────────────────────────────────────── */
.active-order {
  margin: 0 18px 18px;
  padding: 14px 14px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(123,49,71,.96), rgba(94,34,53,.98));
  box-shadow: 0 16px 34px rgba(123,49,71,.16);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.ao-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ao-icon img { width: 22px; height: 22px; object-fit: contain; }
.ao-body { flex: 1; min-width: 0; }
.ao-title { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.ao-sub { font-size: 11.5px; line-height: 1.5; opacity: .82; }
.ao-status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.14);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* ── loyalty card v2 (points-only, no tiers) ─────────────── */
.lc-card {
  margin: 0 18px 18px;
  padding: 18px 18px 16px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(208,141,54,0.14) 0%, rgba(247,242,235,0.96) 60%, rgba(208,141,54,0.08) 100%);
  border: 1px solid rgba(208,141,54,0.18);
  box-shadow: 0 12px 34px rgba(18, 12, 8, 0.06), inset 0 1px 0 rgba(255,255,255,0.70);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.lc-card:active { transform: scale(.985); }
.lc-cup {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(208,141,54,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(208,141,54,0.10);
}
.lc-cup img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.lc-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-club-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.lc-pts-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.lc-pts-row img { width: 18px; height: 18px; object-fit: contain; opacity: 1; }
.lc-pts-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
}
.lc-pts-sep { font-size: 16px; font-weight: 500; color: var(--text-muted); line-height: 1; }
.lc-pts-max { font-size: 16px; font-weight: 700; color: var(--text-soft); line-height: 1; }
.lc-progress {
  height: 6px;
  border-radius: var(--r-full);
  background: rgba(208, 141, 54, 0.14);
  overflow: hidden;
  margin-bottom: 10px;
}
.lc-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold), #e8b96a);
  transition: width 0.6s cubic-bezier(.22, 1, .36, 1);
  min-width: 3px;
}
.lc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lc-total {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}
.lc-total strong { color: var(--text); font-weight: 800; }
.lc-history-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-2);
  display: flex;
  align-items: center;
  gap: 2px;
}
.lc-arrow {
  font-size: 15px;
  line-height: 1;
  color: var(--gold-2);
  display: inline-block;
  transform: scaleX(-1);
}

/* ── guest CTA ───────────────────────────────────────────── */
.guest-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 18px 22px;
  padding: 16px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(208,141,54,.10), rgba(123,49,71,.07));
  border: 1px dashed rgba(208,141,54,.28);
  cursor: pointer;
  transition: transform var(--t-fast), opacity var(--t-fast);
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.guest-cta:active { transform: scale(.98); }
.guest-cta-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(208,141,54,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guest-cta-emoji { font-size: 22px; line-height: 1; }
.guest-cta-body { flex: 1; min-width: 0; }
.guest-cta-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.guest-cta-desc {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-soft);
}
.guest-cta-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(208,141,54,.22);
}
.guest-cta-btn img { width: 14px; height: 14px; filter: brightness(0) invert(1); }

/* ── section headers ─────────────────────────────────────── */
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  margin-bottom: 12px;
}
.sec-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-2);
}

/* ── horizontal rows ─────────────────────────────────────── */
.picks-scroll,
.cat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 18px 4px;
  scroll-snap-type: x proximity;
}
.picks-scroll::-webkit-scrollbar,
.cat-scroll::-webkit-scrollbar { display: none; }

/* ── pick cards ──────────────────────────────────────────── */
.pick-card {
  min-width: 156px;
  max-width: 156px;
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.66);
  box-shadow: 0 10px 24px rgba(18,12,8,.05);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  display: flex;
  flex-direction: column;
  color: inherit;
}
.pick-card:active { transform: scale(.98); }
.pick-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, rgba(208,141,54,.08), rgba(255,255,255,.94));
  overflow: hidden;
}
.pick-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pick-img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.pick-img-fallback img { width: 42px; height: 42px; opacity: .55; }
.pick-fav {
  position: absolute;
  top: 10px; left: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 14px rgba(18,12,8,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pick-fav img { width: 16px; height: 16px; opacity: .55; }
.pick-fav.liked img { opacity: 1; filter: invert(28%) sepia(88%) saturate(744%) hue-rotate(325deg) brightness(86%); }
.pick-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: rgba(18,12,8,.72);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
}
.pick-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pick-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pick-cat { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.pick-caff {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
}
.pick-caff img { width: 11px; height: 11px; opacity: .7; }
.pick-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pick-price { font-size: 13px; font-weight: 800; color: var(--text); }
.pick-price small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-muted); }
.pick-add {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(208,141,54,.16);
  transition: transform var(--t-fast);
}
.pick-add:active { transform: scale(.90); }
.pick-add img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.26); } 100% { transform: scale(1); } }
.pick-add.popped { animation: pop .24s ease; }

/* ── category pills ──────────────────────────────────────── */
.cat-item {
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  scroll-snap-align: start;
  color: inherit;
}
.cat-icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 24px;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 10px 24px rgba(18,12,8,.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon-wrap img { width: 22px; height: 22px; object-fit: contain; }
.cat-item:active .cat-icon-wrap { transform: scale(.96); }
.cat-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ── empty state ─────────────────────────────────────────── */
.empty-state {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.empty-icon { font-size: 30px; line-height: 1; }
.empty-title { font-size: 14px; font-weight: 800; color: var(--text); }
.empty-desc { font-size: 12px; line-height: 1.8; color: var(--text-soft); max-width: 22ch; }

/* ── cart fab ────────────────────────────────────────────── */
.cart-fab {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 18px);
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 390px;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(123,49,71,.98), rgba(94,34,53,.98));
  color: #fff;
  box-shadow: var(--shadow-fab);
  transition: transform var(--t-fast), opacity var(--t-fast);
  cursor: pointer;
}
.cart-fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}
.cart-fab:active { transform: translateX(-50%) scale(.985); }
.cart-fab-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cart-fab-left img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.cart-fab-count {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.cart-fab-text strong { display: block; font-size: 13px; font-weight: 800; line-height: 1.2; }
.cart-fab-text small { display: block; margin-top: 2px; font-size: 11px; opacity: .84; }
.cart-fab-price { font-size: 14px; font-weight: 800; white-space: nowrap; }

/* ── bottom nav (liquid glass) ───────────────────────────── */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: auto;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(48px) saturate(200%) brightness(108%);
  -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(108%);
  border: 1px solid rgba(255,255,255,.55);
  border-bottom-color: rgba(255,255,255,.22);
  border-radius: 999px;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.72),
    inset 0 -1px 0 rgba(18,12,8,.05),
    0 20px 56px rgba(18,12,8,.14),
    0 6px 18px rgba(18,12,8,.08),
    0 0 0 .5px rgba(208,141,54,.12);
  z-index: 100;
  isolation: isolate;
}
.bottom-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.16) 100%);
  pointer-events: none;
  z-index: 0;
}
.nav-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms cubic-bezier(.22,1,.36,1), box-shadow 180ms cubic-bezier(.22,1,.36,1), transform 140ms cubic-bezier(.22,1,.36,1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  color: var(--text-muted);
}
.nav-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.42;
  transition: opacity 180ms ease, filter 180ms ease;
  flex-shrink: 0;
}
.nav-item span {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: rgba(22,18,16,.50);
  transition: color 180ms ease, font-weight 120ms ease;
}
.nav-item.active {
  background: rgba(255,255,255,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.90), inset 0 -1px 0 rgba(18,12,8,.04), 0 4px 14px rgba(18,12,8,.08), 0 1px 4px rgba(18,12,8,.06);
}
.nav-item.active img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(60%) sepia(55%) saturate(520%) hue-rotate(1deg) brightness(95%);
}
.nav-item.active span { color: var(--gold); font-weight: 700; }
.nav-item:active { transform: scale(.88); }
.nav-cart-badge { animation: badgePop .24s ease; }
@keyframes badgePop { 0% { transform: scale(.72); } 100% { transform: scale(1); } }

/* ── cards / panels ──────────────────────────────────────── */
.card {
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: 16px; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 0;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-full { width: 100%; }
.btn-lg { padding: 15px 20px; font-size: 15px; border-radius: 22px; }
.btn-sm { padding: 9px 14px; font-size: 12px; border-radius: 14px; }
.btn-round { border-radius: var(--r-full); }
.btn-primary { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #fff; box-shadow: 0 12px 22px rgba(208,141,54,.22); }
.btn-brown { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 12px 22px rgba(123,49,71,.18); }
.btn-outline { background: rgba(255,255,255,.76); color: var(--gold-2); border: 1px solid rgba(208,141,54,.18); }
.btn-ghost { background: rgba(255,255,255,.72); color: var(--text); border: 1px solid rgba(255,255,255,.62); }
.btn-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #fff;
  box-shadow: 0 10px 18px rgba(208,141,54,.20);
}

/* ── inputs ──────────────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 7px; }
.input-group label { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute; top: 50%; transform: translateY(-50%); right: 14px;
  font-size: 18px; color: var(--text-muted); pointer-events: none;
}
.field {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  font-weight: 500;
  direction: ltr;
  text-align: right;
}
.field:focus { border-color: rgba(208,141,54,.34); box-shadow: 0 0 0 4px rgba(208,141,54,.10); background: rgba(255,255,255,.90); }
.field::placeholder { color: var(--text-muted); font-weight: 400; }
.field.error { border-color: rgba(194,87,78,.50); box-shadow: 0 0 0 4px rgba(194,87,78,.08); }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }
.field-error.show { display: block; }

/* ── tags / status badges ────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; line-height: 1; }
.tag-hot { background: rgba(194,87,78,.10); color: var(--danger); }
.tag-cold { background: rgba(37,99,235,.10); color: var(--info); }
.tag-caff { background: rgba(208,141,54,.12); color: var(--gold-2); }
.tag-new { background: rgba(79,138,82,.10); color: var(--ok); }
.tag-sale { background: rgba(123,49,71,.10); color: var(--accent); }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; line-height: 1; }
.status-new { background: rgba(208,141,54,.10); color: var(--gold); }
.status-preparing { background: rgba(227,138,43,.10); color: var(--warn); }
.status-served { background: rgba(37,99,235,.10); color: var(--info); }
.status-completed { background: rgba(79,138,82,.10); color: var(--ok); }
.status-cancelled { background: rgba(194,87,78,.10); color: var(--danger); }

/* ── divider ─────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(208,141,54,.14);
}

/* ── search bar ──────────────────────────────────────────── */
.search-bar { margin: 0 18px 16px; position: relative; }
.search-bar input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  outline: none;
  font-size: 14px;
  color: var(--text);
  direction: rtl;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-bar input:focus {
  border-color: rgba(208,141,54,.34);
  box-shadow: 0 0 0 4px rgba(208,141,54,.10);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar .si {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 18px);
  transform: translateX(-50%) translateY(16px);
  max-width: calc(var(--max-w) - 20px);
  padding: 12px 18px;
  border-radius: var(--r-full);
  background: rgba(18,12,8,.92);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity var(--t), transform var(--t);
  box-shadow: 0 16px 30px rgba(18,12,8,.20);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(79,138,82,.96); }
.toast.error { background: rgba(194,87,78,.96); }
.toast.warning { background: rgba(227,138,43,.96); }
.toast.info { background: rgba(37,99,235,.92); }

/* ── modal fallback base ─────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18,12,8,.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity var(--t);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  width: 100%;
  max-width: var(--max-w);
  padding: 18px 16px 30px;
  border-radius: 30px 30px 0 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform var(--t-slow);
  box-shadow: 0 -20px 60px rgba(18,12,8,.12);
}
.modal-backdrop.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 42px; height: 4px;
  border-radius: var(--r-full);
  background: rgba(208,141,54,.16);
  margin: 0 auto 18px;
}

/* ── menu detail / modifier card styles ──────────────────── */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,6,4,.54);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(.22,1,.36,1);
  isolation: isolate;
}
.detail-overlay.open { opacity: 1; pointer-events: auto; }
.detail-sheet {
  width: 100%;
  max-width: 560px;
  height: 76dvh;
  max-height: 76dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate3d(0,110%,0);
  transition: transform .52s cubic-bezier(.22,1,.36,1);
  will-change: transform;
  background: linear-gradient(175deg, rgba(255,252,246,.97) 0%, rgba(253,248,238,.99) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 28px 28px 0 0;
  border-top: 1px solid rgba(255,255,255,.80);
  border-left: 1px solid rgba(255,255,255,.50);
  border-right: 1px solid rgba(255,255,255,.50);
  box-shadow: 0 -2px 0 rgba(208,141,54,.08), 0 -24px 56px rgba(18,12,8,.18), 0 -4px 12px rgba(18,12,8,.08);
  touch-action: none;
  user-select: none;
  position: relative;
}
.detail-overlay.open .detail-sheet { transform: translate3d(0,0,0); }
.detail-sheet.is-dragging { transition: none !important; }
.detail-sheet::after {
  content: '';
  position: absolute;
  bottom: 88px;
  left: 0; right: 0;
  height: 24px;
  background: linear-gradient(to bottom, transparent, rgba(253,248,238,.88));
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .22s ease;
}
.detail-sheet.has-scroll::after { opacity: 1; }
.handle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(160,120,80,.18);
  cursor: grab;
  z-index: 10;
  touch-action: none;
  transition: background .18s, width .18s;
}
.handle:hover { background: rgba(160,120,80,.30); width: 44px; }
.handle:active { cursor: grabbing; background: rgba(123,49,71,.28); }
.ds-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 156px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(123,49,71,.06), rgba(208,141,54,.10));
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.ds-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52%;
  background: linear-gradient(to bottom, transparent, rgba(253,248,238,.58));
  pointer-events: none;
  z-index: 1;
}
#dsImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .32s ease;
}
#dsImg.img-loaded { opacity: 1; }
.ds-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
  opacity: .13;
}
.ds-img-placeholder span {
  font-size: 1.4rem;
  font-weight: 900;
}
.ds-close-btn {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: .66rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(18,12,8,.14);
  transition: transform .18s ease;
  z-index: 20;
  color: var(--text);
  font-weight: 700;
}
.ds-close-btn:active { transform: scale(.86); }
.ds-info {
  padding: 13px 20px 10px;
  border-bottom: 1px solid rgba(208,141,54,.08);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
#dsName {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.28;
  color: var(--text);
  letter-spacing: -.02em;
}
#dsDesc {
  margin-top: 4px;
  font-size: .76rem;
  line-height: 1.72;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#dsBody {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
}
#dsBody::-webkit-scrollbar { display: none; }
.menu-detail-note-hint {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 7px;
}
.js-menu-note {
  width: 100%;
  min-height: 68px;
  resize: vertical;
  border-radius: 16px;
  border: 1.5px solid rgba(208,141,54,.12);
  background: rgba(255,255,255,.80);
  padding: 10px 14px;
  font: inherit;
  font-size: .83rem;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 14px;
  outline: none;
  box-shadow: 0 2px 8px rgba(18,12,8,.03);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.js-menu-note:focus {
  border-color: rgba(208,141,54,.28);
  box-shadow: 0 0 0 4px rgba(208,141,54,.08);
  background: rgba(255,255,255,.97);
}
.menu-detail-group-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
}
.menu-detail-group {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(208,141,54,.10);
  border-radius: 20px;
  padding: 13px 14px 14px;
}
.menu-detail-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.menu-detail-group-title {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
}
.menu-detail-group-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 600;
}
.menu-detail-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.menu-detail-option {
  position: relative;
  border: 1.5px solid rgba(208,141,54,.16);
  background: rgba(255,255,255,.90);
  border-radius: 999px;
  padding: 9px 14px 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s cubic-bezier(.22,1,.36,1), background .20s ease, color .20s ease, border-color .20s ease, box-shadow .20s ease;
  overflow: hidden;
  pointer-events: auto;
}
.menu-detail-option input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.menu-detail-option small {
  font-size: 10.5px;
  opacity: .72;
  font-weight: 700;
}
.menu-detail-option.active {
  background: linear-gradient(135deg, #8b3855, var(--accent) 45%, var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(123,49,71,.22), inset 0 1px 0 rgba(255,255,255,.16);
  transform: translateY(-1px) scale(1.02);
}
.menu-detail-option.active::before {
  content: '✓';
  font-size: 10px;
  font-weight: 900;
  opacity: .88;
  margin-left: -2px;
}
.menu-detail-option:active { transform: scale(.96) translateY(0) !important; }
.menu-detail-error {
  display: none;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--danger);
  font-weight: 700;
}
.menu-detail-error.show { display: block; }
.menu-detail-empty {
  padding: 12px 0 4px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.85;
}
.menu-detail-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 2px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(208,141,54,.07);
  margin-top: 8px;
}
.menu-detail-summary strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
}
.ds-footer {
  flex-shrink: 0;
  padding: 12px 20px calc(env(safe-area-inset-bottom,0px) + 16px);
  background: rgba(255,252,246,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(208,141,54,.08);
  position: relative;
  z-index: 5;
}
.ds-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.ds-total-label { font-size: .73rem; color: var(--text-muted); font-weight: 700; }
#dsTotalVal {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent);
  transition: transform .22s cubic-bezier(.22,1,.36,1), color .18s ease;
}
#dsTotalVal.price-bump { transform: scale(1.08); }
.qty-ctrl, #qtyMinus, #qtyPlus, #qtyVal { display: none !important; }
.ds-action-row { display: flex; gap: 0; align-items: center; }
#dsAddBtn {
  flex: 1;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #8b3855, var(--accent) 45%, var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: -.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 0 rgba(60,14,30,.30), 0 8px 20px rgba(123,49,71,.20), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .16s cubic-bezier(.22,1,.36,1), box-shadow .16s ease;
  overflow: hidden;
  position: relative;
}
#dsAddBtn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.14), transparent);
  animation: btnShimmer 2.6s ease-in-out infinite;
}
@keyframes btnShimmer { 0% { left: -100%; } 60%, 100% { left: 140%; } }
#dsAddBtn:active {
  transform: translateY(3px) scale(.987);
  box-shadow: 0 1px 0 rgba(60,14,30,.24), 0 3px 8px rgba(123,49,71,.14), inset 0 1px 0 rgba(255,255,255,.10);
}
#dsAddBtn img { filter: brightness(0) invert(1); opacity: .92; }
#dsAddBtn.btn-success {
  background: linear-gradient(135deg, #2d7a4f, #1a5c38) !important;
  box-shadow: 0 4px 0 rgba(14,50,30,.28), 0 8px 20px rgba(29,100,64,.20) !important;
}

/* ── auth pages ──────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, rgba(208,141,54,.10), transparent 28%), var(--bg);
}
.auth-sheet {
  margin-top: auto;
  padding: 28px 22px 38px;
  border-radius: 34px 34px 0 0;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -16px 50px rgba(18,12,8,.08);
}
.auth-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -0.02em; }
.auth-subtitle { font-size: 13px; line-height: 1.8; color: var(--text-soft); margin-bottom: 22px; }
.otp-wrap { display: flex; justify-content: center; gap: 8px; direction: ltr; }
.otp-box {
  width: 46px; height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  outline: none;
  caret-color: var(--gold);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.otp-box:focus { border-color: rgba(208,141,54,.34); box-shadow: 0 0 0 4px rgba(208,141,54,.10); transform: translateY(-1px); }
.otp-box.filled { border-color: rgba(208,141,54,.28); background: rgba(208,141,54,.08); }

/* ── caffeine badge ──────────────────────────────────────── */
.caff-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px; border-radius: var(--r-full); font-size: 10.5px; font-weight: 700; }
.caff-ok { background: rgba(79,138,82,.10); color: var(--ok); }
.caff-mid { background: rgba(208,141,54,.12); color: var(--gold); }
.caff-warn { background: rgba(227,138,43,.12); color: var(--warn); }
.caff-danger { background: rgba(194,87,78,.10); color: var(--danger); }

/* ── motion ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.pulse { animation: deerPulse .28s ease; }
@keyframes deerPulse {
  0% { transform: scale(1); }
  45% { transform: scale(.96); }
  100% { transform: scale(1); }
}
.deer-ripple {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(208,141,54,.26);
  transform: translate(-50%,-50%) scale(0);
  animation: deerRipple .65s ease-out;
  pointer-events: none;
  z-index: 1;
}
@keyframes deerRipple {
  from { opacity: .95; transform: translate(-50%,-50%) scale(0); }
  to { opacity: 0; transform: translate(-50%,-50%) scale(18); }
}

/* ── utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 390px) {
  .hero { grid-template-columns: 1fr 100px; }
  .hero-cup { width: 100px; height: 100px; }
  .hero-name { font-size: 16px; }
  .qa-card { min-height: 108px; border-radius: 24px; }
  .pick-card { min-width: 152px; max-width: 152px; }
  .nav-item { padding: 8px 15px; }
}
@media (max-width: 360px) {
  .top-header,
  .hero,
  .qa-row,
  .sec-header,
  .picks-scroll,
  .cat-scroll,
  .loyalty-card,
  .guest-cta,
  .active-order {
    padding-inline: 14px;
  }
  .loyalty-card,
  .guest-cta,
  .active-order { margin-inline: 14px; }
  .hero { gap: 14px; }
  .hero-sub { max-width: 21ch; }
  .nav-item { padding: 8px 12px; }
}

/* ── safe area ───────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .page-wrap { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px); }
  .bottom-nav { bottom: calc(16px + env(safe-area-inset-bottom)); padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
  .cart-fab { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px); }
  .toast { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px); }
}
