/* ==========================================================================
   MedConnect — design tokens
   ========================================================================== */
:root {
  --navy-900: #071a42;
  --navy-800: #0a1f4d;
  --navy-700: #0c2a66;
  --navy-600: #10367f;
  --blue-600: #1663d6;
  --blue-500: #1f74e6;
  --blue-400: #3f8ff0;
  --cyan: #1fd3ef;
  --cyan-600: #11b8d6;
  --ink: #0b1d45;
  --ink-2: #26385f;
  --muted: #5b6b8c;
  --line: #d9e4f3;
  --bg: #f3f8fe;
  --card: #ffffff;
  --green-700: #0a6342;
  --green-600: #0d7a52;
  --green-500: #14966a;
  --mint-50: #ecfbf6;
  --mint-100: #d9f5ec;
  --amber: #b86e00;
  --amber-bg: #fff4dc;
  --red: #c62f3c;
  --red-bg: #fde8ea;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 77, .07);
  --shadow: 0 12px 34px rgba(10, 31, 77, .12);
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1560px;
  --gutter: clamp(16px, 5.1vw, 80px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, #011e43 0%, #01224b 45%, #012753 100%);
  border-bottom: 1px solid #1f5aa8;
  box-shadow: 0 1px 0 rgba(31, 211, 239, .18);
}
.topbar-inner {
  height: calc(var(--header-h) - 1px); display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); color: #fff; flex-shrink: 0; }
.brand-mark { width: auto; height: calc(var(--header-h) - 16px); }
.brand-divider { width: 1.5px; height: calc(var(--header-h) - 30px); background: rgba(255, 255, 255, .85); border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name {
  font-weight: 900; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.02em; color: #fff;
}
.brand-name span { color: var(--cyan); }
.brand-sub {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-style: italic; font-weight: 600; font-size: clamp(11px, .95vw, 14px); color: #fff; white-space: nowrap;
}
.brand-sub i { display: block; width: clamp(14px, 1.6vw, 24px); height: 1.5px; background: rgba(255, 255, 255, .85); }

.nav-wrap { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mainnav { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 18px); }
.mainnav a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: clamp(14px, 1.08vw, 17px); font-weight: 600;
  padding: 8px clamp(10px, 1vw, 16px); border-radius: 10px; transition: background .2s;
}
.mainnav a svg { width: 20px; height: 20px; }
.mainnav a:hover { background: rgba(255, 255, 255, .08); }
.mainnav a.active { background: #1a63c9; box-shadow: 0 4px 14px rgba(26,99,201,.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

.acct { display: flex; align-items: center; gap: 8px; }
.acct:empty { display: none; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .12); cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.icon-btn svg { width: 22px; height: 22px; }
.badge-dot {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--cyan); color: var(--navy-900); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 700;
}
.acct-btn:hover { background: rgba(255, 255, 255, .16); }
.acct-btn.cta { background: var(--cyan); color: var(--navy-900); border-color: transparent; }
.acct-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 60; border: 1px solid var(--line);
}
.dropdown a, .dropdown button {
  display: flex; width: 100%; text-align: left; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink);
  background: none; border: 0; cursor: pointer; font-weight: 600;
}
.dropdown a:hover, .dropdown button:hover { background: var(--bg); }
.dropdown .dd-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown .dd-head small { display: block; color: var(--muted); font-weight: 600; }
.notif-list { max-height: 360px; overflow: auto; min-width: 320px; }
.notif { padding: 10px 12px; border-radius: 10px; font-size: 14px; display: block; color: var(--ink); }
.notif:hover { background: var(--bg); }
.notif.unread { background: #eaf3ff; }
.notif time { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: transparent; cursor: pointer; padding: 12px 11px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; }

/* ==========================================================================
   App frame — footer always sits at the bottom of the screen
   ========================================================================== */
#app { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }
#app > .foot { margin-top: auto; }

/* ==========================================================================
   Home — one-screen landing (header + hero + cards + footer fit the viewport)
   ========================================================================== */
.home { flex: 1; display: flex; flex-direction: column; }
.hero {
  position: relative; overflow: hidden; color: #fff; flex: 1 0 auto;
  display: flex; align-items: center;
  background:
    radial-gradient(42% 60% at 72% 20%, rgba(0, 144, 238, .55) 0%, rgba(0, 144, 238, 0) 72%),
    linear-gradient(180deg, rgba(1, 112, 205, 0) 40%, rgba(1, 118, 212, .9) 100%),
    linear-gradient(95deg, #012957 0%, #01397a 42%, #014b9c 68%, #0158b8 100%);
  padding: clamp(8px, 1.8vh, 24px) 0 calc(var(--hero-wave) * .85);
  --hero-wave: clamp(26px, 5.4vh, 64px);
}
.hero::before { /* faint arcs like the reference */
  content: ""; position: absolute; right: -10%; top: -45%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.5vw, 40px);
}
.eyebrow {
  margin: 0 0 clamp(8px, 1.6vh, 16px); font-weight: 700; letter-spacing: .16em;
  font-size: clamp(11px, min(1.05vw, 2vh), 16px); text-transform: uppercase; color: #e8f1ff;
}
.hero h1 {
  margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
  font-size: clamp(26px, min(3.1vw, 5.6vh), 50px);
}
.hero h1 .accent { color: var(--cyan); }
.hero h1 .nw { white-space: nowrap; }
.hero-lead {
  margin: clamp(10px, 2vh, 22px) 0 0; line-height: 1.55; max-width: 34em; color: #e4eeff; text-wrap: pretty;
  font-size: clamp(14px, min(1.15vw, 2.2vh), 18px);
}
.hero-art { display: flex; justify-content: flex-end; }
.hero-art img {
  height: clamp(130px, 33vh, 380px); width: auto; max-width: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
          mask-composite: intersect;
  transition: transform .3s;
}
.hero-art:hover img { transform: translateY(-3px); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: var(--hero-wave, 60px); display: block; }

/* ==========================================================================
   Home — choice cards
   ========================================================================== */
.choices {
  position: relative; flex: 0 0 auto;
  background: linear-gradient(180deg, #eef6ff 0%, #f6fbff 55%, #eaf4fd 100%);
  padding: clamp(2px, .6vh, 10px) 0 clamp(26px, 4.6vh, 54px);
}
.choices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.choice {
  display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); align-items: center; gap: clamp(10px, 1.4vw, 20px);
  border-radius: 22px; padding: clamp(12px, 2.1vh, 24px) clamp(16px, 1.8vw, 28px); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.choice:hover { transform: translateY(-3px); }
.choice.pharm {
  background: linear-gradient(135deg, #f0f7ff 0%, #e2eefc 55%, #d4e6fb 100%);
  border: 2px solid #3d7fe0; box-shadow: 0 10px 28px rgba(31, 116, 230, .14), inset 0 0 0 4px rgba(255,255,255,.55);
}
.choice.order {
  background: linear-gradient(135deg, #f4fdfa 0%, #e5f8f1 55%, #d6f3e9 100%);
  border: 2px solid #9fe6d3; box-shadow: 0 10px 28px rgba(20, 150, 106, .10), inset 0 0 0 4px rgba(255,255,255,.55);
}
.choice-art { display: grid; place-items: center; }
.choice-art svg, .choice-art img { width: 100%; max-width: clamp(96px, 19vh, 185px); height: auto; }
.choice.order .choice-art img { max-width: clamp(88px, 17vh, 165px); filter: drop-shadow(0 8px 10px rgba(10,94,63,.15)); }
.choice h2 { margin: 0 0 6px; font-size: clamp(21px, min(2.2vw, 4.2vh), 34px); line-height: 1.1; font-weight: 800; color: #0b1a45; letter-spacing: -.02em; }
.choice p { margin: 0 0 clamp(10px, 1.8vh, 18px); font-size: clamp(13px, min(1.02vw, 2vh), 16px); color: #22355c; line-height: 1.45; text-wrap: pretty; }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-width: min(100%, 230px); padding: clamp(9px, 1.5vh, 12px) 20px clamp(9px, 1.5vh, 12px) 32px; border-radius: 999px; color: #fff;
  font-weight: 700; font-size: clamp(14px, min(1.15vw, 2.2vh), 18px); border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-pill svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .15s; }
.btn-pill:hover { filter: brightness(1.1); }
.btn-pill:hover svg { transform: translateX(3px); }
.btn-pill.navy { background: linear-gradient(180deg, #12398a 0%, #0a2463 100%); box-shadow: 0 8px 18px rgba(10, 36, 99, .28); }
.btn-pill.green { background: linear-gradient(180deg, #0f7b52 0%, #0a5e3f 100%); box-shadow: 0 8px 18px rgba(10, 94, 63, .28); }

/* ==========================================================================
   Footer band (shared)
   ========================================================================== */
.foot { position: relative; flex: 0 0 auto; background: #011e44; color: #fff; }
.foot-wave { position: absolute; left: 0; right: 0; top: 1px; transform: translateY(-100%); line-height: 0; pointer-events: none; }
.foot-wave svg { width: 100%; height: clamp(18px, 3.2vh, 40px); display: block; }
.foot-feats {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(6px, 1.3vh, 16px) var(--gutter) 0;
}
.feat { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 14px; }
.feat + .feat { border-left: 1px solid rgba(255, 255, 255, .35); }
.feat svg { width: clamp(28px, 4.4vh, 38px); height: clamp(28px, 4.4vh, 38px); flex-shrink: 0; color: #cfe3ff; }
.feat strong { display: block; font-size: clamp(14px, min(1.1vw, 2.1vh), 17px); font-weight: 700; line-height: 1.25; }
.feat span { display: block; font-size: clamp(12px, min(.92vw, 1.8vh), 14px); color: #c9d8f2; }
.feat a { color: #c9d8f2; }
.feat a:hover { color: #fff; }
.copyright {
  text-align: center; font-size: clamp(12px, min(.95vw, 1.8vh), 14px); color: #a9bddf;
  margin: clamp(6px, 1.1vh, 12px) auto 0; padding: clamp(6px, 1.2vh, 12px) 16px;
  border-top: 1px solid rgba(255, 255, 255, .08); max-width: 1200px;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 120% at 85% 20%, rgba(52, 150, 255, .7) 0%, rgba(14, 70, 170, 0) 70%),
    linear-gradient(100deg, #0a2a6b 0%, #0d3485 45%, #1658c6 100%);
  padding: 28px 0 60px;
}
.page-head h1 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.4px; }
.page-head h1 .accent { color: var(--cyan); }
.page-head p { margin: 6px 0 0; color: #dbe8ff; font-size: 16px; max-width: 60ch; }
.page-head .hero-wave svg { height: 54px; }
.page-body { padding-top: 8px; padding-bottom: 90px; min-height: 52vh; }
.crumbs { font-size: 14px; color: #bcd3ff; margin-bottom: 8px; }
.crumbs a { color: #fff; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.panel-pad { padding: 22px; }
.panel h2, .panel h3 { margin: 0 0 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: filter .15s, background .15s;
  background: var(--blue-600); color: #fff; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn.navy { background: linear-gradient(180deg, #12398a, #0a2463); }
.btn.green { background: linear-gradient(180deg, #0f7b52, #0a5e3f); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); filter: none; }
.btn.danger { background: #fff; color: var(--red); border-color: #f2b9bf; }
.btn.danger:hover { background: var(--red-bg); filter: none; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31, 116, 230, .14);
}
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue-600); }
.form-error { background: var(--red-bg); color: var(--red); padding: 10px 14px; border-radius: 12px; font-weight: 600; margin-bottom: 14px; }
.form-error:empty { display: none; }

/* auth */
.auth { max-width: 520px; margin: -40px auto 0; position: relative; z-index: 3; }
.auth .panel { padding: 30px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); padding: 6px; border-radius: 14px; margin-bottom: 20px; }
.seg button { border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.demo-box { margin-top: 18px; padding: 14px; background: #eef6ff; border-radius: 12px; font-size: 14px; }
.demo-box code { background: #fff; padding: 1px 6px; border-radius: 6px; }

/* shop */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 22px; position: relative; z-index: 3; }
.toolbar .search { flex: 1 1 320px; position: relative; }
.toolbar .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; color: var(--muted); }
.toolbar .search input { padding-left: 44px; min-height: 52px; box-shadow: var(--shadow); border-color: transparent; }
.toolbar select { min-height: 52px; width: auto; min-width: 180px; box-shadow: var(--shadow); border-color: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  cursor: pointer; color: var(--ink-2);
}
.chip.on { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip .n { opacity: .7; margin-left: 4px; }
.med-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.med {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.med:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.med-top { display: flex; gap: 12px; align-items: flex-start; }
.med-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.med-ico svg { width: 32px; height: 32px; }
.med h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.med .gen { font-size: 13px; color: var(--muted); }
.med .pack { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.med .store { font-size: 13px; color: var(--muted); margin-top: 2px; display: flex; gap: 5px; align-items: center; }
.med .store svg { width: 14px; height: 14px; }
.med-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font-size: 20px; font-weight: 800; }
.price s { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.off { font-size: 12px; color: var(--green-600); font-weight: 800; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.tag.rx { background: #ffe9ec; color: #b4233a; }
.tag.low { background: var(--amber-bg); color: var(--amber); }
.tag.out { background: #eef1f6; color: #6a7891; }
.tag.ok { background: var(--mint-100); color: var(--green-700); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 36px; height: 38px; border: 0; background: var(--bg); cursor: pointer; font-size: 18px; font-weight: 800; color: var(--ink); }
.stepper button:hover { background: #e3eefc; }
.stepper span { min-width: 34px; text-align: center; font-weight: 800; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; margin: 0 auto 10px; color: #a9bbd6; }
.empty h3 { color: var(--ink); margin: 0 0 6px; }

/* store strip */
.store-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 24px; }
.store-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.store-card:hover { border-color: var(--blue-400); }
.store-card .si { width: 44px; height: 44px; border-radius: 12px; background: #e6f0ff; display: grid; place-items: center; flex-shrink: 0; color: var(--blue-600); }
.store-card .si svg { width: 24px; height: 24px; }
.store-card h4 { margin: 0; font-size: 16px; }
.store-card p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* cart / checkout */
.line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .med-ico { width: 48px; height: 48px; border-radius: 12px; }
.line .med-ico svg { width: 26px; height: 26px; }
.line h4 { margin: 0; font-size: 16px; }
.line .amt { font-weight: 800; min-width: 80px; text-align: right; }
.link-btn { background: none; border: 0; color: var(--red); cursor: pointer; font-weight: 700; font-size: 13px; padding: 0; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.opt { position: relative; border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; background: #fff; }
.opt input { position: absolute; opacity: 0; }
.opt svg { width: 30px; height: 30px; color: var(--blue-600); flex-shrink: 0; }
.opt strong { display: block; }
.opt small { color: var(--muted); }
.opt.on { border-color: var(--blue-500); background: #f2f8ff; box-shadow: 0 0 0 4px rgba(31, 116, 230, .1); }
.opt.disabled { opacity: .5; cursor: not-allowed; }
.drop {
  border: 2px dashed #9bbbe6; border-radius: 16px; background: #f5f9ff; padding: 22px; text-align: center; cursor: pointer; display: block;
}
.drop:hover, .drop.drag { border-color: var(--blue-500); background: #eaf3ff; }
.drop svg { width: 40px; height: 40px; color: var(--blue-500); margin: 0 auto 6px; }
.drop input { display: none; }
.rx-preview { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.rx-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.rx-note { background: #fff5f6; border: 1px solid #f7cdd3; color: #8f1d30; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 800; }
.sticky { position: sticky; top: 94px; }

/* status pills */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-awaiting_rx { background: #fff1d6; color: #9a5b00; }
.st-placed { background: #e5efff; color: #1553b8; }
.st-confirmed { background: #e2f0ff; color: #0f4fae; }
.st-packed { background: #ece6ff; color: #5a35c4; }
.st-out_for_delivery, .st-ready_for_pickup { background: #def6fb; color: #06778c; }
.st-delivered, .st-picked_up { background: var(--mint-100); color: var(--green-700); }
.st-rejected, .st-cancelled { background: var(--red-bg); color: var(--red); }

/* orders list */
.order-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.order-row:hover { background: #f8fbff; }
.order-row:last-child { border-bottom: 0; }
.order-row b { display: block; }

/* tracking */
.track { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin: 10px 0 6px; }
.track .step { position: relative; text-align: center; padding-top: 50px; font-size: 13px; font-weight: 700; color: var(--muted); }
.track .step::before {
  content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 4px; background: var(--line);
}
.track .step:first-child::before { left: 50%; }
.track .step:last-child::before { right: 50%; }
.track .dot {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 3px solid var(--line); display: grid; place-items: center; z-index: 1;
}
.track .dot svg { width: 16px; height: 16px; }
.track .step.done { color: var(--ink); }
.track .step.done::before { background: var(--green-500); }
.track .step.done .dot { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.track .step.cur { color: var(--blue-600); }
.track .step.cur::before { background: linear-gradient(90deg, var(--green-500) 50%, var(--line) 50%); }
.track .step.cur .dot { border-color: var(--blue-500); color: var(--blue-500); box-shadow: 0 0 0 6px rgba(31, 116, 230, .15); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(31, 116, 230, .05); } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: 13px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }

/* dashboard */
.tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 6px; border-radius: 16px; margin: 0 0 22px; position: relative; z-index: 3; box-shadow: var(--shadow); overflow-x: auto; }
.tabs a { padding: 10px 18px; border-radius: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tabs a.on { background: var(--navy-700); color: #fff; }
.tabs .cnt { background: var(--cyan); color: var(--navy-900); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
.stat .k { color: var(--muted); font-weight: 700; font-size: 14px; }
.stat .v { font-size: 30px; font-weight: 900; margin-top: 4px; line-height: 1.1; }
.stat.hl { background: linear-gradient(135deg, #0c2a66, #1658c6); color: #fff; border: 0; }
.stat.hl .k { color: #cfe0ff; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fbff; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f8fbff; }
.tbl .num { text-align: right; white-space: nowrap; }
.rx-view { background: #0f1b33; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 280px; }
.rx-view img { max-height: 560px; width: auto; }
.rx-view iframe { width: 100%; height: 560px; border: 0; background: #fff; }
.alert { padding: 14px 16px; border-radius: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 22px; height: 22px; flex-shrink: 0; }
.alert.warn { background: var(--amber-bg); color: #7a4a00; }
.alert.info { background: #e8f2ff; color: #123e86; }
.alert.err { background: var(--red-bg); color: #8f1d30; }
.alert.ok { background: var(--mint-100); color: var(--green-700); }

/* modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(7, 26, 66, .55); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 20px; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); }
.x-btn { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 20px; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; }
.toast { background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; max-width: 380px; animation: slide .2s; }
.toast.err { background: #8f1d30; }
.toast.ok { background: var(--green-700); }
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }
.spinner { width: 34px; height: 34px; border: 4px solid #dbe7f7; border-top-color: var(--blue-500); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* content pages */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.fcard .fi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #e6f0ff; color: var(--blue-600); margin-bottom: 12px; }
.fcard .fi.g { background: var(--mint-100); color: var(--green-600); }
.fcard .fi svg { width: 28px; height: 28px; }
.fcard h3 { margin: 0 0 6px; font-size: 19px; }
.fcard p { margin: 0; color: var(--muted); }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { font-weight: 800; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 16px 48px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .hero { display: block; }
  .hero-art img { height: auto; width: 100%; max-height: 340px; }
  .hero h1 .nw { white-space: normal; }
  .nav-toggle { display: block; }
  .nav-wrap {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: #0a1d49; padding: 12px 16px 18px; border-bottom: 1px solid #1f5aa8; gap: 10px;
  }
  .nav-wrap.open { display: flex; }
  .mainnav { flex-direction: column; align-items: stretch; }
  .acct { flex-wrap: wrap; }
  .dropdown { left: 0; right: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-left: var(--gutter); }
  .hero-art { margin: 0 auto; max-width: 620px; }
  .choices-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 12px; }
  .choice { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .choice-art svg, .choice-art img { max-width: 150px; }
  .btn-pill { padding-left: 28px; }
  .foot-feats { grid-template-columns: 1fr; gap: 8px; }
  .feat { justify-content: flex-start; }
  .feat + .feat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .grid-2, .opt-cards, .feature-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row .hide-sm { display: none; }
  .line { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .line .amt { grid-column: 2 / 4; text-align: left; }
  .kv { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .track .step { font-size: 11px; }
}
.acct-btn svg { width: 20px; height: 20px; }
.home > .foot { margin-top: auto; }

/* ==========================================================================
   v4 — Header states
   ========================================================================== */
.acct-btn.active { background: #1a6fe0; border-color: #3b86f0; box-shadow: 0 4px 14px rgba(26, 111, 224, .45); }
.icon-btn.active { background: rgba(255, 255, 255, .18); }
.badge-dot { box-shadow: 0 0 0 2px #011e43; }

/* ==========================================================================
   v4 — Compact site footer (inner pages)
   ========================================================================== */
.foot-site { padding: 18px 0 0; }
.fs-inner {
  display: grid; grid-template-columns: auto minmax(0, 1.1fr) auto auto; align-items: center;
  gap: clamp(16px, 2.4vw, 36px); padding-top: 4px; padding-bottom: 14px;
}
.fs-brand { display: flex; align-items: center; gap: 12px; color: #fff; padding-right: clamp(16px, 2.4vw, 36px); border-right: 1px solid rgba(255,255,255,.22); }
.fs-brand img { height: 46px; width: auto; }
.fs-brand b { display: block; font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.fs-brand b i { font-style: normal; color: var(--cyan); }
.fs-brand small { display: block; font-size: 12px; font-style: italic; color: #cfdcf3; margin-top: 4px; }
.fs-tag { margin: 0; font-size: 14px; color: #c9d8f2; line-height: 1.5; max-width: 42ch; }
.fs-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.fs-links a { color: #fff; font-weight: 600; font-size: 15px; }
.fs-links a:hover { color: var(--cyan); }
.fs-trust { display: flex; align-items: center; gap: 12px; padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid rgba(255,255,255,.22); }
.fs-trust svg { width: 34px; height: 34px; color: #cfe3ff; flex-shrink: 0; }
.fs-trust b { display: block; font-size: 15px; }
.fs-trust small { display: block; font-size: 13px; color: #c9d8f2; }
.fs-copy { text-align: center; font-size: 12.5px; color: #8fa6cc; padding: 10px 16px 14px; border-top: 1px solid rgba(255,255,255,.08); }

/* ==========================================================================
   v4 — Shop page
   ========================================================================== */
.shop-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(40% 80% at 74% 30%, rgba(0, 144, 238, .45) 0%, rgba(0, 144, 238, 0) 70%),
    linear-gradient(95deg, #012957 0%, #01397a 45%, #014b9c 70%, #0158b8 100%);
  padding: clamp(14px, 2.4vh, 26px) 0 clamp(34px, 5vh, 56px);
}
.shop-hero .hero-wave svg { height: clamp(28px, 4.4vh, 52px); }
.shop-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px; }
.sh-copy h1 { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.sh-copy h1 .accent { color: var(--cyan); }
.sh-copy > p { margin: 8px 0 0; font-size: clamp(15px, 1.25vw, 18px); color: #dce8ff; max-width: 34em; line-height: 1.45; }
.sh-copy .crumbs { margin-bottom: 6px; }
.sh-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 0; margin: clamp(14px, 2.2vh, 22px) 0 0; padding: 0; }
.sh-feats li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14.5px; line-height: 1.3; padding-right: clamp(16px, 2vw, 28px); margin-right: clamp(16px, 2vw, 28px); border-right: 1px solid rgba(255,255,255,.25); }
.sh-feats li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.sh-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.45); box-shadow: inset 0 0 12px rgba(255,255,255,.1); }
.sh-ic svg { width: 22px; height: 22px; }
.sh-art { display: flex; justify-content: flex-end; }
.sh-art img {
  height: clamp(140px, 24vh, 230px); width: auto; max-width: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
.shop-body { padding-top: 0; }
.shop-body .toolbar { margin: 18px 0 26px; position: relative; z-index: 3; }
.toolbar .search input { padding-left: 46px; min-height: 52px; box-shadow: 0 6px 20px rgba(10,31,77,.09); border: 1px solid #e3ebf6; font-size: 16px; }
.toolbar .search input::-webkit-search-cancel-button { cursor: pointer; }
.stock-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1px solid #e3ebf6; box-shadow: 0 6px 20px rgba(10,31,77,.09); font-weight: 700; white-space: nowrap;
}
.stock-toggle input { width: 20px; height: 20px; accent-color: var(--blue-600); }

.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-row h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.link-more { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--navy-700); font-weight: 700; cursor: pointer; padding: 6px 2px; }
.link-more svg { width: 18px; height: 18px; }
.link-more:hover { color: var(--blue-600); }

.store-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.store-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #e3ebf6; border-radius: 16px; padding: 16px; color: var(--ink);
  box-shadow: 0 6px 18px rgba(10,31,77,.06); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.store-card:hover { border-color: #b9d2f4; box-shadow: 0 12px 28px rgba(10,31,77,.1); transform: translateY(-2px); }
.store-card .si { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(180deg, #eaf2ff, #d9e8ff); color: var(--blue-600); align-self: start; display: grid; place-items: center; }
.store-card .si svg { width: 28px; height: 28px; }
.store-card h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; }
.store-card .addr { display: flex; gap: 6px; margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.store-card .addr svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.store-card .tags svg { width: 13px; height: 13px; }
.store-card .tags .tag { padding: 4px 10px; }
.store-card .chev { color: var(--ink-2); display: grid; }
.store-card .chev svg { width: 20px; height: 20px; }

.chips-row { position: relative; margin-bottom: 22px; }
.chips-row .chips { flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; margin: 0; padding: 4px 2px; }
.chips-row .chips::-webkit-scrollbar { display: none; }
.chips-row .chip { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 9px 16px; background: #fff; border-color: #dfe8f4; }
.chips-row .chip svg { width: 17px; height: 17px; }
.chips-row .chip:hover { border-color: #9fbfe9; }
.chips-row .chip.on { background: var(--navy-700); border-color: var(--navy-700); color: #fff; padding-inline: 22px; }
.chip-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #dfe8f4; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(10,31,77,.14);
}
.chip-nav svg { width: 18px; height: 18px; }
.chip-nav.prev { left: -8px; } .chip-nav.next { right: -8px; }
.chip-nav[hidden] { display: none; }
.chips-row::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 48px; pointer-events: none; background: linear-gradient(90deg, rgba(243,248,254,0), var(--bg)); }

.med-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.med { border-color: #e3ebf6; padding: 18px; box-shadow: 0 6px 18px rgba(10,31,77,.06); }
.med-top { align-items: center; gap: 14px; }
.med-title { min-width: 0; }
.med h3 { font-size: 17px; font-weight: 800; }
.med .gen { font-size: 13.5px; margin-top: 2px; }
.med .pack { margin-top: 12px; font-size: 14px; }
.med .store span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.med .store:hover { color: var(--blue-600); }
.med-ico.img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #f3f6fb; }
.med-ico.img img { width: 100%; height: 100%; object-fit: cover; }
.line .med-ico.img { width: 48px; height: 48px; border-radius: 12px; }
.tag.rx { padding: 4px 10px; }
.price { font-size: 21px; }
.add-btn { min-width: 84px; }

/* ==========================================================================
   v4 — Auth pages (login / register)
   ========================================================================== */
.page-head.slim { padding: 0; height: clamp(70px, 10vh, 110px); }
.page-head.slim .hero-wave svg { height: 100%; }
.auth { max-width: 520px; margin: clamp(-64px, -6vh, -40px) auto 0; }
.auth.auth-wide { max-width: 720px; }
.auth .auth-card { padding: clamp(22px, 3vw, 34px); border-radius: 22px; border-color: #e3ebf6; box-shadow: 0 18px 50px rgba(10,31,77,.12); }
.auth-top { text-align: center; margin-bottom: 20px; }
.auth-ico { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; color: var(--blue-600); background: linear-gradient(180deg, #eaf2ff, #d9e8ff); }
.auth-ico svg { width: 32px; height: 32px; }
.auth-top h1 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; }
.auth-top p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.auth-card .seg { gap: 6px; padding: 6px; background: #edf3fb; border-radius: 14px; margin-bottom: 22px; }
.auth-card .seg button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 10px; border-radius: 10px; color: var(--ink-2); font-size: 15px; }
.auth-card .seg button svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth-card .seg button.on { background: linear-gradient(180deg, #12398a, #0a2463); color: #fff; box-shadow: 0 6px 16px rgba(10,36,99,.3); }
.auth-card .seg button:not(.on):hover { background: rgba(255,255,255,.7); }
.sec-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--navy-800); }
.sec-h svg { width: 24px; height: 24px; color: var(--blue-600); flex-shrink: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0 20px; }
.auth-card .grid-2 { gap: 0 18px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .field > span { font-size: 14px; color: var(--ink); }
.field .req { color: #d12a3c; font-weight: 800; }
.field > span em { font-style: normal; font-weight: 600; color: var(--muted); }
.ifield { position: relative; display: flex; align-items: center; }
.ifield > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: #50607f; pointer-events: none; }
.ifield input { padding-left: 44px !important; }
.ifield input::placeholder { color: #8090ad; }
.ifield .eye { position: absolute; right: 6px; width: 38px; height: 38px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: #3c4b68; display: grid; place-items: center; }
.ifield .eye:hover { background: var(--bg); }
.ifield .eye svg { width: 20px; height: 20px; }
.ifield:has(.eye) input { padding-right: 48px; }
.ifield.bad input { border-color: #e1677a; box-shadow: 0 0 0 3px rgba(209, 42, 60, .1); }
.btn.lg { min-height: 54px; font-size: 17px; border-radius: 12px; margin-top: 6px; }
.btn.lg svg { width: 22px; height: 22px; }
.auth-alt { text-align: center; margin: 16px 0 0; color: var(--muted); }
[hidden] { display: none !important; }

/* ==========================================================================
   v4 — Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .fs-inner { grid-template-columns: auto 1fr; }
  .fs-links { justify-content: flex-start; }
  .fs-trust { padding-left: 0; border-left: 0; justify-self: end; }
  .store-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shop-hero-inner { grid-template-columns: 1fr; }
  .sh-art { display: none; }
  .store-cards { grid-template-columns: 1fr; }
  .fs-inner { grid-template-columns: 1fr; text-align: left; gap: 14px; }
  .fs-brand { border-right: 0; padding-right: 0; }
  .fs-trust { justify-self: start; }
}
@media (max-width: 640px) {
  .shop-body .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .search { flex: 1 1 auto; }
  .stock-toggle { justify-content: flex-start; }
  .sh-feats li { padding-right: 12px; margin-right: 12px; font-size: 13px; gap: 8px; }
  .sh-ic { width: 38px; height: 38px; }
  .sh-ic svg { width: 18px; height: 18px; }
  .auth-card .seg { grid-template-columns: 1fr; }
  .auth-card .grid-2 { grid-template-columns: 1fr; }
  .chip-nav { display: none !important; }
  .chips-row::after { display: none; }
}
#app > *, .home > * { min-width: 0; }
#app > .wrap { width: 100%; }
.result-count { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.more-row { display: flex; justify-content: center; margin-top: 26px; }
.more-row .btn { min-width: 240px; min-height: 48px; }

/* ==========================================================================
   v5 — Auth card sits fully below the header band (no overlap)
   ========================================================================== */
.page-head.slim { height: clamp(56px, 8vh, 84px); }
.auth, .auth.auth-wide { margin-top: clamp(20px, 3.5vh, 36px); position: relative; z-index: 1; }

/* ==========================================================================
   v5 — Shop: choose pharmacy, PIN search, selection banner
   ========================================================================== */
.step-block { margin-bottom: 30px; }
.sec-row h2 { display: flex; align-items: center; gap: 12px; }
.step-no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(180deg, #12398a, #0a2463); color: #fff; font-size: 15px; font-weight: 800; }

.pin-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  background: #fff; border: 1px solid #e3ebf6; border-radius: 16px; padding: 14px 16px 14px 18px; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(10,31,77,.05);
}
.pin-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pin-copy > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #e9f2ff; color: var(--blue-600); flex-shrink: 0; }
.pin-copy b { display: block; font-size: 16px; }
.pin-copy span { display: block; font-size: 13.5px; color: var(--muted); }
.pin-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pin-ctrl .ifield { width: 220px; }
.pin-ctrl .ifield input { min-height: 46px; width: 100%; border-radius: 12px; border: 1.5px solid var(--line); padding: 10px 14px; font-weight: 700; letter-spacing: .06em; }
.pin-ctrl .ifield input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,116,230,.14); }
.pin-ctrl .ifield input::placeholder { letter-spacing: 0; font-weight: 500; }
.pin-ctrl .btn { min-height: 46px; }
.area-note { margin: -4px 0 14px; color: var(--ink-2); font-size: 14.5px; }

.store-card { cursor: pointer; text-align: left; }
.store-card:focus-visible { outline: 3px solid rgba(31,116,230,.45); outline-offset: 2px; }
.store-card.sel { border: 2px solid var(--blue-500); background: linear-gradient(180deg, #f6faff, #eef5ff); box-shadow: 0 10px 26px rgba(31,116,230,.16); }
.store-card.closed { opacity: .72; }
.sel-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--blue-600); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.sel-badge svg { width: 13px !important; height: 13px !important; }
.tag.near { background: #eaf1ff; color: #2556c4; }
.small-empty { grid-column: 1 / -1; padding: 30px 20px; }

.sel-banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border-radius: 16px;
  background: linear-gradient(90deg, #e8f8f1, #f2fbf7); border: 1px solid #b8e9d3;
}
.sel-banner > svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: #fff; color: var(--green-600); flex-shrink: 0; }
.sel-banner > div { flex: 1; min-width: 0; }
.sel-banner span { display: block; font-size: 12.5px; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .05em; }
.sel-banner b { display: block; font-size: 17px; }
.sel-banner small { display: block; color: var(--ink-2); font-size: 13.5px; }
.sel-banner .closed-txt { display: inline; color: var(--red); font-size: inherit; }
.sel-banner .btn { flex-shrink: 0; }
.sel-banner.none { background: #eef5ff; border-color: #c9dcf6; }
.sel-banner.none > svg { color: var(--blue-600); }
.sel-banner.none b { font-size: 16px; }
.sel-banner.none span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-2); font-size: 14px; }

.med .avail { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--blue-600); font-weight: 700; margin-top: 4px; }
.med .avail svg { width: 15px; height: 15px; }
.price .from { font-size: 12px; font-weight: 700; color: var(--muted); }
.pick-btn { white-space: nowrap; }
.pick-btn svg { width: 16px; height: 16px; }

.pick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pick-head b { display: block; font-size: 17px; }
.offer-list { display: grid; gap: 10px; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #e3ebf6; border-radius: 14px; background: #fff; }
.offer:hover { border-color: #b9d2f4; }
.offer.na { background: #f7f9fc; }
.offer-main { min-width: 0; }
.offer-main b { display: block; font-size: 15.5px; }
.offer-main > span { display: block; font-size: 13px; color: var(--muted); }
.offer-main .tags svg { width: 13px; height: 13px; }
.offer-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.offer-buy .price { font-size: 19px; }
.tag.near.in { background: var(--mint-100); color: var(--green-700); }

@media (max-width: 760px) {
  .pin-ctrl { width: 100%; }
  .pin-ctrl .ifield { flex: 1 1 160px; width: auto; }
  .pin-ctrl .btn { flex: 1 1 auto; }
  .sel-banner { flex-wrap: wrap; }
  .sel-banner .btn { width: 100%; }
  .offer { flex-direction: column; align-items: stretch; }
  .offer-buy { flex-direction: row; justify-content: space-between; align-items: center; }
}
.store-card { position: relative; }
.store-card.sel { grid-template-columns: auto minmax(0, 1fr); }
.store-card.sel .chev { position: absolute; top: 10px; right: 10px; }
.store-card.sel h3 { padding-right: 92px; }

/* v6 — no content overlaps the header band on any page */
.page-body { padding-top: clamp(20px, 3vh, 32px); }
.shop-body { padding-top: 0; }
.page-head { padding-bottom: 64px; }
.ifield.ta > svg { top: 14px; }
.ifield textarea { width: 100%; min-height: 96px; padding: 12px 14px 12px 44px; border-radius: 12px; border: 1.5px solid var(--line); resize: vertical; background: #fff; }
.ifield textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,116,230,.14); }
.ifield input:disabled { background: #f3f6fb; color: var(--muted); cursor: not-allowed; }

/* ==========================================================================
   v7 — Compact home hero (banner proportions) + slim footer bar
   ========================================================================== */
.home .hero {
  flex: 0 0 auto; --hero-wave: clamp(26px, 3.4vw, 52px);
  padding: clamp(22px, 3vw, 44px) 0 calc(var(--hero-wave) + 6px);
}
.home .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 3vw, 48px); }
.home .eyebrow { font-size: clamp(11px, .92vw, 14px); margin-bottom: clamp(8px, .9vw, 14px); font-weight: 600; letter-spacing: .14em; }
.home .hero h1 { font-size: clamp(26px, 2.7vw, 42px); line-height: 1.15; }
.home .hero-lead { font-size: clamp(14px, 1.08vw, 17px); margin-top: clamp(10px, 1.1vw, 16px); max-width: 31em; }
.home .hero-art img { height: clamp(150px, 18.5vw, 285px); }

.home .choices { flex: 1 0 auto; display: flex; align-items: center; padding: clamp(10px, 2vh, 22px) 0 clamp(26px, 4.5vh, 48px); }
.home .choices-grid { width: 100%; }

.foot-bar { background: #0a1f4e; border-top: 1px solid rgba(255,255,255,.06); }
.fb-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.fb-item { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 15.5px; white-space: nowrap; }
.fb-item b { font-weight: 800; }
.fb-item svg { width: 30px; height: 30px; color: #fff; flex-shrink: 0; }
a.fb-item:hover span { color: var(--cyan); }
.fb-div { width: 1.5px; height: 30px; background: rgba(255,255,255,.4); flex-shrink: 0; }
.fb-copy { color: #e6eeff; font-size: 14.5px; white-space: nowrap; }

@media (max-width: 1100px) {
  .fb-inner { flex-wrap: wrap; justify-content: center; }
  .fb-div:nth-of-type(3) { display: none; }
  .fb-copy { width: 100%; text-align: center; font-size: 13px; color: #b9c9e6; }
}
@media (max-width: 980px) {
  .home .hero-art img { height: auto; max-height: 300px; width: 100%; }
}
@media (max-width: 640px) {
  .fb-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .fb-div { display: none; }
  .fb-copy { text-align: left; }
  .fb-item { font-size: 14.5px; }
  .fb-item svg { width: 26px; height: 26px; }
}
.home .hero-art img { height: clamp(140px, min(18.5vw, 34vh), 285px); }
.home .hero { padding-top: clamp(18px, min(3vw, 5vh), 44px); }
@media (max-width: 980px) {
  .home .hero-inner { grid-template-columns: 1fr; gap: 18px; }
  .home .hero-art { justify-content: center; }
  .home .hero-art img { height: auto; width: 100%; max-height: 280px; }
}

/* ==========================================================================
   v8 — Inner page headers: clean straight edge (no decorative wave strip)
   ========================================================================== */
.page-head { padding: 30px 0 32px; }
.page-head .hero-wave { display: none; }
.shop-hero { padding-bottom: clamp(22px, 3.4vh, 36px); }
.shop-hero .hero-wave { display: none; }
.page-body { padding-top: clamp(24px, 3.4vh, 36px); }
.auth, .auth.auth-wide { margin-top: 0; }

/* ==========================================================================
   v8 — Shop: one unified search bar
   ========================================================================== */
.shop-body { padding-top: 0; }
.find-bar {
  display: flex; align-items: stretch; margin: 26px 0 28px; background: #fff; border: 1px solid #dfe8f4;
  border-radius: 16px; box-shadow: 0 8px 24px rgba(10,31,77,.08); padding: 6px; gap: 0; min-height: 62px;
}
.find-bar label { display: flex; align-items: center; gap: 10px; padding: 0 14px; margin: 0; cursor: text; min-width: 0; }
.find-bar label > svg { width: 20px; height: 20px; color: #5a6a88; flex-shrink: 0; }
.find-bar input:not([type=checkbox]) { border: 0; outline: none; background: transparent; width: 100%; min-width: 0; font-size: 16px; height: 48px; padding: 0; }
.find-bar input::placeholder { color: #8a99b4; }
.fb-pin { flex: 0 0 200px; border-right: 1px solid #e3ebf6; }
.fb-pin input { font-weight: 700; letter-spacing: .05em; }
.fb-pin input::placeholder { font-weight: 500; letter-spacing: 0; }
.fb-q { flex: 1 1 auto; }
.fb-stock { flex: 0 0 auto; cursor: pointer !important; border-left: 1px solid #e3ebf6; font-weight: 700; white-space: nowrap; }
.fb-stock input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.find-bar:focus-within { border-color: #9fbfe9; box-shadow: 0 0 0 4px rgba(31,116,230,.12), 0 8px 24px rgba(10,31,77,.08); }
.fb-go { border-radius: 12px; min-width: 130px; margin-left: 6px; font-size: 16px; }
.fb-go svg { width: 18px; height: 18px; }
.area-note { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; }
.area-note.tip { color: var(--muted); font-size: 14px; }
.area-note svg { width: 18px; height: 18px; color: var(--blue-600); flex-shrink: 0; }

/* ==========================================================================
   v8 — Medicine card footer
   ========================================================================== */
.med-foot { align-items: center; }
.price-wrap { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.price-wrap .from { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.price-wrap .off { font-size: 12.5px; color: var(--green-600); font-weight: 800; }
.med-foot.stack { flex-direction: column; align-items: stretch; gap: 12px; }
.med-foot.stack .price-wrap { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.med-foot.stack .price-wrap .from { width: 100%; }
.pick-btn { width: 100%; min-height: 44px; border-radius: 12px; font-size: 15px; }
.pick-btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   v8 — Login: split card
   ========================================================================== */
.login-page { display: flex; align-items: center; justify-content: center; padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(32px, 6vh, 64px); flex: 1 0 auto; }
.login-shell {
  width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; background: #fff;
  border-radius: 24px; overflow: hidden; border: 1px solid #e3ebf6; box-shadow: 0 24px 60px rgba(10,31,77,.14);
}
.login-side {
  position: relative; overflow: hidden; color: #fff; padding: 36px 36px 0; display: flex; flex-direction: column;
  background: radial-gradient(70% 60% at 80% 10%, rgba(0,144,238,.5), rgba(0,144,238,0) 70%), linear-gradient(160deg, #012957 0%, #01397a 55%, #0158b8 100%);
}
.ls-brand { display: flex; align-items: center; gap: 12px; }
.ls-brand img { height: 46px; width: auto; }
.ls-brand b { display: block; font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.ls-brand b i { font-style: normal; color: var(--cyan); }
.ls-brand small { display: block; font-size: 12px; font-style: italic; color: #cfdcf3; margin-top: 4px; }
.login-side h2 { margin: 30px 0 20px; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.login-side h2 span { color: var(--cyan); }
.ls-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ls-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #e6efff; }
.ls-perks li > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); flex-shrink: 0; }
.ls-perks svg { width: 18px; height: 18px; }
.ls-art { margin-top: auto; width: 112%; max-width: none; margin-left: -6%; padding-top: 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.login-form { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.lf-head { margin-bottom: 22px; }
.lf-head h1 { margin: 0; font-size: 30px; font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; }
.lf-head p { margin: 6px 0 0; color: var(--muted); }
.login-form .field { margin-bottom: 16px; }
.login-form .field > span { font-size: 14px; color: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lf-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lf-alt .btn { font-size: 14px; min-height: 46px; padding: 0 10px; }
.lf-alt .btn svg { width: 18px; height: 18px; }
.login-form .demo-box { margin-top: 16px; padding: 0; background: none; }
.login-form .demo-box summary { cursor: pointer; color: var(--blue-600); font-weight: 700; font-size: 14px; text-align: center; list-style: none; padding: 6px; }
.login-form .demo-box summary::-webkit-details-marker { display: none; }
.demo-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.demo-rows button { text-align: left; background: #f3f8fe; border: 1px solid #dfe8f4; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.demo-rows button:hover { border-color: #9fbfe9; background: #eaf3ff; }
.demo-rows b { display: block; font-size: 14px; }
.demo-rows span { display: block; font-size: 12px; color: var(--muted); }

/* ==========================================================================
   v8 — Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .find-bar { flex-wrap: wrap; padding: 8px; }
  .fb-pin { flex: 1 1 45%; border-right: 1px solid #e3ebf6; }
  .fb-stock { flex: 0 0 auto; border-left: 0; }
  .fb-q { order: -1; flex: 1 1 100%; border-bottom: 1px solid #e3ebf6; margin-bottom: 6px; }
  .fb-go { flex: 1 1 100%; margin: 8px 0 0; min-height: 48px; }
  .login-shell { grid-template-columns: 1fr; max-width: 520px; }
  .login-side { display: none; }
}
@media (max-width: 480px) {
  .lf-alt, .demo-rows { grid-template-columns: 1fr; }
  .fb-pin { flex: 1 1 100%; border-right: 0; }
  .fb-stock { padding: 10px 14px 4px; }
}

/* ==========================================================================
   v9 — Excel import dialog
   ========================================================================== */
.imp-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.imp-step { display: flex; gap: 12px; padding: 14px; border: 1px solid #e3ebf6; border-radius: 14px; background: #f8fbff; }
.imp-step > span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; }
.imp-step b { display: block; }
.imp-step small { display: block; color: var(--muted); margin: 2px 0 8px; }
.imp-file { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e3ebf6; border-radius: 12px; margin-bottom: 12px; }
.imp-file svg { width: 22px; height: 22px; color: var(--green-600); }
.imp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.imp-sum > div { border-radius: 12px; padding: 12px 14px; border: 1px solid #e3ebf6; }
.imp-sum b { display: block; font-size: 24px; font-weight: 900; line-height: 1.1; }
.imp-sum span { font-size: 13px; color: var(--muted); font-weight: 600; }
.imp-sum .s-new { background: var(--mint-50); border-color: #b8e9d3; } .imp-sum .s-new b { color: var(--green-700); }
.imp-sum .s-upd { background: #eef5ff; border-color: #c9dcf6; } .imp-sum .s-upd b { color: var(--blue-600); }
.imp-sum .s-err.has { background: var(--red-bg); border-color: #f2b9bf; } .imp-sum .s-err.has b { color: var(--red); }
.imp-table { max-height: 340px; overflow: auto; border: 1px solid #e3ebf6; border-radius: 12px; }
.imp-table .tbl th { position: sticky; top: 0; z-index: 1; }
.imp-table .tbl td { padding: 9px 12px; font-size: 14px; }
.bad-row td { background: #fff7f8; }
.err-txt { color: var(--red); font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.modal-foot .check { font-size: 14px; }
@media (max-width: 640px) {
  .imp-steps { grid-template-columns: 1fr; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .check { width: 100%; }
}

/* ==========================================================================
   v10 — OTP, forgot password, live indicator
   ========================================================================== */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
.otp input {
  width: 100%; height: 58px; text-align: center; font-size: 26px; font-weight: 800; color: var(--navy-800);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; caret-color: var(--blue-600);
}
.otp input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,116,230,.14); }
.otp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; flex-wrap: wrap; }
.link-plain { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-2); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link-plain svg { width: 16px; height: 16px; }
.link-plain.strong { color: var(--blue-600); }
.link-plain:hover { color: var(--blue-600); }
.otp-hint { text-align: center; margin: 12px 0 0; }
.otp-pw { margin-bottom: 6px; }
.dev-code { margin-bottom: 16px; font-weight: 500; }
.dev-code .code { font-size: 18px; letter-spacing: 3px; }
.dev-code code { background: rgba(255,255,255,.6); padding: 0 4px; border-radius: 4px; }
.lf-forgot { text-align: right; margin: -6px 0 14px; }
.lf-forgot a { font-size: 14px; font-weight: 700; }

.live-ind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-left: 12px; padding: 4px 10px; border-radius: 999px; background: #e7f8f0; color: var(--green-700); }
.live-ind i { width: 8px; height: 8px; border-radius: 50%; background: #18b06f; box-shadow: 0 0 0 0 rgba(24,176,111,.6); animation: livePulse 1.6s infinite; }
.live-ind .off { display: none; }
body.live-off .live-ind { background: #f1f3f7; color: var(--muted); }
body.live-off .live-ind i { background: #a7b2c6; animation: none; }
body.live-off .live-ind .on { display: none; }
body.live-off .live-ind .off { display: inline; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(24,176,111,0); } 100% { box-shadow: 0 0 0 0 rgba(24,176,111,0); } }
.tabs { align-items: center; }
.tabs .spacer { flex: 1; }
.tabs .live-ind { margin-right: 6px; flex-shrink: 0; }
.track-panel.flash { animation: flashPanel 1.4s ease-out; }
@keyframes flashPanel { 0% { box-shadow: 0 0 0 4px rgba(31,116,230,.45); } 100% { box-shadow: var(--shadow-sm); } }
.toast.live { background: #0c2a66; border-left: 4px solid var(--cyan); }
@media (max-width: 480px) { .otp { gap: 6px; } .otp input { height: 50px; font-size: 22px; } }

/* ==========================================================================
   v11 — Live delivery map (built-in, OpenStreetMap tiles)
   ========================================================================== */
.mm { position: relative; overflow: hidden; background: #e8eef3; touch-action: none; cursor: grab; user-select: none; }
.mm.dragging { cursor: grabbing; }
.mm-tiles, .mm-marks { position: absolute; inset: 0; }
.mm-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.mm-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mm-svg line { stroke: #0a2463; stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; opacity: .75; }
.mm-mark { position: absolute; left: 0; top: 0; will-change: transform; }
.mm-ctrl { position: absolute; right: 12px; top: 12px; display: grid; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(10,31,77,.18); z-index: 3; }
.mm-ctrl button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 20px; font-weight: 800; color: var(--ink); cursor: pointer; }
.mm-ctrl button + button { border-top: 1px solid var(--line); }
.mm-ctrl button:hover { background: var(--bg); }
.mm-recenter { position: absolute; left: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(10,31,77,.18); cursor: pointer; }
.mm-recenter svg { width: 16px; height: 16px; color: var(--blue-600); }
.mm-attr { position: absolute; right: 0; bottom: 0; z-index: 3; font-size: 10.5px; background: rgba(255,255,255,.85); padding: 2px 6px; border-top-left-radius: 6px; color: #444; }
.mm-attr a { color: #2556c4; }

.pin-wrap .pin { position: absolute; left: -19px; top: -46px; width: 38px; height: 46px; display: grid; place-items: start center; }
.pin { color: #fff; }
.pin::before { content: ""; position: absolute; left: 3px; top: 0; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(10,31,77,.3); border: 2.5px solid #fff; }
.pin.store::before { background: #1663d6; }
.pin.home::before { background: #d12a3c; }
.pin svg { position: relative; width: 17px; height: 17px; margin-top: 8px; }
.rider-wrap .rider-dot { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; }
.rider-dot svg { position: relative; width: 44px; height: 44px; filter: drop-shadow(0 6px 12px rgba(10,94,63,.45)); border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; background: #0f7b52; }
.rider-dot .pulse { position: absolute; inset: -14px; border-radius: 50%; background: rgba(20,150,106,.25); animation: riderPulse 1.8s ease-out infinite; }
@keyframes riderPulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

.trk { overflow: hidden; padding: 0; }
.trk-map { height: clamp(260px, 42vh, 420px); border-bottom: 1px solid var(--line); }
.trk-card { padding: 16px 20px 18px; display: grid; gap: 14px; }
.trk-rider { display: flex; align-items: center; gap: 12px; }
.trk-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #14966a, #0a5e3f); color: #fff; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.trk-who { flex: 1; min-width: 0; }
.trk-who b { display: block; font-size: 17px; }
.trk-who span { display: flex; align-items: center; flex-wrap: wrap; gap: 0; color: var(--muted); font-size: 13.5px; }
.trk-who .live-ind { margin-left: 8px; padding: 2px 8px; font-size: 10.5px; }
.trk-call { min-width: 96px; }
.trk-call svg { width: 18px; height: 18px; }
.trk-eta { background: #eef8f3; border: 1px solid #c7ecda; border-radius: 14px; padding: 12px 16px; }
.trk-eta b { display: block; font-size: 20px; color: var(--green-700); }
.trk-eta span { display: block; font-size: 14px; color: var(--ink-2); }
.warn-txt { color: var(--amber); font-style: normal; font-weight: 700; }
.ok-txt { color: var(--green-700); }
.pin-loc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 14px; }
.pin-loc .btn svg { width: 16px; height: 16px; }

.ride-share h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ride-share h3 svg { width: 22px; height: 22px; color: var(--green-600); }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; min-width: 0; min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 13px; color: var(--ink-2); background: #f8fbff; }
.rider-chips { margin-bottom: 14px; }
.rider-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.rider-chips .chip svg { width: 15px; height: 15px; }

/* delivery partner page */
.ride-page { max-width: 560px; }
.ride-card { padding: 22px; display: grid; gap: 16px; }
.ride-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ride-top h1 { margin: 0; font-size: 24px; }
.ride-sec { border: 1px solid #e3ebf6; border-radius: 14px; padding: 14px; }
.ride-sec > span { display: block; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.ride-sec b { display: block; font-size: 18px; margin-top: 2px; }
.ride-sec p { margin: 4px 0 10px; }
.ride-sec .row .btn { flex: 1; }
.ride-sec.cod { background: #fff8e6; border-color: #f3dfa6; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.ride-sec.cod span { text-transform: none; letter-spacing: 0; color: #7a4a00; }
.ride-sec.cod b { grid-row: span 2; font-size: 26px; color: #7a4a00; }
.ride-sec.cod small { color: #8a6a2a; }
.ride-live { border-radius: 14px; padding: 14px; background: #f3f6fb; border: 1px solid #e3ebf6; }
.ride-live.on { background: #e9f8f1; border-color: #b8e9d3; }
.rl-state { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin-bottom: 12px; }
.rl-state i { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: #a7b2c6; }
.ride-live.on .rl-state i { background: #18b06f; animation: livePulse 1.6s infinite; }
.rl-state span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) {
  .trk-map { height: 300px; }
  .trk-call span { display: none; }
  .trk-call { min-width: 0; width: 46px; padding: 0; }
  .link-box { flex-direction: column; }
}
/* v11 fixes */
.ride-page { width: 100%; }
.ride-card { grid-template-columns: minmax(0, 1fr); }
.ride-card > * { min-width: 0; }
.ride-top .status { flex-shrink: 0; }
.ride-sec .row { flex-wrap: nowrap; }
.ride-sec .row .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
.trk-who span { display: initial; }
.trk-who > span { display: flex; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.trk-who > span .live-ind { font-size: 10.5px; display: inline-flex; }
.ride-top { flex-wrap: wrap; }

/* ==========================================================================
   v12 — Footer (same design on every page)
   ========================================================================== */
.foot-site { padding: 14px 0 0; background: #0a1f4f; }
.foot-site .foot-wave svg { height: clamp(26px, 4vw, 54px); }
.fs-inner { display: grid; grid-template-columns: auto minmax(0, 1.2fr) auto auto; align-items: center; gap: 0; padding-top: 8px; padding-bottom: 16px; }
.fs-inner > * { padding: 4px clamp(14px, 2vw, 32px); }
.fs-inner > * + * { border-left: 1px solid rgba(255,255,255,.22); }
.fs-brand { padding-left: 0; border-right: 0; }
.fs-tag { margin: 0; font-size: 14.5px; color: #d4e0f5; line-height: 1.5; max-width: 44ch; }
.fs-mail { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap; }
.fs-mail svg { width: 30px; height: 30px; color: #fff; }
.fs-mail:hover span { color: var(--cyan); }
.fs-trust { padding-right: 0; }
.fs-trust b { font-size: 16px; }
.fs-copy { color: #c4d2ea; font-size: 13.5px; border-top: 1px solid rgba(255,255,255,.1); padding: 12px 16px 16px; }

/* header: account area like the design */
.acct:not(:empty)::before { content: ""; width: 1px; height: 30px; background: rgba(255,255,255,.28); margin: 0 6px 0 2px; }
.chev-d { display: inline-grid; margin-left: 2px; opacity: .85; }
.chev-d svg { width: 16px; height: 16px; }

/* ==========================================================================
   v12 — About & Features
   ========================================================================== */
.info-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(18px, 2.6vw, 36px) 0 clamp(40px, 5vw, 70px);
  background: radial-gradient(45% 80% at 78% 30%, rgba(0,144,238,.5), rgba(0,144,238,0) 70%), linear-gradient(95deg, #012957 0%, #01397a 45%, #014b9c 72%, #0158b8 100%); }
.ih-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px; }
.ih-copy h1 { margin: 0; font-size: clamp(30px, 3.3vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ih-copy h1 .accent { color: var(--cyan); }
.ih-copy p { margin: 12px 0 0; font-size: clamp(15px, 1.3vw, 20px); color: #e2ecff; max-width: 32em; line-height: 1.45; }
.ih-art { display: flex; justify-content: flex-end; }
.ih-art img { height: clamp(150px, 17vw, 250px); width: auto; max-width: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%); mask-composite: intersect; }
.ih-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.ih-wave svg { width: 100%; height: clamp(34px, 4.5vw, 64px); display: block; }
.info-body { padding-top: 6px; }
.mission { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.5vw, 36px);
  background: linear-gradient(180deg, #fff, #f6faff); border: 1px solid #e3ebf6; border-radius: 22px; padding: 22px clamp(18px, 3vw, 40px); box-shadow: 0 8px 26px rgba(10,31,77,.07); margin-bottom: 26px; }
.m-ico { padding-right: clamp(16px, 2.5vw, 36px); border-right: 1.5px solid #dbe6f4; }
.m-ico img { width: clamp(80px, 8vw, 116px); height: auto; }
.mission h2 { margin: 0 0 6px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; color: var(--navy-800); }
.mission p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud { background: #fff; border: 1px solid #e3ebf6; border-radius: 22px; overflow: hidden; box-shadow: 0 8px 26px rgba(10,31,77,.07); display: flex; flex-direction: column; }
.aud header { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.aud.cust header { background: linear-gradient(90deg, #dff6ee, #eefaf6); }
.aud.pharm header { background: linear-gradient(90deg, #e1edfc, #f0f6ff); }
.aud-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #fff; flex-shrink: 0; box-shadow: 0 4px 12px rgba(10,31,77,.08); }
.aud-ic svg { width: 30px; height: 30px; }
.aud.cust .aud-ic { color: var(--green-600); } .aud.pharm .aud-ic { color: var(--blue-600); }
.aud header h2 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 800; color: var(--navy-800); }
.aud header p { margin: 2px 0 0; color: var(--ink-2); }
.aud-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 12px; padding: 14px 20px 6px; flex: 1; }
.aud-body img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.nsteps { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid #e3ebf6; display: grid; gap: 16px; }
.nsteps li { display: flex; gap: 12px; align-items: flex-start; }
.nsteps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.aud.cust .n { background: #dff6ee; color: var(--green-700); border: 1.5px solid #9ddfc4; }
.aud.pharm .n { background: #e1edfc; color: #1553b8; border: 1.5px solid #a9c8f2; }
.nsteps b { display: block; font-size: 16px; color: var(--navy-800); }
.nsteps p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.aud-cta { padding: 14px 22px 20px; }
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fx { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; background: #fff; border: 1px solid #e3ebf6; border-radius: 20px; padding: 20px 14px 20px 20px; box-shadow: 0 8px 24px rgba(10,31,77,.07); transition: transform .2s, box-shadow .2s; }
.fx:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(10,31,77,.11); }
.fx-txt { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.fx-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #e6f0ff; color: var(--blue-600); flex-shrink: 0; }
.fx-ic.g { background: var(--mint-100); color: var(--green-600); }
.fx-ic svg { width: 24px; height: 24px; }
.fx h3 { margin: 2px 0 6px; font-size: 18px; font-weight: 800; color: var(--navy-800); line-height: 1.2; }
.fx p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.fx img { width: clamp(84px, 8vw, 120px); height: auto; }
.fx-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ==========================================================================
   v12 — Cart, payments, delivery OTP
   ========================================================================== */
.line { grid-template-columns: 48px minmax(0, 1fr) auto 90px; }
.line-ctrl { display: flex; align-items: center; gap: 8px; }
.icon-del { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: #8a97ad; display: grid; place-items: center; cursor: pointer; }
.icon-del svg { width: 18px; height: 18px; }
.icon-del:hover { color: var(--red); border-color: #f2b9bf; background: var(--red-bg); }
.pay-opts { margin-bottom: 0; }
.pay-opts .opt svg { color: var(--green-600); }
.st-payment_pending { background: #fff1d6; color: #9a5b00; }
.pay-panel { border: 2px solid #9fe0c4; background: linear-gradient(180deg, #f2fcf7, #fff); }
.pp-head { display: flex; gap: 14px; align-items: flex-start; }
.pp-head > svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--mint-100); color: var(--green-700); flex-shrink: 0; }
.pp-head h2 { margin: 0 0 4px; font-size: 20px; }
.pp-head p { margin: 0; color: var(--ink-2); }
.pp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pp-actions .btn { flex: 1 1 220px; }
.otp-card { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 14px 18px; border-radius: 16px; background: #0c2a66; color: #fff; }
.otp-card span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a9c6ff; }
.otp-card b { display: block; font-size: 30px; letter-spacing: 6px; font-weight: 900; color: var(--cyan); white-space: nowrap; }
.otp-card p { margin: 0; font-size: 14px; color: #dce8ff; }
.pay-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.test-pay { text-align: center; border: 1px solid #e3ebf6; border-radius: 16px; padding: 18px; }
.test-pay span { display: block; color: var(--muted); }
.test-pay b { display: block; font-size: 34px; color: var(--navy-800); }
.test-pay small { color: var(--muted); }
.otp4 { grid-template-columns: repeat(4, 64px); justify-content: center; }
.modal-foot .spacer { flex: 1; }
.ride-sec.cod.paid { background: var(--mint-50); border-color: #b8e9d3; }
.ride-sec.cod.paid span, .ride-sec.cod.paid b { color: var(--green-700); }

/* ==========================================================================
   v12 — Revenue, delivery partners
   ========================================================================== */
a.stat { color: inherit; display: block; }
.rev-tile { transition: border-color .2s, box-shadow .2s; }
.rev-tile:hover { border-color: #9fbfe9; box-shadow: var(--shadow); }
.rev-tile .k { display: flex; align-items: center; justify-content: space-between; }
.rev-tile .k svg { width: 16px; height: 16px; }
.rev-rows { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-top: 6px; font-size: 14px; }
.rev-rows span { color: var(--muted); }
.rev-rows b { text-align: right; font-size: 15px; }
.rev-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rev-seg { margin: 0; display: inline-grid; grid-template-columns: repeat(3, auto); background: #fff; border: 1px solid #e3ebf6; }
.rev-seg button { padding: 10px 18px; }
.rev-seg button.on { background: var(--navy-700); color: #fff; }
.rev-nav { display: flex; align-items: center; gap: 12px; }
.rev-nav b { display: block; font-size: 17px; }
.rev-nav span { display: block; font-size: 13px; color: var(--muted); }
.icon-nav { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #dfe8f4; background: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-nav svg { width: 18px; height: 18px; }
.icon-nav:disabled { opacity: .4; cursor: default; }
.stat .v.sm { font-size: 20px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 240px; padding: 26px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.bar { flex: 1 1 0; min-width: 34px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { display: block; width: 72%; max-width: 54px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #3f8ff0, #0c3a8f); }
.bar.future i { background: #e3ebf6; }
.bar .bv { font-size: 11.5px; font-weight: 800; color: var(--navy-700); margin-bottom: 4px; white-space: nowrap; }
.bar .bl { position: absolute; bottom: -24px; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.bar .bd { position: absolute; bottom: -40px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.bars.week { margin-bottom: 44px; } .bars.day, .bars.month { margin-bottom: 28px; }
.bars.day .bar { min-width: 30px; } .bars.day .bv { font-size: 10.5px; }
.tbl tr.tot td { background: #f8fbff; }
.rider-pick { display: grid; gap: 8px; margin-bottom: 14px; max-height: 300px; overflow: auto; }
.rp-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.rp-item input { position: absolute; opacity: 0; }
.rp-item.on { border-color: var(--blue-500); background: #f2f8ff; box-shadow: 0 0 0 3px rgba(31,116,230,.1); }
.rp-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #14966a, #0a5e3f); color: #fff; font-weight: 800; flex-shrink: 0; }
.rp-av svg { width: 18px; height: 18px; }
.rp-new .rp-av { background: #eef3fa; color: var(--blue-600); }
.rp-av.sm { width: 32px; height: 32px; font-size: 13px; }
.rp-txt { flex: 1; min-width: 0; }
.rp-txt b { display: block; }
.rp-txt small { color: var(--muted); }
.rp-cell { display: flex; align-items: center; gap: 10px; }

@media (max-width: 1180px) {
  .fs-inner { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; }
  .fs-inner > *:nth-child(3) { border-left: 0; padding-left: 0; }
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .ih-inner { grid-template-columns: 1fr; }
  .ih-art { justify-content: center; }
  .aud-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fs-inner { grid-template-columns: 1fr; }
  .fs-inner > * { border-left: 0 !important; padding-left: 0; padding-right: 0; }
  .mission { grid-template-columns: 1fr; text-align: left; }
  .m-ico { border-right: 0; padding-right: 0; }
  .aud-body { grid-template-columns: 1fr; }
  .aud-body img { max-height: 200px; }
  .nsteps { border-left: 0; padding-left: 0; }
  .fx-grid { grid-template-columns: 1fr; }
  .line { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .line .amt { grid-column: 2 / 4; text-align: left; }
  .otp-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .otp4 { grid-template-columns: repeat(4, 56px); }
  .rev-seg { width: 100%; }
  .rev-seg button { padding: 10px 8px; font-size: 13px; }
}

/* v12b — tighter footer + home fits one screen */
.foot-site { padding-top: 6px; }
.foot-site .foot-wave svg { height: clamp(22px, 3vw, 42px); }
.fs-inner { padding-top: 4px; padding-bottom: 10px; }
.fs-brand img { height: 40px; }
.fs-brand b { font-size: 22px; }
.fs-tag { font-size: 13.5px; }
.fs-mail { font-size: 16px; } .fs-mail svg { width: 26px; height: 26px; }
.fs-trust svg { width: 30px; height: 30px; }
.fs-copy { padding: 8px 16px 10px; font-size: 13px; }
.home .hero-art img { height: clamp(130px, min(17vw, 29vh), 270px); }
.home .hero { padding-top: clamp(14px, min(2.6vw, 4vh), 40px); }
.home .choices { padding-bottom: clamp(20px, 3.5vh, 40px); }
@media (max-height: 720px) and (min-width: 981px) {
  .home .fs-tag { display: none; }
  .home .fs-inner { grid-template-columns: auto auto auto; justify-content: space-between; }
  .home .fs-inner > *:nth-child(3) { border-left: 1px solid rgba(255,255,255,.22); padding-left: clamp(14px, 2vw, 32px); }
  .home .foot-site .foot-wave svg { height: 22px; }
  .home .hero-art img { height: clamp(120px, 24vh, 200px); }
  .home .choice { padding-top: 10px; padding-bottom: 10px; }
  .home .choice-art svg, .home .choice-art img { max-width: clamp(80px, 16vh, 150px); }
  .home .choices { padding-bottom: 18px; }
}
/* v12c — chart labels in normal flow, rider LIVE badge */
.bars { height: auto; align-items: stretch; padding: 16px 0 6px; border-bottom: 0; margin-bottom: 0 !important; }
.bar { height: auto; justify-content: flex-start; }
.bar .track { height: 190px; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--line); }
.bar .track i { width: 72%; max-width: 54px; }
.bar .bl, .bar .bd { position: static; margin-top: 6px; }
.bar .bd { margin-top: 0; }
.bar.future .bl, .bar.future .bd { color: #a7b2c6; }
.trk-who .live-ind { gap: 5px; font-size: 10.5px; padding: 2px 8px; }
.trk-who .live-ind b { font-size: 10.5px; }

/* ==========================================================================
   v13 — Home backgrounds (from the background asset pack), support page
   ========================================================================== */
.home .hero {
  background: url('/img/bg/hero.jpg') center bottom / cover no-repeat, linear-gradient(95deg, #012957 0%, #01397a 45%, #0158b8 100%);
}
.home .hero::before { display: none; }
.home .eyebrow { display: flex; align-items: center; gap: 12px; }
.home .eyebrow::before { content: ""; width: 5px; height: 1.6em; border-radius: 3px; background: var(--cyan); flex-shrink: 0; }
.home .choices { background: url('/img/bg/page.jpg') center / cover no-repeat, #eef6ff; }
.home .choice.pharm { background: url('/img/bg/card-blue.jpg') center / cover no-repeat, #e2eefc; }
.home .choice.order { background: url('/img/bg/card-mint.jpg') center / cover no-repeat, #e5f8f1; }

.info-hero { background: url('/img/bg/hero.jpg') center / cover no-repeat, linear-gradient(95deg, #012957 0%, #01397a 45%, #0158b8 100%); }
.ih-sub { display: flex; align-items: flex-start; gap: 10px; }
.ih-sub > svg { width: 26px; height: 26px; color: var(--cyan); flex-shrink: 0; margin-top: 1px; }
.ih-sub a { color: #fff; font-weight: 700; }

.sup-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sup-card { background: #fff; border: 1px solid #e3ebf6; border-radius: 22px; padding: 22px; box-shadow: 0 8px 26px rgba(10,31,77,.07); }
.sup-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sup-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(160deg, #e9f4ff, #d7eafe); }
.sup-ic svg { width: 34px; height: 34px; padding: 6px; border-radius: 10px; color: #fff; background: linear-gradient(160deg, #35b6f5, #1663d6); box-sizing: content-box; }
.sup-head h2 { margin: 0; font-size: clamp(21px, 1.9vw, 26px); font-weight: 800; color: var(--navy-800); }
.sup-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.faq-list { display: grid; gap: 10px; }
.faq2 { border: 1px solid #e3ebf6; border-radius: 14px; background: #fff; transition: background .2s, border-color .2s; }
.faq2[open] { background: #eef5ff; border-color: #d3e3f8; }
.faq2 summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary b { flex: 1; font-size: 16.5px; color: var(--navy-800); }
.faq2 summary img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.faq2[open] summary img { width: 52px; height: 52px; }
.fq-chev { display: grid; transition: transform .2s; color: var(--navy-800); }
.fq-chev svg { width: 18px; height: 18px; }
.faq2[open] .fq-chev { transform: rotate(90deg); }
.faq2 summary:hover b { color: var(--blue-600); }
.faq2 p { margin: -4px 0 0; padding: 0 76px 16px 46px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.sup-form .field > span { font-weight: 700; color: var(--ink); }
.sup-send { background: linear-gradient(90deg, #1a73e8, #0a2f7a); margin-top: 4px; }
.sup-send svg { width: 20px; height: 20px; }
@media (max-width: 980px) { .sup-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .faq2 p { padding: 0 16px 14px 16px; }
  .faq2 summary img, .faq2[open] summary img { width: 34px; height: 34px; }
  .sup-head { gap: 12px; } .sup-ic { width: 48px; height: 48px; } .sup-ic svg { width: 26px; height: 26px; }
}
.ih-copy p.ih-sub { max-width: 40em; }

/* ==========================================================================
   v14 — Home matched to the latest design + MedConnect chat assistant
   ========================================================================== */
.home .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.home .hero h1 { font-size: clamp(28px, min(3vw, 6.2vh), 50px); line-height: 1.14; letter-spacing: -.02em; }
.home .hero-lead { font-size: clamp(14.5px, min(1.22vw, 2.5vh), 20px); max-width: 37em; line-height: 1.55; color: #eaf2ff; }
.home .hero-art img { height: clamp(140px, min(20vw, 33vh), 310px); }
.home .choice { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 0; padding-block: clamp(14px, 3vh, 34px); border-radius: 18px; }
.home .choice > div:last-child { border-left: 1.5px solid rgba(23, 69, 140, .16); padding-left: clamp(16px, 2vw, 30px); }
.home .choice.order > div:last-child { border-left-color: rgba(12, 110, 76, .16); }
.home .choice-art img, .home .choice.order .choice-art img { max-width: clamp(110px, min(17vw, 27vh), 250px); filter: none; }
.home .choice h2 { font-size: clamp(22px, min(2.4vw, 4.6vh), 38px); margin-bottom: 8px; }
.home .choice p { font-size: clamp(13px, min(1.1vw, 2.1vh), 17px); line-height: 1.5; }
.home .btn-pill { border-radius: 10px; min-width: clamp(190px, 15vw, 256px); justify-content: space-between; }
@media (max-width: 760px) {
  .home .choice { grid-template-columns: 1fr; }
  .home .choice > div:last-child { border-left: 0; padding-left: 0; border-top: 1.5px solid rgba(23, 69, 140, .14); padding-top: 14px; }
  .home .choice-art img, .home .choice.order .choice-art img { max-width: 190px; }
}

/* chat assistant */
.cb-launch { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(140deg, #19c6e6 0%, #1f74e6 55%, #0a2b78 100%); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(10, 43, 120, .38), 0 0 0 4px rgba(255,255,255,.7); transition: transform .18s; }
.cb-launch:hover { transform: scale(1.06); }
.cb-launch svg { width: 28px; height: 28px; }
.cb-launch .cb-dot { position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.cb-tip { position: fixed; right: 92px; bottom: 32px; z-index: 150; background: #fff; color: #0b1a45; font-weight: 700; font-size: 14px;
  padding: 9px 14px; border-radius: 12px 12px 2px 12px; box-shadow: 0 8px 24px rgba(10,31,77,.18); animation: cbIn .3s; white-space: nowrap; }
body.cb-open .cb-tip, body.cb-hide .cb-tip { display: none; }
body.cb-hide .cb-launch, body.cb-hide .cb-panel { display: none; }
body:not(.cb-hide) .toasts { bottom: 92px; }
.cb-panel { position: fixed; right: 20px; bottom: 92px; z-index: 160; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px));
  background: #f4f8fe; border-radius: 20px; box-shadow: 0 24px 60px rgba(7, 26, 66, .32); display: none; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(31,116,230,.15); animation: cbIn .22s ease-out; }
body.cb-open .cb-panel { display: flex; }
@keyframes cbIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.cb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff;
  background: linear-gradient(100deg, #0a2463 0%, #1250b8 70%, #1f74e6 100%); }
.cb-av { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; border: 1.5px solid rgba(255,255,255,.35); }
.cb-av svg { width: 22px; height: 22px; color: #6fe6ff; }
.cb-head b { display: block; font-size: 16px; }
.cb-head small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .85; }
.cb-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.cb-head .cb-x { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.cb-head .cb-x svg { width: 18px; height: 18px; }
.cb-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.cb-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.cb-msg.bot { background: #fff; color: #1a2b4d; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(10,31,77,.06); align-self: flex-start; }
.cb-msg.me { background: linear-gradient(135deg, #1f74e6, #0f4fc0); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cb-msg a { color: #1258d0; font-weight: 700; }
.cb-msg p { margin: 0 0 6px; } .cb-msg p:last-child { margin: 0; }
.cb-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8aa3c7; animation: cbDot 1s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; } .cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.cb-items { display: grid; gap: 8px; margin-top: 8px; }
.cb-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: #f4f8fe; border: 1px solid #e0eaf7; border-radius: 12px; padding: 9px 11px; }
.cb-item b { font-size: 14px; color: #0b1a45; }
.cb-item small { grid-column: 1; color: #5b6b86; font-size: 12.5px; }
.cb-item .cb-r { grid-row: 1 / span 2; grid-column: 2; display: grid; justify-items: end; gap: 4px; }
.cb-item .cb-pr { font-weight: 800; color: #0b1a45; font-size: 14px; }
.cb-item button, .cb-item a.cb-go { border: 0; background: #1f74e6; color: #fff; font-weight: 700; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.cb-item button:disabled { background: #b8c4d6; cursor: default; }
.cb-st { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #e6efff; color: #1250b8; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 14px 10px; }
.cb-chips button { border: 1.5px solid #c9dbf5; background: #fff; color: #1250b8; font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 99px; cursor: pointer; }
.cb-chips button:hover { background: #e9f2ff; border-color: #1f74e6; }
.cb-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #e3ebf6; }
.cb-form input { flex: 1; min-width: 0; border: 1.5px solid #d6e2f2; border-radius: 12px; padding: 10px 13px; font: inherit; font-size: 14.5px; background: #f7faff; }
.cb-form input:focus { outline: none; border-color: #1f74e6; box-shadow: 0 0 0 3px rgba(31,116,230,.14); background: #fff; }
.cb-form button { width: 44px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #1f74e6, #0a2b78); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.cb-form button svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .cb-launch { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .cb-panel { right: 8px; left: 8px; width: auto; bottom: 78px; height: calc(100vh - 100px); height: calc(100dvh - 100px); }
  .cb-tip { display: none; }
}
@media print { .cb-launch, .cb-panel, .cb-tip { display: none !important; } }
.cb-tip { right: 20px; bottom: 92px; border-radius: 12px 12px 2px 12px; }
@media (min-width: 761px) and (max-width: 1640px) { body:not(.cb-hide) .foot-site .fs-inner { padding-right: 104px; } }
.home .hero h1 { font-size: clamp(26px, min(3vw, 5.4vh), 50px); }
.home .hero-lead { font-size: clamp(14px, min(1.22vw, 2.3vh), 20px); }
.home .hero-art img { height: clamp(120px, min(19vw, 27vh), 300px); }
.home .choice { padding-block: clamp(10px, 2vh, 30px); }
.home .choice-art img, .home .choice.order .choice-art img { max-width: clamp(100px, min(16vw, 22vh), 240px); }
.home .choice h2 { font-size: clamp(21px, min(2.4vw, 4.2vh), 38px); }
.home .choice p { font-size: clamp(13px, min(1.1vw, 1.95vh), 17px); }
@media (max-height: 700px) { .home .choices { padding-top: 6px; padding-bottom: 16px; } .home .choice-art img, .home .choice.order .choice-art img { max-width: clamp(90px, 19vh, 200px); } }

/* ==========================================================================
   v15 — Live chat (customer ↔ pharmacy)
   ========================================================================== */
.cb-badge { position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.cb-badge[hidden] { display: none; }
.cb-ini { font-size: 18px; color: #fff; }
.cb-livebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; background: #e8f1fe; border-bottom: 1px solid #d5e4f7; font-size: 12px; color: #4a5d7e; }
.cb-livebar[hidden] { display: none; }
.cb-livebar button { border: 0; background: none; color: #1250b8; font-weight: 800; font-size: 13px; cursor: pointer; padding: 2px 0; }
.cb-log[hidden] { display: none; }
body.cb-live .cb-chips { display: none; }
.lc-log { display: flex; flex-direction: column; gap: 6px; }
.lc-intro { font-size: 12.5px; color: #4a5d7e; background: #fff8e6; border: 1px solid #f6e3b0; border-radius: 12px; padding: 9px 11px; line-height: 1.45; margin-bottom: 4px; }
.lc-day { text-align: center; margin: 6px 0 2px; }
.lc-day span { font-size: 11.5px; font-weight: 700; color: #5b6b86; background: #e3ecf8; border-radius: 99px; padding: 3px 10px; }
.lc-msg { max-width: 82%; display: flex; flex-direction: column; }
.lc-msg.me { align-self: flex-end; align-items: flex-end; }
.lc-msg.them { align-self: flex-start; }
.lc-b { padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.lc-msg.me .lc-b { background: linear-gradient(135deg, #1f74e6, #0f4fc0); color: #fff; border-bottom-right-radius: 4px; }
.lc-msg.me .lc-b a { color: #fff; }
.lc-msg.them .lc-b { background: #fff; color: #1a2b4d; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(10,31,77,.07); }
.lc-msg small { font-size: 11px; color: #7a8aa6; margin: 3px 4px 0; display: inline-flex; gap: 5px; align-items: center; }
.lc-tick { font-style: normal; font-weight: 800; color: #9aa9c2; letter-spacing: -2px; }
.lc-tick.read { color: #13a3d6; }
.lc-typing { align-self: flex-start; display: inline-flex; gap: 4px; background: #fff; padding: 11px 13px; border-radius: 16px; border-bottom-left-radius: 4px; }
.lc-typing[hidden] { display: none; }
.lc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8aa3c7; animation: cbDot 1s infinite; }
.lc-typing i:nth-child(2) { animation-delay: .15s; } .lc-typing i:nth-child(3) { animation-delay: .3s; }

/* pharmacy Messages tab */
.lc-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; height: min(640px, calc(100vh - 230px)); min-height: 440px; }
.lc-list, .lc-thread { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.lc-lhead { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
#lcConvs { overflow-y: auto; flex: 1; }
.lc-none { padding: 18px 16px; }
.lc-conv { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border: 0; border-bottom: 1px solid #eef2f8; background: #fff; text-align: left; cursor: pointer; font: inherit; }
.lc-conv:hover { background: #f5f9ff; }
.lc-conv.on { background: #e9f2ff; box-shadow: inset 3px 0 0 #1f74e6; }
.lc-av { position: relative; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #1f74e6, #0a2b78); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.lc-av i.on { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.lc-cm { display: grid; min-width: 0; }
.lc-cm b { color: #0b1a45; font-size: 14.5px; }
.lc-cm small { color: #5b6b86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.lc-cr { display: grid; justify-items: end; gap: 4px; }
.lc-cr time { font-size: 11.5px; color: #7a8aa6; }
.lc-cr em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #22c55e; color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.lc-empty { margin: auto; text-align: center; padding: 30px; }
.lc-thead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lc-thead > div { flex: 1; min-width: 0; display: grid; }
.lc-thead small { color: #5b6b86; font-size: 12.5px; }
.lc-back { display: none; border: 0; background: #eef4fd; width: 34px; height: 34px; border-radius: 10px; font-size: 18px; cursor: pointer; color: #1250b8; }
.lc-orders { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px; background: #f7faff; border-bottom: 1px solid #eef2f8; }
.lc-orders a { font-size: 12.5px; font-weight: 700; color: #1a2b4d; text-decoration: none; background: #fff; border: 1px solid #dfe8f5; border-radius: 99px; padding: 4px 10px; }
.lc-thread .lc-log { flex: 1; overflow-y: auto; padding: 16px; background: #f4f8fe; }
.lc-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.lc-form textarea { flex: 1; resize: none; border: 1.5px solid #d6e2f2; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14.5px; max-height: 120px; background: #f7faff; }
.lc-form textarea:focus { outline: none; border-color: #1f74e6; background: #fff; box-shadow: 0 0 0 3px rgba(31,116,230,.14); }
@media (max-width: 760px) {
  .lc-wrap { grid-template-columns: 1fr; height: calc(100vh - 200px); height: calc(100dvh - 200px); }
  .lc-wrap .lc-thread { display: none; }
  .lc-wrap.open .lc-list { display: none; }
  .lc-wrap.open .lc-thread { display: flex; }
  .lc-back { display: grid; place-items: center; }
}
.cb-livebar span { white-space: nowrap; }

/* ==========================================================================
   v16 — Prescription AI (automatic verification, payment lock)
   ========================================================================== */
.pay-lock { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #f1f5fb; border: 1.5px dashed #b9c9e2; color: #334766; margin-bottom: 12px; }
.pay-lock[hidden] { display: none; }
.pay-lock svg { width: 26px; height: 26px; flex-shrink: 0; color: #5b6f92; }
.pay-lock div { display: grid; gap: 2px; font-size: 14px; }
.pay-opts.locked { opacity: .45; pointer-events: none; filter: grayscale(.6); }
#paySec.unlocked { animation: payUnlock 1.4s ease-out; }
@keyframes payUnlock { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 14px rgba(22, 163, 74, 0); } 100% { box-shadow: none; } }

.ai-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid; line-height: 1.45; }
.ai-card > svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; }
.ai-card > div { min-width: 0; flex: 1; }
.ai-card b { font-size: 15.5px; }
.ai-card p { margin: 4px 0 0; font-size: 14px; }
.ai-card.pass { background: #ecfdf3; border-color: #9fdfb8; color: #135c33; }
.ai-card.fail { background: #fff1f1; border-color: #f4b4b4; color: #8a1f1f; }
.ai-card.review { background: #fff8e8; border-color: #f2d48b; color: #7a5208; }
.ai-card.info { background: #eef5ff; border-color: #bcd4f5; color: #1d3f75; }
.ai-card.checking { background: #f2f7ff; border-color: #c4d8f6; color: #163a73; align-items: center; }
.ai-card .muted { color: inherit; opacity: .8; }
.ai-scan { position: relative; width: 46px; height: 56px; border-radius: 8px; background: #fff; border: 2px solid #8fb2ea; overflow: hidden; flex-shrink: 0;
  background-image: repeating-linear-gradient(#fff 0 7px, #dbe7f8 7px 9px); background-position: 0 6px; }
.ai-scan i { position: absolute; left: 0; right: 0; height: 14px; background: linear-gradient(transparent, rgba(31, 116, 230, .55), transparent); animation: aiScan 1.3s ease-in-out infinite alternate; }
@keyframes aiScan { from { top: -14px; } to { top: 56px; } }
.ai-steps { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
.ai-steps li { opacity: .45; padding-left: 20px; position: relative; }
.ai-steps li::before { content: "○"; position: absolute; left: 0; }
.ai-steps li.on { opacity: 1; font-weight: 700; }
.ai-steps li.on::before { content: "◌"; animation: cbDot 1s infinite; }
.ai-steps li.done { opacity: .85; }
.ai-steps li.done::before { content: "✓"; color: #16a34a; font-weight: 800; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-chips span { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #fff; border: 1px solid; }
.ai-chips span.ok { color: #157a3e; border-color: #a7e0bd; }
.ai-chips span.no { color: #b42318; border-color: #f3b4ae; }
.ai-chips i { font-weight: 600; opacity: .75; }
.ai-demo { font-size: 12.5px !important; margin-top: 8px !important; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.7); color: #5b4a12; }
.ai-kv { margin: 10px 0 0; font-size: 13.5px; color: #1a2b4d; }
.ai-reasons { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 3px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #1258d0; text-decoration: underline; cursor: pointer; }
#placeBtn:disabled { opacity: .6; cursor: not-allowed; }

/* ==========================================================================
   v17 — Proportions & responsive system
   One consistent header on every page, a calmer type scale, a narrower
   content width, and layouts tuned per breakpoint:
     ≥1600 large desktop · 1101–1599 laptop · 761–1100 tablet / small laptop
     ≤760 phone · ≤420 small phone · landscape phones (short height)
   ========================================================================== */
:root {
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 64px;
}
@media (min-width: 1600px) { :root { --wrap: 1440px; } }
body { font-size: 15px; }

/* ---- header: identical on every page ---- */
.topbar-inner { gap: clamp(12px, 2vw, 28px); }
.brand { gap: clamp(10px, 1.2vw, 18px); }
.brand-mark { height: calc(var(--header-h) - 18px); }
.brand-divider { height: calc(var(--header-h) - 30px); }
.brand-name { font-size: clamp(21px, 1.65vw, 28px); }
.brand-sub { font-size: clamp(10px, .72vw, 12px); margin-top: 3px; gap: 6px; }
.brand-sub i { width: clamp(12px, 1.2vw, 18px); }
.nav-wrap { gap: clamp(10px, 1.2vw, 18px); }
.mainnav { gap: clamp(2px, .5vw, 8px); }
.mainnav a { font-size: 15px; padding: 7px clamp(10px, .9vw, 14px); border-radius: 9px; }
.mainnav a svg { width: 18px; height: 18px; }
.acct { gap: 8px; }
.acct::before { content: ""; width: 1px; height: 26px; background: rgba(255,255,255,.18); margin-right: 4px; }
.acct-btn { height: 40px; padding: 0 13px; border-radius: 10px; font-size: 14.5px; }
.acct-btn svg { width: 18px; height: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; }
.icon-btn svg { width: 20px; height: 20px; }
.badge-dot { min-width: 18px; height: 18px; font-size: 11px; top: -5px; right: -5px; }
.nav-toggle { width: 42px; height: 42px; padding: 11px 10px; }

/* one collapse point for the menu, logged in or not, so the header never overflows */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-wrap {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: #0a1d49; padding: 12px var(--gutter) 18px; border-bottom: 1px solid #1f5aa8; gap: 12px;
    box-shadow: 0 18px 30px rgba(3, 16, 44, .35); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-wrap.open { display: flex; }
  .mainnav { flex-direction: column; align-items: stretch; gap: 2px; }
  .mainnav a { padding: 11px 12px; font-size: 16px; }
  .acct { flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
  .acct::before { display: none; }
  .acct-menu { position: static; }
  .nav-wrap .dropdown { position: static; width: 100%; min-width: 0; margin-top: 10px; box-shadow: none; }
  .acct-menu:has(.dropdown) { flex-basis: 100%; order: 9; }
  .nav-wrap .notif-list { max-height: 50vh; }
}
@media (max-width: 760px) { :root { --header-h: 58px; } .brand-sub i { display: none; } }
@media (max-width: 380px) { .brand-name { font-size: 19px; } .brand-divider { display: none; } .brand { gap: 8px; } }

/* ---- type scale ---- */
.page-head h1 { font-size: clamp(22px, 2vw, 30px); }
.sh-copy h1 { font-size: clamp(24px, 2.4vw, 36px); }
.sh-copy > p { font-size: clamp(14px, 1.05vw, 16.5px); }
.ih-copy h1 { font-size: clamp(26px, 2.7vw, 42px); }
.ih-copy p, .ih-copy p.ih-sub { font-size: clamp(14.5px, 1.1vw, 17px); }
.ih-art img { height: clamp(140px, 14.5vw, 220px); }
.mission h2 { font-size: clamp(20px, 1.8vw, 26px); }
.aud header h2 { font-size: clamp(19px, 1.6vw, 24px); }
.sup-head h2 { font-size: clamp(19px, 1.55vw, 23px); }
.auth-top h1, .lf-head h1 { font-size: clamp(22px, 1.9vw, 27px); }
.login-side h2 { font-size: clamp(22px, 2vw, 27px); margin: 24px 0 16px; }
.sec-row h2 { font-size: clamp(18px, 1.5vw, 21px); }
.stat .v { font-size: clamp(22px, 2vw, 28px); }
.price { font-size: 19px; }
.sum-row.total { font-size: 19px; }
.fs-brand b { font-size: 20px; }

/* ---- home ---- */
.home .hero h1 { font-size: clamp(26px, min(2.75vw, 5.2vh), 46px); }
.home .hero-lead { font-size: clamp(14px, min(1.08vw, 2.15vh), 18px); max-width: 36em; }
.home .hero-art img { height: clamp(130px, min(17vw, 30vh), 280px); }
.home .choice h2 { font-size: clamp(20px, min(2vw, 3.9vh), 32px); }
.home .choice p { font-size: clamp(13px, min(1vw, 1.9vh), 16px); }
.home .choice-art img, .home .choice.order .choice-art img { max-width: clamp(100px, min(14vw, 21vh), 220px); }
.home .btn-pill { min-width: clamp(180px, 13vw, 230px); font-size: clamp(14px, min(1.05vw, 2vh), 16.5px); }

/* ---- panels / cards: consistent rhythm ---- */
.panel-pad { padding: clamp(16px, 1.6vw, 24px); }
.panel h2 { font-size: clamp(18px, 1.45vw, 21px); }

/* ---- tablet (portrait & landscape) ---- */
@media (max-width: 1100px) {
  .ih-art img { height: clamp(130px, 18vw, 190px); }
  .aud-grid, .sup-grid { gap: 18px; }
}
@media (max-width: 980px) {
  .home .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

/* ---- phones ---- */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .home .hero-inner { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .home .hero-art { order: 2; justify-content: center; margin: 0 auto; }
  .home .hero-art img { height: auto; width: min(100%, 330px); max-height: 200px; }
  .home .hero h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .home .hero-lead { font-size: 15px; }
  .home .choice { grid-template-columns: 1fr; text-align: center; }
  .home .choice > div:last-child { border-left: 0; padding-left: 0; }
  .home .choice h2 { font-size: 22px; }
  .home .choice p { font-size: 14.5px; }
  .home .btn-pill { min-width: 0; }
  .ih-copy h1 { font-size: clamp(25px, 7vw, 30px); }
  .ih-art img { height: auto; width: min(100%, 300px); max-height: 170px; }
  .sh-copy h1 { font-size: clamp(24px, 6.8vw, 28px); }
  .page-head h1 { font-size: 22px; }

  /* cart rows: name full width, controls + price underneath */
  .line { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ico info info" "ico ctrl amt"; row-gap: 10px; }
  .line > :first-child { grid-area: ico; align-self: start; }
  .line > .line-info, .line > div:nth-child(2) { grid-area: info; }
  .line > .line-ctrl { grid-area: ctrl; }
  .line > .amt { grid-area: amt; grid-column: auto; text-align: right; min-width: 0; align-self: center; }
  .line .med-ico, .line .med-ico.img { width: 40px; height: 40px; }

  .cb-launch { width: 52px; height: 52px; right: 12px; bottom: 12px; }
  .cb-launch svg { width: 24px; height: 24px; }
  body:not(.cb-hide) .toasts { bottom: 76px; }
}

/* ---- landscape phones: short screens ---- */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 54px; }
  .home .hero h1 { font-size: 24px; }
  .home .hero-art img { max-height: 150px; height: auto; }
  .ih-art img { max-height: 130px; }
  .nav-wrap { max-height: calc(100vh - var(--header-h)); }
  .cb-panel { height: calc(100vh - 80px); bottom: 70px; }
}

/* ==========================================================================
   v18 — About / Features / Support matched to the reference designs
   ========================================================================== */
.info-hero { padding: clamp(16px, 2vw, 30px) 0 clamp(44px, 4.6vw, 66px); }
.ih-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(16px, 2vw, 32px); }
.ih-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 14px; border-radius: 999px;
  background: linear-gradient(90deg, #1f7ff0, #1a6fe0); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 6px 16px rgba(4, 30, 80, .35);
  font-size: clamp(12.5px, .95vw, 14px); font-weight: 700; color: #fff; letter-spacing: .01em; }
.ih-badge svg { width: 16px; height: 16px; }
.ih-sup .ih-badge { background: linear-gradient(90deg, #22a6ec, #1786de); }
.ih-copy h1 { font-size: clamp(26px, 2.65vw, 42px); line-height: 1.12; }
.ih-copy p.ih-sub { display: block; margin-top: 10px; font-size: clamp(14px, 1.08vw, 17px); max-width: 44em; color: #e4eeff; }
.ih-strip { display: inline-flex; flex-wrap: wrap; align-items: center; margin-top: clamp(12px, 1.4vw, 18px); border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: 6px 8px; background: rgba(3, 26, 72, .25); backdrop-filter: blur(2px); }
.ih-strip > span { display: inline-flex; align-items: center; gap: 9px; padding: 4px clamp(12px, 1.4vw, 22px); font-weight: 700; font-size: clamp(12.5px, .95vw, 14.5px); color: #fff; white-space: nowrap; }
.ih-strip > span + span { border-left: 1px solid rgba(255,255,255,.35); }
.ih-strip svg { width: 19px; height: 19px; flex-shrink: 0; }
.ih-strip a { color: #fff; font-weight: 700; }
.ih-art img { height: clamp(130px, 14vw, 215px); }
.ih-about .ih-art { position: relative; }
.ih-about .ih-art::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 86%; height: 34px; transform: translateX(-46%);
  background: radial-gradient(ellipse at center, rgba(120, 220, 255, .55) 0%, rgba(31, 160, 240, .25) 45%, transparent 72%); z-index: -1; border-radius: 50%; }
.ih-about .ih-art img, .ih-sup .ih-art img { position: relative; z-index: 1; }

/* page widths like the reference */
.info-hero.ih-about .wrap, .info-hero.ih-sup .wrap { max-width: 1260px; }
.info-hero.ih-about + .info-body, .info-hero.ih-sup + .info-body { max-width: 1260px; }
.info-body { padding-top: 0; margin-top: -6px; position: relative; z-index: 3; }

/* About */
.mission { padding: clamp(14px, 1.4vw, 20px) clamp(18px, 2vw, 30px); gap: clamp(16px, 2.2vw, 32px); border-radius: 20px; margin-bottom: clamp(16px, 1.8vw, 24px); }
.m-ico { border-right-color: #dbe6f4; }
.m-ico img { width: clamp(76px, 7vw, 104px); padding: 10px; border-radius: 16px; background: linear-gradient(160deg, #e8f2ff, #d6e8fd); box-shadow: inset 0 0 0 1px #d2e3f8; }
.mission h2 { font-size: clamp(20px, 1.75vw, 26px); margin-bottom: 4px; }
.mission p { font-size: clamp(13.5px, 1vw, 15px); line-height: 1.55; }
.aud-grid { gap: clamp(16px, 1.8vw, 24px); }
.aud { border-radius: 20px; }
.aud header { padding: clamp(10px, 1vw, 14px) clamp(14px, 1.4vw, 20px); gap: 14px; }
.aud-ic { width: clamp(44px, 3.8vw, 54px); height: clamp(44px, 3.8vw, 54px); }
.aud-ic svg { width: 24px; height: 24px; }
.aud header h2 { font-size: clamp(18px, 1.5vw, 23px); }
.aud header p { font-size: clamp(13px, .95vw, 14.5px); }
.aud-body { padding: clamp(10px, 1vw, 14px) clamp(14px, 1.4vw, 20px) clamp(12px, 1.2vw, 16px); gap: clamp(8px, 1vw, 14px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.aud-body img { max-height: clamp(150px, 15vw, 230px); }
.nsteps { gap: clamp(8px, .95vw, 14px); padding-left: clamp(10px, 1.2vw, 18px); }
.nsteps .n { width: 26px; height: 26px; font-size: 13px; }
.nsteps b { font-size: clamp(13.5px, 1vw, 15px); }
.nsteps p { font-size: clamp(12.5px, .88vw, 13.5px); margin-top: 1px; }

/* Features */
.fx-grid { gap: clamp(14px, 1.4vw, 20px); }
.fx { padding: clamp(16px, 1.5vw, 22px) clamp(10px, 1vw, 16px) clamp(16px, 1.5vw, 22px) clamp(16px, 1.5vw, 22px); border-radius: 20px; box-shadow: 0 8px 24px rgba(10,31,77,.07); }
.fx-txt { gap: clamp(10px, 1.1vw, 16px); }
.fx-ic { width: clamp(44px, 3.7vw, 54px); height: clamp(44px, 3.7vw, 54px); border-radius: 50%; background: #e8f0ff; color: #1663d6; }
.fx-ic.g { background: #e2f6ec; color: #13925f; }
.fx-ic.p { background: #ece9ff; color: #5a4fd8; }
.fx-ic svg { width: clamp(20px, 1.7vw, 25px); height: clamp(20px, 1.7vw, 25px); }
.fx h3 { font-size: clamp(16px, 1.3vw, 19.5px); margin: clamp(4px, .6vw, 10px) 0 6px; }
.fx p { font-size: clamp(13px, .95vw, 14.5px); line-height: 1.5; }
.fx img { width: clamp(80px, 8.5vw, 128px); }

/* Support */
.sup-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.sup-card { padding: clamp(16px, 1.6vw, 22px); border-radius: 20px; }
.sup-head { padding-bottom: clamp(10px, 1vw, 14px); margin-bottom: clamp(10px, 1vw, 14px); gap: 14px; }
.sup-ic { width: clamp(48px, 4.2vw, 58px); height: clamp(48px, 4.2vw, 58px); }
.sup-ic svg { width: clamp(26px, 2.2vw, 32px); height: clamp(26px, 2.2vw, 32px); padding: 5px; }
.sup-head h2 { font-size: clamp(18px, 1.55vw, 23px); }
.sup-head p { font-size: clamp(13px, .95vw, 14.5px); margin-top: 2px; }
.faq-list { gap: 8px; }
.faq2 summary { padding: clamp(8px, .8vw, 11px) 14px; }
.faq2 summary b { font-size: clamp(14px, 1.08vw, 16px); }
.faq2 summary img { width: 34px; height: 34px; }
.faq2[open] summary img { width: 44px; height: 44px; }
.faq2 p { padding: 0 70px 12px 44px; font-size: clamp(13px, .95vw, 14.5px); }
.sup-form .field { margin-bottom: clamp(8px, .9vw, 12px); }
.sup-form .field > span { font-size: 14px; margin-bottom: 4px; }
.sup-form .ifield input { min-height: clamp(38px, 3vw, 44px); }
.sup-form textarea { min-height: clamp(80px, 7vw, 100px); }
.sup-send { min-height: clamp(42px, 3.4vw, 50px); font-size: clamp(15px, 1.1vw, 17px); background: linear-gradient(90deg, #1c6fe0, #0a2d73); }

/* tablet / phone */
@media (max-width: 980px) {
  .ih-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
  .ih-strip { border-radius: 16px; }
}
@media (max-width: 760px) {
  .ih-inner { grid-template-columns: 1fr; }
  .ih-copy p.ih-sub br { display: none; }
  .ih-copy h1 br { display: none; }
  .ih-strip { display: flex; flex-direction: column; align-items: stretch; border-radius: 16px; padding: 4px 6px; }
  .ih-strip > span { white-space: normal; padding: 7px 10px; }
  .ih-strip > span + span { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .mission { grid-template-columns: 1fr; }
  .m-ico { border-right: 0; padding-right: 0; }
  .faq2 p { padding: 0 14px 12px 44px; }
}
/* v18b — density pass so each page fits one desktop screen, like the reference */
.info-hero { padding: clamp(12px, 1.3vw, 22px) 0 clamp(34px, 3.4vw, 52px); }
.ih-badge { margin-bottom: 8px; padding: 4px 13px; }
.ih-copy h1 { font-size: clamp(24px, 2.45vw, 39px); }
.ih-copy p.ih-sub { margin-top: 8px; font-size: clamp(13.5px, 1vw, 16px); }
.ih-strip { margin-top: clamp(10px, 1.1vw, 16px); padding: 4px 6px; }
.ih-strip > span { font-size: clamp(12px, .88vw, 13.5px); }
.ih-art img { height: clamp(120px, 12.8vw, 200px); }
.ih-feat .ih-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
.ih-feat .ih-copy p.ih-sub { max-width: none; }
.info-hero.ih-feat .wrap, .info-hero.ih-feat + .info-body { max-width: 1420px; }
.info-body { padding-bottom: clamp(18px, 2vw, 30px); }

.mission { padding: clamp(12px, 1.1vw, 16px) clamp(16px, 1.8vw, 26px); margin-bottom: clamp(14px, 1.4vw, 20px); }
.m-ico img { width: clamp(68px, 6vw, 92px); }
.mission h2 { font-size: clamp(19px, 1.6vw, 24px); }
.mission p { font-size: clamp(12.5px, .92vw, 14px); line-height: 1.5; }
.aud header h2 { font-size: clamp(17px, 1.4vw, 21px); }
.aud header p { font-size: clamp(12.5px, .88vw, 13.5px); }
.aud-body { padding-top: 8px; padding-bottom: 10px; }
.aud-body img { max-height: clamp(130px, 12.5vw, 195px); }
.nsteps { gap: clamp(6px, .65vw, 10px); }
.nsteps .n { width: 24px; height: 24px; font-size: 12px; }
.nsteps b { font-size: clamp(12.5px, .92vw, 14px); }
.nsteps p { font-size: clamp(11.5px, .8vw, 12.5px); line-height: 1.4; }

.fx { padding-top: clamp(12px, 1.15vw, 18px); padding-bottom: clamp(12px, 1.15vw, 18px); }
.fx h3 { font-size: clamp(15px, 1.15vw, 18px); margin: clamp(2px, .5vw, 8px) 0 5px; }
.fx p { font-size: clamp(12px, .86vw, 13.5px); line-height: 1.45; }
.fx img { width: clamp(76px, 8vw, 120px); }

.sup-card { padding: clamp(14px, 1.3vw, 20px); }
.sup-head { padding-bottom: 10px; margin-bottom: 10px; }
.sup-head p { font-size: clamp(12.5px, .88vw, 13.5px); }
.faq-list { gap: 6px; }
.faq2 summary { padding: clamp(6px, .6vw, 9px) 14px; }
.faq2 summary b { font-size: clamp(13.5px, .98vw, 15px); }
.faq2 summary img { width: 30px; height: 30px; }
.faq2[open] summary img { width: 40px; height: 40px; }
.faq2 p { padding: 0 60px 10px 44px; font-size: clamp(12.5px, .88vw, 13.5px); }
.sup-form .field { margin-bottom: clamp(6px, .6vw, 10px); }
.sup-form .field > span { font-size: 13.5px; margin-bottom: 3px; }
.sup-form .ifield input { min-height: clamp(36px, 2.7vw, 40px); padding-top: 6px; padding-bottom: 6px; }
.sup-form textarea { min-height: clamp(64px, 5.6vw, 84px); }
.sup-send { min-height: clamp(40px, 3vw, 46px); margin-top: 6px; }
/* v18c — compact footer like the reference, larger Features artwork */
.fs-tag { max-width: 54ch; font-size: clamp(12.5px, .92vw, 14px); }
.fs-inner { padding-top: 4px; padding-bottom: 12px; }
.fs-inner > * { padding: 2px clamp(12px, 1.8vw, 30px); }
.ih-feat .ih-art img { height: clamp(130px, 15vw, 235px); }
@media (min-width: 1101px) { .ih-feat .ih-art { margin-bottom: -14px; } }
@media (min-width: 1101px) { .fx { min-height: clamp(150px, 11.6vw, 186px); } .fx p { font-size: clamp(12.5px, .9vw, 14px); } }
.sup-head > div { min-width: 0; flex: 1; } .sup-head h2, .sup-head p { overflow-wrap: anywhere; } @media (max-width: 760px) { .sup-head p br { display: none; } .sup-grid { grid-template-columns: minmax(0, 1fr); } .sup-card { min-width: 0; } }
@media (max-width: 760px) {
  .ih-feat .ih-inner { grid-template-columns: 1fr; }
  .ih-art { justify-content: center; }
}
@media (max-width: 600px) {
  .aud-body { grid-template-columns: 1fr; justify-items: center; }
  .aud-body img { max-height: 170px; width: auto; }
  .nsteps { border-left: 0; padding-left: 0; justify-self: stretch; }
}

/* ==========================================================================
   v19 — Light redesign (Home glass cards, light page headers, light shop,
   flat footer, robot chat button)
   ========================================================================== */
body { background: #edf4fc; }
#app { background:
  radial-gradient(1200px 420px at 100% 0%, rgba(205, 226, 250, .7) 0%, transparent 60%),
  linear-gradient(180deg, #f2f7fd 0%, #e9f1fb 100%); }

/* ---- page header: light, blue accent bar (all inner pages) ---- */
.page-head {
  color: var(--navy-800, #0b1a45); overflow: visible;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  padding: clamp(18px, 2.4vw, 32px) 0 clamp(6px, 1vw, 14px);
}
.page-head .hero-wave, .page-head.slim .hero-wave { display: none; }
.page-head.slim { height: auto; padding: 10px 0 0; }
.page-head h1 { color: #0b1a45; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.15; }
.page-head h1 .accent { color: #1f74e6; }
.page-head p { color: #33476b; font-size: clamp(14px, 1.05vw, 16.5px); margin: 4px 0 0; max-width: 70ch; }
.page-head .crumbs, .page-head .crumbs a { color: #4a5f86; }
.page-head > .wrap > h1, .page-head > .wrap > p { border-left: 5px solid #1f74e6; padding-left: 18px; }
.page-head > .wrap > p { margin-top: 0; padding-top: 4px; }
.page-head > .wrap > h1 { border-radius: 2px; }
.ph-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ph-title { border-left: 5px solid #1f74e6; padding-left: 18px; min-width: 0; }
.ph-head h1 { font-size: clamp(26px, 2.5vw, 38px); }
.ph-head.inline .ph-title { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); border-left-width: 6px; padding-block: 4px; }
.ph-head.inline h1 { font-size: clamp(28px, 2.9vw, 44px); white-space: nowrap; }
.ph-head.inline p { margin: 0; padding-left: clamp(14px, 2vw, 28px); border-left: 1.5px solid #c8d8ec; }
.ph-art { height: clamp(60px, 6.5vw, 100px); width: auto; flex-shrink: 0; filter: drop-shadow(0 10px 18px rgba(31, 116, 230, .25)); }
.ph-head + .info-body { margin-top: 0; padding-top: clamp(10px, 1.4vw, 20px); }
.info-hero.ih-about + .info-body, .info-body { max-width: var(--wrap); }

/* ---- Home ---- */
.home2 { flex: 1 0 auto; display: flex; flex-direction: column; min-width: 0;
  background:
    radial-gradient(900px 340px at 10% 105%, rgba(150, 197, 245, .35) 0%, transparent 70%),
    radial-gradient(900px 360px at 95% 30%, rgba(170, 210, 250, .35) 0%, transparent 70%); }
.h2-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2.4vh, 24px); padding-block: clamp(12px, 2.8vh, 30px); width: 100%; }
.h2-card { position: relative; overflow: hidden; border-radius: clamp(20px, 2vw, 30px);
  background: linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(244,249,255,.82) 55%, rgba(232,242,253,.8) 100%);
  border: 2px solid rgba(255,255,255,.95); box-shadow: 0 18px 48px rgba(31, 95, 180, .13), inset 0 0 0 1px rgba(170, 205, 240, .45); }
.h2-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(12px, 2vw, 32px);
  padding: clamp(16px, 3.2vh, 34px) clamp(20px, 3.8vw, 60px); }
.h2-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; pointer-events: none; z-index: 0;
  background: radial-gradient(70% 100% at 25% 120%, rgba(160, 205, 250, .38) 0%, transparent 70%), radial-gradient(60% 90% at 90% 130%, rgba(160, 205, 250, .3) 0%, transparent 70%); }
.h2-copy, .h2-art { position: relative; z-index: 1; min-width: 0; }
.h2-badge { display: inline-block; padding: 5px 15px; border-radius: 999px; background: #d6e7fb; color: #0b1a45; font-weight: 800; font-size: clamp(13px, min(1vw, 2vh), 16px); }
.h2-copy h1 { margin: clamp(8px, 1.6vh, 16px) 0 0; color: #0b1a45; font-weight: 900; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(26px, min(2.95vw, 5.6vh), 50px); }
.h2-copy h1 .accent { color: #1f74e6; }
.h2-lead { margin: clamp(8px, 1.5vh, 14px) 0 0; color: #1e2f52; font-size: clamp(14px, min(1.12vw, 2.15vh), 18px); line-height: 1.5; max-width: 38em; }
.h2-feats { list-style: none; margin: clamp(12px, 2.4vh, 24px) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; }
.h2-feats li { display: flex; align-items: center; gap: 12px; padding-right: clamp(14px, 2vw, 28px); }
.h2-feats li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1.5px solid #cfdcee; }
.h2-feats b { color: #0b1a45; font-size: clamp(13.5px, min(1.05vw, 2vh), 17px); line-height: 1.2; }
.h2-ic { width: clamp(44px, min(3.8vw, 7vh), 62px); height: clamp(44px, min(3.8vw, 7vh), 62px); border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(160deg, #eef5fe, #d9e9fc); box-shadow: inset 0 0 0 1px #d0e2f8, 0 4px 10px rgba(31, 116, 230, .1); }
.h2-ic img { width: 72%; height: 72%; object-fit: contain; }
.h2-art { display: flex; justify-content: center; }
.h2-art img { width: 100%; height: auto; max-height: min(44vh, 400px); object-fit: contain; filter: drop-shadow(0 18px 30px rgba(31, 116, 230, .2)); transition: transform .3s; }
.h2-art:hover img { transform: translateY(-3px); }

.h2-actions { display: grid; grid-template-columns: 1fr 1fr; }
.h2-act { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.2vw, 34px); padding: clamp(14px, 3vh, 32px) clamp(18px, 3.4vw, 54px); }
.h2-act + .h2-act { border-left: 1.5px solid #d4e2f3; }
.h2-tile { width: clamp(76px, min(9.2vw, 16vh), 150px); aspect-ratio: 1; border-radius: clamp(16px, 1.6vw, 24px); display: grid; place-items: center;
  background: linear-gradient(160deg, #f1f7ff, #dbeafc); box-shadow: inset 0 0 0 1px #d3e3f7, 0 8px 22px rgba(31, 116, 230, .12); }
.h2-tile img { width: 68%; height: auto; }
.h2-act h2 { margin: 0; color: #0b1a45; font-weight: 900; font-size: clamp(19px, min(2vw, 3.8vh), 32px); letter-spacing: -.01em; }
.h2-act p { margin: 6px 0 clamp(10px, 2vh, 18px); color: #1e2f52; font-size: clamp(13.5px, min(1.08vw, 2vh), 17.5px); line-height: 1.45; max-width: 34em; }
.h2-btn { display: inline-flex; align-items: center; gap: 14px; height: clamp(42px, 6vh, 54px); padding: 0 clamp(20px, 2.2vw, 34px); border-radius: 10px; color: #fff;
  font-weight: 800; font-size: clamp(14.5px, min(1.15vw, 2.2vh), 18px); text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s; }
.h2-btn svg { width: 20px; height: 20px; }
.h2-btn.navy { background: linear-gradient(180deg, #13307a, #0c2263); box-shadow: 0 8px 20px rgba(12, 34, 99, .3); }
.h2-btn.blue { background: linear-gradient(180deg, #1c86f2, #0f6ae0); box-shadow: 0 8px 20px rgba(15, 106, 224, .32); }
.h2-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.h2-btn:focus-visible { outline: 3px solid #7cc0ff; outline-offset: 3px; }

@media (max-width: 980px) {
  .h2-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .h2-act { grid-template-columns: 1fr; text-align: left; }
  .h2-tile { width: 76px; }
}
@media (max-width: 760px) {
  .h2-hero { grid-template-columns: 1fr; }
  .h2-art img { max-height: 240px; }
  .h2-actions { grid-template-columns: 1fr; }
  .h2-act { grid-template-columns: auto minmax(0, 1fr); }
  .h2-act + .h2-act { border-left: 0; border-top: 1.5px solid #d4e2f3; }
  .h2-copy h1 { font-size: clamp(25px, 7vw, 32px); }
  .h2-copy h1 br { display: none; }
}
@media (max-width: 480px) {
  .h2-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .h2-feats li { flex-direction: column; text-align: center; padding: 0; gap: 6px; }
  .h2-feats li + li { padding: 0; border-left: 0; }
  .h2-feats b { font-size: 13px; }
  .h2-act { grid-template-columns: 1fr; }
  .h2-btn { width: 100%; justify-content: center; }
}

/* ---- Shop: light, search bar first ---- */
.shop-light { padding-top: clamp(16px, 2.2vw, 28px); }
.shop-light .find-bar { margin-top: 0; }

/* ---- footer: flat ---- */
.foot-flat { padding-top: clamp(14px, 1.6vw, 22px); }
.foot-flat .foot-wave { display: none; }

/* ---- chat button: robot ---- */
.cb-launch { background: #fff; box-shadow: 0 12px 28px rgba(10, 43, 120, .3), 0 0 0 3px #2b8cf0; padding: 0; overflow: visible; }
.cb-launch img { width: 86%; height: 86%; object-fit: contain; border-radius: 50%; }
.cb-launch .cb-dot { top: 2px; right: 2px; }
.cb-av { background: #fff; overflow: hidden; border: 2px solid rgba(255,255,255,.6); }
.cb-av img { width: 100%; height: 100%; object-fit: contain; }
/* v19b — content width as in the redesign (≈56px side margins on a laptop) */
:root { --wrap: 1440px; }
@media (min-width: 1600px) { :root { --wrap: 1560px; } }
.info-hero.ih-about + .info-body, .info-hero.ih-sup + .info-body, .info-hero.ih-feat + .info-body { max-width: var(--wrap); }
.h2-hero { grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); }
.h2-art img { max-height: min(46vh, 430px); }
@media (min-width: 761px) {
  .h2-act + .h2-act { border-left: 0; }
  .h2-act + .h2-act::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1.5px; background: #d4e2f3; }
  .h2-act { position: relative; }
}
/* v19c — keep Home on one screen at every laptop height */
.h2-wrap { gap: clamp(10px, 2vh, 22px); padding-block: clamp(10px, 2.2vh, 26px); }
.h2-hero { padding: clamp(12px, 2.6vh, 30px) clamp(20px, 3.6vw, 56px); }
.h2-art img { max-height: min(40vh, 420px); }
.h2-copy h1 { font-size: clamp(24px, min(2.95vw, 5vh), 50px); }
.h2-lead { font-size: clamp(13.5px, min(1.12vw, 2vh), 18px); }
.h2-feats { margin-top: clamp(10px, 2vh, 22px); }
.h2-ic { width: clamp(40px, min(3.8vw, 6.4vh), 60px); height: clamp(40px, min(3.8vw, 6.4vh), 60px); }
.h2-act { padding: clamp(12px, 2.4vh, 28px) clamp(18px, 3.2vw, 52px); }
.h2-tile { width: clamp(64px, min(9vw, 14vh), 146px); }
.h2-act p { margin-bottom: clamp(8px, 1.6vh, 16px); }
.h2-btn { height: clamp(40px, 5.6vh, 52px); }
@media (max-width: 980px) and (min-width: 761px) {
  .h2-act { grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
  .h2-tile { width: 64px; }
  .h2-act p { font-size: 13.5px; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .h2-feats b { font-size: 13px; }
  .h2-badge { padding: 3px 12px; }
  .h2-copy h1 { margin-top: 6px; }
}
/* v19d — compact footer + shorter hero art on short screens */
.foot-flat { padding-top: clamp(10px, 1.4vh, 18px); }
.foot-flat .fs-inner { padding-bottom: clamp(8px, 1.2vh, 14px); }
.foot-flat .fs-copy { padding: clamp(6px, 1vh, 10px) 0; font-size: 13px; }
.foot-flat .fs-brand img { height: clamp(34px, 5vh, 46px); width: auto; }
.h2-art img { max-height: min(36vh, 420px); }
@media (max-width: 1100px) and (min-width: 761px) {
  .foot-flat .fs-inner { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
  .foot-flat .fs-trust { display: none; }
  .h2-lead { font-size: 13.5px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .h2-feats { flex-wrap: nowrap; }
  .h2-feats li { padding-right: 10px; gap: 8px; }
  .h2-feats li + li { padding-left: 10px; }
  .h2-feats b { font-size: 13px; }
  .h2-ic { width: 38px; height: 38px; border-radius: 10px; }
  .h2-act { padding-block: clamp(10px, 2vh, 20px); }
}
/* tables scroll inside their panel instead of widening the page */
.panel, .ph-grid > *, .dash-grid > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* v20 — final match to the redesign: glow behind the Home artwork, roomier text on light inner pages */
.h2-art { position: relative; isolation: isolate; }
.h2-art::before { content: ""; position: absolute; inset: 6% 4% 2% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(64, 196, 255, .55), rgba(31, 140, 240, .22) 55%, transparent 100%); filter: blur(6px); }
@media (min-width: 1101px) {
  .mission h2 { font-size: clamp(22px, 1.75vw, 27px); }
  .mission p { font-size: clamp(13.5px, 1vw, 15px); }
  .aud header h2 { font-size: clamp(19px, 1.5vw, 23px); }
  .aud header p { font-size: clamp(13px, .95vw, 14.5px); }
  .nsteps b { font-size: clamp(13.5px, 1vw, 15px); }
  .nsteps p { font-size: clamp(12.5px, .9vw, 13.5px); }
  .nsteps { gap: clamp(9px, .9vw, 14px); }
  .aud-body img { max-height: clamp(160px, 14vw, 220px); }
  .sup-head h2 { font-size: clamp(19px, 1.55vw, 23px); }
  .faq2 summary { padding: clamp(8px, .75vw, 11px) 14px; }
  .faq2 summary b { font-size: clamp(14px, 1.05vw, 16px); }
  .faq2 p { font-size: clamp(13px, .95vw, 14.5px); }
  .sup-form .ifield input { min-height: clamp(38px, 2.9vw, 44px); }
  .sup-form textarea { min-height: clamp(74px, 6vw, 96px); }
  .fx p { font-size: clamp(13px, .95vw, 14.5px); }
  .fx h3 { font-size: clamp(16px, 1.25vw, 19px); }
}
@media (max-width: 760px) {
  .h2-hero { grid-template-columns: 1fr !important; }
  .h2-hero h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .h2-hero h1 br { display: none; }
  .h2-art { order: 2; margin-top: 4px; }
  .h2-art img { max-height: 220px; }
  .h2-feats { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; }
  .h2-feats li { flex-direction: column; text-align: center; gap: 6px; padding: 0 !important; border: 0 !important; min-width: 0; }
  .h2-feats li b { font-size: 12.5px; line-height: 1.25; }
  .h2-feats li b br { display: none; }
}
.seg[hidden] { display: none !important; }

/* v21 — centred footer (no logo), chat button stays above the footer, login fits one screen */
.foot-site .fs-inner { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; gap: 0; padding-top: 6px; padding-bottom: 12px; }
.foot-site .fs-inner > * { padding: 4px clamp(16px, 2.4vw, 40px); }
.foot-site .fs-inner > * + * { border-left: 1px solid rgba(255,255,255,.22); }
.foot-site .fs-tag { max-width: 46ch; margin: 0; }
.foot-site .fs-mail, .foot-site .fs-trust { justify-content: center; text-align: left; }
.foot-site .fs-copy { text-align: center; }
@media (max-width: 760px) {
  .foot-site .fs-inner { flex-direction: column; gap: 10px; }
  .foot-site .fs-inner > * + * { border-left: 0; }
  .foot-site .fs-inner > * { padding: 0; }
}

.cb-launch { bottom: calc(20px + var(--cb-lift, 0px)); transition: transform .18s, bottom .12s ease-out; }
.cb-panel { bottom: calc(92px + var(--cb-lift, 0px)); max-height: calc(100vh - 110px - var(--cb-lift, 0px)); }
@media (max-width: 560px) {
  .cb-launch { bottom: calc(12px + var(--cb-lift, 0px)); }
  .cb-panel { bottom: calc(76px + var(--cb-lift, 0px)); }
}
body:not(.cb-hide) .toasts { bottom: calc(92px + var(--cb-lift, 0px)); }

/* the Features header no longer has artwork */
.ph-head.inline .ph-inner { min-height: 0; }
/* login: compact enough that the footer is visible on a laptop screen */
@media (min-width: 761px) {
  .login-page { padding-top: clamp(14px, 2.4vh, 32px); padding-bottom: clamp(14px, 2.4vh, 32px); }
  .login-shell { max-width: 920px; border-radius: 22px; }
  .login-side { padding: clamp(18px, 3vh, 30px) clamp(22px, 2.4vw, 32px) 0; }
  .ls-brand img { height: 38px; } .ls-brand b { font-size: 21px; }
  .login-side h2 { margin: clamp(12px, 2.4vh, 24px) 0 clamp(10px, 1.8vh, 16px); font-size: clamp(21px, min(2vw, 3.4vh), 27px); }
  .ls-perks { gap: clamp(7px, 1.2vh, 12px); }
  .ls-perks li { font-size: 14px; } .ls-perks li > span { width: 32px; height: 32px; }
  .ls-art { padding-top: 10px; max-height: clamp(150px, 30vh, 260px); object-fit: contain; object-position: bottom; }
  .login-form { padding: clamp(18px, 3vh, 34px) clamp(24px, 3vw, 40px); }
  .lf-head { margin-bottom: clamp(10px, 2vh, 18px); }
  .lf-head h1 { font-size: clamp(22px, min(2vw, 3.6vh), 28px); }
  .login-form .field { margin-bottom: clamp(8px, 1.4vh, 14px); }
  .login-form .ifield input { min-height: clamp(40px, 5.6vh, 48px); }
  .lf-forgot { margin: -4px 0 clamp(8px, 1.4vh, 12px); }
  .or { margin: clamp(10px, 2vh, 18px) 0 clamp(8px, 1.4vh, 12px); }
  .lf-alt .btn { min-height: clamp(38px, 5.2vh, 44px); }
  .login-form .demo-box { margin-top: clamp(6px, 1.2vh, 12px); }
  .login-form #loginBtn, .login-form button[type=submit] { min-height: clamp(42px, 6vh, 50px); }
}
@media (min-width: 761px) and (max-height: 760px) {
  .ls-art { max-height: 18vh; }
  .login-side h2 { margin: 10px 0; }
  .ls-perks { gap: 6px; } .ls-perks li > span { width: 28px; height: 28px; }
  .lf-head p { font-size: 14px; }
  .login-page { padding-top: 10px; padding-bottom: 10px; }
  .foot-site .fs-inner { padding-bottom: 6px; } .foot-site .fs-copy { padding-top: 6px; padding-bottom: 6px; }
}
@media (min-width: 761px) and (max-height: 700px) { .ls-art { max-height: 15vh; } .lf-head { margin-bottom: 6px; } }
.foot-site .fs-tag { max-width: 58ch; } @media (max-height: 700px) { .foot-site .fs-tag { font-size: 12.5px; } .foot-site .fs-trust small { display: none; } }

/* ==========================================================================
   v22 — Feature cards: consistent top-aligned layout
   ========================================================================== */
.fx.fx2 { display: grid; grid-template-columns: minmax(0, 1fr) clamp(84px, 8vw, 120px); align-items: start; column-gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(18px, 1.6vw, 24px); min-height: 0; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fx.fx2:hover { transform: translateY(-4px); border-color: #cfe0f7; box-shadow: 0 18px 40px rgba(10, 31, 77, .12); }
.fx-main { min-width: 0; display: flex; flex-direction: column; gap: clamp(10px, 1vw, 14px); }
.fx-head { display: flex; align-items: center; gap: 12px; min-height: clamp(44px, 3.6vw, 52px); }
.fx2 .fx-ic { width: clamp(42px, 3.4vw, 50px); height: clamp(42px, 3.4vw, 50px); }
.fx2 h3 { margin: 0; font-size: clamp(16px, 1.22vw, 18.5px); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.fx2 p { margin: 0; font-size: clamp(13px, .92vw, 14.5px); line-height: 1.6; color: #44536f; text-wrap: pretty; hyphens: none; }
.fx2 .fx-art { width: 100%; height: auto; align-self: center; filter: drop-shadow(0 10px 16px rgba(31, 116, 230, .14)); transition: transform .25s ease; }
.fx.fx2:hover .fx-art { transform: scale(1.04) rotate(-1deg); }
@media (min-width: 1101px) { .fx.fx2 { min-height: 0; } }
@media (max-width: 560px) {
  .fx.fx2 { grid-template-columns: minmax(0, 1fr) 78px; padding: 16px; }
  .fx2 .fx-art { align-self: start; margin-top: 4px; }
}

/* ==========================================================================
   v23 — Mobile polish
   ========================================================================== */
/* page header: title and text stack on phones */
@media (max-width: 760px) {
  .ph-head.inline .ph-title { display: block; }
  .ph-head.inline h1 { font-size: clamp(26px, 7vw, 32px); white-space: normal; }
  .ph-head.inline p { padding-left: 0; border-left: 0; margin-top: 6px; }
}

/* dashboard tabs: every tab visible on phones (2-row pill grid) */
@media (max-width: 760px) {
  #tabs.tabs { display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; padding: 6px; }
  #tabs.tabs a { flex: 1 1 calc(33.33% - 6px); justify-content: center; text-align: center; padding: 9px 6px; font-size: 13.5px; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
}

/* tables become stacked cards on phones */
@media (max-width: 600px) {
  .table-wrap:has(.tbl-stack) { overflow: visible; border: 0; background: none; }
  .tbl-stack thead { display: none; }
  .tbl-stack, .tbl-stack tbody { display: block; width: 100%; }
  .tbl-stack tr { display: block; background: #fff; border: 1px solid #e3ebf6; border-radius: 14px; padding: 10px 14px; margin: 0 0 10px; box-shadow: 0 4px 14px rgba(10, 31, 77, .05); }
  .tbl-stack tr.click:active { background: #f3f8ff; }
  .tbl-stack td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 6px 0 !important; border: 0 !important; text-align: right; min-width: 0; }
  .tbl-stack td + td { border-top: 1px dashed #e6edf7 !important; }
  .tbl-stack td::before { content: attr(data-label); flex-shrink: 0; font-size: 12px; font-weight: 700; color: #6b7a96; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .tbl-stack td:first-child { display: block; text-align: left; padding-bottom: 8px !important; font-size: 15px; }
  .tbl-stack td:first-child::before { display: none; }
  .tbl-stack td[data-label=""]::before { display: none; }
  .tbl-stack td > * { min-width: 0; }
  .tbl-stack td.num { text-align: right; }
  .panel > .table-wrap:has(.tbl-stack) { padding: 12px; }
}

/* premium touch: tap feedback & tap targets */
@media (hover: none) {
  .btn:active, .h2-btn:active, .acct-btn:active, .icon-btn:active { transform: scale(.98); }
}
@media (max-width: 760px) {
  .btn, .acct-btn { min-height: 44px; }
  .ifield input, .ifield textarea, input.input, select { font-size: 16px; } /* no auto-zoom on iPhone when typing */
}
html { -webkit-tap-highlight-color: rgba(31, 116, 230, .12); scroll-behavior: smooth; }
:focus-visible { outline: 3px solid rgba(31, 116, 230, .45); outline-offset: 2px; }
@media (max-width: 600px) {
  .tbl-stack td { display: block; text-align: right; overflow: hidden; }
  .tbl-stack td::before { float: left; margin-right: 14px; line-height: 1.9; }
  .tbl-stack td .muted, .tbl-stack td .small { display: block; }
  .tbl-stack td:first-child { text-align: left; }
}
