/* Navy + scarlet + orange, Bricolage Grotesque headings over Nunito.
   Light "paper" theme and a dark navy theme; dark is the default. */
:root {
  --navy: #07130F; --navy-2: #0a1a14; --navy-3: #143026; --navy-line: #1f3a2f;
  --on-navy: #EEF5F0; --on-navy-muted: #9DB3A8;
  --scarlet: #22C55E; --scarlet-dark: #16a34a; --orange: #FFB020; --on-primary: #052e16; --alert: #ef4444;
  --font-display: 'Bricolage Grotesque', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-card: 18px; --r-tag: 14px; --r-input: 12px;

  --bg: #f5f8f4; --bg-soft: #eaf1ec; --card: #ffffff; --line: #dbe6de; --line-2: #c3d4c8;
  --text: #0d1a14; --muted: #52675c; --link: #15803d; --eyebrow: #b45309;
  --field: #f5f8f4; --field-line: #a9bdb0; --focus: #16a34a;
  --ok: #15803d; --ok-bg: rgba(34,197,94,.12); --bad: #b91c1c; --bad-bg: rgba(239,68,68,.10);
  --warn: #b45309; --warn-bg: rgba(255,176,32,.16); --info: #2f5bd3; --info-bg: rgba(47,91,211,.08);
  --chip: #e6efe9; --shadow: 0 10px 30px rgba(7,19,15,.08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07130F; --bg-soft: #0b1c16; --card: #0E1F19; --line: #1f3a2f; --line-2: #2b4d3f;
  --text: #EEF5F0; --muted: #9DB3A8; --link: #4ade80; --eyebrow: #FFB020;
  --field: #0a1914; --field-line: #2f5444; --focus: #FFB020;
  --ok: #4ade80; --ok-bg: rgba(74,222,128,.12); --bad: #ff7a86; --bad-bg: rgba(255,122,134,.12);
  --warn: #FFC657; --warn-bg: rgba(255,176,32,.14); --info: #93abff; --info-bg: rgba(120,152,255,.14);
  --chip: #16302a; --shadow: 0 10px 30px rgba(0,0,0,.40);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* "hidden" must win over any display rule below (overlays, badges). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-body); }
a { color: var(--link); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; color: var(--text); }
h1 { font-size: 2rem; line-height: 1.08; letter-spacing: -1px; margin: .2em 0 .5em; }
h2 { font-size: 1.4rem; line-height: 1.15; letter-spacing: -.5px; margin: 1.5em 0 .5em; }
h3 { font-size: 1.1rem; letter-spacing: -.3px; margin: 0 0 .35em; }
.wrap { max-width: 780px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1180px; }
.accent { color: var(--orange); }
:root[data-theme="light"] .accent, :root[data-theme="light"] .fee { color: #d97706; }

/* eyebrow: small orange caps label with a dot */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--eyebrow); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* top bar: always navy */
.top { background: rgba(7,19,15,.82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); color: var(--on-navy); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,.07); }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.top a { color: var(--on-navy); text-decoration: none; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.5px; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.logo .mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--on-primary); background: linear-gradient(135deg, var(--scarlet), var(--orange)); box-shadow: 0 6px 18px rgba(34,197,94,.35); }
.logo b { color: var(--orange); }
.top nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: .95rem; font-weight: 700; }
.top nav a { padding: 7px 11px; border-radius: 10px; color: var(--on-navy-muted); }
.top nav a:hover, .top nav a.on { background: rgba(255,255,255,.07); color: var(--on-navy); text-decoration: none; }
.top nav a.btn { color: var(--on-primary); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--navy-line); background: transparent; color: var(--on-navy); cursor: pointer; padding: 0; font-size: 16px; }
.icon-btn:hover { background: var(--navy-3); }
.badge { background: var(--alert); color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 800; padding: 1px 7px; margin-left: 3px; vertical-align: top; }

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card.tight { padding: 13px 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.big { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -.5px; }
.right { text-align: right; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* stats: countdown-box look */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tag); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .n { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* forms */
label { display: block; font-weight: 800; margin: 14px 0 6px; font-size: .95rem; }
label .muted { font-weight: 600; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-input); font: 600 16px var(--font-body); background: var(--field); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(255,176,32,.25); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--scarlet); }
textarea { min-height: 76px; }
summary { cursor: pointer; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { margin-top: 5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* buttons */
.btn, button { display: inline-block; border: 1px solid var(--navy-3); border-radius: var(--r-input); padding: 12px 22px; font: 800 16px var(--font-body); cursor: pointer; text-decoration: none; text-align: center; background: var(--navy-3); color: var(--on-navy); transition: transform .08s, background .15s; }
.btn:hover, button:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active, button:active { transform: translateY(1px); }
.btn.primary, button.primary { background: var(--scarlet); border-color: var(--scarlet); color: var(--on-primary); }
.btn.primary:hover, button.primary:hover { background: var(--scarlet-dark); filter: none; }
.btn.ok, button.ok { background: #127a4a; border-color: #127a4a; color: #fff; }
.btn.ghost, button.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); }
.btn.danger, button.danger { background: transparent; color: var(--bad); border: 1.5px solid var(--bad); }
.btn.block, button.block { display: block; width: 100%; padding: 15px; font-size: 1.05rem; }
.btn.sm, button.sm { padding: 7px 12px; font-size: .88rem; border-radius: 10px; }
.top button.link, button.link { background: none; border: 0; color: var(--on-navy-muted); padding: 0; }
.inline { display: inline; margin: 0; }
.arrow::after { content: " →"; }

/* tags (pills) & flashes */
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-tag); font-size: .78rem; font-weight: 800; background: var(--chip); color: var(--text); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--orange); color: #2a1a00; }
.pill.blue { background: var(--info-bg); color: var(--info); }
.lvl-Bronze { background: rgba(196,120,60,.18); color: #c4783c; }
.lvl-Silver { background: rgba(150,165,180,.2); color: #8d9aa8; }
.lvl-Gold { background: rgba(230,180,20,.2); color: #c9960a; }
.lvl-Platinum { background: rgba(140,120,255,.18); color: #8f7bff; }
.flash { padding: 13px 16px; border-radius: var(--r-input); margin-bottom: 14px; font-weight: 700; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.notice { background: var(--warn-bg); color: var(--text); border-left: 4px solid var(--orange); border-radius: var(--r-input); padding: 13px 16px; margin-bottom: 14px; }

/* maps */
.map { height: 260px; border-radius: var(--r-card); border: 1px solid var(--line); z-index: 0; }
.map.tall { height: 380px; }
.pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #fff; font-weight: 800; font-size: 13px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); line-height: 1; }

/* offers & jobs */
.offer { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.offer .price, .fee { font-family: var(--font-display); font-weight: 800; letter-spacing: -.5px; }
.offer .price { font-size: 1.55rem; text-align: right; }
.fee { font-size: 1.35rem; color: var(--orange); }
.stars { color: #f5b301; letter-spacing: 1px; }
.job { display: block; color: inherit; text-decoration: none; font-weight: 400; transition: border-color .15s, transform .1s; }
.job:hover { border-color: var(--orange); text-decoration: none; }
.steps { display: flex; gap: 6px; margin: 12px 0; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--scarlet); }
.bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--scarlet), var(--orange)); }
.ussd { font: 800 1.2rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .5px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { color: var(--muted); font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; }
.scroll { overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 7px 14px; border-radius: 99px; background: var(--chip); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 700; }
.tabs a.on { background: var(--scarlet); color: var(--on-primary); }

/* stars input */
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { display: none; }
.rate label { font-size: 2.3rem; color: var(--line-2); cursor: pointer; margin: 0; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #f5b301; }

/* landing hero */
.hero { padding: 34px 0 14px; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); letter-spacing: -1.8px; line-height: 1.02; margin: 14px 0 16px; }
.hero p { font-size: 1.08rem; max-width: 560px; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: .82rem; font-weight: 700; color: var(--muted); }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47,191,113,.18); }
.feature h3 { font-size: 1.45rem; letter-spacing: -.6px; }

footer { background: var(--navy); color: var(--on-navy-muted); font-size: .85rem; padding: 28px 16px 44px; text-align: center; margin-top: 40px; border-top: 1px solid var(--navy-line); }
footer a { color: var(--on-navy); }

@media (max-width: 560px) {
  .top nav { gap: 0; font-size: .88rem; }
  .top nav a { padding: 6px 6px; }
  .hide-sm { display: none !important; }
  .two { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
}

/* ===================== upgrades ===================== */
.ic { flex: none; vertical-align: -4px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; position: relative; z-index: 1; }

/* soft brand glow behind the page */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px 380px at 85% -60px, rgba(34,197,94,.16), transparent 70%),
              radial-gradient(520px 340px at -10% 30%, rgba(255,176,32,.08), transparent 70%); }
:root[data-theme="light"] .glow { opacity: .55; }

/* badges as dots on icon buttons */
.badge.dot { position: absolute; top: -4px; right: -4px; margin: 0; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; font-style: normal; border: 2px solid var(--navy); }

/* cards: rise in, lift on hover, faint top highlight in dark mode */
.card { position: relative; animation: rise .35s ease both; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .stat { background-image: linear-gradient(180deg, rgba(255,255,255,.035), transparent 40%); }
.job:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.22); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.grid > :nth-child(2) { animation-delay: .04s; }
.grid > :nth-child(3) { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* page header */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 8px 0 18px; }
.page-head h1 { margin: 4px 0 0; }

/* toasts */
.toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 2000; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; font-weight: 700; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.28); animation: drop .3s ease both; }
.toast .t-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; }
.toast.ok .t-ic { background: var(--ok-bg); color: var(--ok); }
.toast.error .t-ic { background: var(--bad-bg); color: var(--bad); }
.toast.error { border-color: var(--bad); }
.toast .t-x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 20px; padding: 0 6px; }
.toast.hide { opacity: 0; transform: translateY(-8px); transition: .25s; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* bottom tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 760px) {
  body.has-tabs { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(7,19,15,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.08); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--on-navy-muted); font-size: .7rem; font-weight: 800; text-decoration: none; border-radius: 12px; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on .ic { color: var(--orange); }
  .tabbar a.fab .ic { width: 46px; height: 46px; padding: 11px; margin-top: -20px; border-radius: 50%; color: var(--on-primary); background: linear-gradient(135deg, var(--scarlet), var(--orange)); box-shadow: 0 8px 20px rgba(34,197,94,.45); }
  .tabbar .badge.dot { top: 0; right: calc(50% - 22px); }
  .toasts { top: 66px; }
}

