/* =====================================================================
   EMBER — Fine dining, delivered.
   Design system extracted from the reference mockup:
   dark near-black canvas, warm amber accent, elegant serif display.
   Single stylesheet, organised by section.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* canvas */
  --bg:            #0c0c0e;
  --bg-deep:       #070708;
  --surface:       #161617;
  --surface-2:     #1f1f22;
  --surface-3:     #2a2a2e;
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* brand */
  --accent:        #e8a33d;
  --accent-2:      #f2b551;
  --accent-deep:   #c97f24;
  --accent-soft:   rgba(232, 163, 61, 0.14);
  --accent-glow:   rgba(232, 163, 61, 0.35);

  /* semantic */
  --text:          #f4efe6;
  --text-dim:      #b6b0a6;
  --text-muted:    #837e76;
  --success:       #5fc97f;
  --danger:        #f0674f;
  --star:          #f0b429;

  /* type */
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* shadow */
  --sh-soft: 0 8px 30px rgba(0, 0, 0, 0.45);
  --sh-card: 0 12px 40px rgba(0, 0, 0, 0.5);
  --sh-amber: 0 12px 30px -8px var(--accent-glow);

  /* layout */
  --shell-w: 440px;
  --header-h: 64px;
  --nav-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  line-height: 1.45;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #000; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: 0.2px; }

/* hide scrollbars on horizontal scrollers */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- 3. App shell / phone frame ---------- */
.device {
  height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(232,163,61,0.06), transparent 60%),
    var(--bg-deep);
}

#app {
  position: relative;
  width: 100%;
  max-width: var(--shell-w);
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* on wide screens: render a polished phone */
@media (min-width: 480px) {
  #app {
    height: min(900px, 94dvh);
    border-radius: 44px;
    border: 1px solid var(--border);
    box-shadow:
      0 0 0 11px #0a0a0b,
      0 0 0 12px #1c1c1f,
      0 40px 90px -20px rgba(0,0,0,0.8);
  }
}

/* the scrollable page area between header & nav */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  animation: screen-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

.pad { padding: 0 20px; }
.pad-b { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
.stack > * + * { margin-top: var(--gap, 18px); }

/* ---------- 4. Typography helpers ---------- */
.display { font-family: var(--serif); }
.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }
.serif-title { font-family: var(--serif); font-size: 28px; line-height: 1.12; }
.section-title { font-family: var(--serif); font-size: 21px; }
.price { color: var(--accent); font-weight: 800; font-family: var(--sans); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; letter-spacing: 0.3px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(0.965); }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: #1a1206; box-shadow: var(--sh-amber);
}
.btn--primary:hover { box-shadow: 0 14px 34px -6px var(--accent-glow); }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn--sm { padding: 11px 16px; font-size: 13px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); transition: background 0.2s, transform 0.12s;
  flex: none; position: relative;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }

.link { color: var(--accent); font-weight: 600; }

/* badge on icons */
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: var(--accent);
  color: #1a1206; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}

/* ---------- 5b. Screen inner (flex column filling .screen) ---------- */
/* Without this, children have no height constraint → scroll breaks,
   flex items can't shrink → buttons/bars appear oversized on real phones. */
.screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;   /* allows flex items to shrink below content size */
}

/* ---------- 6. Header ---------- */
.appbar {
  height: var(--header-h); flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  background: linear-gradient(var(--bg), rgba(12,12,14,0.6));
  backdrop-filter: blur(8px);
  position: relative; z-index: 5;
}
.appbar__title { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.appbar__sub { font-size: 11px; color: var(--text-muted); }
.appbar .spacer { flex: 1; }
.appbar__loc { display: flex; flex-direction: column; line-height: 1.2; }
.appbar__loc b { font-size: 14px; display: flex; align-items: center; gap: 5px; }
.appbar__loc b svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- 7. Bottom navigation ---------- */
.tabbar {
  flex: none; height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(16,16,17,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  position: relative; z-index: 6;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted); font-size: 10.5px; font-weight: 600;
  transition: color 0.2s; padding-top: 4px;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--accent); }
