/* QukBite App — design system. No framework, no CDN. */
@font-face{font-family:"Jakarta";src:url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Jakarta";src:url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2");font-weight:500 600;font-display:swap}
@font-face{font-family:"Jakarta";src:url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Jakarta";src:url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2");font-weight:800 900;font-display:swap}

:root{
  --brand:#13ec5b;--brand-d:#0bbf49;--brand-ink:#05501f;--brand-soft:#e8faee;
  --ink:#0e1a12;--ink-2:#2c3a31;--muted:#63766a;--faint:#9aaa9f;
  --bg:#f6faf7;--surface:#ffffff;--surface-2:#eff6f1;--line:#e2ece5;
  --danger:#e5484d;--danger-soft:#fdecec;--warn:#f59e0b;--warn-soft:#fff6e3;--info:#2f6fed;--info-soft:#eaf1fe;--ok:#12a150;--ok-soft:#e6f7ed;
  --accent:var(--brand);--accent-ink:var(--ink);
  --r-sm:10px;--r:14px;--r-lg:20px;--r-xl:28px;
  --sh-1:0 1px 2px rgba(14,26,18,.06),0 1px 1px rgba(14,26,18,.04);
  --sh-2:0 8px 24px -8px rgba(14,26,18,.18);
  --sh-3:0 24px 48px -12px rgba(14,26,18,.28);
  --top:env(safe-area-inset-top,0px);--bottom:env(safe-area-inset-bottom,0px);
  --col:640px;--tabbar:64px;
  color-scheme:light;
}
[data-theme="dark"]{
  --ink:#eef4f0;--ink-2:#c8d4cc;--muted:#90a397;--faint:#5f7166;
  --bg:#0b1510;--surface:#122019;--surface-2:#182a20;--line:#223529;
  --brand-soft:#12351f;--danger-soft:#3a1618;--warn-soft:#3a2c10;--info-soft:#14264a;--ok-soft:#113520;
  --sh-1:none;--sh-2:0 8px 24px -8px rgba(0,0,0,.6);--sh-3:0 24px 48px -12px rgba(0,0,0,.7);color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--bg);color:var(--ink);font:400 15px/1.5 "Jakarta",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}
body.lock{overflow:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
input,select,textarea{font:inherit;color:inherit;font-size:16px}
h1,h2,h3,h4,p{margin:0}
h1{font-size:26px;line-height:1.15;font-weight:800;letter-spacing:-.02em}
h2{font-size:19px;line-height:1.25;font-weight:800;letter-spacing:-.01em}
h3{font-size:16px;font-weight:700;line-height:1.3}
small,.small{font-size:13px}
.xs{font-size:12px}
.muted{color:var(--muted)}.faint{color:var(--faint)}
.b{font-weight:700}.bb{font-weight:800}
.num{font-variant-numeric:tabular-nums}
.strike{text-decoration:line-through;color:var(--faint)}
.clamp1{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--info);outline-offset:2px;border-radius:6px}
.i{width:22px;height:22px;flex:none;fill:currentColor;vertical-align:middle}
.i.s16{width:16px;height:16px}.i.s18{width:18px;height:18px}.i.s20{width:20px;height:20px}.i.s28{width:28px;height:28px}.i.s40{width:40px;height:40px}.i.s56{width:56px;height:56px}
.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- Layout ---------- */
#app{min-height:100dvh}
#screens{position:relative}
.screen{display:none;min-height:100dvh;padding-bottom:calc(var(--tabbar) + var(--bottom) + 24px)}
.screen.is-active{display:block;animation:enter .22s ease-out}
.screen.no-tab{padding-bottom:calc(var(--bottom) + 24px)}
@keyframes enter{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.wrap{max-width:var(--col);margin:0 auto;padding:0 16px}
.wide{max-width:1180px}
.stack>*+*{margin-top:12px}.stack-l>*+*{margin-top:24px}
.row{display:flex;align-items:center;gap:10px}.row.top{align-items:flex-start}.row.between{justify-content:space-between}.row.wrap-row{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media (min-width:700px){.grid-auto{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}}
.section{margin-top:26px}
.section-h{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 12px}
.section-h a,.section-h button{font-size:13px;font-weight:700;color:var(--brand-ink)}
[data-theme="dark"] .section-h a,[data-theme="dark"] .section-h button{color:var(--brand)}
.hr{height:1px;background:var(--line);margin:16px 0}

/* ---------- Top bar ---------- */
.topbar{position:sticky;top:var(--dk,0px);z-index:30;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);padding-top:var(--top);border-bottom:1px solid transparent;transition:border-color .2s}
.topbar.scrolled{border-bottom-color:var(--line)}
.topbar-in{max-width:var(--col);margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:10px;min-height:58px}
.topbar .title{flex:1;min-width:0;font-weight:800;font-size:17px}
.logo{height:30px;width:auto}
.loc-btn{display:flex;align-items:center;gap:6px;min-width:0;flex:1;text-align:left;padding:4px 0}
.loc-btn .lbl{font-size:11px;color:var(--muted);font-weight:600;line-height:1}
.loc-btn .addr{font-weight:800;font-size:14px;line-height:1.25;display:flex;align-items:center;gap:2px;min-width:0}
.loc-btn .addr span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.loc-pin{width:36px;height:36px;border-radius:12px;background:var(--brand-soft);color:var(--brand-ink);display:grid;place-items:center;flex:none}
[data-theme="dark"] .loc-pin{color:var(--brand)}
.icon-btn{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);position:relative;flex:none;transition:transform .12s}
.icon-btn:active{transform:scale(.92)}
.icon-btn.plain{background:none}
.dot{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;border:2px solid var(--surface)}
.searchbar{display:flex;align-items:center;gap:8px;height:46px;border-radius:14px;background:var(--surface-2);padding:0 14px;color:var(--muted);width:100%}
.searchbar input{flex:1;border:0;background:none;outline:0;min-width:0;color:var(--ink)}
.searchbar input::placeholder{color:var(--faint)}
.search-row{max-width:var(--col);margin:0 auto;padding:0 16px 12px;display:flex;gap:8px}

/* ---------- Tab bar ---------- */
#tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line);padding-bottom:var(--bottom)}
#tabbar .in{max-width:var(--col);margin:0 auto;display:flex;height:var(--tabbar);align-items:center;justify-content:space-around}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:var(--faint);position:relative;padding:6px 0}
.tab.on{color:var(--ink)}
.tab.on .i{color:var(--brand-d)}
.tab .dot{top:0;right:calc(50% - 22px)}
.tab-fab{width:52px;height:52px;margin-top:-26px;border-radius:18px;background:var(--brand);color:var(--ink);display:grid;place-items:center;box-shadow:0 10px 24px -6px rgba(19,236,91,.6);border:4px solid var(--bg)}
.tab-fab{position:relative}
.tab .tab-fab .dot{top:-6px;right:-6px;left:auto}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 18px;border-radius:14px;font-weight:800;font-size:15px;white-space:nowrap;transition:transform .12s,background .15s,opacity .15s;user-select:none}
.btn:active{transform:scale(.97)}
.btn[disabled],.btn.is-busy{opacity:.55;pointer-events:none}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-dark{background:var(--ink);color:var(--surface)}
.btn-soft{background:var(--surface-2);color:var(--ink)}
.btn-ghost{background:none;color:var(--ink);border:1.5px solid var(--line)}
.btn-danger{background:var(--danger);color:#fff}
.btn-danger-soft{background:var(--danger-soft);color:var(--danger)}
.btn-sm{height:36px;padding:0 12px;font-size:13px;border-radius:11px}
.btn-xs{height:30px;padding:0 10px;font-size:12px;border-radius:9px}
.btn-lg{height:54px;font-size:16px;border-radius:16px}
.btn-block{width:100%}
.link{color:var(--brand-ink);font-weight:700}
[data-theme="dark"] .link{color:var(--brand)}

/* ---------- Chips, badges ---------- */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 16px;margin:0 -16px;scroll-padding:16px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:var(--surface);border:1.5px solid var(--line);font-size:13px;font-weight:700;color:var(--ink-2);white-space:nowrap}
.chip.on{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.chip.brand.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.badge{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:7px;font-size:11px;font-weight:800;background:var(--surface-2);color:var(--ink-2);white-space:nowrap}
.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.warn{background:var(--warn-soft);color:#b45309}.badge.danger{background:var(--danger-soft);color:var(--danger)}.badge.info{background:var(--info-soft);color:var(--info)}.badge.brand{background:var(--brand);color:var(--ink)}
[data-theme="dark"] .badge.warn{color:var(--warn)}
.pill-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700}
.pill-status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}
.pill-status.off::before{background:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}