/* avatars with a level-coloured ring */
.avatar { --ring: var(--line-2); display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  font: 800 1rem var(--font-display); color: #fff; background: linear-gradient(135deg, #1f3a2f, #0E1F19); box-shadow: 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--ring); position: relative; }
.avatar.lg { width: 58px; height: 58px; font-size: 1.25rem; }
.avatar.Bronze { --ring: #c4783c; } .avatar.Silver { --ring: #9fb0c0; } .avatar.Gold { --ring: #f0b90b; } .avatar.Platinum { --ring: #8f7bff; }
.avatar .vf { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #127a4a; color: #fff; border: 2px solid var(--card); }
.avatar .vf .ic { width: 11px; height: 11px; vertical-align: 0; }
.who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.who b { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -.3px; }

/* chips: small facts with icons */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--chip); color: var(--text); font-size: .8rem; font-weight: 700; }
.chip .ic { width: 14px; height: 14px; color: var(--muted); vertical-align: 0; }
.chip.hot { background: var(--warn-bg); color: var(--warn); }
.chip.hot .ic, .chip .ic.gold { color: #f5b301; }
.chip.hot .ic { color: var(--warn); }
.chip.good { background: var(--ok-bg); color: var(--ok); }
.chip.good .ic { color: var(--ok); }

/* best offer gets a gradient edge and a ribbon */
.offer.best, :root[data-theme="dark"] .offer.best { border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--scarlet), var(--orange)) border-box; margin-top: 22px; box-shadow: 0 18px 40px rgba(34,197,94,.18); }
@media (max-width: 560px) {
  .offer { grid-template-columns: 1fr; }
  .offer .who { align-items: flex-start; }
  .offer > .right { display: flex; align-items: center; gap: 10px; text-align: left; padding-top: 12px; border-top: 1px solid var(--line); }
  .offer > .right .price { text-align: left; }
  .offer > .right form { margin: 0 0 0 auto !important; }
}
/* offer countdown: a draining bar along the top of the card, plus seconds left */
.offer, .offer-wait { overflow: hidden; }
.offer.best { overflow: visible; }
.countdown { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; }
.countdown i { display: block; height: 100%; width: 100%; background: var(--scarlet); transition: width .2s linear, background .3s; }
.count-s { position: absolute; top: 10px; right: 14px; font: 800 .78rem var(--font-display); color: var(--muted); }
.offer .right { padding-top: 16px; }
.hurry .countdown i { background: var(--alert); }
.hurry .count-s { color: var(--alert); }
.offer.expired, .offer-wait.expired { opacity: .45; filter: grayscale(.6); transition: opacity .3s; }
.offer-wait { padding-top: 22px; }

