@font-face {
  font-family: 'Jakarta';
  src: url('/fonts/jakarta-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f5f3ef;
  --surface: #fff;
  --surface-2: #f0ede7;
  --ink: #17120f;
  --ink-2: #3d332d;
  --muted: #7d726b;
  --line: #e9e4dc;
  --espresso: #1c1410;
  --accent: #ff5a1f;
  --accent-2: #e8470f;
  --accent-soft: #fff0e9;
  --veg: #12a150;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgb(23 18 15 / 5%), 0 2px 8px rgb(23 18 15 / 5%);
  --shadow: 0 2px 6px rgb(23 18 15 / 5%), 0 12px 32px rgb(23 18 15 / 8%);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.ctrl { display: contents; }
body {
  margin: 0;
  font: 500 15px/1.45 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:active:not(:disabled) { transform: scale(.97); }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.view { max-width: 640px; margin: 0 auto; min-height: 100dvh; background: var(--bg); }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(255 90 31 / 45%), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgb(255 170 60 / 18%), transparent 60%),
    var(--espresso);
  color: #fff;
  border-radius: 0 0 28px 28px;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero-logo { width: 52px; height: 52px; border-radius: 16px; background: #fff; padding: 3px; box-shadow: 0 6px 20px rgb(0 0 0 / 30%); }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.hero-sub { display: flex; align-items: center; gap: 4px; margin: 6px 0 18px; color: rgb(255 255 255 / 78%); font-size: 14px; font-weight: 600; }
.hero-sub svg { width: 16px; height: 16px; color: var(--accent); }
.hero-facts {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.hero-facts li {
  padding: 10px 12px; border-radius: 14px;
  background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-facts b { display: block; font-size: 14px; font-weight: 750; }
.hero-facts span { display: block; font-size: 11px; color: rgb(255 255 255 / 60%); margin-top: 1px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgb(255 255 255 / 12%); }
.chip-open { background: rgb(18 161 80 / 22%); color: #6ff0a6; }
.chip-closed { background: rgb(255 90 31 / 22%); color: #ffb89e; }

.active-order {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 20px; background: rgb(255 255 255 / 94%); text-align: left;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgb(23 18 15 / 16%);
  animation: dockIn .3s var(--ease);
}
.active-order b { display: flex !important; align-items: center; gap: 7px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--veg); animation: live 1.6s infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgb(18 161 80 / 18%); } }
.active-order > span:nth-child(2) { flex: 1; }
.active-order b { display: block; font-size: 14px; }
.active-order small { color: var(--muted); font-size: 12px; }
.active-order svg { color: var(--muted); }
.active-token {
  display: grid; place-items: center; min-width: 48px; height: 40px; padding: 0 8px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-2); font-weight: 800;
}

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  padding: 12px 0 0;
  background: rgb(245 243 239 / 82%);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.search {
  display: flex; align-items: center; gap: 10px;
  margin: 0 16px; padding: 0 14px; height: 48px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  color: var(--muted); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.search svg { width: 20px; height: 20px; }
.search input { flex: 1; border: 0; outline: 0; background: none; height: 100%; min-width: 0; font-size: 16px; font-weight: 500; }
.search input::placeholder { color: #a39890; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(255 90 31 / 12%); }
.cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; height: 36px; padding: 0 16px; border-radius: 99px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--ink-2);
  white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease);
}
.cat[aria-current='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Menu ---------- */
.menu { padding: 0 0 120px; }
.section { padding: 18px 16px 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.section-head span { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }

.items { display: grid; gap: 10px; }
.item {
  display: flex; gap: 14px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-name { margin: 6px 0 4px; font-size: 16px; font-weight: 750; line-height: 1.25; letter-spacing: -.2px; }
.item-price { font-weight: 750; font-size: 15px; }
.item-price small { color: var(--muted); font-weight: 500; font-size: 12px; }
.item-desc {
  margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.custom-note { margin-top: auto; padding-top: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tags { display: flex; gap: 8px; align-items: center; }
.veg {
  width: 15px; height: 15px; border: 1.5px solid var(--veg); border-radius: 4px; display: grid; place-items: center; flex: none;
}
.veg::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--veg); }
.best {
  font-size: 10.5px; font-weight: 750; color: var(--accent-2); letter-spacing: .2px;
  background: var(--accent-soft); padding: 2px 8px; border-radius: 99px;
}
.item-media { position: relative; width: 112px; flex: none; display: flex; flex-direction: column; align-items: center; }
.item-media img {
  width: 112px; height: 112px; object-fit: cover; border-radius: 16px; background: var(--surface-2);
}
.item-media .add, .item-media .stepper { margin-top: -20px; position: relative; }
.item.noimg .item-media { justify-content: center; }
.item.noimg .item-media .add, .item.noimg .item-media .stepper { margin-top: 0; }
.soldout .item-info, .soldout img { opacity: .5; filter: grayscale(.7); }

/* Bestseller rail */
.rail {
  display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px;
  scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 16px;
}
.rail::-webkit-scrollbar { display: none; }
.tile {
  flex: none; width: 168px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.tile img { width: 100%; height: 132px; object-fit: cover; display: block; background: var(--surface-2); }
.tile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.tile h3 {
  margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: -.1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 6px; }
.tile .item-price { font-size: 14px; }
.tile .item-price small { display: block; font-size: 10.5px; line-height: 1; }
.tile .stepper { min-width: 0; height: 34px; }
.tile .stepper button { width: 28px; }
.tile .stepper span { min-width: 16px; }
.tile .add:disabled { min-width: 0; padding: 0 8px; height: 34px; font-size: 11px; }

.add {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 92px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--accent-2); font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 14px rgb(23 18 15 / 10%);
  transition: transform .12s var(--ease);
}
.add svg { width: 18px; height: 18px; }
.add:disabled { color: var(--muted); box-shadow: none; font-size: 12px; background: var(--surface-2); }
.add-round { min-width: 0; width: 36px; height: 36px; padding: 0; border-radius: 12px; background: var(--ink); color: #fff; border: 0; }
.stepper {
  display: inline-flex; align-items: center; height: 38px; min-width: 92px; border-radius: 12px;
  background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgb(255 90 31 / 30%); overflow: hidden;
}
.stepper button { width: 32px; height: 100%; border: 0; background: none; color: inherit; font-size: 20px; font-weight: 700; }
.stepper span { flex: 1; text-align: center; font-weight: 800; min-width: 22px; }
.stepper.sm { height: 34px; min-width: 88px; box-shadow: none; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 14px; }
.skeleton { height: 140px; margin: 16px; border-radius: var(--radius); background: linear-gradient(90deg, #ebe7e0, #f6f4f0, #ebe7e0); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.foot { padding: 18px 20px calc(180px + var(--safe-b)); color: var(--muted); font-size: 11.5px; text-align: center; }
.foot p { margin: 2px 0; }

/* ---------- Cart bar ---------- */
.dock {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + var(--safe-b)); width: min(608px, calc(100% - 24px));
  display: grid; gap: 8px; pointer-events: none;
}
.dock > * { pointer-events: auto; }
@keyframes dockIn { from { transform: translateY(24px); opacity: 0; } }
.cartbar {
  width: 100%; height: 62px;
  display: flex; justify-content: space-between; align-items: center; padding: 0 10px 0 10px;
  border: 0; border-radius: 20px; background: rgb(23 18 15 / 94%); color: #fff; font-weight: 700; font-size: 15px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgb(23 18 15 / 30%);
  animation: dockIn .3s var(--ease);
}
.cartbar-left { display: flex; align-items: center; gap: 10px; }
.cartbar-left b {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 6px; border-radius: 14px;
  background: rgb(255 255 255 / 12%); font-size: 16px;
}
.cartbar-cta {
  display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 0 10px 0 16px; border-radius: 14px;
  background: var(--accent); font-weight: 750;
}
@keyframes rise { from { transform: translate(-50%, 24px); opacity: 0; } }

/* ---------- Bars, cards, forms ---------- */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px;
  background: rgb(245 243 239 / 85%);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.bar h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--surface); border-radius: 14px; color: var(--ink); margin-right: 4px;
}
.cart-body { padding: 8px 16px calc(140px + var(--safe-b)); display: grid; gap: 12px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 6px 16px; }
.line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-of-type { border-bottom: 0; }
.line-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
span.line-img { display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--muted); }
.line-info { flex: 1; min-width: 0; }
.line-name { font-weight: 700; display: flex; gap: 6px; align-items: baseline; font-size: 14.5px; }
.line-name .veg { transform: translateY(2px); width: 13px; height: 13px; }
.line-name .veg::after { width: 5px; height: 5px; }
.line-opts { font-size: 12px; color: var(--muted); margin-top: 2px; }
.line .line-price, .line-price { font-weight: 750; font-size: 14px; margin-top: 2px; }
.order-body .line-price { margin: 0; text-align: right; }
.add-more {
  display: flex; align-items: center; gap: 4px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--accent-2); font-weight: 750; text-align: left;
}
.add-more svg { width: 18px; height: 18px; }

.form { padding: 16px; display: grid; gap: 14px; }
.form-title { margin: 4px 0 -4px; font-size: 15px; font-weight: 800; }
.pickup {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px;
  background: var(--accent-soft); color: var(--ink);
}
.pickup-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; flex: none; }
.pickup b { display: block; font-size: 14px; }
.pickup small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 1px; }
.paymethod { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; min-width: 0; }
.paymethod legend { padding: 0; margin-bottom: 10px; }
.pm {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px;
  border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pm input { position: absolute; opacity: 0; pointer-events: none; }
.pm-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--ink-2); flex: none; }
.pm-text { flex: 1; min-width: 0; }
.pm-text b { display: block; font-size: 14.5px; }
.pm-text small { display: block; color: var(--muted); font-size: 12px; }
.pm::after {
  content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfc7bd; flex: none; background: var(--surface);
  transition: border .15s;
}
.pm.on { border-color: var(--accent); background: var(--accent-soft); }
.pm.on .pm-icon { background: var(--accent); color: #fff; }
.pm.on::after { border: 6px solid var(--accent); }
.pm:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm.pm-off { opacity: .55; cursor: not-allowed; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.field em { font-weight: 500; color: var(--muted); font-style: normal; }
.field input, .phone {
  height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 0 14px;
  font-size: 16px; font-weight: 600; outline: 0; width: 100%; transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input::placeholder { color: #aaa098; font-weight: 500; }
.phone { display: flex; align-items: center; gap: 8px; padding: 0 0 0 14px; }
.phone b { color: var(--muted); font-weight: 650; }
.field .phone input { border: 0; box-shadow: none; padding: 0; background: none; height: 100%; flex: 1; min-width: 0; outline: 0; font-size: 16px; font-weight: 600; letter-spacing: .5px; }
.field input:focus, .phone:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgb(255 90 31 / 10%); }
.field.invalid input, .field.invalid .phone { border-color: #e5484d; background: #fff5f5; }
.form-error { margin: 0; color: #c62a2f; font-weight: 650; font-size: 14px; }

.bill { padding: 14px 16px; }
.bill h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.bill-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: 14px; }
.bill-row.total { color: var(--ink); font-weight: 800; font-size: 17px; border-top: 1px dashed var(--line); margin-top: 8px; padding: 12px 0 6px; }

.paybar {
  position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(640px, 100%);
  padding: 12px 16px calc(10px + var(--safe-b));
  background: rgb(255 255 255 / 90%); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.secure { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 8px 0 0; font-size: 11px; color: var(--muted); font-weight: 600; }
.secure svg { width: 12px; height: 12px; }

.btn {
  height: 54px; padding: 0 20px; border-radius: 16px; border: 0; font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s var(--ease), background .15s;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgb(255 90 31 / 30%); }
.btn-primary:active { background: var(--accent-2); }
.btn-primary:disabled { background: #f0b9a3; box-shadow: none; }
.btn-ghost { background: none; color: var(--ink-2); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgb(255 255 255 / 40%); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sheet ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: min(640px, 100%); max-width: 100%; max-height: 90dvh;
  border-radius: 28px 28px 0 0; background: var(--surface); color: var(--ink);
}
.sheet::backdrop { background: rgb(23 18 15 / 55%); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet[open] { animation: sheetIn .32s var(--ease); }
@keyframes sheetIn { from { transform: translateY(60px); opacity: .3; } }
.sheet-inner { position: relative; padding: 14px 16px calc(16px + var(--safe-b)); display: grid; gap: 16px; }
.grabber { justify-self: center; width: 40px; height: 5px; border-radius: 9px; background: var(--line); }
.sheet-img { width: 100%; height: 190px; object-fit: cover; border-radius: 20px; background: var(--surface-2); }
.sheet-head { display: grid; gap: 4px; }
.sheet-head h3 { margin: 2px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.sheet-head p { margin: 0; color: var(--muted); font-size: 13px; }
.opt-group { background: var(--surface-2); border-radius: 18px; padding: 12px 14px 4px; }
.opt-group h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.opt-group h4 small { color: var(--muted); font-weight: 600; font-size: 11px; background: var(--surface); padding: 2px 8px; border-radius: 99px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt span { flex: 1; font-weight: 600; }
.opt b { font-weight: 700; color: var(--ink-2); }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.sheet-foot {
  display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; background: var(--surface);
  padding: 10px 0 0; margin-bottom: -4px;
}
.sheet-foot .btn { flex: 1; }
.sheet-foot .stepper { height: 54px; border-radius: 16px; background: var(--surface-2); color: var(--ink); box-shadow: none; min-width: 112px; }
.sheet-foot .stepper button { width: 40px; }
.mockpay { text-align: center; padding-top: 24px; }
.mockpay h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.mock-tag { margin: 0; justify-self: center; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #8a5a00; background: #fff1c9; padding: 4px 12px; border-radius: 99px; }

/* ---------- Order status ---------- */
.order-body { padding: 8px 16px 40px; display: grid; gap: 12px; }
.token-card {
  text-align: center; padding: 26px 16px; color: #fff; border-radius: 24px; box-shadow: var(--shadow);
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(255 90 31 / 55%), transparent 60%),
    var(--espresso);
}
.token-card p { margin: 0; }
.token-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }
.token { font-size: 76px; line-height: 1; font-weight: 800; letter-spacing: -3px; margin: 8px 0 !important; }
.token-sub { font-size: 14px; opacity: .85; font-weight: 600; }
.token-due {
  display: inline-block; margin-top: 14px !important; padding: 8px 14px; border-radius: 99px;
  background: #fff; color: var(--accent-2); font-weight: 800; font-size: 14px;
}
.steps { list-style: none; margin: 0; padding: 18px 16px; display: grid; gap: 0; }
.step { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 18px; color: var(--muted); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); flex: none; display: grid; place-items: center; z-index: 1; }
.step.done { color: var(--ink); }
.step.done .dot { background: var(--veg); border-color: var(--veg); }
.step.done .dot::after { content: ''; width: 9px; height: 5px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.step.done::before { background: var(--veg); }
.step.current .dot { border-color: var(--accent); animation: pulse 1.6s infinite; }
.step.current { color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(255 90 31 / 16%); } }
.step b { display: block; font-weight: 750; }
.step small { color: var(--muted); font-weight: 500; }
.status-card { padding: 24px 16px; text-align: center; }
.status-card h3 { margin: 8px 0 4px; font-size: 19px; font-weight: 800; }
.status-card p { margin: 0 0 14px; color: var(--muted); }
.big-icon { font-size: 40px; }
.ref { text-align: center; font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- Misc ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(160px + var(--safe-b));
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); animation: rise .25s var(--ease);
}
.offline {
  position: sticky; top: 0; z-index: 30; padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 650;
  background: #fff1c9; color: #6b4a00;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
@media (min-width: 641px) {
  body { background: #e9e5de; }
  .view { box-shadow: 0 0 60px rgb(23 18 15 / 8%); }
}