/* ---------- Cards ---------- */
.card{background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--sh-1);border:1px solid var(--line)}
.card.pad{padding:16px}
.card.flat{box-shadow:none}
.list{background:var(--surface);border-radius:var(--r-lg);border:1px solid var(--line);overflow:hidden}
.li{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);width:100%;text-align:left}
.li:last-child{border-bottom:0}
.li .ic{width:40px;height:40px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;flex:none}
.li .chev{color:var(--faint)}
.thumb{border-radius:12px;object-fit:cover;background:var(--surface-2);flex:none}
.ph{background:var(--surface-2) center/cover no-repeat}
img.fade{opacity:0;transition:opacity .3s}img.fade.in{opacity:1}

.hscroll{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 16px 6px;margin:0 -16px;scroll-padding:16px}
.hscroll::-webkit-scrollbar{display:none}
.hscroll>*{scroll-snap-align:start;flex:none}

/* banners */
.banners{position:relative;border-radius:var(--r-lg);overflow:hidden;aspect-ratio:16/8;background:var(--ink)}
.banners .track{display:flex;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.banners .track::-webkit-scrollbar{display:none}
.banner{flex:0 0 100%;scroll-snap-align:center;position:relative;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:20px}
.banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.banner::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.1) 70%)}
.banner>*{position:relative;z-index:1}
.banner h3{font-size:24px;font-weight:800;line-height:1.1;max-width:75%;white-space:pre-line}
.banner p{font-size:13px;opacity:.85;margin-top:4px;max-width:70%}
.banner .btn{margin-top:12px;height:36px;font-size:13px;background:#fff;color:#000;width:max-content}
.dots{position:absolute;bottom:10px;right:14px;display:flex;gap:5px;z-index:2}
.dots i{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.5);transition:width .25s}
.dots i.on{width:18px;background:#fff}

/* categories */
.cat{width:74px;display:flex;flex-direction:column;align-items:center;gap:6px}
.cat .tile{width:74px;height:74px;border-radius:22px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;font-size:34px;overflow:hidden;transition:transform .12s}
.cat .tile img{width:100%;height:100%;object-fit:cover}
.cat:active .tile{transform:scale(.94)}
.cat span{font-size:12px;font-weight:700;text-align:center;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:14px 10px}
.cat-grid .cat{width:auto}.cat-grid .tile{width:100%;height:auto;aspect-ratio:1}

/* store card (big) */
.scard{display:block;border-radius:var(--r-lg);overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh-1);position:relative}
.scard .media{position:relative;aspect-ratio:16/9;background:var(--surface-2)}
.scard .media img{width:100%;height:100%;object-fit:cover}
.scard .media .shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.55),transparent 50%)}
.scard .tags{position:absolute;top:10px;left:10px;right:10px;display:flex;gap:6px;justify-content:space-between}
.scard .body{display:flex;gap:12px;align-items:center;padding:12px 14px}
.scard .logo-c{width:46px;height:46px;border-radius:14px;overflow:hidden;background:var(--surface-2);border:1px solid var(--line);flex:none}
.scard .logo-c img{width:100%;height:100%;object-fit:cover}
.scard .meta{font-size:12.5px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.scard .meta b{color:var(--ink);font-weight:700}
.scard.closed .media img{filter:grayscale(.8)}
.scard.mini{width:270px}
.scard .prodstrip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;height:100%}
.scard .prodstrip::-webkit-scrollbar{display:none}
.scard .prodstrip .pp{flex:0 0 100%;position:relative;scroll-snap-align:center}
.scard .prodstrip .pp img{width:100%;height:100%;object-fit:cover}
.scard .prodstrip .pp .lab{position:absolute;left:10px;bottom:10px;background:rgba(255,255,255,.95);color:#0e1a12;padding:6px 10px;border-radius:10px;font-size:12px;font-weight:800;max-width:80%}
.star{color:#f5a524}
.round-store{width:84px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.round-store .av{width:76px;height:76px;border-radius:50%;overflow:hidden;border:2px solid var(--line);background:var(--surface-2);padding:2px}
.round-store .av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.round-store span{font-size:12px;font-weight:700;line-height:1.25}

/* product card */
.pcard{position:relative;background:var(--surface);border-radius:var(--r-lg);border:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column;text-align:left;width:100%}
.pcard .media{aspect-ratio:1;background:var(--surface-2);position:relative}
.pcard .media img{width:100%;height:100%;object-fit:cover}
.pcard .body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:2px;flex:1}
.pcard .name{font-weight:700;font-size:14px;line-height:1.3}
.pcard .price{font-weight:800;font-size:14px;margin-top:auto;padding-top:4px}
.pcard .from{font-size:11.5px;color:var(--muted)}
.pcard .add{position:absolute;right:8px;bottom:8px;width:36px;height:36px;border-radius:12px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;box-shadow:var(--sh-2);transition:transform .12s}
.pcard .add:active{transform:scale(.9)}
.pcard .qty-badge{position:absolute;right:8px;bottom:8px;min-width:36px;height:36px;border-radius:12px;background:var(--ink);color:var(--surface);display:grid;place-items:center;font-weight:800}
.pcard .fav{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.92);color:#63766a;display:grid;place-items:center}
.pcard .fav.on{color:var(--danger)}
.pcard.soldout .media img{filter:grayscale(1);opacity:.6}
.pcard .sold{position:absolute;inset:auto 8px 8px auto;background:var(--ink);color:var(--surface);font-size:11px;font-weight:800;padding:4px 8px;border-radius:8px}
.pcard.mini{width:156px}
.prow{display:flex;gap:12px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);text-align:left;width:100%;position:relative}
.prow .thumb{width:96px;height:96px;border-radius:14px}
.prow .body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.prow .desc{font-size:13px;color:var(--muted)}
.prow .add,.prow .qty-badge{position:absolute;right:18px;bottom:18px}
.menu-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:560px){.menu-grid{grid-template-columns:repeat(3,1fr)}}
.menu-list{display:flex;flex-direction:column;gap:10px}