/* ===================== Drops (product stories) ===================== */
.drops { margin: 4px 0 18px; }
.rings { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rings::-webkit-scrollbar { display: none; }
.ring { position: relative; flex: none; display: grid; justify-items: center; gap: 6px; width: 76px; padding: 0; background: none; border: 0; color: var(--text); scroll-snap-align: start; }
.ring-art { position: relative; width: 68px; height: 68px; border-radius: 50%; padding: 3px; display: block;
  background: conic-gradient(from 0deg, var(--scarlet), var(--orange), #ff6fb1, var(--scarlet)); }
.ring-art::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: -1; filter: blur(8px); opacity: .45;
  background: inherit; animation: ringspin 6s linear infinite; }
.ring-art img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--bg); background: var(--chip); }
.ring:hover .ring-art { transform: scale(1.05); }
.ring-art { transition: transform .15s; }
.ring.seen .ring-art { background: var(--line-2); }
.ring.seen .ring-art::before { display: none; }
.ring-name { font-size: .72rem; font-weight: 800; max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring.seen .ring-name { color: var(--muted); }
.ring-star { position: absolute; top: 46px; right: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; background: var(--orange); color: #2a1a00; border: 2px solid var(--bg); }
@keyframes ringspin { to { transform: rotate(360deg); } }

/* full-screen story */
html.story-open { overflow: hidden; }
.story { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; }
.story.in { opacity: 1; }
.story-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(40px) brightness(.45) saturate(1.3); transform: scale(1.2); }
.story-card { position: relative; width: min(440px, 100vw); height: min(820px, 100dvh); background: #000; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; border-radius: 0; transform: scale(.96); transition: transform .2s; touch-action: none; user-select: none; }
.story.in .story-card { transform: none; }
@media (min-width: 500px) { .story-card { border-radius: 22px; height: min(820px, calc(100dvh - 40px)); box-shadow: 0 30px 80px rgba(0,0,0,.6); } }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-bars i { display: block; height: 100%; width: 0; background: #fff; }
.story-bars span.done i { width: 100%; }
.story-head { position: absolute; top: 22px; left: 12px; right: 8px; z-index: 3; display: flex; align-items: center; gap: 8px; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.story-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 800 .9rem var(--font-display);
  color: var(--on-primary); background: linear-gradient(135deg, var(--scarlet), var(--orange)); }
.story-sub { color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 700; }
.story-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; padding: 4px 10px; }
.story-img { flex: 1; display: grid; place-items: center; min-height: 0; padding: 64px 0 0; }
.story-img img { width: 100%; height: 100%; object-fit: contain; }
.story-tap { position: absolute; top: 60px; bottom: 42%; z-index: 2; }
.story-prev { left: 0; width: 30%; }
.story-next { right: 0; width: 70%; }
.story-info { position: relative; z-index: 3; padding: 26px 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75) 30%, rgba(0,0,0,.92)); margin-top: -90px; }
.story-price { display: inline-block; padding: 6px 14px 6px 12px; border-radius: 8px 18px 18px 8px; transform: rotate(-4deg);
  font: 800 1.45rem var(--font-display); color: #2a1a00; background: var(--orange); box-shadow: 0 8px 22px rgba(255,176,32,.35); position: relative; }
.story-price::before { content: ""; position: absolute; left: -7px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px var(--orange); }
.story-price.pop { animation: tagpop .45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes tagpop { from { transform: rotate(-14deg) scale(.6); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.story-name { color: #fff; font-size: 1.45rem; letter-spacing: -.5px; margin: 12px 0 4px; }
.story-desc { margin: 0 0 14px; color: rgba(255,255,255,.85); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.story-desc.open { -webkit-line-clamp: unset; display: block; }
.story-desc:not(.open)::after { content: ""; }
.story-actions { display: flex; gap: 8px; }
.story-actions .story-ask { flex: 1; }
.story-actions .story-call { color: #fff; border-color: rgba(255,255,255,.4); }
.story.paused .story-bars { opacity: .5; }

/* once-a-day peek card */
.peek { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1800; display: flex; align-items: stretch;
  max-width: min(340px, calc(100vw - 32px)); border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0,0,0,.35);
  transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2,1.2,.4,1), opacity .25s; }
.peek.in { transform: none; opacity: 1; }
body.has-tabs .peek { bottom: calc(86px + env(safe-area-inset-bottom)); }
.peek-open { display: flex; gap: 10px; align-items: center; padding: 8px 4px 8px 8px; background: none; border: 0; color: var(--text); text-align: left; font-weight: 400; }
.peek-open img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--orange); }
.peek-open small { display: block; font-size: .7rem; font-weight: 800; color: var(--eyebrow); text-transform: uppercase; letter-spacing: .6px; }
.peek-open b { display: block; font-family: var(--font-display); }
.peek-open em { font-style: normal; font-weight: 800; color: var(--orange); }
.peek-x { background: none; border: 0; color: var(--muted); font-size: 20px; padding: 0 12px; }

/* business product manager */
.drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.drop-item { padding: 0; overflow: hidden; }
.drop-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--chip); }
.drop-item .body { padding: 10px 12px 12px; }
.drop-item.off img { filter: grayscale(1) brightness(.6); }
.photo-pick { display: grid; place-items: center; aspect-ratio: 1; max-width: 220px; border-radius: 18px; border: 2px dashed var(--line-2);
  background: var(--chip) center/cover no-repeat; cursor: pointer; color: var(--muted); font-weight: 800; text-align: center; padding: 10px; }
.photo-pick input { display: none; }

/* shareable journey card */
.journey { display: grid; grid-template-columns: 1fr 200px; gap: 18px; align-items: center; }
.journey-frame { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #07130F; box-shadow: 0 18px 40px rgba(0,0,0,.4);
  transform: rotate(2deg); transition: transform .2s; }
.journey-frame:hover { transform: rotate(0) scale(1.02); }
.journey-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.journey.ready .journey-img { opacity: 1; }
@media (max-width: 560px) {
  .journey { grid-template-columns: 1fr; }
  .journey-frame { order: -1; width: 62%; margin: 0 auto 4px; }
}

/* address search above pick maps */
.mapsearch { position: relative; margin: 8px 0; }
.mapsearch input { padding-left: 38px; background: var(--field) 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='%239DB3A8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 12px 50% no-repeat; }
.mapsearch-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1200; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-input); box-shadow: 0 18px 40px rgba(0,0,0,.35); max-height: 300px; overflow-y: auto; }
.mapsearch-results li.muted { padding: 10px; font-size: .88rem; }
.mapsearch-results button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font-weight: 400; }
.mapsearch-results button:hover, .mapsearch-results button:focus { background: var(--chip); outline: none; }
.mapsearch-results b { font-family: var(--font-display); }
.mapsearch-results small { display: block; color: var(--muted); font-size: .8rem; }
.mapsearch-results .pill { font-size: .7rem; margin-left: 4px; }