.tab.active svg { filter: drop-shadow(0 0 8px var(--accent-glow)); }
.tab--fab { position: relative; }
.tab--fab .fab {
  width: 56px; height: 56px; border-radius: 50%; margin-top: -28px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  display: grid; place-items: center; color: #1a1206;
  box-shadow: 0 10px 24px -6px var(--accent-glow), 0 0 0 6px var(--bg);
  transition: transform 0.15s;
}
.tab--fab:active .fab { transform: scale(0.92); }
.tab--fab .fab svg { width: 26px; height: 26px; }

/* ---------- 8. Search & chips ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px 16px;
}
.search svg { width: 19px; height: 19px; color: var(--text-muted); flex: none; }
.search input { flex: 1; background: none; border: none; outline: none; font-size: 14.5px; }
.search input::placeholder { color: var(--text-muted); }

.chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.chip {
  flex: none; padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.2s;
}
.chip .emoji { font-size: 15px; }
.chip.active { background: var(--accent); color: #1a1206; border-color: transparent; box-shadow: var(--sh-amber); }
.chip:active { transform: scale(0.95); }

/* ---------- 9. Food imagery (photo + gradient fallback) ---------- */
.foodimg { position: relative; overflow: hidden; background: var(--surface-2); }
.foodimg::after { /* warm fallback wash, sits under the photo */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--grad, linear-gradient(140deg, #3a2410, #1a0f08));
}
.foodimg .glyph {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  font-size: 44px; opacity: 0.85; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}
.foodimg img {
  position: relative; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.5s ease;
}
.foodimg img.loaded { opacity: 1; }

/* category gradient palette */
.g-signature { --grad: linear-gradient(140deg, #4a2a12, #20120a); }
.g-grill     { --grad: linear-gradient(140deg, #5a2417, #25100b); }
.g-rice      { --grad: linear-gradient(140deg, #5a4316, #271d09); }
.g-pasta     { --grad: linear-gradient(140deg, #574d18, #221f0a); }
.g-seafood   { --grad: linear-gradient(140deg, #163a3e, #0c2024); }
.g-salad     { --grad: linear-gradient(140deg, #2c4a1d, #14260e); }
.g-dessert   { --grad: linear-gradient(140deg, #4a2238, #25111c); }
.g-drinks    { --grad: linear-gradient(140deg, #3a2a4a, #181024); }
.g-breakfast { --grad: linear-gradient(140deg, #5a4020, #281c0d); }

/* ---------- 10. Cards ---------- */
/* hero / chef's special */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 11; box-shadow: var(--sh-card);
}
.hero .foodimg { position: absolute; inset: 0; }
.hero__veil { position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 8%, rgba(0,0,0,0.1) 60%); }
.hero__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 20px; }
.hero__tag { display: inline-block; margin-bottom: 8px; }
.hero__title { font-family: var(--serif); font-size: 24px; }
.hero__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

/* horizontal popular card */
.h-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 8px; }
.dish {
  flex: none; width: 168px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-soft);
  transition: transform 0.15s, border-color 0.2s;
}
.dish:active { transform: scale(0.97); }
.dish .foodimg { aspect-ratio: 1 / 1; }
.dish__fav {
  position: absolute; top: 9px; right: 9px; z-index: 5; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(10,10,11,0.55); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: #fff;
}
.dish__fav svg { width: 16px; height: 16px; }
.dish__fav.on { color: var(--danger); }
.dish__pill {
  position: absolute; left: 9px; top: 9px; z-index: 5;
  background: rgba(10,10,11,0.6); backdrop-filter: blur(6px);
  padding: 4px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.dish__pill svg { width: 12px; height: 12px; color: var(--star); }
.dish__body { padding: 12px 13px 14px; }
.dish__name { font-size: 14.5px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dish__meta { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.dish__row { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.dish__add {
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent);
  color: #1a1206; display: grid; place-items: center;
}
.dish__add svg { width: 18px; height: 18px; }
.dish__add:active { transform: scale(0.9); }

/* list row card (menu / search results) */
.row-card {
  display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px; align-items: center;
}
.row-card .foodimg { width: 92px; height: 92px; border-radius: 14px; flex: none; }
.row-card__main { flex: 1; min-width: 0; }
.row-card__name { font-size: 16px; font-weight: 700; }
.row-card__desc { font-size: 12.5px; color: var(--text-muted); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }

/* 2-col category grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-card {
  position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1 / 0.92;
  border: 1px solid var(--border);
}
.cat-card .foodimg { position: absolute; inset: 0; }
.cat-card__veil { position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), rgba(0,0,0,0.05) 65%); }
.cat-card__body { position: absolute; left: 0; bottom: 0; z-index: 4; padding: 14px; }
.cat-card__name { font-family: var(--serif); font-size: 17px; }
.cat-card__count { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* generic section header */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ---------- 11. Stars / rating ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 14px; height: 14px; }

/* ---------- 12. Quantity stepper ---------- */
.stepper { display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3);
  display: grid; place-items: center; color: var(--text); }
.stepper button:active { transform: scale(0.9); }
.stepper b { min-width: 22px; text-align: center; font-size: 16px; font-weight: 700; }

/* ---------- 13. Dish detail ---------- */
.detail-hero { position: relative; height: 46%; min-height: 320px; }
.detail-hero .foodimg { position: absolute; inset: 0; }
.detail-hero__veil { position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, var(--bg) 2%, transparent 45%); }
.detail-hero__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; padding: 16px 18px; }
.detail-sheet { position: relative; z-index: 4; margin-top: -34px; padding: 0 20px;
  flex: 1; display: flex; flex-direction: column; }
.tag-line { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }
.tag--veg { color: var(--success); }
.tag--spicy { color: var(--danger); }
.facts { display: flex; gap: 10px; }
.fact { flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px; text-align: center; }
.fact b { display: block; font-size: 16px; }
.fact span { font-size: 11px; color: var(--text-muted); }
.ing-list { display: flex; gap: 10px; overflow-x: auto; }
.ing { flex: none; text-align: center; width: 64px; }
.ing__img { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 6px;
  background: var(--surface-2); display: grid; place-items: center; font-size: 26px; border: 1px solid var(--border); }
.ing span { font-size: 11px; color: var(--text-dim); }

/* sticky add-to-cart bar */
.buybar {
  flex: none; display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  padding-bottom: calc(16px + var(--safe-b));
  background: linear-gradient(rgba(12,12,14,0.4), var(--bg) 40%);
  border-top: 1px solid var(--border);
}
.buybar .total { display: flex; flex-direction: column; }
.buybar .total span { font-size: 11px; color: var(--text-muted); }
.buybar .total b { font-size: 22px; color: var(--accent); font-family: var(--sans); }

/* ---------- 14. Cart / checkout ---------- */
.cart-item { display: flex; gap: 13px; align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--border); }
.cart-item .foodimg { width: 70px; height: 70px; border-radius: 14px; flex: none; }
.cart-item__main { flex: 1; min-width: 0; }
.line { display: flex; align-items: center; justify-content: space-between; }
.line + .line { margin-top: 12px; }
.line span { color: var(--text-dim); font-size: 14px; }
.line.total-line span, .line.total-line b { font-size: 18px; color: var(--text); }
.line.total-line b { color: var(--accent); }
.summary { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* selectable option rows (address / payment) */
.opt { display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt__ic { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2);
  display: grid; place-items: center; color: var(--accent); flex: none; }
.opt__main { flex: 1; min-width: 0; }
.opt__main b { font-size: 14.5px; }
.opt__main p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; }
.opt.sel .radio { border-color: var(--accent); background:
  radial-gradient(circle at center, var(--accent) 0 5px, transparent 6px); }

/* promo input */
.promo { display: flex; gap: 10px; }
.promo input { flex: 1; background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--r-md); padding: 14px 16px; outline: none; }

/* ---------- 15. Order tracking ---------- */
.track-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; text-align: center; }
.track-ring { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 40px;
  background: var(--accent-soft); border: 2px solid var(--accent); }
.steps { position: relative; margin-top: 8px; }
.step { display: flex; gap: 16px; padding-bottom: 26px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px;
  background: var(--border); }
.step:last-child::before { display: none; }
.step__dot { width: 28px; height: 28px; border-radius: 50%; flex: none; z-index: 1;
  background: var(--surface-2); border: 2px solid var(--border); display: grid; place-items: center; }
.step__dot svg { width: 14px; height: 14px; }
.step.done .step__dot { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.step.active .step__dot { border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); }
.step__txt b { font-size: 14.5px; }
.step__txt p { font-size: 12px; color: var(--text-muted); }

/* ---------- 16. Forms ---------- */
.field { display: block; }
.field label { font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; display: block; font-weight: 600; }
.field .input { display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px 16px; }
.field .input:focus-within { border-color: var(--accent); }
.field .input svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.field .input input { flex: 1; background: none; border: none; outline: none; font-size: 14.5px; }

/* ---------- 17. Profile ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.avatar { width: 68px; height: 68px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: #1a1206; font-weight: 700; }
.menu-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.menu-row + .menu-row { border-top: 1px solid var(--border); }
.menu-row svg.lead { width: 20px; height: 20px; color: var(--accent); flex: none; }
.menu-row span { flex: 1; font-size: 14.5px; font-weight: 600; }
.menu-row svg.chev { width: 18px; height: 18px; color: var(--text-muted); }
.stat-row { display: flex; gap: 12px; }
.stat { flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px; text-align: center; }
.stat b { font-family: var(--serif); font-size: 22px; color: var(--accent); display: block; }
.stat span { font-size: 11px; color: var(--text-muted); }

/* ---------- 18. Empty / states ---------- */
.empty { text-align: center; padding: 60px 30px; }
.empty .ic { font-size: 52px; opacity: 0.6; margin-bottom: 14px; }
.empty h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--text-muted); font-size: 13.5px; }

/* ---------- 19. Toast ---------- */
.toast-wrap { position: absolute; left: 0; right: 0; bottom: calc(var(--nav-h) + 18px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 50; pointer-events: none; }
.toast { background: var(--surface-3); border: 1px solid var(--border-strong);
  color: var(--text); padding: 12px 18px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--sh-card); display: flex; align-items: center; gap: 9px;
  animation: toast-in 0.25s ease, toast-out 0.3s ease 2.2s forwards; }
.toast svg { width: 17px; height: 17px; color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* ---------- 20. Login / onboarding ---------- */
.auth { position: relative; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 36px 28px calc(36px + var(--safe-b)); overflow: hidden; }
.auth__bg { position: absolute; inset: 0; z-index: 0; }
.auth__bg .foodimg { position: absolute; inset: 0; }
.auth__bg::after { content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, var(--bg) 18%, rgba(12,12,14,0.55) 55%, rgba(12,12,14,0.85)); }
.auth__top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; padding: 40px 28px; text-align: center; }
.auth__inner { position: relative; z-index: 4; }
.auth__logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.auth__brand { font-family: var(--serif); font-size: 40px; line-height: 1; }
.auth h1 { font-size: 34px; line-height: 1.08; margin-bottom: 10px; }
.auth p.lead { color: var(--text-dim); font-size: 14.5px; margin-bottom: 26px; max-width: 320px; }
.auth .dots { display: flex; gap: 7px; margin-bottom: 26px; }
.auth .dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong); }
.auth .dots i.on { width: 22px; background: var(--accent); }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social { flex: 1; height: 50px; border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center; }
.social svg { width: 20px; height: 20px; }

/* flame logo mark */
.mark { width: 34px; height: 34px; color: var(--accent); }
.mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px var(--accent-glow)); }

/* ---------- 21. Misc utilities ---------- */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt20{margin-top:20px}.mt24{margin-top:24px}.mt32{margin-top:32px}
.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}.mb16{margin-bottom:16px}.mb20{margin-bottom:20px}.mb24{margin-bottom:24px}
.center { text-align: center; }
.f1 { flex: 1; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0%{background-position:100% 0} 100%{background-position:0 0} }
.fade-in { animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; } }
.pressable { transition: transform 0.12s; } .pressable:active { transform: scale(0.97); }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