/* ---------- Store page ---------- */
.store-hero{position:relative;height:clamp(200px,52vw,300px);background:var(--ink);overflow:hidden}
.store-hero .slides{display:flex;height:100%;transition:transform .6s cubic-bezier(.3,.7,.2,1)}
.store-hero .slides>div{flex:0 0 100%;position:relative}
.store-hero img{width:100%;height:100%;object-fit:cover}
.store-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.45),transparent 30%,transparent 55%,rgba(0,0,0,.7))}
.store-hero .bar{position:absolute;top:calc(var(--top) + 10px);left:12px;right:12px;display:flex;gap:8px;z-index:2}
.store-hero .bar .icon-btn{background:rgba(255,255,255,.92);color:#0e1a12}
.store-hero .cap{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;color:#fff;display:flex;align-items:flex-end;gap:12px}
.store-hero .cap a{color:#fff}
.store-head{position:relative;margin-top:-18px;background:var(--surface);border-radius:24px 24px 0 0;padding:18px 16px 4px}
.store-head .logo-c{width:64px;height:64px;border-radius:18px;overflow:hidden;border:3px solid var(--surface);background:var(--surface-2);margin-top:-44px;box-shadow:var(--sh-2)}
.store-head .logo-c img{width:100%;height:100%;object-fit:cover}
.facts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.fact{display:inline-flex;align-items:center;gap:6px;background:var(--surface-2);border-radius:10px;padding:6px 10px;font-size:12.5px;font-weight:700}
.contact-row{display:flex;gap:10px;margin:14px 0 4px}
.contact-row .icon-btn{width:44px;height:44px}
.catnav{position:sticky;top:calc(var(--top) + var(--dk,0px) + 58px);z-index:20;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:10px 0}
.menu-sec{scroll-margin-top:calc(var(--top) + 130px)}
.menu-sec h3{margin:22px 0 12px;display:flex;align-items:center;gap:8px}
.offer{width:250px;border-radius:var(--r-lg);overflow:hidden;background:var(--surface);border:1px solid var(--line)}
.offer .media{height:120px;position:relative;background:var(--surface-2)}
.offer .media img{width:100%;height:100%;object-fit:cover}
.offer .timer{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.95);color:var(--danger);font-weight:800;font-size:11px;border-radius:8px;padding:4px 8px;display:flex;gap:4px;align-items:center}
.offer.single{width:100%}
.cart-bar{position:fixed;left:12px;right:12px;bottom:calc(var(--tabbar) + var(--bottom) + 10px);z-index:35;max-width:616px;margin:0 auto;background:var(--ink);color:var(--surface);border-radius:18px;padding:10px 10px 10px 16px;display:flex;align-items:center;gap:12px;box-shadow:var(--sh-3);animation:up .25s ease-out}
.no-tab .cart-bar{bottom:calc(var(--bottom) + 12px)}
.cart-bar .n{width:30px;height:30px;border-radius:10px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-weight:800;font-size:14px}
@keyframes up{from{transform:translateY(20px);opacity:0}}

/* qty stepper */
.stepper{display:inline-flex;align-items:center;background:var(--surface-2);border-radius:12px;height:40px}
.stepper button{width:40px;height:40px;display:grid;place-items:center}
.stepper span{min-width:26px;text-align:center;font-weight:800}
.stepper.sm{height:32px}.stepper.sm button{width:32px;height:32px}

/* ---------- Sheets, toast ---------- */
#layer{position:relative;z-index:100}
.backdrop{position:fixed;inset:0;background:rgba(6,14,9,.5);opacity:0;transition:opacity .25s;z-index:100}
.backdrop.show{opacity:1}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:101;max-width:640px;margin:0 auto;background:var(--surface);border-radius:26px 26px 0 0;max-height:calc(100dvh - var(--top) - 24px);display:flex;flex-direction:column;transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);box-shadow:var(--sh-3);padding-bottom:var(--bottom)}
.sheet.show{transform:none}
.sheet.full{height:calc(100dvh - var(--top) - 12px)}
.sheet .grab{width:44px;height:5px;border-radius:3px;background:var(--line);margin:10px auto 0;flex:none}
.sheet .sh-head{display:flex;align-items:center;gap:10px;padding:10px 16px 8px;flex:none}
.sheet .sh-head h2{flex:1;font-size:18px}
.sheet .sh-body{overflow-y:auto;padding:6px 16px 16px;flex:1;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.sheet .sh-foot{padding:12px 16px;border-top:1px solid var(--line);flex:none;background:var(--surface)}
@media (min-width:760px){.sheet.center{top:50%;bottom:auto;left:50%;right:auto;width:min(560px,92vw);transform:translate(-50%,-44%);opacity:0;border-radius:24px;transition:transform .25s,opacity .25s}.sheet.center.show{transform:translate(-50%,-50%);opacity:1}.sheet.center .grab{display:none}}
.toasts{position:fixed;left:0;right:0;top:calc(var(--top) + 10px);z-index:200;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 12px}
.toast{background:var(--ink);color:var(--surface);padding:12px 16px;border-radius:14px;font-weight:700;font-size:14px;box-shadow:var(--sh-3);display:flex;gap:10px;align-items:center;max-width:480px;pointer-events:auto;animation:drop .25s ease-out}
.toast.err{background:var(--danger);color:#fff}
.toast.ok .i{color:var(--brand)}
.toast button{color:var(--brand);font-weight:800;margin-left:6px}
@keyframes drop{from{transform:translateY(-12px);opacity:0}}

/* ---------- Forms ---------- */
.field{display:flex;flex-direction:column;gap:6px}
.field>label,.label{font-size:13px;font-weight:700;color:var(--ink-2)}
.field .hint{font-size:12px;color:var(--muted)}
.input,.select,.textarea{width:100%;height:48px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);padding:0 14px;outline:0;transition:border-color .15s,box-shadow .15s}
.textarea{height:auto;min-height:90px;padding:12px 14px;resize:vertical}
.input:focus,.select:focus,.textarea:focus{border-color:var(--ink-2);box-shadow:0 0 0 4px var(--surface-2)}
.input.err{border-color:var(--danger)}
.select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 21px,calc(100% - 15px) 21px;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}
.input-group{display:flex;gap:8px}
.input-group .select{width:auto;flex:none}
.form{display:flex;flex-direction:column;gap:14px}
.form .row>*{flex:1}
.switch{position:relative;width:48px;height:28px;flex:none}
.switch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;z-index:1}
.switch i{position:absolute;inset:0;border-radius:14px;background:var(--line);transition:background .2s}
.switch i::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.switch input:checked+i{background:var(--ok)}
.switch input:checked+i::after{transform:translateX(20px)}
.seg{display:flex;background:var(--surface-2);border-radius:14px;padding:4px;gap:4px}
.seg button,.seg label{flex:1;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:700;font-size:14px;color:var(--muted);cursor:pointer}
.seg .on,.seg input:checked+span{background:var(--surface);color:var(--ink);box-shadow:var(--sh-1)}
.seg label{position:relative}.seg label input{position:absolute;opacity:0}.seg label span{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;border-radius:11px}
.checks{display:flex;flex-wrap:wrap;gap:8px}
.check{position:relative}
.check input{position:absolute;opacity:0}
.check span{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line);font-size:13px;font-weight:700;cursor:pointer;background:var(--surface)}
.check input:checked+span{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.check input:focus-visible+span{outline:2px solid var(--info)}
.otp{display:flex;gap:8px;justify-content:center}
.otp input{width:48px;height:58px;text-align:center;font-size:24px;font-weight:800;border-radius:14px;border:1.5px solid var(--line);background:var(--surface)}
.otp input:focus{border-color:var(--ink);outline:0}
.upload{display:flex;align-items:center;gap:12px;border:1.5px dashed var(--line);border-radius:16px;padding:12px;cursor:pointer;position:relative}
.upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.upload .prev{width:64px;height:64px;border-radius:12px;background:var(--surface-2) center/cover;display:grid;place-items:center;color:var(--muted);flex:none}
.alert{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;font-size:13.5px;font-weight:600}
.alert.info{background:var(--info-soft);color:var(--info)}.alert.warn{background:var(--warn-soft);color:#92400e}.alert.danger{background:var(--danger-soft);color:var(--danger)}.alert.ok{background:var(--ok-soft);color:var(--ok)}
[data-theme="dark"] .alert.warn{color:var(--warn)}
.alert .grow b{display:block;font-size:14px}

/* ---------- Skeleton, empty ---------- */
.sk{background:linear-gradient(90deg,var(--surface-2) 25%,var(--line) 37%,var(--surface-2) 63%);background-size:400% 100%;animation:sk 1.4s ease infinite;border-radius:14px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}
.boot{max-width:var(--col);margin:0 auto;padding:calc(var(--top) + 16px) 16px}
.skel-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.sk-line{height:18px}.w40{width:40%}.w60{width:60%}.w80{width:80%}
.sk-pill{width:40px;height:40px;border-radius:12px}
.sk-banner{aspect-ratio:16/8;border-radius:var(--r-lg);margin-bottom:18px}
.sk-row{display:flex;gap:12px;margin-bottom:18px}
.sk-sq{width:74px;height:74px;border-radius:22px;flex:none}
.sk-card{height:220px;border-radius:var(--r-lg);margin-bottom:14px}
.empty{text-align:center;padding:48px 16px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:8px}
.empty .i{width:56px;height:56px;color:var(--faint)}
.empty h3{color:var(--ink)}
.loader{display:flex;justify-content:center;padding:24px;color:var(--muted)}

/* ---------- Checkout / orders ---------- */
.sum-row{display:flex;justify-content:space-between;padding:4px 0;font-size:14px}
.sum-row.total{font-size:18px;font-weight:800;border-top:1px solid var(--line);margin-top:8px;padding-top:12px}
.pinmap{position:relative;height:220px;border-radius:18px;overflow:hidden;background:var(--surface-2)}
.pinmap .map{position:absolute;inset:0}
.pinmap .pin{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);z-index:2;pointer-events:none;color:var(--ink);transition:transform .15s}
.pinmap.moving .pin{transform:translate(-50%,-125%)}
.pinmap .pin .i{width:44px;height:44px;filter:drop-shadow(0 4px 4px rgba(0,0,0,.35))}
.pinmap .pin::after{content:"";position:absolute;left:50%;bottom:-3px;width:10px;height:4px;border-radius:50%;background:rgba(0,0,0,.35);transform:translateX(-50%)}
.pinmap .locate{position:absolute;right:10px;bottom:10px;z-index:3;background:var(--surface);box-shadow:var(--sh-2)}
.pinmap.tall{height:min(58dvh,460px)}
.timeline{display:flex;flex-direction:column;gap:0}
.tl{display:flex;gap:14px;align-items:flex-start;position:relative;padding-bottom:18px}
.tl:last-child{padding-bottom:0}
.tl::before{content:"";position:absolute;left:13px;top:28px;bottom:0;width:2px;background:var(--line)}
.tl:last-child::before{display:none}
.tl .o{width:28px;height:28px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;flex:none;color:var(--faint);z-index:1}
.tl.done .o{background:var(--ok);color:#fff}
.tl.done::before{background:var(--ok)}
.tl.now .o{background:var(--brand);color:var(--ink);box-shadow:0 0 0 6px var(--brand-soft)}
.eta{font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1}

/* ---------- Chat ---------- */
.chat-screen{display:flex;flex-direction:column;height:100dvh}
.chat-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:6px;background:var(--bg)}
.bub{max-width:78%;padding:9px 12px;border-radius:18px;background:var(--surface);border:1px solid var(--line);font-size:14.5px;line-height:1.4;white-space:pre-wrap;word-break:break-word;align-self:flex-start;position:relative}
.bub.me{align-self:flex-end;background:var(--ink);color:var(--surface);border-color:var(--ink);border-bottom-right-radius:6px}
.bub:not(.me){border-bottom-left-radius:6px}
.bub .t{display:block;font-size:10.5px;opacity:.6;margin-top:3px;text-align:right}
.bub img{border-radius:12px;max-height:240px;margin-bottom:4px;cursor:zoom-in}
.bub.pinned{box-shadow:0 0 0 2px var(--warn)}
.day{align-self:center;font-size:11.5px;font-weight:700;color:var(--muted);background:var(--surface-2);padding:4px 10px;border-radius:8px;margin:8px 0}
.composer{display:flex;align-items:flex-end;gap:8px;padding:10px 12px calc(10px + var(--bottom));background:var(--surface);border-top:1px solid var(--line)}
.composer textarea{flex:1;min-height:44px;max-height:120px;border-radius:14px;border:1.5px solid var(--line);padding:10px 12px;resize:none;background:var(--surface);outline:0}
.inbox-li .av{width:48px;height:48px;border-radius:50%;overflow:hidden;background:var(--surface-2);display:grid;place-items:center;flex:none;font-size:22px}
.inbox-li .av img{width:100%;height:100%;object-fit:cover}
.unread-n{min-width:22px;height:22px;border-radius:11px;background:var(--brand);color:var(--ink);font-size:11px;font-weight:800;display:grid;place-items:center;padding:0 6px}

/* notifications */
.notif{display:flex;gap:12px;padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--line);position:relative;transition:opacity .25s,transform .25s}
.notif.unread{border-color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}
.notif .ic{width:40px;height:40px;border-radius:12px;background:var(--brand-soft);color:var(--brand-ink);display:grid;place-items:center;flex:none}
.notif .x{position:absolute;top:8px;right:8px;color:var(--faint)}
.notif img.big{width:100%;border-radius:12px;margin-top:8px;max-height:160px;object-fit:cover}