/* pick-one chips (report topics) */
.chip.pick { position: relative; cursor: pointer; margin: 0; padding: 8px 12px; font-size: .85rem; border: 1.5px solid transparent; }
.chip.pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip.pick:has(input:checked) { background: var(--scarlet); color: var(--on-primary); }
.chip.pick:has(input:focus-visible) { border-color: var(--focus); }

/* account hub */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hub a { display: grid; gap: 4px; padding: 14px; border-radius: var(--r-tag); background: var(--chip); color: var(--text); font-weight: 800; text-decoration: none; }
.hub a span { font-weight: 600; font-size: .8rem; color: var(--muted); }
.hub a:hover { outline: 1.5px solid var(--scarlet); text-decoration: none; }

/* "Next step" card: whoever's turn it is sees this first */
.card.next-step { border: 1.5px solid var(--orange); box-shadow: 0 0 0 4px var(--warn-bg), var(--shadow); }

/* price list chips on the new-order form */
.bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.band { display: grid; gap: 2px; padding: 9px 10px; border-radius: 12px; background: var(--chip); border: 1.5px solid transparent; font-size: .78rem; font-weight: 700; color: var(--muted); text-align: center; transition: .15s; }
.band b { font: 800 1rem var(--font-display); color: var(--text); }
.band.on { border-color: var(--scarlet); background: var(--ok-bg); color: var(--text); transform: translateY(-1px); }
.band.on b { color: var(--scarlet); }

