/* Imagine Rx prototype: design tokens + shared components.
   Brand: Imagine Pharmaceuticals. Colours sampled from images/logo-imagine-pharma-2.png */

:root {
  --brand: #00709b;
  --brand-600: #005f84;
  --brand-700: #004a68;
  --brand-100: #cce6f0;
  --brand-50: #e9f4f8;
  --teal: #48b8c0;
  --teal-50: #e7f6f7;
  --orange: #f27a1e;
  --orange-600: #d8650c;
  --orange-50: #fef1e6;

  --ink: #0e1a22;
  --ink-2: #3f4d57;
  --muted: #7a8790;
  --line: #e5eaed;
  --bg: #f4f6f8;
  --card: #ffffff;

  --ok: #17935a;
  --ok-50: #e6f5ed;
  --warn: #b86e00;
  --warn-50: #fff3df;
  --err: #d23a3a;
  --err-50: #fdecec;

  --mtn: #ffcb05;
  --airtel: #e40000;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Urbanist", "Manrope", system-ui, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(14, 26, 34, .06), 0 4px 14px rgba(14, 26, 34, .06);
  --shadow-lg: 0 10px 40px rgba(14, 26, 34, .18);
  --sb: 0px; /* fake status bar height, set in framed mode */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
/* Icons: Hugeicons stroke-rounded web font, subset to the glyphs we use (fonts/README.md explains how to add more) */
@font-face { font-family: "hgi-stroke-rounded"; src: url("../fonts/hgi-stroke-rounded-subset.woff2") format("woff2"); font-display: block; }
.ic { font-family: "hgi-stroke-rounded" !important; font-style: normal; font-weight: normal; font-size: 22px; line-height: 1; width: 1em; height: 1em; display: inline-flex; align-items: center; justify-content: center; flex: none; speak: never; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ic.sm { font-size: 18px; }
.ic.xs { font-size: 15px; }
.ic.lg { font-size: 28px; }
/* HGI-RULES-START */
.hgi-alert-circle::before { content: "\3b03"; }
.hgi-analytics-up::before { content: "\3b32"; }
.hgi-arrow-down-01::before { content: "\3b5a"; }
.hgi-arrow-left-01::before { content: "\3b6a"; }
.hgi-arrow-reload-horizontal::before { content: "\3b77"; }
.hgi-arrow-right-01::before { content: "\3b79"; }
.hgi-bug-01::before { content: "\3cc8"; }
.hgi-calendar-03::before { content: "\3ce6"; }
.hgi-call::before { content: "\3d29"; }
.hgi-cancel-01::before { content: "\3d42"; }
.hgi-cardiogram-01::before { content: "\3d5a"; }
.hgi-chart-increase::before { content: "\3d8d"; }
.hgi-checkmark-circle-02::before { content: "\3da7"; }
.hgi-clock-01::before { content: "\3e05"; }
.hgi-credit-card::before { content: "\3e9a"; }
.hgi-dashboard-square-01::before { content: "\3ee2"; }
.hgi-delete-02::before { content: "\3efa"; }
.hgi-delivery-truck-01::before { content: "\3f0e"; }
.hgi-discount-tag-01::before { content: "\3f42"; }
.hgi-download-01::before { content: "\3f70"; }
.hgi-droplet::before { content: "\3f99"; }
.hgi-edit-02::before { content: "\3fb2"; }
.hgi-flash::before { content: "\4049"; }
.hgi-globe-02::before { content: "\40ca"; }
.hgi-gps-01::before { content: "\40e6"; }
.hgi-help-circle::before { content: "\413a"; }
.hgi-home-01::before { content: "\4159"; }
.hgi-information-circle::before { content: "\41be"; }
.hgi-injection::before { content: "\41c1"; }
.hgi-invoice-01::before { content: "\41d5"; }
.hgi-leaf-01::before { content: "\4264"; }
.hgi-location-01::before { content: "\429f"; }
.hgi-logout-01::before { content: "\42d0"; }
.hgi-lungs::before { content: "\42e6"; }
.hgi-medicine-02::before { content: "\434e"; }
.hgi-message-01::before { content: "\4368"; }
.hgi-minus-sign::before { content: "\43b0"; }
.hgi-motorbike-02::before { content: "\4415"; }
.hgi-notification-01::before { content: "\448c"; }
.hgi-package::before { content: "\44c0"; }
.hgi-plus-sign::before { content: "\454c"; }
.hgi-search-01::before { content: "\4695"; }
.hgi-security-check::before { content: "\46aa"; }
.hgi-shopping-cart-01::before { content: "\470d"; }
.hgi-smart-phone-01::before { content: "\474b"; }
.hgi-sparkles::before { content: "\478e"; }
.hgi-square-lock-02::before { content: "\47ca"; }
.hgi-store-01::before { content: "\47f3"; }
.hgi-task-01::before { content: "\48a0"; }
.hgi-test-tube::before { content: "\48be"; }
.hgi-thermometer::before { content: "\48ee"; }
.hgi-tick-02::before { content: "\4908"; }
.hgi-upload-01::before { content: "\49ad"; }
.hgi-user::before { content: "\49ec"; }
.hgi-wallet-01::before { content: "\4a21"; }
.hgi-whatsapp::before { content: "\4a50"; }
/* HGI-RULES-END */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.ok-t { color: var(--ok); }
.err-t { color: var(--err); }
.warn-t { color: var(--warn); }
.brand-t { color: var(--brand); }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ============ Device stage (mobile apps) ============ */
body.device-body {
  background: radial-gradient(1200px 600px at 20% 10%, #dff0f6 0%, transparent 60%),
              radial-gradient(900px 600px at 90% 90%, #fde9da 0%, transparent 55%), #eef2f4;
  overflow: hidden;
}
.stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.device {
  --scale: 1;
  width: 390px; height: 844px; flex: none; position: relative;
  padding: 11px; border-radius: 58px; background: #0d1114;
  box-shadow: 0 0 0 2px #2a3237, 0 30px 80px rgba(10, 30, 45, .28);
  transform: scale(var(--scale)); transform-origin: center center;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 47px; overflow: hidden; background: #fff; isolation: isolate; }
.framed { --sb: 46px; }
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--sb); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px;
  font-weight: 700; font-size: 15px; pointer-events: none; color: var(--ink);
}
.statusbar.light { color: #fff; }
.statusbar .island { position: absolute; left: 50%; top: 11px; width: 112px; height: 31px; border-radius: 20px; background: #0d1114; transform: translateX(-50%); }
.statusbar .sys { display: flex; gap: 6px; align-items: center; }
.statusbar .sys i { display: block; }
.sig { width: 17px; height: 11px; background: linear-gradient(90deg, currentColor 0 18%, transparent 18% 27%, currentColor 27% 45%, transparent 45% 54%, currentColor 54% 72%, transparent 72% 81%, currentColor 81%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { width: 24px; height: 11px; border: 1.6px solid currentColor; border-radius: 3.5px; position: relative; opacity: .95; }
.bat::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: currentColor; border-radius: 1.5px; }
.home-ind { position: absolute; bottom: 7px; left: 50%; width: 134px; height: 5px; border-radius: 3px; background: #0d1114; transform: translateX(-50%); z-index: 70; pointer-events: none; opacity: .85; }

@media (max-width: 520px) {
  body.device-body { background: #fff; }
  .stage { display: block; }
  .device { width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; transform: none; background: #fff; }
  .screen { border-radius: 0; }
  .statusbar, .home-ind { display: none; }
  .framed { --sb: 0px; }
}

/* ============ App views ============ */
.view { position: absolute; inset: 0; top: var(--sb); display: flex; flex-direction: column; background: #fff; }
.view.grey { background: var(--bg); }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { width: 0; height: 0; }
.pad { padding: 16px 18px; }
.pad-x { padding-left: 18px; padding-right: 18px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.top { align-items: flex-start; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.center { text-align: center; }
.small { font-size: 13px; } .tiny { font-size: 11.5px; } .big { font-size: 18px; }
.b { font-weight: 700; } .sb { font-weight: 600; } .xb { font-weight: 800; }

/* Header bar */
.bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 60px; background: #fff; position: relative; z-index: 5; }
.bar.line { border-bottom: 1px solid var(--line); }
.bar h1 { font-size: 18px; font-weight: 700; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .spacer { width: 42px; flex: none; }
.icon-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); position: relative; transition: background .15s; }
.icon-btn:active { background: var(--line); }
.icon-btn.ghost { background: transparent; }
.icon-btn.tint { background: var(--brand-50); color: var(--brand); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }

/* Bottom nav */
.tabbar { flex: none; display: flex; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.framed .tabbar { padding-bottom: 22px; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: #9aa6ae; padding: 6px 0; position: relative; }
.tabbar button.on { color: var(--brand); }
.tabbar .badge { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; line-height: 18px; font-weight: 800; border: 2px solid #fff; box-sizing: content-box; }

/* Sticky footer CTA */
.cta-bar { flex: none; background: #fff; border-top: 1px solid var(--line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
.framed .cta-bar { padding-bottom: 26px; }
.cta-bar.flat { border-top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: var(--pill); font-weight: 700; font-size: 16px; background: var(--brand); color: #fff; transition: transform .08s, background .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); background: var(--brand-600); }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.xs { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.orange { background: var(--orange); }
.btn.orange:active { background: var(--orange-600); }
.btn.light { background: var(--brand-50); color: var(--brand); }
.btn.outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.dark { background: var(--ink); }
.btn.danger { background: var(--err-50); color: var(--err); }
.btn.ok { background: var(--ok); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.link-btn { color: var(--brand); font-weight: 700; font-size: 14px; }
.link-btn.muted { color: var(--muted); }

/* Cards & fields */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tight { padding: 12px; }
.section-t { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.section-t h3 { font-size: 17px; font-weight: 700; }
.field { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px 10px; display: block; position: relative; }
.field label, .field .lbl { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.field input, .field select, .field textarea { width: 100%; border: 0; outline: 0; padding: 0; background: transparent; font-weight: 600; font-size: 16px; resize: none; }
.field .val { font-weight: 600; font-size: 15.5px; }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.field.err { border-color: var(--err); }
.field-err { color: var(--err); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.field .edit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.prefix { display: flex; align-items: center; gap: 8px; }
.prefix span { font-weight: 700; color: var(--ink-2); white-space: nowrap; flex: none; }
.prefix input { min-width: 0; }

.searchbox { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: var(--pill); background: var(--bg); color: var(--muted); width: 100%; text-align: left; font-size: 15px; }
.searchbox input { border: 0; background: transparent; outline: 0; flex: 1; min-width: 0; font-size: 16px; color: var(--ink); }

/* Pills, badges, chips */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warn { background: var(--warn-50); color: var(--warn); }
.badge.err { background: var(--err-50); color: var(--err); }
.badge.brand { background: var(--brand-50); color: var(--brand); }
.badge.orange { background: var(--orange-50); color: var(--orange-600); }
.badge.teal { background: var(--teal-50); color: #1f8d95; }
.badge.solid { background: var(--orange); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px; margin: 0 -18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: var(--pill); background: var(--bg); font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.chip.on { background: var(--brand); color: #fff; }

/* Segmented tabs (underline) */
.seg { display: flex; border-bottom: 1px solid var(--line); }
.seg button { flex: 1; height: 44px; font-weight: 700; font-size: 14px; color: var(--muted); position: relative; }
.seg button.on { color: var(--brand); }
.seg button.on::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--brand); }

/* Lists */
.list { background: #fff; border-radius: var(--r); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); background: #fff; }
.li:last-child { border-bottom: 0; }
.li .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.kv span:first-child { color: var(--muted); }
.kv.total { font-weight: 800; font-size: 17px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 6px; }
.kv.total span:first-child { color: var(--ink); }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.hr.dash { background: none; border-top: 1px dashed var(--line); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: var(--pill); background: var(--brand-50); color: var(--brand); flex: none; }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--brand); border-radius: 50%; }
.stepper button:active { background: var(--brand-100); }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper.lg { height: 48px; }
.stepper.lg button { width: 48px; height: 48px; }
.stepper.lg span { min-width: 34px; font-size: 18px; }

/* Product art (generated "pack", no images) */
.pack { --c: var(--brand); --c2: var(--brand-50); width: 72px; height: 72px; border-radius: 14px; flex: none; background: var(--c2); display: grid; place-items: center; position: relative; overflow: hidden; }
.pack .box { width: 70%; height: 58%; border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 5px 6px; transform: rotate(-6deg); }
.pack .box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 32%; background: var(--c); }
.pack .box::after { content: ""; position: absolute; right: -6px; top: 32%; width: 22px; height: 22px; border-radius: 50%; background: var(--c); opacity: .18; }
.pack .box b { font-size: 9px; line-height: 1.05; font-weight: 800; color: var(--ink); position: relative; z-index: 1; max-width: 92%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pack .box i { font-style: normal; font-size: 7px; color: var(--muted); font-weight: 700; }
.pack.lg { width: 100%; height: 220px; border-radius: 0; }
.pack.lg .box { width: 58%; height: 56%; border-radius: 12px; padding: 0 0 14px 16px; }
.pack.lg .box b { font-size: 22px; }
.pack.lg .box i { font-size: 13px; }
.pack.md { width: 100%; height: 96px; border-radius: 12px; }
.pack.md .box b { font-size: 11px; }
.pack .oos { position: absolute; inset: 0; background: rgba(255, 255, 255, .65); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--err); }

/* Product rows (search/listing) */
.prow { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); align-items: center; }
.prow + .prow { margin-top: 10px; }
.prow .info { flex: 1; min-width: 0; }
.prow .name { font-weight: 700; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .price { font-weight: 800; font-size: 15px; margin-top: 6px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.prow .price .strike { font-size: 12px; }
.prow .act { align-self: flex-end; }
.add-btn { height: 38px; padding: 0 16px; border-radius: var(--pill); background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.add-btn:active { background: var(--brand-600); }
.add-btn.off { background: var(--bg); color: var(--muted); }

/* Product mini cards (horizontal) */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 18px 8px; margin: 0 -18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 150px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; }
.pcard .name { font-weight: 700; font-size: 13.5px; line-height: 1.25; margin-top: 8px; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard .meta { color: var(--muted); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 6px; }
.pcard .price { font-weight: 800; font-size: 13.5px; }
.pcard .plus { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.pcard .tagpos { position: absolute; top: 6px; left: 6px; }

/* Category tiles */
.cats { display: flex; gap: 14px; overflow-x: auto; padding: 4px 18px; margin: 0 -18px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; text-align: center; color: var(--ink-2); line-height: 1.15; }
.cat .ci { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--c2, var(--brand-50)); color: var(--c, var(--brand)); }

/* Banner carousel */
.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 18px; margin: 0 -18px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: none; width: calc(100% - 4px); scroll-snap-align: center; border-radius: var(--r-lg); padding: 18px; color: #fff; min-height: 136px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.banner h4 { font-size: 20px; line-height: 1.1; max-width: 68%; }
.banner p { margin: 6px 0 0; font-size: 12.5px; opacity: .92; max-width: 62%; }
.banner .go { align-self: flex-start; margin-top: 10px; height: 32px; padding: 0 14px; border-radius: var(--pill); background: #fff; color: var(--ink); font-weight: 800; font-size: 12.5px; display: inline-flex; align-items: center; }
.banner .art { position: absolute; right: -18px; bottom: -18px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.banner .art .ic { font-size: 54px; margin: -10px 0 0 -14px; }
.b-blue { background: linear-gradient(135deg, #00709b, #004a68); }
.b-orange { background: linear-gradient(135deg, #f27a1e, #d8580c); }
.b-teal { background: linear-gradient(135deg, #3aaab3, #1d7f88); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s, background .2s; }
.dots i.on { width: 18px; background: var(--brand); }

/* Quick tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.15; }
.tile .ti { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); position: relative; }
.tile .ti .n { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }

/* Timeline */
.tl { position: relative; padding-left: 4px; }
.tl .st { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.tl .st:last-child { padding-bottom: 0; }
.tl .st::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; border-left: 2px dashed var(--line); }
.tl .st:last-child::before { display: none; }
.tl .st.done::before { border-left-style: solid; border-color: var(--ok); }
.tl .dotc { width: 24px; height: 24px; border-radius: 50%; background: var(--line); flex: none; display: grid; place-items: center; color: #fff; position: relative; z-index: 1; }
.tl .done .dotc { background: var(--ok); }
.tl .now .dotc { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-50); }
.tl .now .dotc::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.tl .stt { font-weight: 700; font-size: 15px; }
.tl .todo .stt { color: var(--muted); font-weight: 600; }
.tl .sts { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* Sheets, overlays, dialogs */
.overlay { position: absolute; inset: 0; background: rgba(8, 18, 26, .45); z-index: 80; display: flex; align-items: flex-end; animation: fade .18s ease; }
.overlay.mid { align-items: center; justify-content: center; padding: 24px; }
.sheet { width: 100%; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 88%; overflow-y: auto; animation: up .24s cubic-bezier(.2, .8, .2, 1); }
.framed .sheet { padding-bottom: 32px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; margin-bottom: 6px; }
.dialog { background: #fff; border-radius: 22px; padding: 22px; width: 100%; max-width: 340px; animation: pop .2s ease; box-shadow: var(--shadow-lg); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

/* Simulated network (USSD) prompt */
.ussd { background: #fff; width: 100%; max-width: 300px; border-radius: 6px; padding: 20px 20px 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); font-family: Roboto, system-ui, sans-serif; animation: pop .18s ease; }
.ussd p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: #222; }
.ussd input { width: 100%; border: 0; border-bottom: 2px solid #1a73e8; outline: 0; font-size: 20px; letter-spacing: .5em; padding: 6px 2px; font-family: inherit; }
.ussd .acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.ussd .acts button { font-weight: 600; color: #1a73e8; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; padding: 10px 12px; border-radius: 4px; }
.ussd .acts button:active { background: #e8f0fe; }
.ussd .err { color: #c5221f; font-size: 12.5px; margin-top: 6px; min-height: 16px; }

/* Toast + SMS banner */
.toasts { position: absolute; left: 14px; right: 14px; bottom: 96px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; pointer-events: auto; animation: pop .2s ease; max-width: 100%; }
.toast button { color: #8fd6ff; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.toast.err { background: var(--err); }
.sms { position: absolute; top: calc(var(--sb) + 8px); left: 10px; right: 10px; z-index: 95; background: rgba(250, 251, 252, .97); backdrop-filter: blur(10px); border-radius: 18px; box-shadow: 0 10px 34px rgba(0, 0, 0, .22); padding: 11px 14px; display: flex; gap: 11px; animation: drop .32s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
.sms .app { width: 36px; height: 36px; border-radius: 9px; background: #34c759; color: #fff; display: grid; place-items: center; flex: none; }
.sms .from { font-weight: 800; font-size: 13.5px; display: flex; justify-content: space-between; }
.sms .from span { font-weight: 500; color: var(--muted); font-size: 12px; }
.sms .body { font-size: 13px; line-height: 1.35; color: var(--ink-2); margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sms.out { animation: rise .25s ease forwards; }
@keyframes drop { from { transform: translateY(-130%); } }
@keyframes rise { to { transform: translateY(-140%); opacity: 0; } }

/* Status / result screens */
.result { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 26px; }
.result .big-ic { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 0 0 12px var(--ok-50); margin: 10px 0 26px; }
.result .big-ic.err { background: var(--err); box-shadow: 0 0 0 12px var(--err-50); }
.result .big-ic.warn { background: var(--orange); box-shadow: 0 0 0 12px var(--orange-50); }
.result .big-ic.brand { background: var(--brand); box-shadow: 0 0 0 12px var(--brand-50); }
.result .big-ic .ic { font-size: 46px; }
.result h2 { font-size: 26px; }
.result p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

/* Spinner, skeleton, empty */
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand); animation: rot .8s linear infinite; flex: none; }
.spin.lg { width: 56px; height: 56px; border-width: 5px; }
.spin.white { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes rot { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, #eef1f3 0%, #f7f9fa 40%, #eef1f3 80%); background-size: 200% 100%; animation: sh 1.2s linear infinite; border-radius: 10px; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 30px; color: var(--muted); }
.empty .eic { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .eic .ic { font-size: 38px; }
.empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty p { margin: 0 0 18px; font-size: 14px; }

/* Payment method cards */
.method { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; width: 100%; text-align: left; }
.method + .method { margin-top: 10px; }
.method.on { border-color: var(--brand); background: var(--brand-50); }
.method.dis { opacity: .55; }
.method .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c6d0d6; flex: none; display: grid; place-items: center; }
.method.on .radio { border-color: var(--brand); }
.method.on .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
.mlogo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 900; font-size: 11px; line-height: 1; text-align: center; letter-spacing: -.02em; }
.mlogo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mlogo.mtn { background: #004f71; overflow: hidden; }
.mlogo.mtn img { object-fit: cover; }
.mlogo.airtel { background: #fff; border: 1px solid var(--line); padding: 5px; }
.mlogo.credit { background: var(--brand); color: #fff; }
.mlogo.card { background: #fff; border: 1px solid var(--line); padding: 0 6px; }
.mlogo.lg.airtel { padding: 8px; }
.mlogo.lg.card { padding: 0 10px; }
.accepts { display: inline-flex; align-items: center; gap: 6px; }
.accepts img { height: 14px; width: auto; display: block; }
.accepts img + img { height: 18px; }
.mlogo.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 15px; }

/* Countdown ring */
.ring { width: 150px; height: 150px; position: relative; margin: 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .lbl b { font-size: 30px; font-variant-numeric: tabular-nums; font-family: var(--font-head); }

/* Delivery code */
.code-box { display: flex; gap: 8px; justify-content: center; }
.code-box span { width: 46px; height: 54px; border-radius: 12px; background: #fff; border: 1.5px solid var(--brand-100); display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--brand); font-family: var(--font-head); }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input { width: 46px; height: 56px; border-radius: 14px; border: 1.5px solid var(--line); text-align: center; font-size: 24px; font-weight: 800; outline: 0; background: #fff; padding: 0; }
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.otp.err input { border-color: var(--err); }

/* Map (illustrative SVG) */
.map { position: relative; background: #e9eef0; overflow: hidden; }
.map svg { display: block; width: 100%; height: 100%; }

/* Progress bar */
.prog { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .3s; }
.prog.orange i { background: var(--orange); }
.prog.err i { background: var(--err); }
.prog.ok i { background: var(--ok); }

/* Switch */
.switch { width: 52px; height: 30px; border-radius: 15px; background: #cfd8dd; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(22px); }

/* Avatar */
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; font-family: var(--font-head); }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.avatar.orange { background: var(--orange); }
.avatar.teal { background: var(--teal); }

.pulse { position: relative; }
.pulse::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--ok); animation: pl 1.6s ease-out infinite; }
@keyframes pl { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 0 rgba(23, 147, 90, .6); animation: ld 1.6s infinite; }
@keyframes ld { 70% { box-shadow: 0 0 0 7px rgba(23, 147, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 147, 90, 0); } }
.flash { animation: flash 2.2s ease; }
@keyframes flash { 0%, 30% { background: #fff6d6; } 100% { background: transparent; } }

/* ============ Demo panel (prototype-only, never part of the product UI) ============ */
.demo-fab { position: fixed; left: 16px; bottom: 16px; z-index: 1000; height: 36px; padding: 0 14px 0 10px; border-radius: 18px; background: #1d1d1f; color: #fff; font: 700 12.5px/1 var(--font); display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); letter-spacing: .02em; }
.demo-fab[hidden], .demo-panel[hidden] { display: none; }
.demo-fab i { width: 8px; height: 8px; border-radius: 50%; background: #ffcc00; }
.demo-panel { position: fixed; left: 16px; bottom: 62px; z-index: 1000; width: 300px; max-height: calc(100vh - 90px); overflow-y: auto; background: #1d1d1f; color: #f2f2f2; border-radius: 16px; padding: 14px 14px 12px; font: 500 13px/1.35 var(--font); box-shadow: 0 16px 50px rgba(0, 0, 0, .35); }
.demo-panel h5 { margin: 0 0 2px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; letter-spacing: .02em; }
.demo-panel h5 span { background: #ffcc00; color: #1d1d1f; border-radius: 6px; padding: 2px 6px; font-size: 10.5px; font-weight: 800; }
.demo-panel .hint { color: #9a9aa0; font-size: 11.5px; margin: 0 0 10px; }
.demo-panel .grp { border-top: 1px solid #333; padding: 10px 0 4px; }
.demo-panel .grp > b { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #9a9aa0; margin-bottom: 7px; }
.demo-panel .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-panel .opts button, .demo-panel .dbtn { background: #2e2e31; color: #eee; border-radius: 8px; padding: 6px 9px; font-size: 12px; font-weight: 700; }
.demo-panel .opts button.on { background: #ffcc00; color: #1d1d1f; }
.demo-panel .dbtn { display: inline-flex; gap: 6px; align-items: center; }
.demo-panel .dbtn.red { background: #5a1f1f; color: #ffb4b4; }
.demo-panel a.dbtn { text-decoration: none; }
.demo-panel label.chk { display: flex; gap: 8px; align-items: center; font-size: 12.5px; cursor: pointer; }
.demo-panel label.chk input { accent-color: #ffcc00; }
@media (max-width: 520px) {
  .demo-fab { left: 0; bottom: auto; top: 50%; border-radius: 8px 0 0 8px; padding: 8px 0; width: 16px; height: auto; font-size: 9px; letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); opacity: .55; gap: 0; }
  .demo-fab i { display: none; }
  .demo-panel { left: 8px; right: 8px; width: auto; bottom: 8px; max-height: 70vh; }
}