/* ---------- Dashboards (vendor + admin) ---------- */
.dash{display:flex;min-height:100dvh}
.side{display:none}
@media (min-width:1024px){
  .side{display:flex;flex-direction:column;width:250px;flex:none;position:sticky;top:0;height:100dvh;background:var(--surface);border-right:1px solid var(--line);padding:18px 12px;overflow-y:auto}
  .side .brand{padding:4px 10px 18px;display:flex;align-items:center;gap:10px;font-weight:800}
  .side a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;font-weight:700;font-size:14px;color:var(--ink-2)}
  .side a.on{background:var(--brand-soft);color:var(--brand-ink)}
  .side a .dot{position:static;margin-left:auto;border:0}
  .side .sep{height:1px;background:var(--line);margin:10px 8px}
  body.has-side #tabbar{display:none}
  body.has-side .screen{padding-bottom:32px}
}
.dash-main{flex:1;min-width:0}
.dash .wrap{max-width:1180px}
.dash .topbar-in{max-width:1180px}
.stat{padding:16px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line)}
.stat .v{font-size:26px;font-weight:800;letter-spacing:-.02em;margin-top:6px}
.stat .k{font-size:12.5px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:6px}
.stat.hero{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.stat.hero .k{color:color-mix(in srgb,var(--surface) 70%,transparent)}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:900px){.stats{grid-template-columns:repeat(4,1fr)}}
.bars{display:flex;align-items:flex-end;gap:6px;height:64px;margin-top:14px}
.bars i{flex:1;background:var(--brand);border-radius:6px 6px 2px 2px;min-height:4px;opacity:.9}
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:700px){.tiles{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1100px){.tiles{grid-template-columns:repeat(4,1fr)}}
.tile-l{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);text-align:left;transition:transform .12s}
.tile-l:active{transform:scale(.98)}
.tile-l .ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--surface-2)}
.tile-l b{font-size:15px}
.ocard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column}
.ocard.new{border-color:var(--warn);box-shadow:0 0 0 3px var(--warn-soft)}
.ocard .oh{padding:14px;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}
.ocard .ob{padding:14px;flex:1}
.ocard .of{padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid var(--line)}
.ocard .of.one{grid-template-columns:1fr}
.orders-grid{display:grid;gap:12px}
@media (min-width:760px){.orders-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1180px){.orders-grid{grid-template-columns:repeat(3,1fr)}}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{text-align:left;font-size:12px;color:var(--muted);font-weight:700;padding:10px 12px;border-bottom:1px solid var(--line)}
.table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
@media (max-width:760px){.table thead{display:none}.table,.table tbody,.table tr,.table td{display:block;width:100%}.table tr{padding:10px 4px;border-bottom:1px solid var(--line)}.table td{border:0;padding:3px 12px}}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;margin-bottom:16px}
.tabs::-webkit-scrollbar{display:none}
.tabs button{padding:12px 14px;font-weight:700;font-size:14px;color:var(--muted);border-bottom:2.5px solid transparent;white-space:nowrap;display:flex;gap:6px;align-items:center}
.tabs button.on{color:var(--ink);border-bottom-color:var(--ink)}
.color-dot{width:28px;height:28px;border-radius:50%;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px}
.icon-grid button{height:52px;border-radius:14px;background:var(--surface-2);display:grid;place-items:center}
.icon-grid button.on{background:var(--ink);color:var(--surface)}
.drag{cursor:grab;color:var(--faint);touch-action:none}
.sortable-ghost{opacity:.4}
.qr-card{background:#fff;color:#000;border-radius:18px;padding:14px;text-align:center;border:1px solid var(--line)}
.qr-card canvas{width:100%;height:auto}
.fab{position:fixed;right:18px;bottom:calc(var(--tabbar) + var(--bottom) + 18px);z-index:35;width:58px;height:58px;border-radius:20px;background:var(--brand);color:var(--ink);display:grid;place-items:center;box-shadow:0 12px 28px -8px rgba(19,236,91,.7)}
@media (min-width:1024px){body.has-side .fab{bottom:28px}}
.camera{position:relative;border-radius:18px;overflow:hidden;background:#000;aspect-ratio:4/3}
.camera video,.camera img{width:100%;height:100%;object-fit:cover}
.cropbox{max-height:60dvh;background:#000;border-radius:14px;overflow:hidden}
.cropbox img{max-width:100%}
.wc-wrap{max-width:720px;margin:0 auto;padding:24px 16px}


.screen:has(.chat-screen){padding-bottom:0}
.chat-screen .topbar{flex:none}
.prow .add{position:absolute;right:18px;bottom:18px;width:36px;height:36px;border-radius:12px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center}
.prow .qty-badge{min-width:36px;height:36px;border-radius:12px;background:var(--ink);color:var(--surface);display:grid;place-items:center;font-weight:800}
.prow.soldout .thumb{filter:grayscale(1);opacity:.6}
.prow .badge{position:absolute;right:18px;bottom:18px}
[hidden]{display:none!important}
input[type=radio],input[type=checkbox]{accent-color:var(--ink);width:18px;height:18px}
.pcard .price{padding-right:40px}
.sheet.product .sh-body>div:first-child img,.sheet.product .sh-body>div:first-child .ph{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:var(--surface-2)}
.store-page .catnav{top:calc(var(--top) + var(--dk,0px))}
.store-page .menu-sec{scroll-margin-top:calc(var(--top) + 70px)}
.li .ic.chev{background:none;width:auto}
.switch{display:inline-block;vertical-align:middle}
.badge:empty{display:none}

/* =====================================================================
   v1.1 — 2026 refresh: theme toggle, tour, auth, responsive layouts
   ===================================================================== */
:root{--ease:cubic-bezier(.2,.8,.2,1);--ring:0 0 0 4px color-mix(in srgb,var(--brand) 22%,transparent)}
html{transition:background-color .3s}
body{background:var(--bg)}
::selection{background:color-mix(in srgb,var(--brand) 35%,transparent)}
::view-transition-old(root),::view-transition-new(root){animation-duration:.35s}

/* light mode: white + green, soft white layers */
[data-theme="light"] .topbar,[data-theme="light"] #tabbar,[data-theme="light"] #deskbar{background:rgba(255,255,255,.82)}
[data-theme="light"] .card,[data-theme="light"] .list,[data-theme="light"] .scard,[data-theme="light"] .pcard,[data-theme="light"] .stat,[data-theme="light"] .tile-l{box-shadow:0 1px 2px rgba(10,60,30,.04),0 8px 24px -16px rgba(10,60,30,.18)}
[data-theme="light"] .chip:not(.on){background:#fff}
[data-theme="light"] .stat.hero{background:linear-gradient(135deg,#0b3d1f,#0e5a2c);border-color:transparent}
[data-theme="light"] .btn-dark{background:#0e1a12}

/* theme toggle */
.theme-btn .i{transition:transform .5s var(--ease)}
.theme-btn:hover .i{transform:rotate(-20deg)}
[data-theme="dark"] .theme-btn{color:#ffd66b}

/* motion + hover (pointer devices only) */
.btn,.chip,.icon-btn,.tile-l,.scard,.pcard,.prow,.li{transition:transform .18s var(--ease),box-shadow .25s var(--ease),background-color .2s,border-color .2s,color .2s}
@media (hover:hover){
  .scard:hover,.pcard:hover,.tile-l:hover,.stat:is(a):hover,.offer:hover{transform:translateY(-3px);box-shadow:0 18px 40px -22px rgba(10,60,30,.35)}
  .scard:hover .media img{transform:scale(1.04)}
  .btn-primary:hover{filter:brightness(1.04);box-shadow:0 10px 24px -10px color-mix(in srgb,var(--accent) 70%,transparent)}
  .chip:hover{border-color:var(--ink-2)}
  a.li:hover,button.li:hover{background:var(--surface-2)}
  .icon-btn:hover{background:color-mix(in srgb,var(--surface-2) 70%,var(--line))}
}
.scard .media img{transition:transform .5s var(--ease)}
.input:focus,.select:focus,.textarea:focus{border-color:var(--brand-d);box-shadow:var(--ring)}
.reveal{animation:rise .5s var(--ease) both}
@keyframes rise{from{opacity:0;transform:translateY(14px)}}

/* guided tour */
.tour{position:fixed;inset:0;z-index:300;opacity:0;transition:opacity .25s}
.tour.show{opacity:1}
.tour-spot{position:fixed;border-radius:18px;box-shadow:0 0 0 9999px rgba(6,20,12,.62),0 0 0 3px var(--brand);transition:all .35s var(--ease);pointer-events:none}
.tour-card{position:fixed;background:var(--surface);color:var(--ink);border-radius:20px;padding:16px;box-shadow:var(--sh-3);border:1px solid var(--line);transition:top .35s var(--ease),left .35s var(--ease);animation:rise .35s var(--ease)}
.tour-ic{width:34px;height:34px;border-radius:11px;background:var(--brand-soft);color:var(--brand-ink);display:grid;place-items:center}
[data-theme="dark"] .tour-ic{color:var(--brand)}

/* ---------- Auth (login / sign-up / partner) ---------- */
.auth{position:relative;min-height:100dvh;display:grid;grid-template-columns:1fr;background:var(--surface)}
.auth-art{position:relative;overflow:hidden;min-height:230px;background:radial-gradient(120% 90% at 10% 0%,#1af06a 0%,#0fb846 38%,#0a5a2a 100%);color:#fff;border-radius:0 0 32px 32px;padding:calc(var(--top) + 64px) 24px 56px;isolation:isolate}
.auth-art .blob{position:absolute;border-radius:50%;filter:blur(40px);opacity:.55;z-index:-1}
.auth-art .b1{width:260px;height:260px;background:#b8ffcf;top:-80px;right:-60px;animation:drift 9s ease-in-out infinite alternate}
.auth-art .b2{width:220px;height:220px;background:#064a22;bottom:-90px;left:-40px;animation:drift 11s ease-in-out infinite alternate-reverse}
.auth-art .grain{position:absolute;inset:0;z-index:-1;opacity:.12;background-image:radial-gradient(rgba(255,255,255,.7) 1px,transparent 1px);background-size:18px 18px}
.auth-art .float{position:absolute;font-size:34px;filter:drop-shadow(0 10px 14px rgba(0,0,0,.25));animation:bob 5s ease-in-out infinite}
.auth-art .f1{top:22%;right:10%}.auth-art .f2{top:58%;right:26%;animation-delay:-1.5s;font-size:28px}.auth-art .f3{top:16%;right:40%;animation-delay:-3s;font-size:24px}
.auth-art .f4{bottom:12%;right:6%;animation-delay:-2s}.auth-art .f5{display:none}
@keyframes bob{50%{transform:translateY(-10px) rotate(6deg)}}
@keyframes drift{to{transform:translate(30px,20px) scale(1.1)}}
.auth-copy{max-width:420px;position:relative}
.auth-kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:rgba(255,255,255,.18);padding:6px 10px;border-radius:999px;backdrop-filter:blur(8px)}
.auth-copy h2{font-size:30px;line-height:1.05;letter-spacing:-.03em;margin-top:12px;font-weight:800}
.auth-copy h2 em{font-style:normal;color:#d9ffe6}
.auth-copy ul{display:none;list-style:none;margin:22px 0 0;padding:0;gap:12px;flex-direction:column}
.auth-copy li{display:flex;gap:10px;align-items:center;font-weight:600;font-size:15px}
.auth-copy li .i{width:30px;height:30px;padding:6px;border-radius:10px;background:rgba(255,255,255,.18)}
.auth-main{display:flex;flex-direction:column;align-items:center;padding:0 16px calc(var(--bottom) + 24px)}
.auth-top{position:absolute;top:calc(var(--top) + 12px);left:12px;right:12px;display:flex;z-index:2}
.auth-top .icon-btn{background:rgba(255,255,255,.22);color:#fff;backdrop-filter:blur(8px)}
.auth-card{width:100%;max-width:440px;margin-top:-36px;background:var(--surface);border-radius:28px;padding:22px 20px;box-shadow:0 30px 60px -30px rgba(6,40,20,.45);border:1px solid var(--line);position:relative;animation:rise .5s var(--ease) both}
.auth-logo{display:flex;justify-content:center;margin-bottom:14px}.auth-logo img{height:34px}
.auth-h{font-size:26px}
.auth-tabs{margin-bottom:20px}.auth-tabs a{flex:1;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;color:var(--muted)}
.auth-tabs a.on{background:var(--surface);color:var(--ink);box-shadow:var(--sh-1)}
.seg a.on{background:var(--surface)}
.ifield{position:relative;display:block}
.ifield>.i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--faint);pointer-events:none}
.ifield .input{padding-left:44px}
.ifield .eye{position:absolute;right:4px;top:4px}
.ifield:focus-within>.i{color:var(--brand-d)}
.auth-or{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--faint);font-size:12px;font-weight:700}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--line)}
.partner-card{margin-top:16px;display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;border:1.5px dashed color-mix(in srgb,var(--brand) 55%,var(--line));background:var(--brand-soft)}
.auth-foot{margin-top:18px;text-align:center}
@media (min-width:900px){
  .auth{grid-template-columns:minmax(420px,1.05fr) 1fr}
  .auth-art{border-radius:0 40px 40px 0;min-height:100dvh;display:flex;align-items:center;padding:64px}
  .auth-art .float{font-size:54px}.auth-art .f5{display:block;bottom:10%;left:18%;font-size:40px;animation-delay:-4s}
  .auth-copy h2{font-size:52px}.auth-copy ul{display:flex}
  .auth-main{position:relative;justify-content:center;padding:48px}
  .auth-top{position:absolute;top:24px;left:24px;right:24px}
  .auth-top .icon-btn{background:var(--surface-2);color:var(--ink)}
  .auth-card{margin-top:0;box-shadow:none;border:0;padding:8px}
  .auth-h{font-size:32px}
}

/* ---------- Desktop top bar (customer) ---------- */
#deskbar{display:none}
@media (min-width:900px){
  :root{--col:1180px}
  body:not(.has-side){--dk:68px;--tabbar:0px}
  #deskbar:not([hidden]){display:block;position:sticky;top:0;z-index:45;height:68px;background:color-mix(in srgb,var(--surface) 85%,transparent);backdrop-filter:saturate(1.5) blur(16px);-webkit-backdrop-filter:saturate(1.5) blur(16px);border-bottom:1px solid var(--line)}
  body.has-side #deskbar{display:none!important}
  body.has-side{--dk:0px}
  #deskbar .in{max-width:1180px;margin:0 auto;height:100%;display:flex;align-items:center;gap:14px;padding:0 24px}
  #deskbar .brandmark img{height:30px}
  #deskbar nav{display:flex;gap:4px;margin-left:8px}
  #deskbar nav a{padding:8px 12px;border-radius:10px;font-weight:700;font-size:14px;color:var(--muted)}
  #deskbar nav a:hover{color:var(--ink);background:var(--surface-2)}
  #deskbar nav a.on{color:var(--ink);background:var(--brand-soft)}
  #deskbar .pill{display:flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:12px;background:var(--surface-2);font-weight:700;font-size:13px;max-width:240px;color:var(--ink-2)}
  #deskbar .pill .i:first-child{color:var(--brand-d)}
  #deskbar .pill.search{min-width:260px;color:var(--faint);font-weight:600}
  #deskbar .acct{width:40px;height:40px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--surface-2);font-size:20px}
  #deskbar .acct img{width:100%;height:100%;object-fit:cover}
  body:not(.has-side) #tabbar{display:none}
  body:not(.has-side) .screen{padding-bottom:48px}
  .home-top{display:none}
  .search-row{display:none}
  .fab{bottom:28px}
  .wrap{padding:0 24px}
  /* carousels become grids */
  .hscroll:has(>.scard){display:grid;grid-template-columns:repeat(3,1fr);overflow:visible;margin:0;padding:0}
  .hscroll:has(>.pcard){display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));overflow:visible;margin:0;padding:0}
  .scard.mini,.pcard.mini{width:auto}
  .stack:has(>.scard){display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
  .stack:has(>.scard)>*+*{margin-top:0}
  .menu-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
  .menu-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
  .banners{aspect-ratio:21/7;border-radius:28px}
  .banner{padding:40px 48px}.banner h3{font-size:44px;max-width:55%}.banner p{font-size:16px}.banner .btn{height:44px;font-size:14px}
  .section{margin-top:40px}.section-h h2{font-size:24px}
  .cat{width:96px}.cat .tile{width:96px;height:96px;font-size:42px;border-radius:26px}
  .store-hero{height:360px;max-width:1180px;margin:20px auto 0;border-radius:28px}
  .store-hero .bar{top:16px}
  .store-head{margin-top:-24px;border-radius:28px 28px 0 0;padding-top:22px}
  .cart-bar{left:auto;right:28px;bottom:28px;width:380px;margin:0}
  .sheet{top:50%;bottom:auto;left:50%;right:auto;width:min(560px,92vw);max-height:86vh;transform:translate(-50%,-46%) scale(.98);opacity:0;border-radius:26px;transition:transform .28s var(--ease),opacity .2s}
  .sheet.show{transform:translate(-50%,-50%);opacity:1}
  .sheet.full{height:min(86vh,860px);width:min(760px,94vw)}
  .sheet.product{width:min(640px,94vw)}
  .sheet .grab{display:none}
  .toasts{top:84px}
}
/* tablet */
@media (min-width:600px) and (max-width:899px){
  :root{--col:860px}
  .hscroll:has(>.scard){display:grid;grid-template-columns:repeat(2,1fr);overflow:visible;margin:0;padding:0}
  .scard.mini{width:auto}
  .stack:has(>.scard){display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
  .stack:has(>.scard)>*+*{margin-top:0}
  .banners{aspect-ratio:16/6}.banner h3{font-size:32px}
  .store-hero{height:300px}
  .menu-grid{grid-template-columns:repeat(3,1fr)}
}
.form label.row>*{flex:none}.form label.row:not(.between){justify-content:flex-start}.form label.row.between>*{flex:none}
@media (min-width:900px){.screen>.wrap[data-body]{padding-top:28px}}
[data-theme="dark"] .side a.on{color:var(--brand)}
[data-theme="dark"] .stat.hero{background:linear-gradient(135deg,#0f6a33,#0b3d1f);color:#fff;border-color:transparent}
[data-theme="dark"] .stat.hero .k{color:rgba(255,255,255,.75)}
[data-theme="dark"] .auth-art{background:radial-gradient(120% 90% at 10% 0%,#12b84e 0%,#0a7a33 40%,#062e16 100%)}

/* =====================================================================
   v1.2 — pastel dashboards, admin theme settings
   ===================================================================== */
/* corner styles (set in Admin → Settings) */
body.corners-sharp{--r-lg:10px;--r-xl:14px}
body.corners-sharp .card,body.corners-sharp .stat,body.corners-sharp .tile-l,body.corners-sharp .scard,body.corners-sharp .pcard,body.corners-sharp .list,body.corners-sharp .ocard{border-radius:10px}
body.corners-sharp .btn{border-radius:8px}
body.corners-soft .card,body.corners-soft .stat,body.corners-soft .tile-l,body.corners-soft .list{border-radius:18px}
.card,.stat,.tile-l,.scard,.pcard,.list,.ocard{border-radius:var(--r-lg)}
.btn{border-radius:var(--r)}

/* pastel tones: stark white base + gentle colour per section */
.tone-mint{--t-bg:#effbf3;--t-ic:#d6f5e1;--t-ink:#15803d}
.tone-peach{--t-bg:#fff4ec;--t-ic:#ffe3cf;--t-ink:#c2561a}
.tone-lav{--t-bg:#f4f1ff;--t-ic:#e6e0ff;--t-ink:#5b45c9}
.tone-rose{--t-bg:#fff0f4;--t-ic:#ffdbe5;--t-ink:#be2459}
.tone-sky{--t-bg:#eef6ff;--t-ic:#d9eaff;--t-ink:#1d63c0}
.tone-lemon{--t-bg:#fffaeb;--t-ic:#fff0bf;--t-ink:#8a6400}
[data-theme="dark"] .tone-mint{--t-bg:rgba(74,222,128,.08);--t-ic:rgba(74,222,128,.18);--t-ink:#86efac}
[data-theme="dark"] .tone-peach{--t-bg:rgba(251,146,60,.08);--t-ic:rgba(251,146,60,.18);--t-ink:#fdba74}
[data-theme="dark"] .tone-lav{--t-bg:rgba(167,139,250,.09);--t-ic:rgba(167,139,250,.2);--t-ink:#c4b5fd}
[data-theme="dark"] .tone-rose{--t-bg:rgba(244,114,182,.08);--t-ic:rgba(244,114,182,.18);--t-ink:#f9a8d4}
[data-theme="dark"] .tone-sky{--t-bg:rgba(96,165,250,.08);--t-ic:rgba(96,165,250,.18);--t-ink:#93c5fd}
[data-theme="dark"] .tone-lemon{--t-bg:rgba(250,204,21,.07);--t-ic:rgba(250,204,21,.16);--t-ink:#fde68a}
.tone .sec-ic,.tone .ic{background:var(--t-ic);color:var(--t-ink)}
body:not(.pastel) .tone .sec-ic,body:not(.pastel) .tone .ic{background:var(--surface-2);color:var(--ink)}
body.pastel .tone{background:var(--t-bg);border-color:transparent;box-shadow:none}
body.pastel .tone:hover{box-shadow:0 14px 34px -22px color-mix(in srgb,var(--t-ink) 55%,transparent)}
.sec-ic{width:32px;height:32px;border-radius:10px;display:inline-grid;place-items:center;flex:none;background:var(--surface-2)}
.sec-h{display:flex;gap:12px;align-items:flex-start;margin-bottom:6px}
.sec-h .sec-ic{width:40px;height:40px;border-radius:13px}

/* minimalist dashboard shell: stark white, generous spacing */
[data-theme="light"] body.has-side{--bg:#ffffff}
[data-theme="light"] body.has-side .side{background:#fbfdfb;border-right-color:#eef3ef}
[data-theme="light"] body.has-side .topbar{background:rgba(255,255,255,.9)}
body.has-side .side a.on{background:var(--brand-soft);color:var(--brand-ink)}
body.has-side .side a.on .i{color:var(--brand-d)}
.greet{padding:4px 2px 0}
.greet h1{font-size:28px;letter-spacing:-.03em;margin-top:2px}
@media (min-width:1024px){.greet{display:none}}
.pastel-stats{gap:12px}
.pastel-stats .stat{padding:18px;min-height:128px;display:flex;flex-direction:column;border:1px solid var(--line)}
.pastel-stats .stat .k{font-size:13px;color:var(--ink-2)}
.pastel-stats .stat .v{font-size:30px;letter-spacing:-.03em;margin:10px 0 2px}
.pastel-stats .wide{grid-column:1/-1}
@media (min-width:900px){.pastel-stats .wide{grid-column:span 2;grid-row:span 2}}
.pastel-stats .bars{margin-top:auto;padding-top:16px;height:80px}
.pastel-stats .bars i{background:color-mix(in srgb,var(--t-ink,var(--brand)) 28%,transparent);border-radius:8px}
.pastel-stats .bars i.now{background:var(--brand)}
.up{color:#15803d}.down{color:var(--danger)}
[data-theme="dark"] .up{color:#86efac}
.tiles .tile-l{border:1px solid var(--line);min-height:112px;justify-content:space-between}
.tiles .tile-l .ic{width:42px;height:42px;border-radius:14px}
.tiles .tile-l b{font-size:14.5px;letter-spacing:-.01em}
.dash .card.pad{padding:18px}

/* admin settings */
.settings-grid{display:grid;gap:16px}
@media (min-width:1000px){.settings-grid{grid-template-columns:1fr 1fr}.settings-grid .preview-card{grid-column:1/-1}}
.settings-grid .card{border:1px solid var(--line)}
.logo-drop{display:flex;flex-direction:column;gap:10px}
.logo-prev{height:84px;border-radius:16px;background:repeating-conic-gradient(var(--surface-2) 0 25%,var(--surface) 0 50%) 0 0/16px 16px;display:grid;place-items:center;border:1px dashed var(--line)}
.logo-prev img{max-height:48px;max-width:80%;object-fit:contain}
.icon-prev{width:56px;height:56px;border-radius:16px;overflow:hidden;background:var(--surface-2);display:grid;place-items:center}
.icon-prev img{width:100%;height:100%;object-fit:cover}
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.swatch{width:40px;height:40px;border-radius:50%;background:var(--c);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line);position:relative;display:grid;place-items:center;cursor:pointer;transition:transform .15s}
.swatch:hover{transform:scale(1.08)}
.swatch.on{box-shadow:0 0 0 2px var(--ink)}
.swatch.custom{color:#fff;background:conic-gradient(#f87171,#fbbf24,#4ade80,#60a5fa,#a78bfa,#f87171)}
.swatch.custom input{position:absolute;inset:0;opacity:0;cursor:pointer}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.corner-demo{width:14px;height:14px;border:2px solid currentColor;border-right:0;border-bottom:0;display:inline-block}
.corner-demo.c-sharp{border-radius:0}.corner-demo.c-soft{border-top-left-radius:5px}.corner-demo.c-round{border-top-left-radius:10px}
.flat-list{background:transparent;border:0}
.flat-list .li{padding:12px 0;background:transparent}
body.pastel .tone .flat-list .li{border-color:color-mix(in srgb,var(--t-ink) 12%,transparent)}
.form .row>.icon-prev{flex:none}
/* dashboard header menu (phones/tablets; desktop uses the sidebar) */
@media (min-width:1024px){.dash-menu-btn{display:none}}
.dash-menu{display:flex;flex-direction:column;gap:2px}
.dash-menu a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;font-weight:700;font-size:15px;color:var(--ink-2)}
.dash-menu a .i{width:36px;height:36px;padding:8px;border-radius:11px;background:var(--surface-2);color:var(--ink)}
.dash-menu a.on{background:var(--brand-soft);color:var(--brand-ink)}
.dash-menu a:active{background:var(--surface-2)}
.dash-menu a .dot{position:static;margin-left:auto;border:0}
.dash-menu .sep{height:1px;background:var(--line);margin:8px 4px}
.dash-menu .badge{margin-left:auto}
/* store header: name + cuisines left, call / directions / chat on the right */
.name-row{display:flex;align-items:flex-start;gap:12px;margin-top:10px}
.name-row .contact-row{margin:2px 0 0;gap:8px;flex:none}
.name-row .contact-row .icon-btn{width:40px;height:40px}
@media (max-width:359px){.name-row{flex-wrap:wrap}}
.form .row>.switch{flex:none}
.upload.picked{border-style:solid;border-color:color-mix(in srgb,var(--brand) 55%,var(--line));background:var(--brand-soft)}
.upload .prev{background-size:cover;background-position:center}
.upload [data-unpick]{position:relative;z-index:2}

/* =====================================================================
   v1.3 — team (staff / managers / riders) + rider app
   ===================================================================== */
.rider-chip{display:flex;align-items:center;gap:8px;width:calc(100% - 28px);margin:0 14px 12px;padding:10px 12px;border-radius:12px;border:1.5px dashed var(--line);font-size:13px;font-weight:700;color:var(--ink-2);text-align:left}
.rider-chip.on{border-style:solid;border-color:transparent;background:#fff4ec;color:#9a4413}
[data-theme="dark"] .rider-chip.on{background:rgba(251,146,60,.1);color:#fdba74}
.rider-av{position:relative;width:40px;height:40px;border-radius:12px;background:#fff4ec;color:#c2561a;display:grid;place-items:center;flex:none}
.rider-av i{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border-radius:50%;background:var(--faint);border:2px solid var(--surface)}
.rider-av i.on{background:var(--ok)}
.role-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.role-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border-radius:16px;border:1.5px solid var(--line);text-align:left;background:var(--surface)}
.role-card b{font-size:13px}.role-card .xs{line-height:1.3}
.role-card.on{border-color:var(--t-ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--t-ink) 18%,transparent)}
body.pastel .role-card.on{background:var(--t-bg)}
@media (max-width:420px){.role-cards{grid-template-columns:1fr}.role-card{flex-direction:row;flex-wrap:wrap;align-items:center}.role-card .xs{width:100%}}
/* rider */
.online-card{display:flex;align-items:center;gap:14px;padding:18px;border-radius:var(--r-lg);background:#fff0f4;color:#8f1d44;transition:background .3s}
.online-card.on{background:#e7f9ee;color:#11622f}
[data-theme="dark"] .online-card{background:rgba(244,114,182,.1);color:#f9a8d4}
[data-theme="dark"] .online-card.on{background:rgba(74,222,128,.1);color:#86efac}
.online-card b{font-size:17px}.online-card .small{opacity:.8}
.switch.big{width:60px;height:34px}.switch.big i::after{width:28px;height:28px}.switch.big input:checked+i::after{transform:translateX(26px)}
.pastel-stats.three{grid-template-columns:repeat(3,1fr)}
.pastel-stats.three .stat{min-height:112px;padding:14px}.pastel-stats.three .stat .v{font-size:22px}
@media (max-width:380px){.pastel-stats.three{grid-template-columns:1fr 1fr}}
.dcard{display:flex;flex-direction:column;gap:12px;width:100%;padding:16px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--surface);text-align:left}
.route{display:flex;flex-direction:column;gap:10px;position:relative;padding-left:4px}
.route::before{content:"";position:absolute;left:9px;top:14px;bottom:14px;border-left:2px dashed color-mix(in srgb,var(--ink) 20%,transparent)}
.stop{display:flex;gap:12px;align-items:flex-start}.stop b{font-size:14px}.stop .xs{display:block}
.stop i{width:12px;height:12px;border-radius:50%;margin-top:4px;flex:none;position:relative;z-index:1;box-shadow:0 0 0 3px var(--surface)}
.dot-a{background:#f97316}.dot-b{background:var(--ok)}
.cash{display:inline-flex;align-items:center;gap:4px;font-weight:800;font-size:13px;padding:4px 10px;border-radius:999px;background:#fffaeb;color:#8a6400}
[data-theme="dark"] .cash{background:rgba(250,204,21,.1);color:#fde68a}
.steps{display:flex;gap:6px}
.step{flex:1;display:flex;flex-direction:column;gap:6px;font-size:11.5px;font-weight:700;color:var(--faint)}
.step i{height:6px;border-radius:3px;background:var(--line)}
.step.done{color:var(--ink)}.step.done i{background:var(--brand)}
@media (min-width:900px){body.sec-rider #tabbar{display:block!important}body.sec-rider .screen{padding-bottom:calc(var(--tabbar) + 24px)}body.sec-rider{--tabbar:64px}}

/* =====================================================================
   v1.4 — map tools, onboarding
   ===================================================================== */
.map-tools{position:absolute;top:10px;left:10px;right:10px;z-index:4;pointer-events:none}
.map-tools>*{pointer-events:auto}
.map-search{display:flex;align-items:center;gap:6px;width:max-content;max-width:100%}
.map-tools.open .map-search{width:100%;background:var(--surface);border-radius:14px;padding:4px;box-shadow:var(--sh-2)}
.map-search input{flex:1;min-width:0;height:36px;border:0;outline:0;background:transparent;padding:0 8px;font-size:15px;color:var(--ink)}
.map-btn{width:38px;height:38px;border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:var(--sh-2)}
.map-tools.open .map-btn{box-shadow:none;background:var(--surface-2)}
.map-results{margin-top:6px;max-height:min(220px,60%);overflow-y:auto;background:var(--surface);border-radius:14px;box-shadow:var(--sh-3);padding:4px}
.pinmap:not(.tall) .map-results{max-height:150px}
.mr-li{display:flex;gap:10px;align-items:flex-start;width:100%;padding:10px;border-radius:10px;text-align:left;font-size:13px}
.mr-li:hover{background:var(--surface-2)}
.mr-li b{display:block;font-size:14px}.mr-li small{color:var(--muted);display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.mr-li span{min-width:0;flex:1}
.pinmap .locate{position:absolute;right:10px;bottom:10px;z-index:3;width:38px;height:38px;border-radius:12px;background:var(--surface);box-shadow:var(--sh-2)}

/* onboarding */
.onboard{position:fixed;inset:0;z-index:250;background:var(--surface);display:flex;flex-direction:column;padding:calc(var(--top) + 12px) 0 calc(var(--bottom) + 16px);opacity:0;transform:scale(1.02);transition:opacity .3s,transform .3s var(--ease)}
.onboard.show{opacity:1;transform:none}
.ob-top{display:flex;align-items:center;justify-content:space-between;padding:0 18px;min-height:40px}
.ob-top img{height:28px}
.ob-track{flex:1;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.ob-track::-webkit-scrollbar{display:none}
.ob-slide{flex:0 0 100%;scroll-snap-align:center;display:flex;flex-direction:column;justify-content:center;gap:28px;padding:12px 24px;background:transparent!important}
.ob-art{position:relative;height:min(38vh,300px);border-radius:32px;background:var(--t-bg);overflow:hidden}
.ob-bubble{position:absolute;display:grid;place-items:center;border-radius:50%;background:var(--surface);box-shadow:0 20px 40px -20px rgba(10,60,30,.35);font-size:44px;font-weight:800;color:var(--t-ink);animation:bob 5s ease-in-out infinite}
.ob-bubble.b0{width:120px;height:120px;left:12%;top:18%;font-size:58px}
.ob-bubble.b1{width:96px;height:96px;right:14%;top:12%;animation-delay:-1.6s;font-size:40px}
.ob-bubble.b2{width:84px;height:84px;right:30%;bottom:12%;animation-delay:-3.2s;font-size:36px}
.ob-copy{max-width:460px}
.ob-kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--t-ink);background:var(--t-bg);padding:6px 10px;border-radius:999px}
.ob-copy h1{font-size:30px;margin-top:12px;letter-spacing:-.03em}
.ob-copy ul{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-direction:column;gap:12px}
.ob-copy li{display:flex;align-items:center;gap:12px;font-weight:600;font-size:15px}
.ob-copy li .sec-ic{background:var(--t-ic);color:var(--t-ink)}
.ob-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px 0}
.ob-dots{display:flex;gap:6px}.ob-dots i{width:8px;height:8px;border-radius:4px;background:var(--line);transition:width .25s,background .25s}.ob-dots i.on{width:24px;background:var(--brand)}
.ob-foot .btn{min-width:150px}
@media (min-width:900px){
  .onboard{inset:auto;left:50%;top:50%;width:min(920px,92vw);height:min(640px,90vh);border-radius:32px;box-shadow:0 40px 120px -30px rgba(0,0,0,.45);transform:translate(-50%,-48%);padding:20px 0}
  .onboard.show{transform:translate(-50%,-50%)}
  .ob-slide{flex-direction:row;align-items:center;gap:40px;padding:12px 40px}
  .ob-art{flex:1;height:360px}.ob-copy{flex:1}
  .ob-copy h1{font-size:38px}
}
@media (min-width:900px){.onboard{box-shadow:0 0 0 100vmax rgba(6,20,12,.55),0 40px 120px -30px rgba(0,0,0,.45)}}

/* =====================================================================
   v1.5 — packs (admin-defined plans)
   ===================================================================== */
.pack-grid{display:grid;gap:14px}
@media (min-width:760px){.pack-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1200px){.pack-grid{grid-template-columns:repeat(3,1fr)}}
.pack-card{border:1px solid var(--line)}
.pack-card.inactive{opacity:.6}
.pk-limits{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.pk-limits>div{background:color-mix(in srgb,var(--surface) 70%,transparent);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:2px;min-width:0}
.pk-limits span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pk-limits b{font-size:16px}
.limit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.limit{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.limit .input{height:40px}
.tone-dot{width:40px;height:40px;border-radius:50%;background:var(--t-ic);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.tone-dot.on{box-shadow:0 0 0 2px var(--t-ink)}
.plan-card .usage{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 16px;margin-top:14px}
@media (min-width:900px){.plan-card .usage{grid-template-columns:repeat(4,1fr)}}
.plan-card .u i{display:block;height:6px;border-radius:3px;background:color-mix(in srgb,var(--t-ink,var(--ink)) 14%,transparent);margin-top:5px;overflow:hidden}
.plan-card .u i b{display:block;height:100%;border-radius:3px;background:var(--t-ink,var(--brand))}
.plan-card .u.full i b{background:var(--danger)}
.plan-card .u.full b.xs{color:var(--danger)}
.plan-card .u.off{opacity:.55}

/* =====================================================================
   v1.6 — menu columns (Admin → Settings), compact cards, image fit
   ===================================================================== */
.sheet{overflow:hidden}
.sheet.product .sh-body>div:first-child{overflow:hidden}
.sheet.product .sh-body>div:first-child img,.sheet.product .sh-body>div:first-child .ph{width:100%;height:auto;aspect-ratio:4/3;max-height:42dvh;object-fit:cover}
.pcard,.prow{overflow:hidden;min-width:0}
.pcard .media{overflow:hidden}
.pcard .media img{width:100%;height:100%;object-fit:cover}
.prow .thumb{width:96px;height:96px;flex:none;object-fit:cover}
.pcard .name{overflow-wrap:anywhere}
/* phones: 1, 2 or 3 dishes per row */
@media (max-width:599px){
  body.menu-cols-1 .menu-grid{grid-template-columns:1fr}
  body.menu-cols-2 .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.menu-cols-3 .menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  body.menu-cols-1 .menu-grid .pcard .media{aspect-ratio:16/10}
  body.menu-cols-3 .menu-grid .pcard{border-radius:14px}
  body.menu-cols-3 .menu-grid .pcard .body{padding:7px 8px 8px;gap:1px}
  body.menu-cols-3 .menu-grid .pcard .name{font-size:12px;line-height:1.25}
  body.menu-cols-3 .menu-grid .pcard .from{font-size:10.5px}
  body.menu-cols-3 .menu-grid .pcard .price{font-size:12px;padding-right:30px;padding-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.menu-cols-3 .menu-grid .pcard .price .strike{display:block;font-size:10px}
  body.menu-cols-3 .menu-grid .pcard .add,body.menu-cols-3 .menu-grid .pcard .qty-badge{width:28px;height:28px;min-width:28px;border-radius:9px;right:6px;bottom:6px}
  body.menu-cols-3 .menu-grid .pcard .add .i{width:18px;height:18px}
  body.menu-cols-3 .menu-grid .pcard .fav{width:26px;height:26px;top:5px;right:5px}
  body.menu-cols-3 .menu-grid .pcard .fav .i{width:14px;height:14px}
  body.menu-cols-3 .menu-grid .pcard .sold{font-size:9.5px;padding:3px 6px;right:6px;bottom:6px}
}
.cols-demo{display:inline-flex;gap:2px}.cols-demo i{width:5px;height:10px;border-radius:2px;background:currentColor;opacity:.6}
.catnav .chip.on .i{color:inherit}

/* home header logo */
.home-logo{display:flex;align-items:center;flex:none;max-width:110px}
.home-logo img{height:30px;width:auto;max-width:110px;object-fit:contain}
.home-logo b{font-size:18px;font-weight:800;letter-spacing:-.02em}
.home-top .home-row{gap:8px}
.home-top .home-logo{max-width:96px}.home-top .home-logo img{height:32px;max-width:96px}
.home-top .loc-btn{min-width:0;flex:1;gap:6px}
.home-top .loc-pin{width:30px;height:30px;border-radius:10px}
.home-top .loc-btn .lbl{font-size:10.5px}
.home-top .loc-btn .addr{font-size:13px}
.home-top .icon-btn{width:38px;height:38px}
.home-top .btn-sm{padding:0 10px}
@media (max-width:360px){.home-top .loc-pin{display:none}.home-top .home-logo img{height:26px;max-width:72px}}

/* saved dishes grid: phones 2, tablets 4, desktop 5 */
.saved-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:600px){.saved-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1024px){.saved-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}}
.saved-grid .pcard .media{aspect-ratio:1;display:block;width:100%}
.saved-grid .from{color:var(--muted)}
.picked{min-height:56px;padding:6px 10px;border-radius:14px;border:1.5px dashed var(--line);background:var(--surface)}
.promo-banners{margin-bottom:6px}
.steps-pick{display:flex;align-items:center;gap:6px;margin-top:8px}
[data-results] .li.on{background:var(--brand-soft)}
/* admin store sheet: pack, chat, manage links, activity log */
.store-admin-bar{display:flex;flex-direction:column;gap:10px;margin-bottom:12px;padding:12px;border-radius:16px;background:var(--surface-2)}
.manage-links{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.manage-links .chip{height:32px;font-size:12px}
.log-list{display:flex;flex-direction:column}
.log{display:flex;gap:12px;padding:10px 4px;border-bottom:1px solid var(--line);position:relative}
.log:last-child{border-bottom:0}
.log-dot{width:10px;height:10px;border-radius:50%;background:var(--brand);margin-top:5px;flex:none;box-shadow:0 0 0 3px var(--brand-soft)}
.log-dot.bad{background:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}
.log-dot.adm{background:var(--info);box-shadow:0 0 0 3px var(--info-soft)}
.log-dot.ord{background:var(--warn);box-shadow:0 0 0 3px var(--warn-soft)}
.acting-bar{display:flex;align-items:center;gap:10px;margin:10px 16px 0;padding:10px 12px;border-radius:14px;background:var(--info-soft);color:var(--info);font-size:13px}
@media (min-width:1024px){.acting-bar{margin:10px auto 0;max-width:1148px}}
.icon-btn.wa-btn{background:#25d366;color:#fff}
.icon-btn.wa-btn:hover{background:#1ebe5a}
[data-theme="dark"] .icon-btn.wa-btn{background:#1faa52}