.ribbon { position: absolute; top: -11px; left: 16px; padding: 3px 11px; border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--on-primary); background: linear-gradient(135deg, var(--scarlet), var(--orange)); }

/* labelled timeline */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 14px 0 20px; }
.timeline .st { position: relative; text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); padding-top: 30px; line-height: 1.2; }
.timeline .st::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 4px; background: var(--line); }
.timeline .st:first-child::before { left: 50%; }
.timeline .st:last-child::before { right: 50%; }
.timeline .st i { position: absolute; top: 2px; left: calc(50% - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--line-2); z-index: 1; }
.timeline .st.done::before { background: var(--scarlet); }
.timeline .st.now::before { background: linear-gradient(90deg, var(--scarlet) 50%, var(--line) 50%); }
.timeline .st:first-child.now::before { background: var(--line); }
.timeline .st.done i { background: var(--scarlet); border-color: var(--scarlet); }
.timeline .st.now i { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255,176,32,.22); animation: pulse 1.8s infinite; }
.timeline .st.done, .timeline .st.now { color: var(--text); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255,176,32,0); } }

/* online switch */
.switch { position: relative; width: 64px; height: 36px; border-radius: 99px; border: 0; padding: 0; background: var(--line-2); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: left .2s; }
.switch.on { background: var(--scarlet); }
.switch.on::after { left: 32px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; animation: ping 1.8s infinite; margin-right: 6px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47,191,113,0); } }

