/* RVT Eats design system: one accent (tenant-configurable), neutrals tinted toward it, 60-30-10. */
:root {
  --accent: #0E9F6E;
  --accent-ink: #fff;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --bg: color-mix(in oklab, var(--accent) 3%, #fbfbfa);
  --surface: #ffffff;
  --surface-2: color-mix(in oklab, var(--accent) 4%, #f3f4f2);
  --ink: #18201c;
  --ink-2: #4b5651;
  --muted: #66716b;
  --line: color-mix(in oklab, var(--accent) 6%, #e6e8e5);
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2;
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --shadow: 0 10px 30px -12px rgb(16 24 20 / .18);
  --tab-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, sans-serif;
  color-scheme: light;
}
[data-theme=dark] {
  --bg: color-mix(in oklab, var(--accent) 4%, #0f1311);
  --surface: color-mix(in oklab, var(--accent) 4%, #181d1b);
  --surface-2: color-mix(in oklab, var(--accent) 6%, #222826);
  --ink: #eef2ef; --ink-2: #c3cbc6; --muted: #9aa49f; --line: #2c3431;
  --ok-soft: #12321f; --warn-soft: #3a2a0c; --bad-soft: #3b1414; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.ic { display: inline-flex; flex: none; }
[dir=rtl] .flip svg, [dir=rtl] .ic.flip svg { transform: scaleX(-1); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; align-items: center; } .col { display: flex; flex-direction: column; } .gap { gap: 10px; } .gap-s { gap: 6px; } .grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .center { text-align: center; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 650; background: var(--surface-2); transition: transform .15s ease-out, filter .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px var(--accent); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn.glass { background: rgb(255 255 255 / .85); border: 0; color: #18201c; backdrop-filter: blur(8px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbar { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.searchbar input { border: 0; background: none; outline: none; flex: 1; min-width: 0; color: var(--ink); height: 48px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.accent { background: var(--accent-soft); color: var(--accent); }
.star { color: #e3a008; } .star svg { fill: currentColor; }
.cat .bubble .ic { color: var(--accent); }

/* ---------- customer app shell ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.app.no-tabs { padding-bottom: calc(110px + var(--safe-b)); }
.pad { padding: 0 20px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 20px 10px; position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.topbar h1 { font-size: 19px; flex: 1; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 20px; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; }
.link { color: var(--accent); font-weight: 650; font-size: 14px; background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 4px; }
.scroller { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 20px 6px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }

.loc { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: 0; cursor: pointer; text-align: start; padding: 0; }
.loc .pin { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.greet { padding: 4px 20px 0; } .greet h1 { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }

.offer { position: relative; width: 84%; height: 158px; border-radius: var(--r-lg); overflow: hidden; color: #fff; }
.offer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(10 20 15 / .82) 10%, rgb(10 20 15 / .15) 75%); }
[dir=rtl] .offer::after { background: linear-gradient(-100deg, rgb(10 20 15 / .82) 10%, rgb(10 20 15 / .15) 75%); }
.offer .in { position: relative; z-index: 1; padding: 18px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; max-width: 72%; }
.offer h3 { font-size: 21px; font-weight: 800; }
.offer .code { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; color: #18201c; font-weight: 700; font-size: 13px; border: 0; cursor: pointer; min-height: 36px; }

.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; background: none; border: 0; cursor: pointer; padding: 0; }
.cat .bubble { width: 64px; height: 64px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 30px; transition: transform .2s ease-out; }
.cat.on .bubble { background: var(--accent-soft); border-color: var(--accent); }
.cat span:last-child { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.dish { width: 200px; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); cursor: pointer; text-align: start; padding: 0; position: relative; }
.dish .ph { height: 140px; position: relative; }
.dish .ph img, .rcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.dish .body { padding: 10px 12px 12px; }
.dish h4 { font-size: 15px; } .dish .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.dish .price { font-weight: 750; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dish .add { position: absolute; inset-inline-end: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }

.rcard { display: block; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.rcard .ph { height: 170px; position: relative; }
.rcard .eta { position: absolute; inset-inline-start: 12px; bottom: 12px; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.rcard .body { padding: 12px 14px 14px; }
.rcard h3 { font-size: 17px; }
.rlist { display: grid; gap: 16px; padding: 0 20px; }
.rmini { width: 250px; }

.list-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; background: none; border: 0; width: 100%; text-align: start; }
.list-item .thumb { width: 76px; height: 76px; border-radius: var(--r-md); object-fit: cover; flex: none; }

/* tab bar with floating centre cart */
.tabbar { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%); height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: center; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px -18px rgb(0 0 0 / .25); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); min-height: 52px; justify-content: center; background: none; border: 0; cursor: pointer; }
.tab.on { color: var(--ink); } .tab.on .ic { color: var(--accent); }
.fab { justify-self: center; width: 64px; height: 64px; border-radius: 22px; background: var(--accent); color: #fff; display: grid; place-items: center; transform: translateY(-22px) rotate(45deg); box-shadow: 0 12px 24px -8px var(--accent); border: 5px solid var(--bg); cursor: pointer; position: relative; }
.fab > .ic { transform: rotate(-45deg); }
.fab .count { position: absolute; top: -8px; right: -8px; transform: rotate(-45deg); background: var(--ink); color: var(--bg); min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

/* item details */
.hero { position: relative; height: 340px; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(rgb(0 0 0 / .45), transparent); }
.hero .bar { position: absolute; z-index: 2; inset: 14px 16px auto; display: flex; justify-content: space-between; }
.sheet-card { position: relative; margin-top: -32px; background: var(--bg); border-radius: 28px 28px 0 0; padding: 22px 20px 0; }
.r-logo { width: 52px; height: 52px; border-radius: 16px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin: 18px 0; }
.stats > div { padding: 12px 8px; text-align: center; } .stats > div + div { border-inline-start: 1px solid var(--line); }
.stats b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 16px; } .stats span { font-size: 12px; color: var(--muted); }
.addon { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); cursor: pointer; }
.addon input { width: 22px; height: 22px; accent-color: var(--accent); }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bottom-cta { position: fixed; z-index: 15; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%); background: var(--surface); border-top: 1px solid var(--line); padding: 12px 20px calc(12px + var(--safe-b)); display: flex; align-items: center; gap: 14px; border-radius: 22px 22px 0 0; }
.bottom-cta .tot small { display: block; font-size: 12px; color: var(--muted); }
.bottom-cta .tot b { font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.stepper b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

/* cart / checkout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.card.hero-card { box-shadow: var(--shadow); border: 0; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); }
.sum-row.total { color: var(--ink); font-weight: 800; font-size: 18px; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; margin-bottom: 10px; width: 100%; text-align: start; }
.choice.on { border-color: var(--accent); background: var(--accent-soft); }
.choice .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.choice.on .dot { border: 6px solid var(--accent); }
.promo-strip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); }

/* tracking */
.map-wrap { position: relative; height: 46vh; min-height: 300px; background: var(--surface-2); }
.map-wrap > .map-el, .map-wrap .map-el > svg { width: 100%; height: 100%; }
.mock-map .m-bg { fill: color-mix(in oklab, var(--accent) 5%, #eef0ec); } [data-theme=dark] .mock-map .m-bg { fill: #1b211f; }
.mock-map .m-block { fill: color-mix(in oklab, var(--accent) 6%, #e1e4df); } [data-theme=dark] .mock-map .m-block { fill: #262e2b; }
.mock-map .m-road { stroke: #fff; stroke-width: 7; } .mock-map .m-road.wide { stroke-width: 12; } [data-theme=dark] .mock-map .m-road { stroke: #323b37; }
.mock-map .m-water { fill: #cfe3ec; } [data-theme=dark] .mock-map .m-water { fill: #16323d; }
.mock-map .m-park { fill: #cfe8d2; } [data-theme=dark] .mock-map .m-park { fill: #1d3a26; }
.mock-map .m-route-bg { fill: none; stroke: #fff; stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; }
.mock-map .m-route { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2 2.2; }
.mock-map .m-pin-a { fill: var(--ink); } .mock-map .m-pin-b { fill: var(--accent); } .mock-map .m-pulse { fill: var(--accent); opacity: .2; animation: pulse 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.mock-map .m-drv { fill: #fff; stroke: var(--accent); stroke-width: 3; } .mock-map .m-ico { fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--accent); } .mock-map .m-pin-a + .m-ico { color: #fff; stroke: #fff; }
.mock-map .m-driver { transition: transform 2.8s linear; }
@keyframes pulse { from { transform: scale(.6); opacity: .5 } to { transform: scale(1.8); opacity: 0 } }
.track-sheet { position: relative; margin-top: -28px; background: var(--bg); border-radius: 28px 28px 0 0; padding: 22px 20px 0; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin: 18px 0; }
.stages::before { content: ""; position: absolute; top: 21px; inset-inline: 12.5%; height: 3px; background: var(--line); }
.stages .fill { position: absolute; top: 21px; inset-inline-start: 12.5%; height: 3px; background: var(--accent); transition: width .5s ease-out; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.stage .dotc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--muted); }
.stage.done .dotc { background: var(--accent); border-color: var(--accent); color: #fff; } .stage.done { color: var(--ink); }
.stage.now .dotc { box-shadow: 0 0 0 6px var(--accent-soft); }
.driver { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.call { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }

/* settings lists */
.group-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 24px 20px 8px; }
[dir=rtl] .group-title { text-transform: none; letter-spacing: 0; }
.list { background: var(--surface); border-radius: var(--r-lg); margin: 0 20px; border: 1px solid var(--line); overflow: hidden; }
.li { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; width: 100%; background: none; border: 0; cursor: pointer; text-align: start; position: relative; }
.li + .li::before { content: ""; position: absolute; top: 0; inset-inline-start: 56px; inset-inline-end: 0; height: 1px; background: var(--line); }
.li .lead { width: 24px; color: var(--ink-2); } .li .val { color: var(--muted); font-size: 14px; } .li .chev { color: var(--muted); }
.li.danger { color: var(--bad); justify-content: center; font-weight: 650; }
.profile-head { display: flex; align-items: center; gap: 14px; padding: 8px 20px; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 22px; }

/* empty states */
.empty { text-align: center; padding: 48px 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .art { width: 96px; height: 96px; border-radius: 32px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.empty h3 { font-size: 19px; } .empty p { color: var(--ink-2); margin: 0 0 8px; max-width: 280px; }

/* onboarding */
.onb { position: fixed; inset: 0; z-index: 50; background: #0d1210; color: #fff; display: flex; flex-direction: column; }
.onb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.onb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .1) 30%, rgb(8 14 11 / .95) 78%); }
.onb .in { position: relative; z-index: 1; margin-top: auto; padding: 24px 24px calc(28px + var(--safe-b)); max-width: 520px; width: 100%; align-self: center; }
.onb h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.onb p { color: rgb(255 255 255 / .82); margin: 0 0 24px; }
.dots { display: flex; gap: 6px; margin-bottom: 20px; } .dots i { height: 6px; width: 18px; border-radius: 3px; background: rgb(255 255 255 / .35); } .dots i.on { width: 34px; background: var(--accent); }
.onb .skip { position: absolute; z-index: 2; top: 16px; inset-inline-end: 16px; color: #fff; background: rgb(255 255 255 / .16); border: 0; border-radius: 999px; padding: 0 16px; min-height: 40px; cursor: pointer; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; }
.bubble-msg { max-width: 80%; padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; }
.bubble-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border: 0; border-end-end-radius: 6px; }
.bubble-msg:not(.me) { border-end-start-radius: 6px; }
.composer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%); display: flex; gap: 10px; padding: 10px 16px calc(10px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }

/* sheet / toast */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .4); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease-out; }
.sheet { width: min(520px, 100%); background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + var(--safe-b)); max-height: 88dvh; overflow: auto; animation: up .25s ease-out; }
.sheet-wrap.out { opacity: 0; transition: opacity .2s; }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet-title { font-size: 19px; margin-bottom: 8px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; animation: up .25s ease-out; max-width: 90vw; }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes up { from { transform: translate(var(--tx, 0), 24px); opacity: 0 } } .toast { --tx: -50%; }
@keyframes fade { from { opacity: 0 } }
.stagger > * { animation: up .3s ease-out both; } .stagger > *:nth-child(2) { animation-delay: 45ms } .stagger > *:nth-child(3) { animation-delay: 90ms } .stagger > *:nth-child(4) { animation-delay: 135ms } .stagger > *:nth-child(5) { animation-delay: 180ms }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-md); }
@keyframes sk { to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------- panels (restaurant / driver / admin) ---------- */
.panel { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }
.side { background: var(--surface); border-inline-end: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; padding: 6px 10px 18px; }
.brand .mark { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.nav-a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; cursor: pointer; border: 0; background: none; width: 100%; text-align: start; }
.nav-a.on { background: var(--accent-soft); color: var(--ink); } .nav-a.on .ic { color: var(--accent); }
.main { padding: 22px 28px 60px; min-width: 0; }
.main h1 { font-size: 24px; margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.kpi.hero-kpi { border: 0; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; } .kpi span { color: var(--muted); font-size: 13px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 650; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td input.input { min-height: 38px; padding: 6px 10px; width: 110px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.order-card.new { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); height: 100%; justify-content: flex-end; }
.bars i { display: block; width: 100%; max-width: 42px; border-radius: 8px 8px 4px 4px; background: color-mix(in oklab, var(--accent) 35%, var(--surface-2)); }
.bars div:last-child i { background: var(--accent); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.login-box { max-width: 400px; margin: 10vh auto; padding: 0 20px; }
.mobile-top { display: none; }
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; overflow-x: auto; padding: 6px 8px calc(6px + var(--safe-b)); z-index: 20; border-inline-end: 0; border-top: 1px solid var(--line); gap: 2px; }
  .side .brand, .side .spacer { display: none; }
  .nav-a { flex-direction: column; gap: 2px; font-size: 11px; min-width: 72px; padding: 6px; justify-content: center; min-height: 52px; text-align: center; }
  .main { padding: 14px 16px calc(90px + var(--safe-b)); }
  .mobile-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
}
.driver-app { max-width: 520px; margin: 0 auto; padding: 0 0 calc(90px + var(--safe-b)); }
.switch { position: relative; width: 52px; height: 30px; border-radius: 15px; background: var(--line); border: 0; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s ease-out; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.switch.on { background: var(--accent); } .switch.on::after { inset-inline-start: 25px; }
.wizard { max-width: 640px; margin: 0 auto; padding: 28px 20px 80px; }
.steps-bar { display: flex; gap: 6px; margin: 16px 0 24px; } .steps-bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .steps-bar i.on { background: var(--accent); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; } .swatches button { width: 44px; height: 44px; border-radius: 14px; border: 3px solid transparent; cursor: pointer; } .swatches button.on { border-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); margin-top: -4px; margin-bottom: 12px; }
