/* ZoroFresh mobile design system (customer, store and rider apps) */
:root {
  --forest-950: #061608;
  --forest-900: #0A220E;
  --forest-800: #0E2E13;
  --forest-700: #134019;
  --forest-600: #1A5422;
  --green: #17A34A;
  --green-2: #0E8237;
  --green-soft: #E6F6EB;
  --lime: #8ED63A;
  --lime-2: #B9EC63;
  --orange: #FF8A1F;
  --orange-2: #F06A0C;
  --orange-soft: #FFF1E3;
  --grape: #7342E0;
  --grape-soft: #F0EAFF;
  --berry: #E5364F;
  --berry-soft: #FFE8EC;
  --lemon: #FFD23F;
  --sky: #2F7BF0;
  --sky-soft: #E6F0FF;

  --bg: #F3F6EF;
  --card: #FFFFFF;
  --ink: #11200F;
  --ink-2: #4A5946;
  --ink-3: #8A9786;
  --line: #E5EBE0;
  --line-2: #EFF3EB;

  --pri: var(--green);
  --pri-2: var(--green-2);
  --pri-soft: var(--green-soft);
  --pri-ink: #0B6B2C;
  --pri-grad: linear-gradient(135deg, #25B85A 0%, #0E8A39 100%);
  --pri-glow: 0 10px 24px -6px rgba(23, 163, 74, .55);

  --hero-grad: radial-gradient(120% 90% at 100% 0%, rgba(255, 159, 28, .28) 0%, rgba(255, 159, 28, 0) 46%),
    radial-gradient(90% 80% at 0% 100%, rgba(142, 214, 58, .26) 0%, rgba(142, 214, 58, 0) 55%),
    linear-gradient(160deg, #13421B 0%, #0B2610 62%, #081C0B 100%);

  --f-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-xs: 10px;
  --r-sm: 14px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(17, 32, 15, .05), 0 2px 10px rgba(17, 32, 15, .05);
  --sh-2: 0 2px 4px rgba(17, 32, 15, .04), 0 10px 30px rgba(17, 32, 15, .09);
  --sh-3: 0 22px 60px rgba(8, 24, 10, .22);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-role="store"] {
  --pri: #F37A12; --pri-2: #D75F04; --pri-soft: #FFF1E3; --pri-ink: #A84B03;
  --pri-grad: linear-gradient(135deg, #FF9B30 0%, #EC650A 100%);
  --pri-glow: 0 10px 24px -6px rgba(243, 122, 18, .55);
}
html[data-role="rider"] {
  --pri: #7342E0; --pri-2: #5A2CC4; --pri-soft: #F0EAFF; --pri-ink: #4A21A6;
  --pri-grad: linear-gradient(135deg, #8F5BF7 0%, #5B2BC9 100%);
  --pri-glow: 0 10px 24px -6px rgba(115, 66, 224, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f-body); font-size: 15px; line-height: 1.45; color: var(--ink);
  background: var(--forest-900);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 15px; height: 15px; }
svg.i.lg { width: 26px; height: 26px; }
.ui, .bar, .bnav, .btn, .chip, .tab { -webkit-user-select: none; user-select: none; }

/* ---------- frame ---------- */
#app { position: fixed; inset: 0; margin: 0 auto; max-width: 480px; background: var(--bg); overflow: hidden; isolation: isolate; }
@media (min-width: 620px) {
  body {
    background: radial-gradient(60% 70% at 15% 20%, rgba(142, 214, 58, .16), transparent 60%),
      radial-gradient(50% 60% at 85% 80%, rgba(255, 138, 31, .16), transparent 60%), var(--forest-900);
  }
  #app { top: 24px; bottom: 24px; max-width: 420px; border-radius: 34px; box-shadow: 0 30px 90px rgba(0, 0, 0, .45), 0 0 0 10px #0d1a0f, 0 0 0 11px rgba(255, 255, 255, .08); }
}
#screens { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.screen.hidden { visibility: hidden; }
.screen.push-in { animation: pushIn .36s var(--ease) both; box-shadow: -18px 0 40px rgba(0, 0, 0, .14); z-index: 2; }
.screen.push-under { animation: pushUnder .36s var(--ease) both; }
.screen.pop-out { animation: popOut .3s cubic-bezier(.4, 0, .2, 1) both; box-shadow: -18px 0 40px rgba(0, 0, 0, .14); z-index: 2; }
.screen.pop-back { animation: popBack .3s cubic-bezier(.4, 0, .2, 1) both; }
.screen.fade-in { animation: fadeIn .25s ease both; }
@keyframes pushIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushUnder { from { transform: none; } to { transform: translateX(-26%); filter: brightness(.9); } }
@keyframes popOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes popBack { from { transform: translateX(-26%); filter: brightness(.9); } to { transform: none; filter: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes shimmer { from { background-position: -320px 0; } to { background-position: 320px 0; } }
.rise > * { animation: rise .5s var(--ease) both; }
.rise > *:nth-child(2) { animation-delay: .04s; } .rise > *:nth-child(3) { animation-delay: .08s; }
.rise > *:nth-child(4) { animation-delay: .12s; } .rise > *:nth-child(5) { animation-delay: .16s; }
.rise > *:nth-child(6) { animation-delay: .2s; } .rise > *:nth-child(n+7) { animation-delay: .24s; }

/* ---------- app bar & scroll ---------- */
.bar { flex: none; display: flex; align-items: center; gap: 6px; min-height: calc(58px + var(--safe-t)); padding: var(--safe-t) 10px 0; background: var(--bg); position: relative; z-index: 5; }
.bar.white { background: #fff; box-shadow: 0 1px 0 var(--line); }
.bar.clear { background: transparent; position: absolute; left: 0; right: 0; top: 0; }
.bar h1 { font-size: 18px; font-weight: 750; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .sub { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 1px; }
.bar .ttl { flex: 1; min-width: 0; padding-left: 2px; }
.bar .ttl h1 { flex: none; }
.ib { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; transition: transform .12s, background .2s; position: relative; }
.ib:active { transform: scale(.9); background: rgba(17, 32, 15, .07); }
.ib.glass { background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); backdrop-filter: blur(8px); }
.ib.soft { background: #fff; box-shadow: var(--sh-1); }
.ib .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--berry); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.sc { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding-bottom: 28px; position: relative; }
.sc.with-nav { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 28px); }
.sc.with-cart { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 100px); }
.sc.with-foot { padding-bottom: calc(110px + var(--safe-b)); }
.pad { padding: 0 16px; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, rgba(243, 246, 239, 0)); }
.foot.white { background: #fff; box-shadow: 0 -10px 30px rgba(17, 32, 15, .08); border-radius: 24px 24px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 750; font-size: 15.5px; letter-spacing: -.01em; transition: transform .12s, box-shadow .2s, opacity .2s; white-space: nowrap; position: relative; }
.btn:active { transform: scale(.97); }
.btn.block { display: flex; width: 100%; }
.btn.pri { background: var(--pri-grad); color: #fff; box-shadow: var(--pri-glow); }
.btn.orange { background: linear-gradient(135deg, #FF9D2E, #F06A0C); color: #fff; box-shadow: 0 10px 24px -6px rgba(240, 106, 12, .55); }
.btn.dark { background: linear-gradient(135deg, #1B4F24, #0B2610); color: #fff; box-shadow: 0 10px 24px -8px rgba(11, 38, 16, .6); }
.btn.white { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.btn.ghost { background: var(--pri-soft); color: var(--pri-ink); }
.btn.line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: var(--berry-soft); color: var(--berry); }
.btn.sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn.xs { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; box-shadow: none; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.white.loading::after, .btn.ghost.loading::after, .btn.line.loading::after { border-color: rgba(17, 32, 15, .15); border-top-color: var(--pri); }
.link { color: var(--pri-ink); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 2px; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 0 0 7px 2px; }
.inp { position: relative; display: flex; align-items: center; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.inp:focus-within { box-shadow: inset 0 0 0 2px var(--pri), 0 0 0 4px var(--pri-soft); }
.inp > svg.i { margin-left: 15px; color: var(--ink-3); }
.inp input, .inp select, .inp textarea { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; padding: 0 16px; font-size: 16px; font-weight: 550; border-radius: 16px; }
.inp textarea { height: auto; min-height: 92px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.inp select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238A9786' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.inp .pre { padding-left: 16px; font-weight: 700; color: var(--ink-2); }
.inp .pre + input { padding-left: 8px; }
.inp .eye { margin-right: 6px; }
.inp input::placeholder, .inp textarea::placeholder { color: #A9B4A5; font-weight: 500; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err-box { background: var(--berry-soft); color: #B4213A; font-weight: 600; font-size: 13.5px; padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; }

.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 30px; background: #CFD8CB; transition: background .25s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--pri); }
.switch input:checked + i::after { transform: translateX(22px); }

.opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); margin-bottom: 10px; transition: box-shadow .2s, background .2s; cursor: pointer; }
.opt.on { box-shadow: inset 0 0 0 2px var(--pri); background: var(--pri-soft); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C3CDBE; flex: none; display: grid; place-items: center; background: #fff; }
.opt.on .radio { box-shadow: inset 0 0 0 2px var(--pri); }
.opt.on .radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--pri); }
.opt b { display: block; font-size: 14.5px; }
.opt small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.opt .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 16px; position: relative; }
.card.flat { box-shadow: var(--sh-1); }
.card + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h3 { font-size: 16.5px; font-weight: 750; }
.sep { height: 1px; background: var(--line-2); margin: 12px 0; }
.sec { margin-top: 24px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 16px; margin-bottom: 12px; }
.sec-h h2 { font-size: 20px; font-weight: 800; }
.sec-h p { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; font-weight: 500; }
.row { display: flex; align-items: center; gap: 12px; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 750; }
.center { text-align: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.hide { display: none !important; }

.lrow { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.lrow:last-child { border-bottom: 0; }
.lrow .lic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--ink-2); }
.lrow b { display: block; font-size: 14.5px; font-weight: 650; }
.lrow small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.lrow > svg.i:last-child { color: #B6C0B2; }
.lrow:active { opacity: .7; }

/* ---------- chips, badges ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .hs::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13.5px; font-weight: 650; color: var(--ink-2); transition: all .2s; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--line-2); font-size: 11px; display: inline-grid; place-items: center; color: var(--ink-2); }
.chip.on .n { background: rgba(255, 255, 255, .2); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; font-weight: 750; letter-spacing: .01em; white-space: nowrap; }
.b-green { background: var(--green-soft); color: #0B7A31; }
.b-orange { background: var(--orange-soft); color: #C25407; }
.b-red { background: var(--berry-soft); color: #C21F3A; }
.b-purple { background: var(--grape-soft); color: #5326B8; }
.b-blue { background: var(--sky-soft); color: #1C5FCB; }
.b-grey { background: var(--line-2); color: var(--ink-2); }
.b-dark { background: var(--ink); color: #fff; }

/* ---------- segmented ---------- */
.seg { display: flex; background: #E8EDE4; border-radius: 15px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 40px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- bottom nav ---------- */
.bnav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -12px 30px rgba(17, 32, 15, .06); display: flex; transition: transform .3s var(--ease); }
.bnav.off { transform: translateY(110%); }
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: #94A08F; position: relative; }
.bnav a .pill { width: 54px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .25s, color .25s; position: relative; }
.bnav a.on { color: var(--pri-ink); }
.bnav a.on .pill { background: var(--pri-soft); color: var(--pri); }
.bnav a.on svg.i { stroke-width: 2.4; }
.bnav .cnt { position: absolute; top: 0; right: 8px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--berry); color: #fff; font-size: 10.5px; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- sheet, dialog, toast ---------- */
.backdrop { position: absolute; inset: 0; z-index: 50; background: rgba(6, 18, 8, .5); backdrop-filter: blur(2px); animation: fadeIn .2s ease both; }
.backdrop.closing { animation: fadeOut .22s ease both; }
@keyframes fadeOut { to { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 90%; display: flex; flex-direction: column; background: #fff; border-radius: 28px 28px 0 0; box-shadow: var(--sh-3); animation: sheetUp .34s var(--ease) both; padding-bottom: var(--safe-b); }
.sheet.closing { animation: sheetDown .24s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(105%); } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #D5DDD1; margin: 10px auto 2px; flex: none; }
.sheet .sh-h { display: flex; align-items: center; gap: 10px; padding: 8px 18px 10px; flex: none; }
.sheet .sh-h h3 { flex: 1; font-size: 19px; font-weight: 800; }
.sheet .sh-b { overflow-y: auto; padding: 4px 18px 18px; -webkit-overflow-scrolling: touch; }
.sheet .sh-f { padding: 12px 18px 16px; border-top: 1px solid var(--line-2); flex: none; }
.dialog { position: absolute; left: 24px; right: 24px; top: 50%; z-index: 51; background: #fff; border-radius: 26px; padding: 24px 20px 18px; box-shadow: var(--sh-3); transform: translateY(-50%); animation: dlgIn .28s var(--ease) both; text-align: center; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(-46%) scale(.94); } to { opacity: 1; transform: translateY(-50%); } }
.dialog h3 { font-size: 20px; font-weight: 800; }
.dialog p { color: var(--ink-2); margin-top: 8px; font-size: 14.5px; }
.dialog .acts { display: flex; gap: 10px; margin-top: 20px; }
.dialog .acts .btn { flex: 1; }
.dialog .art { width: 84px; height: 84px; margin: -4px auto 10px; }
.toasts { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 12px 16px 12px 12px; border-radius: 16px; background: #10200E; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); animation: toastIn .34s var(--ease) both; }
.toast.out { animation: toastOut .25s ease both; }
.toast .ti { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--green); }
.toast.err .ti { background: var(--berry); }
.toast.info .ti { background: var(--sky); }
.toast svg.i { width: 17px; height: 17px; stroke-width: 2.6; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* ---------- skeleton & empty ---------- */
.sk { background: linear-gradient(90deg, #E8EDE4 0px, #F4F7F1 120px, #E8EDE4 240px); background-size: 640px 100%; animation: shimmer 1.2s linear infinite; border-radius: 14px; }
.empty { text-align: center; padding: 48px 28px; }
.empty img { width: 120px; height: 120px; margin: 0 auto 14px; animation: float 4s ease-in-out infinite; }
.empty h3 { font-size: 20px; font-weight: 800; }
.empty p { color: var(--ink-3); margin-top: 6px; font-size: 14px; }
.empty .btn { margin-top: 20px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pri); animation: spin .7s linear infinite; margin: 30px auto; }

/* ---------- hero (dark brand header) ---------- */
.hero { position: relative; background: var(--hero-grad); color: #fff; padding: calc(12px + var(--safe-t)) 16px 22px; border-radius: 0 0 30px 30px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero > * { position: relative; }
.hero .ib { color: #fff; background: rgba(255, 255, 255, .1); }
.hero .ib:active { background: rgba(255, 255, 255, .2); }
.hero-deco { position: absolute; pointer-events: none; opacity: .95; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); animation: float 5s ease-in-out infinite; }

/* ---------- product cards ---------- */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.pgrid.g3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hs { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hs > * { scroll-snap-align: start; flex: none; }
.hs .pc { width: 152px; }
.pc { background: #fff; border-radius: 20px; box-shadow: var(--sh-2); overflow: visible; position: relative; display: flex; flex-direction: column; min-width: 0; transition: transform .15s; }
.pc:active { transform: scale(.98); }
.pc .pi { position: relative; aspect-ratio: 1 / .92; border-radius: 20px 20px 16px 16px; margin: 6px 6px 0; background: radial-gradient(75% 70% at 50% 42%, #fff 0%, var(--tint, #EAF6E3) 100%); display: grid; place-items: center; overflow: hidden; }
.pc .pi img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(40, 30, 10, .18)); transition: transform .3s var(--ease); }
.pc:active .pi img { transform: scale(1.05); }
.pc .off { position: absolute; top: 0; left: 10px; background: linear-gradient(180deg, #FF8E1F, #F26A0C); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1.05; text-align: center; padding: 5px 6px 7px; border-radius: 0 0 9px 9px; letter-spacing: .02em; box-shadow: 0 4px 10px rgba(242, 106, 12, .35); }
.pc .off small { display: block; font-size: 8.5px; font-weight: 700; opacity: .9; }
.pc .fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .85); display: grid; place-items: center; color: #9AA596; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.pc .fav.on { color: var(--berry); }
.pc .fav.on svg { fill: var(--berry); }
.pc .fav svg.i { width: 17px; height: 17px; }
.pc .oos { position: absolute; inset: 0; background: rgba(255, 255, 255, .62); display: grid; place-items: end center; padding-bottom: 12px; }
.pc .oos span { background: var(--ink); color: #fff; font-size: 11px; font-weight: 750; padding: 4px 10px; border-radius: 8px; }
.pc .pb { padding: 10px 11px 12px; display: flex; flex-direction: column; flex: 1; }
.pc .meta { display: flex; gap: 5px; align-items: center; font-size: 10.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; min-height: 16px; }
.pc .meta .leaf { color: var(--green); display: inline-flex; align-items: center; gap: 2px; }
.pc .nm { font-size: 13.5px; font-weight: 700; line-height: 1.28; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc .un { font-size: 12px; color: var(--ink-3); font-weight: 550; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .pr { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.pc .pr .p b { display: block; font-family: var(--f-display); font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.pc .pr .p s { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 550; }
.pc .store { font-size: 10.5px; color: var(--ink-3); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.add { height: 36px; min-width: 74px; border-radius: 11px; background: #fff; color: var(--pri-ink); box-shadow: inset 0 0 0 1.6px var(--pri), 0 4px 10px rgba(23, 163, 74, .12); font-weight: 800; font-size: 13.5px; letter-spacing: .03em; display: inline-flex; align-items: center; justify-content: center; position: relative; transition: transform .12s; }
.add:active { transform: scale(.94); }
.add .opts { position: absolute; bottom: -15px; left: 0; right: 0; font-size: 9.5px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; text-align: center; }
.stepper { height: 36px; min-width: 74px; border-radius: 11px; background: var(--pri-grad); color: #fff; display: inline-flex; align-items: center; justify-content: space-between; box-shadow: var(--pri-glow); font-weight: 800; font-size: 14px; animation: pop .25s var(--ease); }
.stepper button { width: 28px; height: 36px; display: grid; place-items: center; color: #fff; }
.stepper button svg.i { width: 16px; height: 16px; stroke-width: 3; }
.stepper.lg { height: 46px; min-width: 120px; border-radius: 14px; font-size: 16px; }
.stepper.lg button { width: 42px; height: 46px; }

/* ---------- order status ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-placed { background: var(--orange-soft); color: #C25407; }
.st-accepted { background: var(--sky-soft); color: #1C5FCB; }
.st-packed { background: var(--grape-soft); color: #5326B8; }
.st-out_for_delivery { background: #E2F7F3; color: #0B7F6C; }
.st-delivered { background: var(--green-soft); color: #0B7A31; }
.st-cancelled { background: var(--berry-soft); color: #C21F3A; }
.st.live::before { animation: pulse 1.2s ease infinite; }

.steps { display: flex; justify-content: space-between; position: relative; margin: 10px 4px 2px; }
.steps::before { content: ''; position: absolute; left: 14px; right: 14px; top: 13px; height: 4px; border-radius: 2px; background: var(--line); }
.steps .bar-fill { position: absolute; left: 14px; top: 13px; height: 4px; border-radius: 2px; background: var(--pri-grad); transition: width .6s var(--ease); }
.steps .s { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 60px; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--ink-3); line-height: 1.2; }
.steps .s i { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px var(--line); display: grid; place-items: center; }
.steps .s.done { color: var(--ink); }
.steps .s.done i { background: var(--pri); box-shadow: 0 4px 10px rgba(23, 163, 74, .35); color: #fff; }
.steps .s.cur i { background: #fff; box-shadow: inset 0 0 0 3px var(--pri), 0 0 0 5px var(--pri-soft); }
.steps .s i svg.i { width: 15px; height: 15px; stroke-width: 3; }

.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl .e { position: relative; padding-bottom: 14px; }
.tl .e::before { content: ''; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
.tl .e b { font-size: 14px; display: block; }
.tl .e small { color: var(--ink-3); font-size: 12px; }

/* ---------- map ---------- */
.map { position: relative; height: 260px; background: #DCE6D6; overflow: hidden; }
.map .leaflet-container { width: 100%; height: 100%; background: #E5ECE1; font-family: var(--f-body); }
.mk { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); border: 3px solid #fff; }
.mk img { width: 28px; height: 28px; }
.mk.rider { background: var(--grape); border-color: #fff; animation: pop .4s var(--ease); }
.mk.home { background: var(--green); }
.mk.shop { background: var(--orange); }
.mk-pulse { position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--grape); animation: ping 1.6s ease-out infinite; }

/* ---------- OTP & slide-to-confirm ---------- */
.otp-show { display: flex; gap: 8px; justify-content: center; }
.otp-show b { width: 46px; height: 56px; border-radius: 14px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--line); display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; font-weight: 800; }
.otp-in { display: flex; gap: 10px; justify-content: center; }
.otp-in input { width: 58px; height: 64px; border-radius: 16px; border: 0; outline: 0; text-align: center; font-family: var(--f-display); font-size: 28px; font-weight: 800; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.otp-in input:focus { box-shadow: inset 0 0 0 2.5px var(--pri), 0 0 0 4px var(--pri-soft); }
.slide { position: relative; height: 62px; border-radius: 20px; background: var(--pri-grad); box-shadow: var(--pri-glow); overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.slide .lbl { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15.5px; letter-spacing: .01em; padding-left: 50px; }
.slide .lbl span { background: linear-gradient(90deg, rgba(255, 255, 255, .55), #fff, rgba(255, 255, 255, .55)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.2s linear infinite; }
.slide .knob { position: absolute; left: 5px; top: 5px; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--pri); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.slide .knob svg.i { stroke-width: 2.8; }
.slide.done .knob { transition: left .25s var(--ease); }
.slide.busy .lbl span { animation: none; color: #fff; -webkit-text-fill-color: #fff; }
.slide.disabled { filter: grayscale(.8); opacity: .55; pointer-events: none; box-shadow: none; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: #fff; border-radius: 20px; box-shadow: var(--sh-2); padding: 14px; position: relative; overflow: hidden; }
.kpi .ki { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.kpi b { display: block; font-family: var(--f-display); font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.kpi small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: 1px; }
.kpi::after { content: ''; position: absolute; right: -24px; top: -24px; width: 86px; height: 86px; border-radius: 50%; background: var(--kc, var(--pri)); opacity: .08; }

/* ---------- splash ---------- */
#splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--hero-grad); transition: opacity .45s ease, visibility .45s; }
#splash.gone { opacity: 0; visibility: hidden; }
#splash .lg { width: 210px; max-width: 60vw; animation: pop .7s var(--ease) both; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
#splash .sp { position: absolute; bottom: calc(48px + var(--safe-b)); width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--lime); animation: spin .8s linear infinite; }
#splash .tag { position: absolute; bottom: calc(92px + var(--safe-b)); color: rgba(255, 255, 255, .72); font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
@media (min-width: 620px) { #splash { position: fixed; } }

/* ---------- auth screens ---------- */
.auth-top { position: relative; background: var(--hero-grad); padding: calc(18px + var(--safe-t)) 20px 74px; color: #fff; overflow: hidden; }
.auth-top .logo { width: 150px; margin: 6px auto 0; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4)); }
.auth-top h2 { font-size: 27px; font-weight: 800; text-align: center; margin-top: 14px; }
.auth-top p { text-align: center; color: rgba(255, 255, 255, .75); margin-top: 6px; font-size: 14px; }
.auth-card { position: relative; margin: -50px 14px 0; z-index: 2; }
.app-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.wa-fab { position: absolute; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 15; }
::-webkit-scrollbar { width: 0; height: 0; }
.leaflet-tile-pane { filter: saturate(.72) brightness(1.04) contrast(.96); }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(255, 255, 255, .7) !important; }
/* The frame must never scroll (focus / scrollIntoView can scroll overflow:hidden boxes and reveal the hidden nav) */
#app, #screens, .screen { overflow: clip; }
/* Keep Leaflet's high z-index panes inside the map box */
.map, .pick { isolation: isolate; z-index: 0; }
.done-ov { z-index: 90; }
/* Admin > Appearance > Corners */
html[data-corners="soft"] { --r-lg: 16px; --r: 13px; }
html[data-corners="soft"] .card, html[data-corners="soft"] .pc, html[data-corners="soft"] .kpi, html[data-corners="soft"] .oc, html[data-corners="soft"] .stc, html[data-corners="soft"] .cat, html[data-corners="soft"] .bn { border-radius: 14px; }
html[data-corners="soft"] .btn, html[data-corners="soft"] .inp, html[data-corners="soft"] .pc .pi { border-radius: 11px; }
html[data-corners="sharp"] .card, html[data-corners="sharp"] .pc, html[data-corners="sharp"] .kpi, html[data-corners="sharp"] .oc, html[data-corners="sharp"] .stc, html[data-corners="sharp"] .cat, html[data-corners="sharp"] .bn, html[data-corners="sharp"] .so, html[data-corners="sharp"] .req { border-radius: 8px; }
html[data-corners="sharp"] .btn, html[data-corners="sharp"] .inp, html[data-corners="sharp"] .pc .pi, html[data-corners="sharp"] .add, html[data-corners="sharp"] .stepper, html[data-corners="sharp"] .chip { border-radius: 6px; }
html[data-corners="sharp"] .hero { border-radius: 0 0 10px 10px; } html[data-corners="sharp"] .sheet { border-radius: 10px 10px 0 0; }