#gps-status { white-space: normal; }

/* stat with icon */
.stat .s-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 8px; background: var(--warn-bg); color: var(--orange); }

/* empty states */
.empty { text-align: center; padding: 30px 18px; border: 1.5px dashed var(--line-2); border-radius: var(--r-card); color: var(--muted); }
.empty .ic { width: 36px; height: 36px; color: var(--orange); margin-bottom: 6px; }

/* landing: hero with a live delivery mock */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.mock { position: relative; border-radius: 24px; padding: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: rise .5s ease both; }
.mock svg.route { width: 100%; height: auto; display: block; border-radius: 16px; background: #0a1914; }
:root[data-theme="light"] .mock svg.route { background: #e3ece5; }
.mock .street { stroke: rgba(255,255,255,.07); stroke-width: 12; fill: none; }
:root[data-theme="light"] .mock .street { stroke: rgba(255,255,255,.9); }
.mock .path { stroke: url(#grad); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 8 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.mock .float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 34px rgba(0,0,0,.3); font-size: .82rem; font-weight: 700; animation: bob 4s ease-in-out infinite; }
.mock .f1 { left: -22px; bottom: 96px; }
.mock .f2 { right: -18px; top: 24px; animation-delay: -2s; }
@media (max-width: 560px) { .mock .f1 { left: 8px; } .mock .f2 { right: 8px; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.trust span { display: inline-flex; gap: 6px; align-items: center; }
.trust .ic { color: var(--orange); width: 18px; height: 18px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font: 800 1.1rem var(--font-display); color: var(--on-primary); background: linear-gradient(135deg, var(--scarlet), var(--orange)); }
footer .logo { color: var(--on-navy); }

/* Never scroll sideways (decorative cards may poke a pixel past the edge). */
html, body { overflow-x: clip; }

/* ===================== installable app ===================== */
.install-btn { white-space: nowrap; }
html.is-app .install-btn { display: none !important; }
.when-app { display: none; }
html.is-app .when-app { display: block; }
html.is-app .when-web { display: none; }
html.can-install .when-noinstall { display: none; }
.app-hero { text-align: center; max-width: 560px; margin: 18px auto 10px; }
.app-hero .app-icon { width: 120px; height: 120px; border-radius: 28px; display: block; margin: 0 auto 18px;
  box-shadow: 0 24px 60px rgba(34,197,94,.25), 0 0 0 1px var(--line); animation: rise .5s ease both; }
.app-hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 10px 0 12px; }
.app-hero .install-btn { max-width: 340px; margin: 18px auto 8px; padding: 16px; font-size: 1.05rem; }
.steps-list { padding-left: 20px; margin: 10px 0 0; }
.steps-list li { margin-bottom: 6px; }
.ios-share { display: inline-block; width: 14px; height: 16px; vertical-align: -2px; border: 2px solid currentColor; border-top: 0;
  border-radius: 0 0 3px 3px; position: relative; margin: 0 2px; }
.ios-share::before { content: "↑"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 800; }
.ios-sheet { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.ios-card { width: min(440px, 100%); background: var(--bg); color: var(--text); border-radius: 26px 26px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  text-align: center; border-top: 1px solid var(--line); animation: rise .25s ease both; }
.ios-card img { width: 64px; height: 64px; border-radius: 16px; }
.ios-card ol { text-align: left; margin: 12px auto; max-width: 320px; }
html.is-app .hide-in-app { display: none !important; }

/* ===================== safety: trust limits, codes, photo proof ===================== */
.job.locked { opacity: .55; filter: grayscale(.5); }
.job.locked:hover { opacity: .75; transform: none; }
.lock-note { font-size: .8rem; font-weight: 800; color: var(--warn); margin-bottom: 8px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.code-digits { font: 800 2.4rem/1 ui-monospace, Consolas, monospace; letter-spacing: .3em; color: var(--orange); }
.code-input { font: 800 1.8rem ui-monospace, Consolas, monospace; letter-spacing: .5em; text-align: center; max-width: 220px; }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.proof figure { margin: 0; }
.proof img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--chip); }
.proof figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.snap { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: var(--r-input); cursor: pointer; margin: 0 0 10px; }
.snap input { display: none; }
.snap img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: none; }
.snap.has img { display: block; }
.snap.has { border-style: solid; border-color: var(--scarlet); }
