/* Bowlmoon: a working food ordering demo for a cloud kitchen (concept project, sample data only). */
:root {
  --bg: #f6f5fb; --surface: #ffffff; --surface-2: #f3f1fa; --surface-3: #ebe8f7; --border: #e7e3f3; --border-2: #d6d0ea;
  --text: #17132e; --text-2: #3e3863; --muted: #6f6992; --faint: #a29dbd;
  --primary: #5b45f5; --primary-2: #4630db; --primary-soft: #efecff; --primary-ring: rgba(91, 69, 245, .24);
  --lime: #c6f24e; --lime-2: #9fd11f; --lime-ink: #233004; --lime-soft: #f1fad6;
  --coral: #f43f5e; --coral-soft: #ffe7eb;
  --veg: #15803d; --nonveg: #b42318;
  --green: #15803d; --green-soft: #e5f6eb; --amber: #b45309; --amber-soft: #fef1d9; --red: #dc2626; --red-soft: #fde9e9;
  --blue: #2558d6; --blue-soft: #e7eefe;
  --night: #14102f; --night-2: #221a52;
  --map-land: #eceaf5; --map-block: #e0ddef; --map-house: #d4d0e8; --map-road: #ffffff; --map-edge: #d6d1ea; --map-park: #cdebc2; --map-tree: #9fd38c; --map-water: #cfe0fb; --map-text: #8a84ad;
  --shadow-sm: 0 1px 2px rgba(23, 19, 46, .06);
  --shadow: 0 1px 2px rgba(23, 19, 46, .05), 0 10px 30px rgba(23, 19, 46, .07);
  --shadow-lg: 0 30px 80px rgba(23, 19, 46, .24);
  --r: 22px; --r-sm: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, Arial, sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  --emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0a18; --surface: #141229; --surface-2: #1a1733; --surface-3: #221e40; --border: #26224a; --border-2: #36315f;
  --text: #f3f1ff; --text-2: #d3cef0; --muted: #9c96c2; --faint: #6b6690;
  --primary: #7c6bff; --primary-2: #a99dff; --primary-soft: rgba(139, 123, 255, .16); --primary-ring: rgba(139, 123, 255, .36);
  --lime-soft: rgba(198, 242, 78, .12); --coral: #fb7185; --coral-soft: rgba(251, 113, 133, .14);
  --veg: #4ade80; --nonveg: #f87171;
  --green: #4ade80; --green-soft: rgba(74, 222, 128, .12); --amber: #fbbf24; --amber-soft: rgba(251, 191, 36, .13); --red: #f87171; --red-soft: rgba(248, 113, 113, .14);
  --blue: #93b4ff; --blue-soft: rgba(96, 140, 255, .16);
  --map-land: #15132b; --map-block: #1c1938; --map-house: #252148; --map-road: #2c2856; --map-edge: #2c2856; --map-park: #15301f; --map-tree: #1f4a2d; --map-water: #142748; --map-text: #6f69a0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.i { flex: none; display: block; }
.emoji { font-family: var(--emoji); line-height: 1; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.price, .big-num { font-family: var(--num); font-weight: 600; letter-spacing: .005em; }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 10px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.page { padding-top: 28px; padding-bottom: 72px; min-height: calc(100vh - 74px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top navigation ---------- */
.topnav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.topnav .wrap { height: 74px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand svg { width: 40px; height: 40px; }
.brand b { display: block; font: 780 21px/1 var(--display); letter-spacing: -.03em; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 650; margin-top: 3px; letter-spacing: .01em; }
.links { display: flex; gap: 2px; margin-left: 14px; }
.links a { height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.links a:hover { background: var(--surface-2); color: var(--text); }
.links a.on { background: var(--text); color: var(--bg); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-2); box-shadow: 0 0 0 4px rgba(159, 209, 31, .25); flex: none; }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.addr-pill { height: 44px; max-width: 230px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-align: left; box-shadow: var(--shadow-sm); }
.addr-pill .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.addr-pill span { min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.15; }
.addr-pill b { display: block; color: var(--text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-sm); flex: none; padding: 0; }
.icon-btn:hover { border-color: var(--border-2); color: var(--text); }
.icon-btn.sm { width: 36px; height: 36px; }
.search-btn { height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); box-shadow: var(--shadow-sm); white-space: nowrap; }
kbd { font: 650 11px var(--font); padding: 3px 7px; border-radius: 7px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); }
.me-btn { height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 650; box-shadow: var(--shadow-sm); white-space: nowrap; }
.cart-btn { height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 10px 22px rgba(91, 69, 245, .32); white-space: nowrap; }
.cart-btn .cnt { min-width: 32px; height: 32px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 800 13px/32px var(--font); text-align: center; padding: 0 9px; }
.cart-btn .tot { font-family: var(--num); font-weight: 600; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font: 800 11px/20px var(--font); text-align: center; padding: 0 5px; border: 2px solid var(--bg); }
.menu-btn { display: none; }
.owner-tag { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 800 11px/26px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 750 13px var(--font); color: #fff; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.pop { position: absolute; top: 56px; right: 0; width: 310px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; animation: pop .15s ease-out; padding: 8px; }
.pop-h { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.pop-h b { display: block; }
.pop-h small { color: var(--muted); font-size: 12.5px; }
.pop a, .pop button.pi { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 0; background: none; font-weight: 600; text-align: left; color: var(--text-2); }
.pop a:hover, .pop button.pi:hover { background: var(--surface-2); color: var(--text); }
.pop .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.pop .owner { background: var(--night); color: #fff; margin-top: 4px; }
.pop .owner:hover { background: var(--night-2); color: #fff; }
.pop .owner .owner-tag { margin-left: auto; height: 22px; line-height: 22px; font-size: 10px; }
.banner { background: var(--amber-soft); color: var(--amber); border-bottom: 1px solid var(--border); font-weight: 650; font-size: 13.5px; }
.banner .wrap { display: flex; align-items: center; gap: 10px; min-height: 44px; }

/* ---------- common ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ph h1 { font: 760 34px/1.1 var(--display); letter-spacing: -.03em; }
.ph p { color: var(--muted); margin-top: 6px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eyebrow { font: 750 12.5px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 64px 0 22px; flex-wrap: wrap; }
.sec-h h2 { font: 760 30px/1.12 var(--display); letter-spacing: -.03em; margin-top: 6px; }
.sec-h p { color: var(--muted); margin-top: 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-h h3 { font: 720 17px var(--display); letter-spacing: -.01em; }
.card-h small { color: var(--muted); }
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt { margin-top: 20px; }
.btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 680; white-space: nowrap; box-shadow: var(--shadow-sm); }
.btn:hover { border-color: var(--border-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(91, 69, 245, .28), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
[data-theme="dark"] .btn-primary:hover { background: #6a58ff; border-color: #6a58ff; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 24px rgba(159, 209, 31, .3); }
.btn-lime:hover { background: #d3f86e; }
.btn-dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); box-shadow: none; }
[data-theme="dark"] .btn-soft { color: var(--primary-2); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: transparent; box-shadow: none; }
.btn-line-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.btn-line-light:hover { border-color: rgba(255, 255, 255, .4); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { height: 54px; font-size: 16px; padding: 0 24px; }
.w100 { width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.chip:hover { border-color: var(--border-2); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip b { font-weight: 700; opacity: .6; }
.chip .emoji { font-size: 17px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 680; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.input, select.input, textarea.input { height: 46px; width: 100%; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); padding: 0 15px; outline: none; }
textarea.input { height: auto; padding: 12px 15px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-weight: 680; font-size: 13px; color: var(--text-2); }
.field .err { color: var(--red); font-size: 12.5px; font-weight: 600; }
.search { position: relative; }
.search .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 44px; border-radius: 999px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-green { background: var(--green-soft); color: var(--green); }
.p-amber { background: var(--amber-soft); color: var(--amber); }
.p-red { background: var(--red-soft); color: var(--red); }
.p-blue { background: var(--blue-soft); color: var(--blue); }
.p-violet { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .p-violet { color: var(--primary-2); }
.p-lime { background: var(--lime); color: var(--lime-ink); }
.p-gray { background: var(--surface-2); color: var(--muted); }
.veg { width: 15px; height: 15px; border: 1.7px solid var(--veg); border-radius: 3px; display: inline-grid; place-items: center; flex: none; }
.veg::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--veg); }
.veg.non { border-color: var(--nonveg); }
.veg.non::after { border-radius: 0; width: 0; height: 0; background: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--nonveg); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--border-2); border: 0; flex: none; transition: background .2s; padding: 0; display: inline-block; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--green); }
[data-theme="dark"] .switch.on { background: #16a34a; }
.switch.on::after { transform: translateX(18px); }
.toggle-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; font-size: 14px; color: var(--text-2); background: none; border: 0; padding: 0; white-space: nowrap; }
.empty { display: grid; place-items: center; gap: 10px; text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .emoji { font-size: 46px; }
.empty b { color: var(--text); font-size: 16px; }
.bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8b7bff, var(--primary)); }
.rate { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; background: #15803d; color: #fff; font: 750 12.5px/24px var(--font); white-space: nowrap; }
.rate.mid { background: #c2850c; }
.rate .i { width: 12px; height: 12px; }
.stars { display: inline-flex; gap: 2px; color: #f5b301; vertical-align: middle; }
.stars .off { color: var(--border-2); }
.tag-best { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 780 11px/22px var(--font); white-space: nowrap; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 11px 13px; min-width: 0; }
.kv small { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.kv b { font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; }
[data-theme="dark"] .note-box { color: var(--primary-2); }
.note-box.lime { background: var(--lime-soft); color: #4d6b00; }
[data-theme="dark"] .note-box.lime { color: var(--lime); }
.demo-flag { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font: 700 12.5px var(--font); white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 720; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
.cell-main { font-weight: 680; }
.cell-sub { color: var(--muted); font-size: 12.5px; }

/* food tiles */
.tile { position: relative; display: grid; place-items: center; overflow: hidden; }
.tile::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 62%, rgba(255, 255, 255, 0) 64%); box-shadow: 0 10px 22px rgba(23, 19, 46, .08); }
.tile .emoji { position: relative; filter: drop-shadow(0 6px 8px rgba(23, 19, 46, .16)); }
.t-Biryani { background: linear-gradient(135deg, #fff1d6, #ffdca8); }
.t-Curries { background: linear-gradient(135deg, #ffe4dc, #ffc6b4); }
.t-Bowls { background: linear-gradient(135deg, #e5f7d9, #c8ecb4); }
.t-Rolls { background: linear-gradient(135deg, #f7ecd9, #ecd4ad); }
.t-Starters { background: linear-gradient(135deg, #ffe5ef, #fbc9dc); }
.t-Breads { background: linear-gradient(135deg, #f5eee1, #e8d9bd); }
.t-Desserts { background: linear-gradient(135deg, #efe8ff, #dccdff); }
.t-Drinks { background: linear-gradient(135deg, #dcf3f7, #bfe6ef); }
[data-theme="dark"] .tile::before { background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 62%, rgba(255, 255, 255, 0) 64%); box-shadow: none; }
[data-theme="dark"] .t-Biryani { background: linear-gradient(135deg, #3a2c14, #2a1f0f); }
[data-theme="dark"] .t-Curries { background: linear-gradient(135deg, #3b1f1a, #2a1511); }
[data-theme="dark"] .t-Bowls { background: linear-gradient(135deg, #1c3318, #142510); }
[data-theme="dark"] .t-Rolls { background: linear-gradient(135deg, #352a1a, #251d12); }
[data-theme="dark"] .t-Starters { background: linear-gradient(135deg, #3a1a2a, #29121e); }
[data-theme="dark"] .t-Breads { background: linear-gradient(135deg, #322b1f, #231e15); }
[data-theme="dark"] .t-Desserts { background: linear-gradient(135deg, #2a2050, #1e1739); }
[data-theme="dark"] .t-Drinks { background: linear-gradient(135deg, #133039, #0e2229); }

.stepper { display: inline-flex; align-items: center; justify-content: space-between; height: 38px; border-radius: 999px; padding: 0 4px; background: var(--primary); color: #fff; min-width: 96px; gap: 4px; box-shadow: 0 8px 16px rgba(91, 69, 245, .25); }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; padding: 0; }
.stepper button:hover { background: rgba(255, 255, 255, .28); }
.stepper b { font: 750 14px var(--font); min-width: 18px; text-align: center; }
.stepper.light { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; height: 34px; min-width: 88px; }
.stepper.light button { background: var(--surface-2); color: var(--primary); width: 26px; height: 26px; }
.add-btn { height: 38px; min-width: 96px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--primary); font: 800 13.5px var(--font); letter-spacing: .06em; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 8px 18px rgba(23, 19, 46, .1); }
[data-theme="dark"] .add-btn { color: var(--primary-2); }
.add-btn:hover { border-color: var(--primary); }
.add-btn:disabled { color: var(--muted); letter-spacing: 0; font-weight: 700; cursor: not-allowed; box-shadow: none; }
.fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #8b86a8; display: grid; place-items: center; box-shadow: var(--shadow-sm); padding: 0; z-index: 2; }
.fav.on { color: var(--coral); }
[data-theme="dark"] .fav { background: rgba(20, 18, 41, .8); }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; border-radius: 36px; margin-top: 24px; padding: 64px 64px 60px; min-height: 560px; color: #fff; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; align-items: center;
  background: radial-gradient(circle at 85% 0%, rgba(124, 107, 255, .65), rgba(124, 107, 255, 0) 45%), radial-gradient(circle at 10% 110%, rgba(198, 242, 78, .22), rgba(198, 242, 78, 0) 40%), linear-gradient(140deg, #14102f 0%, #1d1648 60%, #2a1f6b 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.open-pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-weight: 650; font-size: 13.5px; color: #e4e0ff; }
.hero h1 { font: 800 62px/1.02 var(--display); letter-spacing: -.045em; margin-top: 22px; max-width: 620px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { color: #c9c3ee; font-size: 18px; max-width: 520px; margin-top: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-addr { margin-top: 26px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .96); color: var(--night); max-width: 520px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.hero-addr .ic { color: var(--primary); }
.hero-addr span { flex: 1; min-width: 0; font-size: 13px; color: #6f6992; line-height: 1.25; }
.hero-addr b { display: block; color: var(--night); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-addr .btn-primary { background: #5b45f5; border-color: #5b45f5; }
.trust { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.trust > div { display: flex; flex-direction: column; }
.trust b { font: 600 26px var(--num); color: #fff; }
.trust small { color: #a9a2d6; font-size: 13px; font-weight: 600; }
.hero-art { position: relative; height: 460px; }
.plate { position: absolute; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 38% 30%, #ffffff, #f1eefc 58%, #ddd7f5 100%); box-shadow: 0 40px 70px rgba(5, 3, 20, .55), inset 0 0 0 10px rgba(255, 255, 255, .7), inset 0 0 0 12px rgba(91, 69, 245, .08); }
.plate .emoji { filter: drop-shadow(0 14px 14px rgba(23, 19, 46, .25)); }
.plate.big { width: 330px; height: 330px; left: 70px; top: 54px; }
.plate.big .emoji { font-size: 168px; }
.plate.p1 { width: 128px; height: 128px; left: 4px; top: 14px; } .plate.p1 .emoji { font-size: 62px; }
.plate.p2 { width: 112px; height: 112px; right: 8px; top: 40px; } .plate.p2 .emoji { font-size: 54px; }
.plate.p3 { width: 124px; height: 124px; right: 30px; bottom: 10px; } .plate.p3 .emoji { font-size: 60px; }
.orbit { position: absolute; left: 20px; top: 4px; width: 430px; height: 430px; border-radius: 50%; border: 1.5px dashed rgba(198, 242, 78, .35); }
.float { position: absolute; background: rgba(255, 255, 255, .97); color: var(--night); border-radius: 18px; padding: 12px 14px; box-shadow: 0 24px 50px rgba(5, 3, 20, .45); display: flex; align-items: center; gap: 12px; font-size: 13px; }
.float b { display: block; font-size: 14px; }
.float small { color: #6f6992; font-size: 12px; }
.float .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float.f1 { left: -14px; bottom: 34px; }
.float.f1 .ic { background: var(--lime); color: var(--lime-ink); }
.float.f2 { right: -6px; top: 170px; }
.float.f2 .ic { background: #efecff; color: #5b45f5; }
.mini-track { width: 150px; height: 6px; border-radius: 4px; background: #ebe8f7; margin-top: 7px; overflow: hidden; }
.mini-track i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, #8b7bff, #5b45f5); border-radius: 4px; }
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.coupon { position: relative; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.coupon .top { padding: 22px 22px 18px; position: relative; overflow: hidden; color: #fff; min-height: 150px; }
.coupon .top::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.coupon .big { font: 600 40px/1 var(--num); letter-spacing: -.01em; }
.coupon .top b { display: block; font: 720 17px var(--display); margin-top: 10px; }
.coupon .top small { display: block; opacity: .85; margin-top: 4px; font-size: 13px; position: relative; z-index: 1; }
.coupon .bottom { padding: 14px 16px 16px 22px; display: flex; align-items: center; gap: 10px; border-top: 2px dashed var(--border-2); position: relative; }
.coupon .bottom::before, .coupon .bottom::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); }
.coupon .bottom::before { left: -11px; } .coupon .bottom::after { right: -11px; }
.code { font: 600 15px var(--num); letter-spacing: .08em; padding: 6px 10px; border-radius: 9px; background: var(--surface-2); border: 1px dashed var(--border-2); }
.coupon .bottom .btn { margin-left: auto; }
.cv-violet { background: linear-gradient(135deg, #7a66ff, #4a33dc); }
.cv-lime { background: linear-gradient(135deg, #c6f24e, #8cc414); color: #233004 !important; }
.cv-coral { background: linear-gradient(135deg, #ff7a8a, #e3324f); }
.cv-green { background: linear-gradient(135deg, #34c27a, #11804a); }
.cats-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.cat-c { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 680; color: var(--text-2); min-width: 0; }
.cat-c .tile { width: 100%; max-width: 124px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--border); transition: transform .18s; }
.cat-c .tile .emoji { font-size: 50px; }
.cat-c:hover .tile { transform: translateY(-3px) rotate(-3deg); }
.gcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gcard .tile { height: 190px; }
.gcard .tile .emoji { font-size: 92px; }
.gcard .tag-best { position: absolute; top: 12px; left: 12px; z-index: 2; }
.gcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard h3 { font: 720 16.5px/1.25 var(--display); display: flex; align-items: center; gap: 8px; }
.gcard p { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; gap: 10px; }
.gcard .foot .price { font-size: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; position: relative; overflow: hidden; }
.step .n { position: absolute; right: 22px; top: 10px; font: 600 86px/1 var(--num); color: var(--surface-3); }
.step .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--night); color: var(--lime); display: grid; place-items: center; position: relative; }
.step h3 { font: 720 19px var(--display); margin: 20px 0 8px; position: relative; }
.step p { color: var(--muted); position: relative; }
.rev-strip { display: grid; grid-template-columns: 320px repeat(3, minmax(0, 1fr)); gap: 20px; }
.score { background: var(--night); color: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; position: relative; overflow: hidden; }
.score::after { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 242, 78, .35), rgba(198, 242, 78, 0) 70%); }
.score .big-num { font-size: 64px; line-height: 1; }
.score small { color: #b8b1e6; }
.rcard { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rcard .who { display: flex; align-items: center; gap: 12px; }
.rcard .who b { display: block; font-size: 14.5px; }
.rcard .who small { color: var(--muted); font-size: 12.5px; }
.rcard p { color: var(--text-2); }
.rcard .dishref { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.footer { background: var(--night); color: #cfc9f2; margin-top: 80px; padding: 56px 0 34px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer .brand b { color: #fff; }
.footer .brand small { color: #9c96c2; }
.footer h4 { color: #fff; font: 720 14px var(--display); margin-bottom: 14px; letter-spacing: .02em; }
.footer a, .footer button.fl { display: block; padding: 4px 0; color: #cfc9f2; background: none; border: 0; text-align: left; font-size: 14px; }
.footer a:hover, .footer button.fl:hover { color: var(--lime); }
.footer p { font-size: 14px; color: #a9a2d6; margin-top: 14px; max-width: 300px; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; margin-top: 10px; font-size: 13px; color: #8e87bb; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- menu ---------- */
.rest-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 24px; }
.rest-logo { width: 76px; height: 76px; border-radius: 22px; overflow: hidden; }
.rest-logo svg { width: 100%; height: 100%; display: block; }
.rest-head h1 { font: 760 28px/1.1 var(--display); letter-spacing: -.03em; }
.rest-head .sub { color: var(--muted); margin-top: 4px; }
.rest-meta { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.rest-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rest-stats { display: flex; gap: 10px; }
.rest-stats > div { border: 1px solid var(--border); border-radius: 18px; padding: 10px 16px; text-align: center; min-width: 104px; background: var(--surface-2); }
.rest-stats b { display: block; font: 600 22px var(--num); }
.rest-stats small { color: var(--muted); font-size: 12px; font-weight: 650; }
.tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0 0; }
.tools .search { flex: 1; min-width: 220px; max-width: 520px; }
.tools select.input { width: auto; border-radius: 999px; padding-right: 34px; }
.menu-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 24px; }
.cat-list { position: sticky; top: 98px; display: flex; flex-direction: column; gap: 2px; }
.cat-list button { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: none; text-align: left; font-weight: 650; color: var(--text-2); }
.cat-list button b { margin-left: auto; font-size: 12px; color: var(--faint); }
.cat-list button:hover { background: var(--surface-2); }
.cat-list button.on { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .cat-list button.on { color: var(--primary-2); }
.cat-list button .emoji { font-size: 18px; }
.cat-strip { display: none; }
.msec + .msec { margin-top: 30px; }
.msec > h2 { font: 760 22px var(--display); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.msec > h2 small { font: 650 13px var(--font); color: var(--muted); }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 22px; padding: 22px 0 26px; border-bottom: 1px solid var(--border); cursor: pointer; }
.drow:last-child { border-bottom: 0; }
.drow-tags { display: flex; align-items: center; gap: 8px; }
.drow h3 { font: 720 18px/1.25 var(--display); margin-top: 8px; letter-spacing: -.01em; }
.drow .price { font-size: 18px; margin-top: 4px; }
.drow .rl { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.drow p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 520px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drow-pic { position: relative; display: flex; flex-direction: column; align-items: center; }
.drow-pic .tile { width: 156px; height: 140px; border-radius: 22px; }
.drow-pic .tile .emoji { font-size: 66px; }
.drow-pic .fav { top: 8px; right: 8px; width: 30px; height: 30px; }
.drow-pic .addw { margin-top: -20px; position: relative; z-index: 2; }
.drow-pic small { color: var(--muted); font-size: 11.5px; margin-top: 6px; font-weight: 600; }
.drow.out .tile { filter: grayscale(1); opacity: .6; }
.drow.out h3, .drow.out .price { color: var(--muted); }
.mini { position: sticky; top: 98px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 120px); }
.mini-h { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.mini-h h3 { font: 740 18px var(--display); }
.mini-h small { color: var(--muted); }
.mini-lines { padding: 4px 20px; overflow-y: auto; flex: 1; min-height: 80px; }
.cline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.cline:last-child { border-bottom: 0; }
.cline .nm { display: flex; gap: 8px; align-items: flex-start; font-weight: 680; font-size: 14px; line-height: 1.3; }
.cline .nm .veg { margin-top: 2px; }
.cline .op { color: var(--muted); font-size: 12px; margin: 2px 0 0 23px; }
.cline .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cline .rt .price { font-size: 14.5px; }
.mini-f { padding: 16px 20px 20px; border-top: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.sum { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 14px; }
.sum .price { font-weight: 600; }
.sum.total { font: 750 19px var(--display); color: var(--text); padding-top: 10px; border-top: 1px dashed var(--border-2); margin-top: 2px; }
.sum.total .price { font-size: 21px; }
.sum.save { color: var(--green); font-weight: 650; }
.sum s { color: var(--faint); margin-right: 6px; }
.cartbar { display: none; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(12, 9, 30, .5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; position: relative; }
.modal.wide { width: min(720px, 100%); }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 26px 8px; }
.modal-h h2 { font: 760 21px var(--display); letter-spacing: -.02em; }
.modal-h p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.modal-b { padding: 14px 26px; display: flex; flex-direction: column; gap: 16px; }
.modal-f { padding: 14px 26px 24px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.overlay.side-panel { place-items: stretch end; padding: 0; }
.overlay.side-panel .modal { width: min(460px, 100%); max-height: none; height: 100vh; border-radius: 28px 0 0 28px; animation: slide .22s ease-out; display: flex; flex-direction: column; overflow: hidden; }
.overlay.top-panel { place-items: start center; padding-top: 12vh; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.dmodal { width: min(560px, 100%); display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.dmodal .scroll { overflow-y: auto; flex: 1; }
.dm-pic { height: 230px; border-radius: 0; }
.dm-pic .emoji { font-size: 124px; }
.dm-pic::before { width: 210px; }
.dm-x { position: absolute; top: 16px; right: 16px; z-index: 3; background: rgba(255, 255, 255, .92); border: 0; }
[data-theme="dark"] .dm-x { background: rgba(20, 18, 41, .85); }
.dmodal .fav { top: 16px; right: 68px; width: 44px; height: 44px; }
.dm-body { padding: 22px 26px 8px; }
.dm-body h2 { font: 760 24px/1.15 var(--display); letter-spacing: -.02em; margin-top: 10px; }
.dm-body .desc { color: var(--muted); margin-top: 8px; }
.dm-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.og { margin-top: 20px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.og-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface-2); font-weight: 720; }
.og-h small { color: var(--muted); font-weight: 600; font-size: 12px; }
.opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 0; border-top: 1px solid var(--border); background: none; text-align: left; font-weight: 600; color: var(--text-2); }
.opt:first-of-type { border-top: 0; }
.opt .mk { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; flex: none; }
.opt.many .mk { border-radius: 6px; }
.opt.on .mk { border-color: var(--primary); background: var(--primary); color: #fff; }
.opt.on .mk::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.opt.many.on .mk::after { width: 9px; height: 5px; border-radius: 0; background: none; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.opt .pr { margin-left: auto; color: var(--muted); font-weight: 650; font-size: 13.5px; }
.opt.on { color: var(--text); }
.spice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 14px; }
.spice button { height: 42px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 680; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); }
.spice button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
[data-theme="dark"] .spice button.on { color: var(--primary-2); }
.dm-foot { display: flex; align-items: center; gap: 14px; padding: 16px 26px 22px; border-top: 1px solid var(--border); background: var(--surface); }
.dm-foot .stepper { height: 54px; min-width: 128px; background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.dm-foot .stepper button { width: 40px; height: 40px; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.dm-foot .btn { flex: 1; }
.drawer-h { padding: 22px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; }
.drawer-h h2 { font: 760 22px var(--display); letter-spacing: -.02em; }
.drawer-h p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.drawer-h .icon-btn { margin-left: auto; }
.drawer-b { flex: 1; overflow-y: auto; padding: 8px 24px 20px; }
.drawer-f { padding: 16px 24px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.drawer-sec { margin-top: 18px; }
.drawer-sec > b { display: block; font: 720 14.5px var(--display); margin-bottom: 10px; }
.upsell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.upsell button { border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; text-align: center; min-width: 0; }
.upsell button .emoji { font-size: 30px; }
.upsell button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.upsell button em { font-style: normal; color: var(--primary); font-weight: 750; }
[data-theme="dark"] .upsell button em { color: var(--primary-2); }
.coupon-in { display: flex; gap: 8px; }
.coupon-in .input { text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.cpn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--border-2); border-radius: 16px; margin-top: 8px; }
.cpn .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.cpn div { flex: 1; min-width: 0; }
.cpn b { display: block; font-size: 13.5px; }
.cpn small { color: var(--muted); font-size: 12px; }
.cpn.on { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.cpn.on .ic { background: var(--green); color: #fff; }
.applied { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--green-soft); color: var(--green); font-weight: 650; font-size: 13.5px; }
.applied button { margin-left: auto; border: 0; background: none; color: inherit; font-weight: 750; text-decoration: underline; padding: 0; }
.bill { display: flex; flex-direction: column; gap: 9px; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.pal-in input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; height: 34px; min-width: 0; }
.pal-list { max-height: 400px; overflow-y: auto; padding: 8px; }
.pal-g { font-size: 11.5px; font-weight: 720; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 10px 12px 6px; }
.pal-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 0; background: none; text-align: left; font-weight: 600; }
.pal-i.on { background: var(--primary-soft); }
.pal-i .k { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pal-i .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 17px; flex: none; }
.proc { text-align: center; padding: 34px 28px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.spinner { width: 84px; height: 84px; border-radius: 50%; border: 6px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .9s linear infinite; }
.okmark { width: 88px; height: 88px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; box-shadow: 0 0 0 12px var(--lime-soft); }
.proc h2 { font: 760 22px var(--display); letter-spacing: -.02em; }
.proc p { color: var(--muted); max-width: 340px; }
.proc .amt { font-size: 34px; }
.proc-steps { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.proc-steps > div { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); font-size: 14px; }
.proc-steps > div.done { color: var(--text); }
.proc-steps .ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: #fff; flex: none; }
.proc-steps > div.done .ck { background: var(--green); }
.proc-steps > div.now .ck { background: var(--primary); }
.stars-in { display: flex; gap: 8px; justify-content: center; }
.stars-in button { border: 0; background: none; padding: 2px; color: var(--border-2); }
.stars-in button.on { color: #f5b301; }
.rate-lbl { text-align: center; font-weight: 700; color: var(--text-2); min-height: 22px; }
#toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px; background: var(--night); color: #fff; box-shadow: var(--shadow-lg); font-weight: 650; animation: pop .18s ease-out; max-width: min(440px, calc(100vw - 32px)); }
.toast .i { color: var(--lime); }
.toast.warn .i { color: #fbbf24; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
[data-theme="dark"] .toast { background: #f3f1ff; color: #17132e; }
[data-theme="dark"] .toast .i { color: #4d6b00; }

/* ---------- checkout ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 26px; align-items: start; }
.co-step { display: flex; gap: 16px; }
.co-step + .co-step { margin-top: 18px; }
.co-num { width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--lime); display: grid; place-items: center; font: 600 15px var(--num); flex: none; margin-top: 22px; }
[data-theme="dark"] .co-num { background: var(--lime); color: var(--lime-ink); }
.co-step .card { flex: 1; }
.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.addr { position: relative; text-align: left; border: 1.5px solid var(--border); background: var(--surface); border-radius: 18px; padding: 16px 16px 16px 52px; min-width: 0; }
.addr .ic { position: absolute; left: 14px; top: 16px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.addr b { display: flex; gap: 8px; align-items: center; }
.addr span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.addr.on { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.addr.on .ic { background: var(--primary); color: #fff; }
.addr.add { border-style: dashed; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; color: var(--primary); font-weight: 700; min-height: 96px; }
[data-theme="dark"] .addr.add { color: var(--primary-2); }
.slots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.when button { text-align: left; border: 1.5px solid var(--border); background: var(--surface); border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.when button b { display: block; }
.when button small { color: var(--muted); }
.when button.on { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.when button .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); flex: none; }
.pay-opt { border: 1.5px solid var(--border); border-radius: 18px; overflow: hidden; }
.pay-opt + .pay-opt { margin-top: 10px; }
.pay-opt.on { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.pay-opt > button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 0; background: none; text-align: left; }
.pay-opt > button .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.pay-opt.on > button .ic { background: var(--primary); color: #fff; }
.pay-opt > button b { display: block; }
.pay-opt > button small { color: var(--muted); font-size: 13px; }
.pay-opt > button .mk { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-2); flex: none; }
.pay-opt.on > button .mk { border: 7px solid var(--primary); }
.pay-body { padding: 0 16px 16px 72px; display: flex; flex-direction: column; gap: 12px; }
.saved-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); text-align: left; width: 100%; }
.saved-card.on { border-color: var(--primary); }
.card-mini { width: 46px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #2a1f6b, #5b45f5); position: relative; flex: none; }
.card-mini::after { content: ""; position: absolute; left: 7px; top: 9px; width: 10px; height: 8px; border-radius: 2px; background: var(--lime); }
.tip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sumcard { position: sticky; top: 98px; padding: 0; overflow: hidden; }
.sumcard .hd { padding: 18px 22px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); }
.sumcard .hd svg { width: 42px; height: 42px; border-radius: 12px; }
.sumcard .lines { padding: 6px 22px; max-height: 290px; overflow-y: auto; }
.sumcard .ft { padding: 16px 22px 22px; background: var(--surface-2); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.co-bar { display: none; }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- tracking ---------- */
.trk { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.map-card { position: relative; padding: 0; overflow: hidden; }
.map { display: block; width: 100%; height: auto; }
.map text { font: 650 13px var(--font); fill: var(--map-text); }
.map .lbl { font: 750 13px var(--font); fill: var(--text); }
.map .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.6s ease-out infinite; }
.eta-card { position: absolute; left: 20px; top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 16px 20px; box-shadow: var(--shadow-lg); min-width: 200px; }
.eta-card small { color: var(--muted); font-weight: 650; font-size: 12.5px; display: block; }
.eta-card .big-num { font-size: 44px; line-height: 1.05; display: block; }
.eta-card .by { font-weight: 650; color: var(--text-2); font-size: 13.5px; }
.map-legend { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 650; box-shadow: var(--shadow-sm); }
.placed-banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 22px; background: var(--lime); color: var(--lime-ink); margin-bottom: 20px; position: relative; overflow: hidden; }
.placed-banner b { font: 760 18px var(--display); display: block; }
.placed-banner .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--lime-ink); color: var(--lime); display: grid; place-items: center; flex: none; }
.confetti i { position: absolute; width: 8px; height: 14px; border-radius: 3px; opacity: .55; }
.tl { display: flex; flex-direction: column; }
.tl-i { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl-i::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--border); }
.tl-i.done::before { background: var(--green); }
.tl-i:last-child { padding-bottom: 0; }
.tl-i:last-child::before { display: none; }
.tl-i .dt { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border); color: var(--faint); flex: none; }
.tl-i.done .dt { background: var(--green); border-color: var(--green); color: #fff; }
.tl-i.now .dt { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-ring); }
.tl-i b { display: block; }
.tl-i small { color: var(--muted); font-size: 13px; }
.tl-i.later b { color: var(--muted); font-weight: 600; }
.rider { display: flex; align-items: center; gap: 14px; }
.rider .grow { flex: 1; min-width: 0; }
.rider b { display: block; }
.rider small { color: var(--muted); font-size: 13px; }
.demo-ctl { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--border-2); background: var(--surface-2); font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.demo-ctl .btn { margin-left: auto; }
.olines .r { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.olines .r small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- account ---------- */
.acc-head { display: flex; align-items: center; gap: 18px; padding: 24px; }
.acc-head h1 { font: 760 26px var(--display); letter-spacing: -.02em; }
.acc-head .grow { flex: 1; min-width: 0; }
.acc-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-stats > div { border: 1px solid var(--border); background: var(--surface-2); border-radius: 18px; padding: 10px 16px; min-width: 110px; }
.acc-stats b { display: block; font: 600 22px var(--num); }
.acc-stats small { color: var(--muted); font-size: 12px; font-weight: 650; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 26px 0 22px; overflow-x: auto; }
.tabs a { padding: 12px 16px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a.on { color: var(--text); border-bottom-color: var(--primary); }
.tabs a b { font-size: 12px; background: var(--surface-2); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.ocards { display: flex; flex-direction: column; gap: 14px; }
.ocard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; }
.ostack { display: flex; }
.ostack .tile { width: 56px; height: 56px; border-radius: 16px; border: 3px solid var(--surface); }
.ostack .tile + .tile { margin-left: -18px; }
.ostack .tile .emoji { font-size: 26px; }
.ostack .tile::before { display: none; }
.ocard h3 { font: 720 16px var(--display); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ocard .items { color: var(--text-2); margin-top: 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ocard .acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.addr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acard { display: flex; flex-direction: column; gap: 10px; }
.acard .top { display: flex; align-items: center; gap: 10px; }
.acard .top .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.acard p { color: var(--text-2); font-size: 14px; }
.acard .acts { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.acard.add { border-style: dashed; box-shadow: none; display: grid; place-items: center; text-align: center; color: var(--primary); font-weight: 700; min-height: 190px; background: transparent; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-row b { display: block; }
.set-row small { color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lbl-seg { display: flex; gap: 8px; }

/* ---------- reviews ---------- */
.rv-top { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
.dist { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.dist > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 13px; font-weight: 650; color: var(--text-2); }
.dist .bar > i { background: linear-gradient(90deg, #f7c948, #f5b301); }
.dist span:last-child { text-align: right; color: var(--muted); }
.rv-list { display: flex; flex-direction: column; gap: 14px; }
.rv { padding: 20px 22px; }
.rv .hd { display: flex; align-items: center; gap: 12px; }
.rv .hd .grow { flex: 1; min-width: 0; }
.rv .hd b { display: block; }
.rv .hd small { color: var(--muted); font-size: 12.5px; }
.rv p { margin-top: 12px; color: var(--text-2); }
.rv .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.rv .tags span { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.rv .reply { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); font-size: 13.5px; color: var(--text-2); }
.rv .reply b { color: var(--primary); display: block; font-size: 12.5px; margin-bottom: 2px; }
[data-theme="dark"] .rv .reply b { color: var(--primary-2); }
.rv .ft { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.helpful { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.helpful.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offer-grid .coupon { flex-direction: row; }
.offer-grid .coupon .top { width: 230px; flex: none; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.offer-grid .coupon .bottom { border-top: 0; border-left: 2px dashed var(--border-2); flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; gap: 10px; }
.offer-grid .coupon .bottom::before { top: -11px; left: -11px; }
.offer-grid .coupon .bottom::after { top: auto; bottom: -11px; left: -11px; right: auto; }
.offer-grid .coupon .bottom .btn { margin-left: 0; }
.offer-grid .terms { color: var(--muted); font-size: 13.5px; }
.offer-grid .prog { width: 100%; }

/* ---------- sign in ---------- */
.auth { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 54px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 90% 5%, rgba(124, 107, 255, .7), rgba(124, 107, 255, 0) 48%), radial-gradient(circle at 0% 100%, rgba(198, 242, 78, .25), rgba(198, 242, 78, 0) 42%), linear-gradient(150deg, #14102f, #231a58); }
.auth-art h2 { font: 800 50px/1.03 var(--display); letter-spacing: -.045em; max-width: 520px; }
.auth-art h2 em { font-style: normal; color: var(--lime); }
.auth-art .lead { color: #c9c3ee; font-size: 17px; max-width: 460px; margin-top: 16px; }
.auth-art .feat { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.auth-art .feat > div { display: flex; align-items: center; gap: 12px; color: #e4e0ff; font-weight: 600; }
.auth-art .feat .i { color: var(--lime); }
.auth-plates { position: relative; height: 170px; }
.auth-plates .plate { box-shadow: 0 30px 50px rgba(5, 3, 20, .5), inset 0 0 0 7px rgba(255, 255, 255, .7); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; }
.auth-box h1 { font: 780 32px var(--display); letter-spacing: -.03em; }
.auth-box > p { color: var(--muted); margin-top: -8px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; font-weight: 650; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- owner ---------- */
.owner-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.owner-head h1 { font: 760 30px var(--display); letter-spacing: -.03em; }
.owner-head p { color: var(--muted); margin-top: 4px; }
.open-sw { display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 680; box-shadow: var(--shadow-sm); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; font-size: 13px; }
.kpi .lbl .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .kpi .lbl .ico { color: var(--primary-2); }
.kpi .val { font: 600 30px/1.1 var(--num); margin-top: 12px; }
.kpi .foot { margin-top: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.delta { font-weight: 750; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); }
.board { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.bcol { background: var(--surface-2); border: 1px solid var(--border); border-radius: 22px; padding: 12px; min-height: 460px; min-width: 0; }
.bcol-h { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; font: 740 15px var(--display); }
.bcol-h i { width: 10px; height: 10px; border-radius: 50%; }
.bcol-h .cnt { margin-left: auto; min-width: 26px; height: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font: 700 12px/22px var(--font); text-align: center; }
.tk { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.tk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-h b { font: 600 17px var(--num); }
.tk-t { font: 700 12px var(--font); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.tk-t.warn { background: var(--amber-soft); color: var(--amber); }
.tk-c { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; font-size: 13px; color: var(--muted); }
.tk-c b { color: var(--text); font-weight: 680; }
.tk ul { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.tk li { display: flex; gap: 8px; font-size: 13.5px; }
.tk li .q { font-weight: 800; color: var(--primary); min-width: 22px; }
[data-theme="dark"] .tk li .q { color: var(--primary-2); }
.tk li small { display: block; color: var(--muted); font-size: 12px; }
.tk-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 12px; font-size: 13px; }
.tk-f .price { font-size: 16px; }
.tk .acts { display: flex; gap: 8px; }
.tk .acts .btn { flex: 1; }
.av-row { display: flex; align-items: center; gap: 12px; }
.av-row .tile { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.av-row .tile::before { display: none; }
.av-row .tile .emoji { font-size: 24px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 11px var(--font); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut-wrap svg { width: 150px; height: 150px; flex: none; }
.mix { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mix-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mix-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mix-row b { margin-left: auto; }
.topd { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.topd .grow { flex: 1; min-width: 0; }
.topd .grow b { display: block; font-size: 14px; }
.otabs { display: none; gap: 8px; margin: 18px 0 4px; flex-wrap: wrap; }
.owner-head + .otabs + * { margin-top: 24px; }

@media (max-width: 1280px) {
  .menu-grid { grid-template-columns: 190px minmax(0, 1fr) 310px; gap: 22px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev-strip { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(4, 280px); overflow-x: auto; padding-bottom: 8px; }
  .links a { padding: 0 11px; }
  .search-btn span { display: none; }
}
@media (max-width: 1100px) {
  .menu-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .cat-list { display: none; }
  .cat-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 18px; padding-bottom: 4px; scrollbar-width: none; }
  .cat-strip::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .co-grid, .trk, .rv-top { grid-template-columns: minmax(0, 1fr); }
  .sumcard { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .addr-pill { display: none; }
  .g2-1 { grid-template-columns: minmax(0, 1fr); }
  .addr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .topnav .wrap { height: 64px; gap: 8px; }
  .brand svg { width: 36px; height: 36px; }
  .brand b { font-size: 19px; }
  .brand small { display: none; }
  .links, .search-btn, .me-btn, .nav-r .theme-btn { display: none; }
  .menu-btn { display: grid; }
  .cart-btn { padding: 0 4px 0 12px; height: 42px; gap: 8px; }
  .cart-btn .tot, .cart-btn .lbl { display: none; }
  .cart-btn .cnt { min-width: 30px; height: 30px; line-height: 30px; }
  .page { padding-top: 18px; padding-bottom: 120px; }
  .ph h1 { font-size: 26px; }
  .hero { padding: 34px 22px 30px; border-radius: 28px; margin-top: 14px; min-height: 0; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 16px; }
  .hero-addr { flex-wrap: wrap; border-radius: 22px; padding: 12px; }
  .hero-addr .btn { width: 100%; }
  .trust { gap: 18px; }
  .trust b { font-size: 21px; }
  .sec-h { margin-top: 44px; }
  .sec-h h2 { font-size: 24px; }
  .offers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .offers::-webkit-scrollbar { display: none; }
  .offers .coupon { flex: 0 0 78%; scroll-snap-align: start; }
  .cats-row { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .cats-row::-webkit-scrollbar { display: none; }
  .cat-c { flex: 0 0 84px; font-size: 13px; }
  .cat-c .tile .emoji { font-size: 38px; }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gcard { border-radius: 20px; }
  .gcard .tile { height: 130px; }
  .gcard .tile .emoji { font-size: 64px; }
  .gcard .body { padding: 12px 12px 14px; }
  .gcard h3 { font-size: 14.5px; }
  .gcard p { display: none; }
  .gcard .foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .gcard .foot .add-btn, .gcard .foot .stepper { width: 100%; }
  .steps, .rev-strip { grid-template-columns: minmax(0, 1fr); }
  .footer .wrap { grid-template-columns: 1fr; }
  .rest-head { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 14px; }
  .rest-logo { width: 60px; height: 60px; border-radius: 18px; }
  .rest-head h1 { font-size: 22px; }
  .rest-stats { grid-column: 1 / -1; }
  .rest-stats > div { flex: 1; min-width: 0; padding: 8px 10px; }
  .rest-stats b { font-size: 18px; }
  .rest-meta { gap: 10px; }
  .tools .search { min-width: 0; flex-basis: 100%; max-width: none; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .mini { display: none; }
  .drow { grid-template-columns: minmax(0, 1fr) 124px; gap: 14px; padding: 18px 0 22px; }
  .drow-pic .tile { width: 124px; height: 116px; border-radius: 18px; }
  .drow-pic .tile .emoji { font-size: 54px; }
  .drow h3 { font-size: 16px; }
  .drow p { font-size: 13px; }
  .drow .add-btn, .drow .stepper { min-width: 92px; }
  .cartbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; height: 60px; border-radius: 20px; align-items: center; gap: 12px; padding: 0 8px 0 18px; border: 0; background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 18px 40px rgba(91, 69, 245, .45); text-align: left; }
  .cartbar small { display: block; font-weight: 600; opacity: .8; font-size: 12px; }
  .cartbar .go { margin-left: auto; height: 44px; padding: 0 16px; border-radius: 14px; background: var(--lime); color: var(--lime-ink); display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal { width: 100%; border-radius: 26px 26px 0 0; max-height: 92vh; animation: rise .22s ease-out; }
  .overlay.side-panel .modal { border-radius: 0; width: 100%; }
  .overlay.top-panel { padding-top: 0; place-items: start stretch; }
  .overlay.top-panel .modal { border-radius: 0 0 26px 26px; }
  .dmodal { max-height: 94vh; }
  .dm-pic { height: 190px; }
  .modal-h, .modal-b, .modal-f, .dm-body { padding-left: 18px; padding-right: 18px; }
  .dm-foot { padding: 14px 18px 18px; }
  .dm-foot .stepper { min-width: 110px; }
  .drawer-h, .drawer-b, .drawer-f { padding-left: 18px; padding-right: 18px; }
  .co-step { gap: 0; }
  .co-num { display: none; }
  .card { padding: 18px; border-radius: 20px; }
  .addr-grid, .when, .two, .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .pay-body { padding-left: 16px; }
  .co-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); align-items: center; gap: 14px; box-shadow: 0 -10px 30px rgba(23, 19, 46, .08); }
  .co-bar .grow { flex: 1; min-width: 0; }
  .co-bar small { display: block; color: var(--muted); font-size: 12px; }
  .co-bar .price { font-size: 20px; }
  .eta-card { left: 12px; top: 12px; padding: 10px 14px; min-width: 0; border-radius: 16px; }
  .eta-card .big-num { font-size: 30px; }
  .map-legend { display: none; }
  .map-card .map { height: 300px; }
  .acc-head { flex-wrap: wrap; padding: 18px; }
  .acc-stats { width: 100%; }
  .acc-stats > div { flex: 1; min-width: 0; padding: 8px 12px; }
  .ocard { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .ocard .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .ostack .tile { width: 46px; height: 46px; }
  .addr-cards, .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-grid .coupon { flex-direction: column; }
  .offer-grid .coupon .top { width: auto; }
  .offer-grid .coupon .bottom { border-left: 0; border-top: 2px dashed var(--border-2); }
  .offer-grid .coupon .bottom::before { left: -11px; top: -11px; }
  .offer-grid .coupon .bottom::after { left: auto; right: -11px; top: -11px; bottom: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: 24px; }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; }
  .bcol { scroll-snap-align: start; }
  .owner-head h1 { font-size: 24px; }
  .otabs { display: flex; }
  .hide-m { display: none !important; }
  table.t td, table.t th { padding: 11px 8px; }
  .donut-wrap { flex-direction: column; align-items: stretch; }
  .donut-wrap svg { align-self: center; }
  #toasts { bottom: 86px; width: calc(100% - 32px); }
  .toast { border-radius: 18px; }
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* ---------- additions ---------- */
.livebar { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 12px 12px 14px; border-radius: 22px; background: var(--night); color: #fff; box-shadow: var(--shadow); }
.livebar .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); flex: none; }
.livebar b { display: block; font: 720 15.5px var(--display); }
.livebar small { color: #b8b1e6; font-size: 13px; }
.livebar .go { margin-left: auto; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.livebar:hover .go { background: rgba(255, 255, 255, .18); }
.hero-addr > .i { color: #5b45f5; }
.dmodal .scroll { min-height: 0; }
.rv-sum { position: sticky; top: 98px; }
.proc-m { width: min(440px, 100%); }
.placed-banner span { display: block; font-weight: 600; font-size: 14px; }
.search-btn span { display: none; }
.addr-pill { min-width: 0; flex-shrink: 1; max-width: 214px; }
.nav-r { min-width: 0; }
.map-card .map { height: 540px; }
.eta-card .big-num[data-eta] { white-space: nowrap; }
@media (max-width: 1100px) {
  .rv-sum { position: static; }
  .search-btn, .theme-btn { display: none; }
  .map-card .map { height: auto; }
}
@media (max-width: 860px) {
  .map-card .map { height: 300px; }
  .livebar { margin-top: 12px; }
  .livebar .go { padding: 0 12px; }
  .livebar .go svg { display: none; }
  .placed-banner { padding: 14px 16px; }
}
.ph h1 .pill, .ocard h3 .pill { letter-spacing: 0; vertical-align: middle; font-family: var(--font); }
.demo-ctl > span { flex: 1 1 200px; }
