/* Beauty Ghar design system v2 (docs/DESIGN.md): neutral surfaces, one brand accent, light default + dark, fluid full-width layout.
   Solid colours only, 1px hairlines, shadows only on floating layers. Animations use transform and opacity, 150-250ms. */

/* ---------- fonts (self-hosted, swap, with metric-matched fallbacks so text does not jump) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans.7660bd9909fb.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/Mukta-latin-400.5fd54c8638ba.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Mukta"; src: url("../fonts/Mukta-latin-600.f1c753473335.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Mukta"; src: url("../fonts/Mukta-latin-700.a4069cc51529.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Mukta"; src: url("../fonts/Mukta-devanagari-400.0177c1af85b0.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; src: url("../fonts/Mukta-devanagari-600.cd9e14260735.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; src: url("../fonts/Mukta-devanagari-700.aa0e47f3623e.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "BG Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"); size-adjust: 104.5%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

/* ---------- tokens (design system v2, docs/DESIGN.md). Hex literals live ONLY in these three blocks. ---------- */
:root {
  color-scheme: light;
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F5F5F6; --surface-3: #ECECEF; --bg-app: #F5F5F6;
  --ink: #1C1411; --ink-2: #4B4B55; --muted: #6B6B78;
  --line: #E7E7EB; --line-2: #F0F0F3; --line-strong: #C9C9D1;
  --brand: #B3124A; --brand-d: #8F0E3B; --on-brand: #FFFFFF; --focus: #B3124A;
  --ok: #1E7A57; --warn: #8F6200; --bad: #B3261E; --on-status: #FFFFFF; --star: #E9A100;
  --ok-t: #E6F4EC; --ok-b: #A9D6BF; --warn-t: #FFF3D1; --warn-b: #E8C768; --bad-t: #FDECEA; --bad-b: #F0B3AD;
  --warn-fill: #F5B82E; --on-warn-fill: #1C1411;
  --info: #1F5FB4; --info-t: #E8F0FB; --info-b: #A9C4EA;
  --scrim: rgba(10,10,14,.42); --on-photo: #FFFFFF; --knob: #FFFFFF;
  --shadow: 0 1px 2px rgba(10,10,14,.06), 0 8px 24px -8px rgba(10,10,14,.18);
  --shadow-up: 0 -1px 2px rgba(10,10,14,.06), 0 -8px 24px -8px rgba(10,10,14,.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0E11; --surface: #16161A; --surface-2: #1E1E24; --surface-3: #27272F; --bg-app: #0E0E11;
    --ink: #F3F3F5; --ink-2: #C9C9D1; --muted: #8F8F9B;
    --line: #2B2B33; --line-2: #222229; --line-strong: #43434E;
    --brand: #F2557F; --brand-d: #E94A73; --on-brand: #14141A; --focus: #F2557F;
    --ok: #4CC39B; --warn: #E3B341; --bad: #F28B82; --on-status: #0E0E11; --star: #F2B71F;
    --ok-t: #12372B; --ok-b: #23694F; --warn-t: #3A2F0D; --warn-b: #7E6315; --bad-t: #3B1A18; --bad-b: #7E3631;
    --warn-fill: #E3B341; --on-warn-fill: #1C1411;
    --info: #7DAAF0; --info-t: #14284A; --info-b: #2F5596;
    --scrim: rgba(0,0,0,.6); --knob: #F3F3F5;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6);
    --shadow-up: 0 -1px 2px rgba(0,0,0,.4), 0 -8px 24px -8px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0E11; --surface: #16161A; --surface-2: #1E1E24; --surface-3: #27272F; --bg-app: #0E0E11;
  --ink: #F3F3F5; --ink-2: #C9C9D1; --muted: #8F8F9B;
  --line: #2B2B33; --line-2: #222229; --line-strong: #43434E;
  --brand: #F2557F; --brand-d: #E94A73; --on-brand: #14141A; --focus: #F2557F;
  --ok: #4CC39B; --warn: #E3B341; --bad: #F28B82; --on-status: #0E0E11; --star: #F2B71F;
  --ok-t: #12372B; --ok-b: #23694F; --warn-t: #3A2F0D; --warn-b: #7E6315; --bad-t: #3B1A18; --bad-b: #7E3631;
  --warn-fill: #E3B341; --on-warn-fill: #1C1411;
    --info: #7DAAF0; --info-t: #14284A; --info-b: #2F5596;
  --scrim: rgba(0,0,0,.6); --knob: #F3F3F5;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-up: 0 -1px 2px rgba(0,0,0,.4), 0 -8px 24px -8px rgba(0,0,0,.6);
}
/* theme-independent: scale, layout, legacy aliases (all NEUTRAL) */
:root {
  --brand-t: var(--brand);
  /* legacy aliases: old markup must not show tinted colour */
  --canvas: var(--bg); --rose: var(--brand); --rose-d: var(--brand-d); --rose-s: var(--surface-2); --plum: var(--ink);
  --brand-s: var(--surface-2); --pine: var(--ok); --pine-s: var(--surface-2); --on-pine: var(--on-status);
  --leaf: var(--ok); --leaf-s: var(--surface-2); --gold: var(--star); --gold-s: var(--surface-2); --on-gold: var(--ink);
  --sky: var(--ink-2); --sky-s: var(--surface-2); --danger: var(--bad); --danger-s: var(--surface-2); --on-danger: var(--on-status);
  --hero-bg: var(--surface-2);
  --r-s: 8px; --r-field: 10px; --r-m: 14px; --r-l: 20px; --r-p: 999px; --r-btn: 10px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --pad: clamp(16px, 4vw, 64px); --read: 70ch;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --ribbon-h: 40px; --top-h: 56px; --nav-h: 60px; --chrome-h: calc(var(--ribbon-h) + var(--top-h));
  --font: "Plus Jakarta Sans", "Mukta", "BG Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  --fs-1: 12px; --fs-2: 13px; --fs-3: 15px; --fs-4: 17px; --fs-5: 22px; --fs-6: 30px; --fs-7: 44px;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1); --ease: var(--ease-out);
  --dur-1: .14s; --dur-2: .22s; --dur-3: .34s;
  --swiper-theme-color: var(--brand); --swiper-navigation-color: var(--ink); --swiper-navigation-size: 14px;
  --swiper-pagination-color: var(--ink); --swiper-pagination-bullet-inactive-color: var(--ink); --swiper-pagination-bullet-inactive-opacity: .25;
  --swiper-pagination-bullet-size: 6px; --swiper-pagination-bullet-horizontal-gap: 3px;
}
@media (min-width: 900px) { :root { --top-h: 68px; --ribbon-h: 40px; } }

/* ---------- base ---------- */
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; background: var(--bg); scroll-padding-top: calc(var(--chrome-h) + 12px); }
body { margin: 0; word-spacing: .1em; font: 400 var(--fs-3)/1.55 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + var(--safe-b)); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.staff { padding-bottom: 0; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a, button, [role="button"], input, select, textarea, summary, label { touch-action: manipulation; }
button, input, select, textarea { font: inherit; color: inherit; word-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--on-brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-6); line-height: 1.12; letter-spacing: -.028em; font-weight: 800; }
h2 { font-size: var(--fs-5); letter-spacing: -.022em; } h3 { font-size: var(--fs-4); letter-spacing: -.012em; } h4 { font-size: var(--fs-3); letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
main { display: block; min-height: 50vh; outline: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-btn); font-weight: 700; }
.skip:focus { top: calc(8px + var(--safe-t)); }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.noscript { margin: 8px var(--pad); }
.price, .num, .tnum, .stat b, .kpi b, .line, .tbl td, .pn-tbl td { font-variant-numeric: tabular-nums; }

/* icons: 16 (sm) / 20 / 24 (lg) / 40 (xl) */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 16px; height: 16px; } .i.lg { width: 24px; height: 24px; } .i.xl { width: 40px; height: 40px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.illus { width: min(100%, 220px); height: auto; aspect-ratio: 4 / 3; margin: 0 auto; }

/* ---------- utilities ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); } .small { font-size: var(--fs-2); } .tiny { font-size: var(--fs-1); }
.bold { font-weight: 700; } .center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; } .upper { text-transform: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; } .stack-l > * + * { margin-top: 24px; }
.grid { display: grid; gap: 12px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; }
.p-3 { padding: 12px; } .p-4 { padding: 16px; } .w-100 { width: 100%; }
.hide { display: none !important; } .only-d { display: none !important; }
.surface { background: var(--surface); }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.lazy-block { content-visibility: auto; contain-intrinsic-size: auto 320px; }
.tint { background: var(--surface-2); }

/* ---------- full-width layout system ----------
   .page / .wrap : fluid horizontal padding, never a centred box.   .read : reading-width cap for long text only.
   .grid-auto    : auto-fill grid (--min column width, --gap).      .split : main + aside, fluid columns.
   .bleed        : full-bleed child of a padded parent (photos).    .section : vertical rhythm.  .rail : swipe row. */
.page, .wrap { width: 100%; max-width: none; margin: 0; padding-inline: var(--pad); }
.page { padding-block: var(--s-5) var(--s-7); }
.wrap .wrap, .page .wrap, .wrap .page, .page .page { padding-inline: 0; }
.read { max-width: var(--read); }
.bleed { margin-inline: calc(var(--pad) * -1); width: auto; }
.section { padding-block: clamp(24px, 4vw, 56px) 0; }
.section > .wrap > .head, .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--s-4); }
.head a { color: var(--brand-t); font-weight: 700; font-size: var(--fs-2); }
.page-head { padding: var(--s-4) 0 var(--s-2); }
.large-title { font-size: var(--fs-6); line-height: 1.1; letter-spacing: -.03em; padding: 12px 0 6px; }
.grid-auto { display: grid; gap: var(--gap, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 240px)), 1fr)); }
.grid-auto.fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 240px)), 1fr)); }
.grid-auto.sm { --min: 160px; } .grid-auto.md { --min: 260px; } .grid-auto.lg { --min: 340px; }
.split { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.split > * { min-width: 0; }
.cols-2 { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }

/* ---------- chrome: location ribbon + header ---------- */
.chrome { position: sticky; top: 0; z-index: 40; background: var(--surface); padding-top: var(--safe-t); view-transition-name: topbar; }
.loc-ribbon { height: var(--ribbon-h); display: flex; align-items: center; gap: 8px; padding-inline: var(--pad); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--fs-2); line-height: 1; color: var(--ink-2); overflow: hidden; view-transition-name: locribbon; }
.loc-ribbon .lr-pin { color: var(--ink); }
.lr-main { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; }
.lr-main::before { content: "Delivering to"; color: var(--ink-2); white-space: nowrap; flex: none; }
.loc-ribbon:not([data-state="set"]) .lr-main::before { content: none; }
.lr-label { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.loc-ribbon:not([data-state="set"]) .lr-label { font-size: 0; }
.loc-ribbon:not([data-state="set"]) .lr-label::after { content: "Choose your location to see experts near you"; font-size: var(--fs-2); font-weight: 600; }
.lr-acc { color: var(--ink-2); font-size: var(--fs-1); white-space: nowrap; flex: none; padding-left: 8px; border-left: 1px solid var(--line-strong); line-height: 14px; }
.lr-zone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; color: var(--ink); font-size: var(--fs-1); font-weight: 600; }
.lr-zone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.lr-zone[data-state="ok"]::before, .lr-zone.ok::before { background: var(--ok); } .lr-zone[data-state="soon"]::before, .lr-zone.soon::before, .lr-zone.warn::before { background: var(--warn); } .lr-zone[data-state="no"]::before, .lr-zone[data-state="out"]::before, .lr-zone.out::before, .lr-zone.bad::before { background: var(--bad); }
.lr-sp { flex: 1; min-width: 0; }
.lr-btn { border: 0; background: transparent; color: var(--brand-t); font-weight: 700; font-size: var(--fs-2); min-height: 32px; padding: 0 10px; border-radius: var(--r-p); white-space: nowrap; flex: none; transition: background-color var(--dur-1); }
.lr-btn:hover { background: var(--line); }
.lr-icon { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; transition: background-color var(--dur-1); }
.lr-icon:hover { background: var(--line); } .lr-icon.spin .i, .lr-icon.loading .i, .lr-icon.is-busy .i { animation: spin .8s linear infinite; }
.lr-icon[disabled] { opacity: .6; }

.topbar { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
html.scrolled .chrome { box-shadow: var(--shadow); }
.chrome { transition: box-shadow var(--dur-2); }
.topbar .bar { height: var(--top-h); display: flex; align-items: center; gap: 8px; padding-inline: var(--pad); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; flex: none; }
.brand .logo, .brand img { width: 36px; height: 36px; border-radius: 50%; aspect-ratio: 1; flex: none; display: block; transition: transform var(--dur-2) var(--ease); transform-origin: left center; }
html.scrolled .brand .logo { transform: scale(.86); }
.brand small { display: none; }
.nav-d { display: none; margin-left: 12px; gap: 2px; align-self: stretch; align-items: stretch; }
.nav-d > a, .nav-item > a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-weight: 600; font-size: var(--fs-3); color: var(--ink-2); transition: color var(--dur-1); }
.nav-d > a::after, .nav-item > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--line-strong); transform: scaleX(0); transform-origin: center; transition: transform var(--dur-2) var(--ease), background-color var(--dur-2); }
.nav-d > a:hover, .nav-item:hover > a { color: var(--ink); } .nav-d > a:hover::after, .nav-item:hover > a::after { transform: scaleX(1); }
.nav-d > a[aria-current], .nav-item > a[aria-current] { color: var(--ink); } .nav-d > a[aria-current]::after, .nav-item > a[aria-current]::after { transform: scaleX(1); background: var(--brand); }
.nav-d > a:focus-visible, .nav-item > a:focus-visible, .nav-chev:focus-visible { outline-offset: -4px; border-radius: var(--r-s); }
.nav-item { display: flex; align-items: stretch; }
.nav-item > a { padding-right: 2px; } .nav-item > a::after { right: 0; }
.nav-chev { width: 28px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; margin-right: 4px; } .nav-chev:hover { color: var(--ink); }
.nav-chev .i { transition: transform var(--dur-2) var(--ease); } .nav-chev[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav-tag { font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: var(--r-p); border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface); }
.topbar .nav-partner { display: none; flex: none; }
.hsearch { position: relative; display: none; align-items: center; gap: 8px; flex: 1 1 280px; max-width: 520px; margin-inline: auto; height: 42px; padding: 0 14px; border-radius: var(--r-p); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); transition: border-color var(--dur-1), background-color var(--dur-1); }
.hsearch:hover { border-color: var(--line-strong); } .hsearch:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 1px var(--brand); }
.hsearch input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: var(--fs-3); color: var(--ink); padding: 0; min-height: 0; box-shadow: none; }
.hsearch input[type=search]:focus { box-shadow: none; } .hsearch input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
/* suggestions dropdown */
.sugg { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 6px; max-height: min(70vh, 460px); overflow: auto; animation: pop-in .16s var(--ease); color: var(--ink); }
.sugg-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 4px; font-size: var(--fs-1); font-weight: 600; color: var(--muted); }
.sugg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sugg-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: var(--r-s); color: var(--ink); }
.sugg-list a:hover, .sugg-list [aria-selected="true"] > a { background: var(--surface-2); }
.sg-t .sg-nb { display: block; color: var(--muted); } .sg-t .sg-nb.on { color: var(--ok); font-weight: 600; }
.sg-ic { width: 32px; height: 32px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.sg-t { display: grid; min-width: 0; line-height: 1.25; } .sg-t b { font-size: var(--fs-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sg-t small { font-size: var(--fs-1); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-p { margin-left: auto; font-size: var(--fs-2); font-weight: 600; flex: none; }
.sg-none { padding: 14px 12px; color: var(--ink-2); font-size: var(--fs-2); }
.sg-all a { color: var(--brand-t); font-weight: 600; font-size: var(--fs-2); min-height: 44px; }
/* services mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); transition: opacity var(--dur-2) ease-out, transform var(--dur-2) var(--ease); }
.mega.open { opacity: 1; transform: none; } .mega[hidden] { display: none; }
.mega-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 4vw, 64px); padding: 24px var(--pad) 28px; max-height: calc(100dvh - var(--chrome-h) - 24px); overflow: auto; }
.mega-h { font-size: var(--fs-1); font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 16px; }
.mega-cat { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--r-m); transition: background-color var(--dur-1); } .mega-cat:hover, .mega-cat:focus-visible { background: var(--surface-2); }
.mega-ph { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: var(--surface-2); border: 1px solid var(--line); }
.mega-ph picture, .mega-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-t { display: grid; min-width: 0; line-height: 1.3; } .mega-t b { font-size: var(--fs-3); font-weight: 600; } .mega-t small { font-size: var(--fs-2); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-pop { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.mega-list { list-style: none; margin: 0 0 12px; padding: 0; } .mega-list .num { white-space: nowrap; } .mega-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 8px; border-radius: var(--r-s); font-weight: 500; font-size: var(--fs-3); } .mega-list a:hover { background: var(--surface-2); }
.mega-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-t); padding: 8px; border-radius: var(--r-s); } .mega-all:hover { background: var(--surface-2); }
/* mobile search sheet: full screen */
dialog.sheet.search-sheet { max-width: none; width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; background: var(--bg); overflow-x: hidden; box-shadow: none; }
dialog.sheet.search-sheet[open] { animation: fade-in var(--dur-2) ease-out; }
.ss-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; padding: calc(10px + var(--safe-t)) 12px 10px var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); }
.ss-bar .search-in { flex: 1; min-width: 0; } .ss-bar .btn { flex: none; } .ss-body { padding: 8px var(--pad) calc(24px + var(--safe-b)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } .ss-body > * { min-width: 0; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 8px; }
.linkbtn { border: 0; background: transparent; color: var(--brand-t); font: inherit; font-weight: 600; padding: 4px 8px; border-radius: var(--r-s); }
.dot.bump { animation: bump var(--dur-3) var(--ease); } @keyframes bump { 40% { transform: scale(1.35); } }
/* top progress bar (htmx requests / navigation) */
.chrome-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
html.is-loading .chrome-progress { opacity: 1; animation: nprog 6s cubic-bezier(.1, .7, .2, 1) forwards; } @keyframes nprog { to { transform: scaleX(.92); } }
.iconbtn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); flex: none; transition: background-color var(--dur-1); }
.iconbtn:hover { background: var(--surface-2); } .iconbtn:active { background: var(--surface-3); transform: scale(.94); }
.dot { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font: 700 10px/1 var(--font); display: grid; place-items: center; font-style: normal; font-variant-numeric: tabular-nums; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-2); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; } .avatar.lg { width: 56px; height: 56px; font-size: 19px; } .avatar.xl { width: 88px; height: 88px; font-size: 28px; }
.avatar.brand { background: var(--ink); color: var(--bg); border-color: var(--ink); } .avatar.pine { background: var(--surface-2); color: var(--ink); }
.avatar-stack { display: flex; } .avatar-stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); } .avatar-stack .avatar:first-child { margin-left: 0; }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: grid; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
:root[data-theme="dark"] .theme-btn .i-sun { display: grid; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.theme-btn span { display: grid; place-items: center; }

details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 264px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 6px; z-index: 60; display: grid; gap: 2px; animation: pop-in var(--dur-2) var(--ease); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--r-s); border: 0; background: transparent; width: 100%; text-align: left; font-weight: 600; font-size: var(--fs-3); color: var(--ink); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-who { padding: 10px 12px 8px; display: grid; } .menu-pop form { margin: 0; }
.menu-theme, .theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; margin: 4px 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s); }
.menu-theme button, .theme-seg button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 8px; font-size: var(--fs-1); font-weight: 600; border: 0; border-radius: 6px; gap: 6px; background: transparent; color: var(--ink-2); width: auto; }
.menu-theme button[aria-pressed="true"], .theme-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }

.bottom-nav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; view-transition-name: bottomnav; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; min-height: 48px; transition: color var(--dur-1); }
.bottom-nav a[aria-current="page"] { color: var(--ink); }
.bottom-nav a[aria-current="page"] .i { color: var(--brand); stroke-width: 2.1; }
.bottom-nav .dot { top: 6px; right: calc(50% - 22px); }

/* ---------- buttons ----------
   .btn (primary, solid brand)  .btn.ghost|.secondary (neutral outline)  .btn.text (tertiary)  .btn.danger (destructive outline)  .btn.dark
   sizes: .sm (44) .tight (36, dense toolbars only) .lg (54)   .block (full width)   .btn-group (joined)   .iconbtn (+ .border .filled .sm)
   states: :hover (pointer only: 1px lift) :active (scale .98 + darker) :focus-visible ring  .loading (spinner, width kept)  .is-success (flash)  [disabled]
   icons: put .i as first/last child; icon-only buttons use .iconbtn with aria-label. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid transparent;
  background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: var(--fs-3); line-height: 1; letter-spacing: -.005em; transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1), opacity var(--dur-1); user-select: none; -webkit-user-select: none; white-space: nowrap; }
.btn > .i { width: 18px; height: 18px; } .btn > .i:first-child:not(:last-child) { margin-left: -2px; } .btn > .i:last-child:not(:first-child) { margin-right: -2px; }
.btn:hover { background: var(--brand-d); } .btn:active { transform: scale(.98); background: var(--brand-d); filter: brightness(.94); }
@media (hover: hover) { .btn:not([disabled]):not(.loading):hover { transform: translateY(-1px); } .btn:not([disabled]):active { transform: scale(.98); } }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-btn); }
.btn.block { width: 100%; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-2); }
.btn.sm.tight { min-height: 36px; padding: 0 12px; }
.btn.lg { min-height: 54px; font-size: var(--fs-4); padding: 0 28px; }
.btn.ghost, .btn.soft, .btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover, .btn.soft:hover, .btn.secondary:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.ghost:active, .btn.soft:active, .btn.secondary:active { background: var(--surface-3); filter: none; }
.btn.text, .btn.link { background: transparent; color: var(--brand-t); border-color: transparent; padding: 0 12px; }
.btn.text:hover, .btn.link:hover { background: var(--surface-2); } .btn.text:active, .btn.link:active { background: var(--surface-3); filter: none; }
.btn.dark, .btn.good { background: var(--ink); color: var(--bg); } .btn.dark:hover, .btn.good:hover { background: var(--ink-2); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--line-strong); } .btn.danger:hover { background: var(--surface-2); border-color: var(--bad); } .btn.danger:active { filter: none; background: var(--surface-3); }
.btn.danger.solid { background: var(--bad); color: var(--on-status); border-color: var(--bad); }
.btn[disabled], .btn.off, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; transform: none; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading > * { opacity: 0; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; left: 50%; top: 50%; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid var(--on-brand); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.ghost.loading::after, .btn.soft.loading::after, .btn.secondary.loading::after, .btn.text.loading::after, .btn.danger.loading::after { border-color: var(--ink); border-right-color: transparent; }
.btn.dark.loading::after { border-color: var(--bg); border-right-color: transparent; }
.btn.is-success { background: var(--ok); border-color: var(--ok); color: var(--on-status); animation: btn-flash var(--dur-3) var(--ease-out); } @keyframes btn-flash { 40% { transform: scale(1.03); } }
.btn-group { display: inline-flex; } .btn-group > .btn { border-radius: 0; margin-left: -1px; } .btn-group > .btn:first-child { border-radius: var(--r-btn) 0 0 var(--r-btn); margin-left: 0; } .btn-group > .btn:last-child { border-radius: 0 var(--r-btn) var(--r-btn) 0; }
.iconbtn.border { border: 1px solid var(--line-strong); background: var(--surface); } .iconbtn.filled { background: var(--surface-2); } .iconbtn.sm { width: 36px; height: 36px; }
.fab { position: fixed; z-index: 43; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); min-width: 56px; height: 56px; padding: 0 18px; border: 0; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--on-brand); font-weight: 600; box-shadow: var(--shadow); transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1); } .fab:hover { background: var(--brand-d); } .fab:active { transform: scale(.94); }
@media (min-width: 900px) { .fab { bottom: 24px; right: 24px; } }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-p); background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; font-size: var(--fs-2); color: var(--ink); white-space: nowrap; transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
.chip.sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-1); }
.chip:hover { background: var(--surface-2); }
.chip.on, .chip[aria-pressed="true"], .chip[aria-current] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand-t); background: var(--surface); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--pad); margin: 0 calc(var(--pad) * -1); scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; } .chips > * { flex: none; scroll-snap-align: start; }
/* badges: neutral pill, status shown by a small dot only when the status needs it */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; min-height: 24px; border-radius: var(--r-p); font-size: var(--fs-1); font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.good::before, .badge.warn::before, .badge.bad::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
.badge.good::before { background: var(--ok); } .badge.warn::before { background: var(--warn); } .badge.bad::before { background: var(--bad); }
.badge.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.rating .i { width: 14px; height: 14px; fill: var(--star); stroke: var(--star); }
.stars-row { display: inline-flex; gap: 2px; } .stars-row .i { width: 16px; height: 16px; stroke: var(--star); fill: none; } .stars-row .i.on { fill: var(--star); }

/* tabs and segmented control */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"], .tabs > a { flex: none; position: relative; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border: 0; background: transparent; font-weight: 600; color: var(--muted); }
.tabs [role="tab"]:hover, .tabs > a:hover { color: var(--ink); }
.tabs [aria-selected="true"], .tabs > a[aria-current] { color: var(--ink); }
.tabs [aria-selected="true"]::after, .tabs > a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--brand); }
.pill-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; } .pill-tabs::-webkit-scrollbar { display: none; }
.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 3px; gap: 2px; }
.segmented > button, .segmented > a, .segmented > label { min-height: 38px; display: flex; align-items: center; justify-content: center; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font-weight: 600; font-size: var(--fs-2); color: var(--ink-2); cursor: pointer; transition: background-color var(--dur-1); }
.segmented > [aria-pressed="true"], .segmented > [aria-selected="true"], .segmented > .on, .segmented > label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- cards, rails ---------- */
.card { background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); padding: 20px; }
.card.flat { box-shadow: none; }
.card.tight { padding: 14px; }
.card.hover { transition: border-color var(--dur-2); } .card.hover:hover { border-color: var(--line-strong); }
.panel-title { font-weight: 700; font-size: var(--fs-3); margin-bottom: 10px; }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px var(--pad) 14px; margin: 0 calc(var(--pad) * -1); scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; min-height: 120px; scroll-padding-inline: var(--pad); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* ---------- hero / search (neutral; the home page supplies photography) ---------- */
.hero { background: var(--surface-2); color: var(--ink); padding: var(--s-6) 0 0; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); max-width: 16ch; }
.hero p.lead { color: var(--ink-2); margin-top: 10px; max-width: 46ch; font-size: var(--fs-4); }
.hero .searchbar { margin-top: 18px; }
.hero-art { display: none; }
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-btn); padding: 0 6px 0 16px; height: 52px; }
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.searchbar input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; height: 100%; font-size: 16px; box-shadow: none !important; min-height: 0 !important; padding: 0 !important; }
.searchbar .btn { min-height: 40px; }
.radar { margin-top: 22px; border-radius: var(--r-l) var(--r-l) 0 0; overflow: hidden; background: var(--surface-2); position: relative; height: 240px; contain: layout paint; }
.radar .map { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.radar-bar { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  padding: 10px 12px 10px 14px; border-radius: var(--r-m); box-shadow: var(--shadow); min-height: 62px; }
.radar-bar b { font-size: var(--fs-3); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- categories & services ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 16px 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 600; font-size: var(--fs-2); line-height: 1.25; }
.cat .tile { width: 100%; max-width: 88px; aspect-ratio: 1; border-radius: var(--r-m); display: grid; place-items: center; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); overflow: hidden; transition: transform var(--dur-1) var(--ease); }
.cat .tile img { width: 100%; height: 100%; object-fit: cover; }
.cat:active .tile { transform: scale(.96); }
.cat .i { width: 26px; height: 26px; }

.svc { background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; width: var(--svc-w, 220px); contain: layout paint; }
.grid-auto > .svc, .swiper-slide > .svc { width: auto; height: 100%; }
.svc .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); position: relative; }
.svc .ph .i { width: 32px; height: 32px; }
.svc .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc .pop { position: absolute; top: 8px; left: 8px; background: var(--surface); }
.svc .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.svc h3 { font-size: var(--fs-3); font-weight: 600; line-height: 1.3; } .svc .meta { font-size: var(--fs-2); color: var(--muted); display: flex; gap: 6px; align-items: center; }
.svc .ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; font-size: var(--fs-3); letter-spacing: -.01em; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--brand); color: var(--on-brand); border-radius: var(--r-btn); }
.stepper button { width: 44px; height: 40px; border: 0; background: transparent; color: inherit; border-radius: var(--r-btn); display: grid; place-items: center; font-size: 20px; line-height: 1; padding: 0 0 2px; }
.stepper b { min-width: 18px; text-align: center; font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.add { height: 40px; min-width: 64px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid var(--brand); background: var(--surface); color: var(--brand-t); font-weight: 700; font-size: var(--fs-2); display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--dur-1); }
.add:hover { background: var(--surface-2); }

.svc-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 120px; }
.svc-row:last-child { border-bottom: 0; }
.svc-row .txt { flex: 1; min-width: 0; }
.svc-row .txt p { color: var(--ink-2); font-size: var(--fs-2); margin-top: 4px; max-width: var(--read); }
.svc-row .act { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.includes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--fs-2); color: var(--ink-2); }
.includes li { display: flex; gap: 8px; align-items: flex-start; } .includes .i { color: var(--ok); width: 16px; height: 16px; margin-top: 2px; }

/* ---------- offers ---------- */
.ticket { width: 262px; position: relative; background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.ticket .code { align-self: flex-start; font-weight: 700; letter-spacing: .06em; font-size: var(--fs-2); padding: 4px 10px; border: 1px dashed var(--line-strong); border-radius: var(--r-s); color: var(--ink); background: var(--surface-2); cursor: pointer; }
.ticket h3 { font-size: var(--fs-4); }

/* ---------- trust + steps ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.trust > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); }
.trust .i { color: var(--ink); margin-top: 1px; } .trust b { display: block; font-size: var(--fs-3); line-height: 1.3; } .trust span { font-size: var(--fs-2); color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.steps { display: grid; gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; gap: 14px; counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-2); }
.steps b { display: block; } .steps span { color: var(--ink-2); font-size: var(--fs-2); }
.cta-band { margin: 32px 0 10px; border-radius: var(--r-l); padding: clamp(20px, 3vw, 40px); color: var(--bg); background: var(--ink); display: grid; gap: 12px; }
.cta-band p { color: var(--line-strong); }
.stepbar { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; counter-reset: sb; }
.stepbar li { flex: 1; counter-increment: sb; display: grid; gap: 6px; font-size: var(--fs-1); font-weight: 600; color: var(--muted); }
.stepbar li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.stepbar li.done::before, .stepbar li.on::before { background: var(--ink); } .stepbar li.on, .stepbar li.done { color: var(--ink); }

/* ---------- forms ----------
   Anatomy: .field > label (above) + control + .hint / .err (below).  Controls are 48px, 10px radius, 1px hairline, --surface fill.
   Classes: .field .field-row .input (any text-like control) .select .hint .err .req .opt-tag
            .phone-in (+977 cell) .otp .pw (show/hide inside) .search-in (icon + clear) .igroup (joined input + button) .num-step
            .check .opt .switch   States: :hover :focus :disabled [readonly] .invalid / [aria-invalid] / :user-invalid  .valid */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label, .lbl { font-weight: 600; font-size: var(--fs-2); line-height: 1.3; color: var(--ink); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.opt-tag { font-weight: 500; font-size: var(--fs-1); color: var(--muted); } .req { color: var(--bad); }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.input, input[type=text], input[type=tel], input[type=number], input[type=email], input[type=password], input[type=search], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=month], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-field); border: 1px solid var(--line-strong); background-color: var(--surface); color: var(--ink); outline: 0; box-shadow: none;
  font: 400 16px/1.4 var(--font); letter-spacing: 0; text-overflow: ellipsis; transition: border-color var(--dur-1), box-shadow var(--dur-1), background-color var(--dur-1); -webkit-appearance: none; appearance: none; }
textarea { min-height: 104px; resize: vertical; line-height: 1.5; text-overflow: clip; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); font-weight: 400; opacity: 1; letter-spacing: 0; text-transform: none; }
.input:hover, input:hover, select:hover, textarea:hover { border-color: var(--muted); }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.input:disabled, input:disabled, select:disabled, textarea:disabled { background-color: var(--surface-2); color: var(--muted); cursor: not-allowed; border-color: var(--line); -webkit-text-fill-color: var(--muted); }
.input[readonly], input[readonly], textarea[readonly] { background-color: var(--surface-2); }
.field.invalid input, .field.invalid select, .field.invalid textarea, input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], .input.invalid { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.field.valid input, .field.valid select, .field.valid textarea { border-color: var(--ok); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--bad); }
.field .err, .err { color: var(--bad); font-size: var(--fs-2); font-weight: 500; line-height: 1.35; } .err:empty { display: none; }
.field .ok-msg { color: var(--ok); font-size: var(--fs-2); font-weight: 500; }
.hint { color: var(--muted); font-size: var(--fs-2); line-height: 1.4; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 9999s ease-out; }
input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 1px var(--brand); }
@media (min-width: 900px) { .input, input[type=text], input[type=tel], input[type=number], input[type=email], input[type=password], input[type=search], input[type=url], input[type=date], input[type=time], input[type=datetime-local], select, textarea { font-size: var(--fs-3); } }
/* select: custom chevron (neutral mid-grey reads in both themes), same height as inputs */
select { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
select[multiple] { background-image: none; padding-right: 14px; } select option { color: var(--ink); background: var(--surface); }
input[type=date], input[type=time], input[type=datetime-local], input[type=month] { min-height: 48px; display: block; text-align: left; }
input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; } input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
/* number: native spinners off, optional stepper group */
input[type=number] { -moz-appearance: textfield; font-variant-numeric: tabular-nums; } input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-step { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--surface); overflow: hidden; }
.num-step button { width: 48px; border: 0; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; } .num-step button:hover { background: var(--surface-2); }
.num-step input { width: 64px; min-height: 46px; border: 0; border-radius: 0; text-align: center; box-shadow: none !important; }
/* input group: joined control + button */
.igroup { display: flex; align-items: stretch; } .igroup > :first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; min-width: 0; }
.igroup > :last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; } .igroup > .btn { min-height: 48px; }
/* password: show/hide inside the field */
.pw { position: relative; } .pw input { padding-right: 84px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--brand-t); font-weight: 600; font-size: var(--fs-2); display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-s); }
.pw button:hover { background: var(--surface-2); }
/* search input with icon + clear */
.search-in { position: relative; display: block; } .search-in > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-in input { padding-left: 42px; padding-right: 42px; border-radius: var(--r-p); } .search-in input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-in .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: none; place-items: center; }
.search-in .clear:hover { background: var(--surface-2); color: var(--ink); } .search-in:has(input:not(:placeholder-shown)) .clear { display: grid; }
/* phone: +977 prefix cell */
.phone-in { display: flex; align-items: stretch; border-radius: var(--r-field); background: var(--surface); overflow: hidden; border: 1px solid var(--line-strong); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.phone-in:hover { border-color: var(--muted); } .phone-in:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.phone-in .cc { display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-2); font-weight: 600; font-size: var(--fs-3); color: var(--ink-2); border-right: 1px solid var(--line); }
.phone-in input, .phone-in input:hover, .phone-in input:focus { border: 0; min-height: 46px; font-size: 16px; letter-spacing: .02em; font-weight: 500; box-shadow: none; border-radius: 0; background-color: transparent; }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input { width: 48px; min-height: 56px; padding: 0; text-align: center; font-size: 24px; font-weight: 600; border-radius: var(--r-field); font-variant-numeric: tabular-nums; }
/* checkbox / radio: custom, 20px, brand when checked */
input[type=checkbox]:not(.mp-switch input), input[type=radio]:not(.mp-switch input) { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; display: inline-grid; place-content: center; background-color: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px; cursor: pointer; transition: background-color var(--dur-1), border-color var(--dur-1); vertical-align: middle; }
input[type=radio]:not(.mp-switch input) { border-radius: 50%; }
input[type=checkbox]:not(.mp-switch input):hover, input[type=radio]:not(.mp-switch input):hover { border-color: var(--muted); box-shadow: none; }
input[type=checkbox]:not(.mp-switch input):checked, input[type=radio]:not(.mp-switch input):checked { background-color: var(--brand); border-color: var(--brand); }
input[type=checkbox]:not(.mp-switch input):checked::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid var(--on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type=radio]:not(.mp-switch input):checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-brand); }
input[type=checkbox]:not(.mp-switch input):focus-visible, input[type=radio]:not(.mp-switch input):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; }
input[type=checkbox]:not(.mp-switch input):disabled, input[type=radio]:not(.mp-switch input):disabled { opacity: .45; cursor: not-allowed; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-3); line-height: 1.4; min-height: 44px; padding-block: 10px; cursor: pointer; } .check input { margin-top: 1px; }
.opt { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--surface); cursor: pointer; min-height: 56px; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.opt:hover { border-color: var(--muted); } .opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.opt.dis { opacity: .55; cursor: not-allowed; }
/* alerts: neutral surface, status shown by a small dot (or the icon, when the markup has one) */
.alert { padding: 12px 14px; border-radius: var(--r-field); font-size: var(--fs-2); font-weight: 500; display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.alert:not(:has(.i)).err::before, .alert:not(:has(.i)).ok::before, .alert:not(:has(.i)).warn::before, .alert:not(:has(.i)).info::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.alert:not(:has(.i)).err::before { background: var(--bad); } .alert:not(:has(.i)).ok::before { background: var(--ok); } .alert:not(:has(.i)).warn::before { background: var(--warn); }
.alert.err .i { color: var(--bad); } .alert.ok .i { color: var(--ok); } .alert.warn .i { color: var(--warn); } .alert.info .i { color: var(--ink-2); }

/* ---------- shared list rows (settings-style, hairline separated) ---------- */
.list { display: grid; } .list-row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: background-color var(--dur-1); }
.list-row:last-child { border-bottom: 0; } a.list-row:hover { background: var(--surface-2); } a.list-row:active { background: var(--surface-3); }
.list-row .i { color: var(--ink-2); } .list-row .end { margin-left: auto; color: var(--muted); font-size: var(--fs-2); }

/* ---------- auth ---------- */
.auth { min-height: calc(100dvh - var(--chrome-h) - var(--nav-h)); display: grid; align-content: start; gap: 18px; padding-top: 32px; width: 100%; max-width: 460px; margin: 0 auto; }
.auth h1 { font-size: var(--fs-6); }
.devcode { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--r-s); padding: 10px 14px; font-size: var(--fs-2); color: var(--ink-2); }
.devcode b { font-size: 20px; letter-spacing: .15em; color: var(--ink); }

/* ---------- map ---------- */
.map { width: 100%; height: 280px; min-height: 200px; background: var(--surface-2); border-radius: var(--r-m); overflow: hidden; z-index: 0; contain: layout paint; }
.map.tall { height: 360px; } .map.full { height: 100%; border-radius: 0; }
.leaflet-container { font-family: var(--font); }
.pin { width: 34px; height: 42px; margin-left: -17px; margin-top: -42px; color: var(--brand); }
.pin svg { width: 34px; height: 42px; }
.pmark { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: var(--fs-2); display: grid; place-items: center; border: 3px solid var(--surface); position: relative; }
.pmark.me { background: var(--brand); color: var(--on-brand); }
.pmark::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; animation: pulse 2.4s ease-out infinite; }
.pmark.me::after { border-color: var(--brand); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
.pdot { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); border: 2.5px solid var(--surface); }
.pdot.off { background: var(--muted); } .pdot.job { background: var(--brand); } .pdot.act { background: var(--ok); }
.geo-results { list-style: none; margin: 4px 0 0; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); max-height: 220px; overflow: auto; }
.geo-results li { padding: 12px; border-radius: 6px; font-size: var(--fs-3); cursor: pointer; min-height: 44px; } .geo-results li:hover { background: var(--surface-2); }
.map-tools { display: flex; gap: 8px; }

/* ---------- checkout / cart ---------- */
.cartbar { position: fixed; z-index: 44; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); background: var(--ink); color: var(--bg); border-radius: var(--r-m);
  padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); transform: translateY(160%); visibility: hidden; transition: transform var(--dur-2) var(--ease), visibility 0s var(--dur-2); }
.cartbar.show { transform: none; visibility: visible; transition: transform var(--dur-2) var(--ease); } .cartbar b { font-size: var(--fs-4); font-variant-numeric: tabular-nums; } .cartbar small { display: block; opacity: .75; font-size: var(--fs-1); }
.cartbar .btn { background: var(--bg); color: var(--ink); }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; } .line.total { font-weight: 700; font-size: var(--fs-4); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.line.disc { color: var(--ok); font-weight: 600; }
.coupon-in { display: flex; gap: 8px; } .coupon-in input { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .days::-webkit-scrollbar { display: none; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.times .chip { justify-content: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 3px; gap: 2px; }
.seg label { text-align: center; padding: 10px; border-radius: 7px; font-weight: 600; cursor: pointer; color: var(--ink-2); min-height: 44px; }
.seg input { position: absolute; opacity: 0; } .seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
/* sticky action bars (floating layer: may carry a shadow) */
.sticky-act, .action-bar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); padding: 12px var(--pad); margin: 0 calc(var(--pad) * -1); z-index: 5; display: flex; gap: 10px; align-items: center; }
.sticky-act > .btn, .action-bar > .btn { flex: 1; }
.action-bar.no-nav, body.staff .sticky-act { bottom: 0; padding-bottom: calc(12px + var(--safe-b)); }

/* ---------- booking / tracking ---------- */
.status-hero { border-radius: var(--r-l); padding: 20px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.status-hero.done, .status-hero.bad { background: var(--surface-2); color: var(--ink); }
.status-hero h1 { font-size: var(--fs-5); } .status-hero p { color: var(--ink-2); margin-top: 4px; }
.tl, .timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li, .timeline li { position: relative; padding: 0 0 16px 28px; font-size: var(--fs-2); }
.tl li::before, .timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.timeline li.todo::before { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); }
.timeline li.now::before { background: var(--brand); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--brand); }
.tl li::after, .timeline li::after { content: ""; position: absolute; left: 10px; top: 16px; bottom: -2px; width: 2px; background: var(--line); } .tl li:last-child::after, .timeline li:last-child::after { display: none; }
.tl time, .timeline time { display: block; color: var(--muted); font-size: var(--fs-1); }
.progress { display: flex; gap: 6px; margin-top: 14px; } .progress i { flex: 1; height: 4px; border-radius: 4px; background: currentColor; opacity: .2; } .progress i.on { opacity: 1; }
.pin-card { text-align: center; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: 14px; color: var(--ink); }
.pin-card b { display: block; font-size: 34px; letter-spacing: .35em; margin-right: -.35em; font-weight: 700; font-variant-numeric: tabular-nums; }
.radar-s { width: 120px; height: 120px; margin: 4px auto 0; position: relative; display: grid; place-items: center; }
.radar-s::before, .radar-s::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: pulse 2.2s ease-out infinite; }
.radar-s::after { animation-delay: 1.1s; } .radar-s .i { width: 40px; height: 40px; }
.person { display: flex; align-items: center; gap: 12px; } .person .avatar { width: 48px; height: 48px; font-size: var(--fs-4); }
.stars-in { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.stars-in input { position: absolute; opacity: 0; } .stars-in label { cursor: pointer; color: var(--line-strong); padding: 4px; } .stars-in label .i { width: 36px; height: 36px; fill: currentColor; stroke: currentColor; }
.stars-in input:checked ~ label, .stars-in label:hover, .stars-in label:hover ~ label { color: var(--star); }
.stars-in input:focus-visible + label { outline: 2px solid var(--focus); border-radius: 8px; }

/* ---------- partner app ---------- */
.switch-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.switch { position: relative; width: 52px; height: 30px; flex: none; } .switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: pointer; margin: 0; min-height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background-color var(--dur-2); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--dur-2) var(--ease); }
.switch input:checked + i { background: var(--brand); } .switch input:checked + i::after { transform: translateX(22px); background: var(--on-brand); }
.switch input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 2px; }
.stat { background: var(--surface); border-radius: var(--r-m); padding: 16px; border: 1px solid var(--line); } .stat b { display: block; font-size: var(--fs-5); letter-spacing: -.02em; } .stat span { color: var(--muted); font-size: var(--fs-2); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.offer { border: 1px solid var(--brand); box-shadow: 0 0 0 1px var(--brand); border-radius: var(--r-l); background: var(--surface); padding: 16px; position: relative; overflow: hidden; animation: pop-in var(--dur-3) var(--ease); }
@keyframes pop-in { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.offer .earn { font-size: var(--fs-5); font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.offer .timer { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--brand); transform-origin: left; }
.steps-act { display: grid; gap: 10px; }
.kyc-doc { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: var(--surface); }
.kyc-doc.has { border-style: solid; border-color: var(--ink); }
.kyc-doc .preview { width: 100%; max-height: 190px; object-fit: contain; border-radius: var(--r-s); background: var(--surface-2); }
.filebtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 80px; border-radius: var(--r-s); background: var(--surface-2); color: var(--ink-2); font-weight: 600; cursor: pointer; text-align: center; padding: 10px; border: 1px dashed var(--line-strong); }
.filebtn input { display: none; }

/* ---------- toast / sheet / install / splash / offline ---------- */
.toasts { position: fixed; z-index: 90; left: 12px; right: 12px; top: calc(var(--chrome-h) + var(--safe-t) + 10px); display: grid; gap: 8px; pointer-events: none; max-width: 460px; margin: 0 auto; }
.toast { pointer-events: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 12px 16px; font-weight: 600; font-size: var(--fs-2); box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: pop-in var(--dur-2) var(--ease); }
.toast.err::before, .toast.ok::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.toast.warn::before, .toast.info::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.toast.err::before { background: var(--bad); } .toast.ok::before { background: var(--ok); } .toast.warn::before { background: var(--warn); } .toast.info::before { background: var(--ink-2); }
.msgs { display: grid; gap: 8px; margin-top: 12px; }
.install { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-up); padding: 12px 14px; display: none; align-items: center; gap: 12px; border: 1px solid var(--line); }
.install.show { display: flex; animation: pop-in var(--dur-2) var(--ease); } .install img { width: 44px; height: 44px; border-radius: 50%; }
.offline-bar { position: fixed; z-index: 100; top: 0; left: 0; right: 0; padding: calc(6px + var(--safe-t)) 12px 6px; background: var(--ink); color: var(--bg); text-align: center; font-size: var(--fs-2); font-weight: 600; }
.offline-bar.ok { background: var(--surface-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.splash { position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--ink); display: none; place-content: center; justify-items: center; gap: 10px; text-align: center; transition: opacity var(--dur-3) ease-out; }
.splash img { width: 112px; height: 112px; } .splash b { font-size: var(--fs-5); letter-spacing: -.03em; } .splash span { font-size: var(--fs-2); color: var(--muted); }
.splash.out { opacity: 0; pointer-events: none; }
/* the launch splash is for the installed app only: in a browser tab it just delays the first paint of real content */
@media (display-mode: standalone) { html:not(.splash-off):not(.no-js) .splash { display: grid; } }

dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88dvh; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-up); overscroll-behavior: contain; overflow: auto; }
dialog.sheet[open] { animation: sheet-up var(--dur-2) var(--ease); }
dialog.sheet::backdrop { background: var(--scrim); }
.sheet-body { padding: 8px 20px calc(20px + var(--safe-b)); display: grid; gap: 16px; }
.sheet-grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .sheet-head form { margin: 0; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); display: grid; gap: 10px; justify-items: center; min-height: 260px; align-content: center; }
.empty > .i { width: 32px; height: 32px; color: var(--muted); }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.empty-ic .i { width: 26px; height: 26px; }
.empty h3 { font-size: var(--fs-4); }
.empty .illus { max-width: 180px; opacity: .9; }
.empty p { max-width: 44ch; }

/* ---------- footer: full width, neutral ---------- */
.footer { margin-top: var(--s-7); padding: var(--s-6) var(--pad) var(--s-6); color: var(--muted); font-size: var(--fs-2); border-top: 1px solid var(--line); background: var(--bg); }
.footer a { color: var(--ink-2); font-weight: 500; display: block; padding: 6px 0; } .footer a:hover { color: var(--ink); text-decoration: underline; }
.footer a.brand { display: flex; font-weight: 800; color: var(--ink); padding: 0; } .footer a.brand:hover { text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } .foot-grid h2 { font-size: var(--fs-2); font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: 0; }
.foot-brand { grid-column: 1 / -1; } .foot-brand .brand { color: var(--ink); } .foot-brand p { margin-top: 8px; max-width: 38ch; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.foot-bar .theme-seg { margin: 0; min-width: 240px; }
.foot-note { margin: 0; }

/* ---------- skeletons: opacity pulse, no sweeping fill ---------- */
.skel { background: var(--line); border-radius: var(--r-s); animation: skel 1.4s ease-in-out infinite; }
.skel-line { height: 12px; margin: 8px 0; } .skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w90 { width: 90%; }
.skel-thumb { width: 72px; height: 72px; border-radius: var(--r-s); flex: none; }
.skel-card { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); min-height: 100px; }
.skel-list { display: grid; gap: 12px; }
.skel-block { height: 160px; border-radius: var(--r-m); }
@keyframes skel { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.htmx-indicator { opacity: 0; transition: opacity var(--dur-1); } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* ---------- generic: tables, kpis, filters ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border-radius: var(--r-m); padding: 16px; border: 1px solid var(--line); } .kpi span { color: var(--muted); font-size: var(--fs-2); font-weight: 500; } .kpi b { display: block; font-size: var(--fs-5); letter-spacing: -.02em; margin-top: 2px; }
.kpi.alert-k b { color: var(--bad); }
.twocol { display: grid; gap: 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; } .bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 10px; color: var(--muted); }
.bars i { width: 100%; max-width: 26px; border-radius: 4px 4px 2px 2px; background: var(--ink); min-height: 3px; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-2); min-width: 620px; }
.tbl th { text-align: left; font-size: var(--fs-1); color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr:hover { background: var(--surface-2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; } .filters input, .filters select { width: auto; min-height: 44px; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 16px; align-items: center; }
.docs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .docs figure { margin: 0; } .docs img { width: 100%; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); } .docs figcaption { font-weight: 600; font-size: var(--fs-2); margin-bottom: 6px; }
.form-grid { display: grid; gap: 16px; max-width: 720px; }
.form-grid .field ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 220px; overflow: auto; }

/* ---------- engagement: micro-interactions (transform / opacity only) ---------- */
@keyframes fade-in { from { opacity: 0; } } @keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
.fade-in { animation: fade-in var(--dur-2) ease-out; } .rise-in { animation: rise-in var(--dur-3) var(--ease); }
[data-fade] > *, .htmx-added { animation: fade-in var(--dur-2) ease-out; }
.chip:active, .add:active, .stepper button:active, .seg label:active { transform: scale(.96); }
.chip.on, .chip[aria-pressed="true"], .chip[aria-current] { animation: chip-pop var(--dur-2) var(--ease); } @keyframes chip-pop { 50% { transform: scale(.94); } }
.chip, .add, .stepper button { transition: transform var(--dur-1) var(--ease), background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
@media (hover: hover) {
  .card.hover, .svc, .mega-cat, .ticket { transition: transform var(--dur-2) var(--ease), border-color var(--dur-2); }
  .card.hover:hover, .svc:hover, .ticket:hover { transform: translateY(-2px); border-color: var(--line-strong); }
}
.btn { position: relative; } .btn:focus-visible { outline-offset: 3px; }
details:not(.menu) > summary { cursor: pointer; list-style: none; } details:not(.menu) > summary::-webkit-details-marker { display: none; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details:not(.menu)::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-2) var(--ease), content-visibility var(--dur-2) allow-discrete; }
  details:not(.menu)[open]::details-content { block-size: auto; }
}
.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: var(--on-status); display: grid; place-items: center; animation: check-pop var(--dur-3) var(--ease); }
.success-check .i { width: 30px; height: 30px; stroke-width: 2.4; animation: check-in var(--dur-3) var(--dur-1) var(--ease) both; }
@keyframes check-pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } }
@keyframes check-in { from { transform: scale(.4); opacity: 0; } }
.progress-line { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; } .progress-line > i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 4px; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--dur-3) var(--ease); }

/* ---------- card family (c-*): service, category, expert, offer, booking row, stat, article, price summary ----------
   Shared: 1px hairline, radius 14, no shadow, photo zoom on hover (pointer only), press feedback, .is-selected, skeleton twin (.c-skel).
   Markup lives in templates/partials/{svc,cat,expert,offer,stat,article,booking_row,price_summary,card_skeleton}*.html */
.c-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; color: var(--ink); min-width: 0; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2), background-color var(--dur-1); }
a.c-card:active { transform: scale(.985); background: var(--surface-2); }
.c-card.is-selected, .c-card[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.c-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); flex: none; }
.c-media.wide { aspect-ratio: 16 / 9; }
.c-media picture, .c-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.c-media img { transition: transform .6s var(--ease-out); }
@media (hover: hover) { .c-card:hover { border-color: var(--line-strong); } a.c-card:hover .c-media img, .c-svc:hover .c-media img { transform: scale(1.03); } .c-svc:hover, .c-expert:hover, .c-cat:hover { transform: translateY(-2px); } }
.c-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-p); background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: var(--fs-1); font-weight: 600; line-height: 1.3; }
.c-tag .i { width: 12px; height: 12px; }
.c-body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; min-width: 0; }
.c-title { font-size: var(--fs-3); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); margin: 0; } .c-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } .c-svc .add { position: relative; z-index: 2; }
.c-meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2); color: var(--muted); } .c-meta .i { width: 14px; height: 14px; } .c-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.c-text { color: var(--ink-2); font-size: var(--fs-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-hint { font-size: var(--fs-1); color: var(--muted); } .c-label { font-size: var(--fs-2); color: var(--muted); }
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
/* category photo card: caption sits on a solid scrim strip */
.c-cat { border: 0; background: transparent; overflow: visible; } .c-cat .c-media { aspect-ratio: 4 / 5; border-radius: var(--r-m); }
.c-cat .c-cap { display: grid; gap: 2px; padding: 10px 2px 0; } .c-cat .c-cap b { font-size: var(--fs-3); font-weight: 600; color: var(--ink); } .c-cat .c-cap small { font-size: var(--fs-2); color: var(--muted); }
a.c-cat:active { background: transparent; }
/* expert */
.c-expert .c-media { aspect-ratio: 4 / 5; } .c-expert .c-body { gap: 2px; padding: 12px 14px 14px; }
/* offer: dashed ticket, neutral */
.c-offer { border-style: dashed; border-color: var(--line-strong); background: var(--surface); } .c-offer .c-body { padding: 16px; }
.c-code { border: 1px dashed var(--line-strong); background: var(--surface-2); color: var(--ink); font: 600 var(--fs-2)/1 var(--font); letter-spacing: .06em; padding: 8px 12px; border-radius: var(--r-s); cursor: pointer; transition: background-color var(--dur-1), transform var(--dur-1); } .c-code:hover { background: var(--surface-3); } .c-code:active { transform: scale(.96); }
/* booking row */
.c-booking { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; } .c-booking .c-body { padding: 0; }
.c-thumb { width: 48px; height: 48px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex: none; }
/* stat + price summary */
.c-stat { padding: 16px; gap: 2px; } .c-value { font-size: var(--fs-5); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.c-sum { padding: 16px; gap: 8px; } .c-lines { display: grid; }
/* article */
.c-article .c-title { font-size: var(--fs-4); }
/* skeleton twin */
.c-skel { pointer-events: none; } .c-skel .c-media { aspect-ratio: 3 / 2; border-radius: 0; }

/* ---------- reveal on first scroll: first 8 children stagger, never replayed ---------- */
html.js [data-stagger] > *:not(.in) { opacity: 0; transform: translateY(12px); animation: rv-failsafe 0s 2.5s forwards; }
html.js [data-stagger] > .in { transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
html.js [data-stagger] > .in.now { transition: none; }
@keyframes rv-failsafe { to { opacity: 1; transform: none; } }
/* collapsible rows (0fr -> 1fr) */
.reveal-rows { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-2) var(--ease-out); } .reveal-rows.open { grid-template-rows: 1fr; } .reveal-rows > * { overflow: hidden; min-height: 0; }
/* tab indicator that slides (set --ind-x/--ind-w with data-slide on .tabs) */
.tabs[data-slide] { position: relative; } .tabs[data-slide] [aria-selected="true"]::after, .tabs[data-slide] > a[aria-current]::after { display: none; }
.tabs[data-slide]::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100px; height: 2px; background: var(--brand); border-radius: 2px 2px 0 0; transform-origin: left; transform: translateX(var(--ind-x, 0px)) scaleX(var(--ind-s, 0)); transition: transform var(--dur-3) var(--ease-out); }
/* htmx swaps: soft exit */
.htmx-swapping { opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-1) ease-out, transform var(--dur-1) ease-out; }
.toast { animation: toast-in var(--dur-3) var(--ease-out); } .toast.out { animation: toast-out var(--dur-2) var(--ease-in-out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } } @keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Swiper: token-aware overrides (vendored swiper-bundle.css supplies the base) ---------- */
.swiper { --swiper-navigation-size: 14px; }
.swiper .swiper-button-prev, .swiper .swiper-button-next { width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow); transition: opacity var(--dur-1), background-color var(--dur-1); }
.swiper .swiper-button-prev::after, .swiper .swiper-button-next::after { font-size: 13px; font-weight: 700; }
.swiper .swiper-button-prev svg, .swiper .swiper-button-next svg { width: 14px; height: 14px; }
.swiper .swiper-button-prev:hover, .swiper .swiper-button-next:hover { background: var(--surface-2); }
.swiper .swiper-button-disabled { opacity: 0; pointer-events: none; }
.swiper .swiper-button-prev:focus-visible, .swiper .swiper-button-next:focus-visible, .swiper .swiper-pagination-bullet:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.swiper .swiper-pagination-bullet { position: relative; width: 24px; height: 24px; margin: 0; background: transparent; opacity: 1; border-radius: 50%; }
.swiper .swiper-pagination-bullet::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 6px; background: var(--ink); opacity: .25; transition: width var(--dur-2) var(--ease), margin var(--dur-2) var(--ease), opacity var(--dur-2); }
.swiper .swiper-pagination-bullet-active { background: transparent; opacity: 1; width: 24px; }
.swiper .swiper-pagination-bullet-active::before { opacity: 1; width: 18px; margin-left: -9px; }
.swiper-pagination-bullets.swiper-pagination-horizontal { bottom: 12px; }
.on-photo .swiper-pagination-bullet { background: var(--on-photo); } .on-photo .swiper-pagination-bullet-active { background: var(--on-photo); opacity: 1; }
@media (hover: none) { .swiper .swiper-button-prev, .swiper .swiper-button-next { display: none; } }

/* ---------- AOS safety net: nothing stays invisible if the script never runs ---------- */
[data-aos]:not(.aos-animate) { animation: aos-failsafe 0s 2.5s forwards; }
html.no-js [data-aos] { opacity: 1 !important; transform: none !important; }
@keyframes aos-failsafe { to { opacity: 1; transform: none; } }

/* ---------- large-title headers that collapse (scroll-driven where supported) ---------- */
.appbar { position: sticky; top: calc(var(--chrome-h) + var(--safe-t)); z-index: 30; display: flex; align-items: center; gap: 8px; height: 48px; background: var(--bg); }
.appbar .back { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; }
.appbar-title { font-weight: 700; font-size: var(--fs-3); opacity: 0; transition: opacity var(--dur-1); }
html.scrolled .appbar-title { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .appbar-title { transition: none; animation: appbar-in linear both; animation-timeline: scroll(root); animation-range: 40px 90px; }
  html.scrolled .appbar-title { opacity: initial; }
  @keyframes appbar-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- view transitions: chrome stays put, only main moves; direction aware (html[data-vt=forward|back] set by nav.js) ---------- */
main { view-transition-name: main; }
::view-transition-group(topbar), ::view-transition-group(bottomnav), ::view-transition-group(locribbon) { animation-duration: 0s; }
::view-transition-old(topbar), ::view-transition-new(topbar), ::view-transition-old(bottomnav), ::view-transition-new(bottomnav), ::view-transition-old(locribbon), ::view-transition-new(locribbon) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0s; }
::view-transition-old(main) { animation: vt-out var(--dur-1) ease-out both; }
::view-transition-new(main) { animation: vt-in var(--dur-2) var(--ease-out) both; }
html[data-vt="forward"]::view-transition-old(main) { animation-name: vt-out-l; } html[data-vt="forward"]::view-transition-new(main) { animation-name: vt-in-r; }
html[data-vt="back"]::view-transition-old(main) { animation-name: vt-out-r; } html[data-vt="back"]::view-transition-new(main) { animation-name: vt-in-l; }
@keyframes vt-out { to { opacity: 0; } } @keyframes vt-in { from { opacity: 0; } }
@keyframes vt-out-l { to { opacity: 0; transform: translateX(-16px); } } @keyframes vt-in-r { from { opacity: 0; transform: translateX(16px); } }
@keyframes vt-out-r { to { opacity: 0; transform: translateX(16px); } } @keyframes vt-in-l { from { opacity: 0; transform: translateX(-16px); } }

/* ---------- breakpoints ---------- */
@media (max-width: 519px) { .loc-ribbon:not([data-state="set"]) .lr-label::after { content: "Choose your location"; } .topbar .theme-btn { display: none; } .lr-acc { display: none; } .brand { font-size: 17px; } }
@media (max-width: 639px) { .lr-zone { font-size: 0; gap: 0; } .lr-zone::before { width: 9px; height: 9px; } .lr-acc { display: none; } .lr-main::before { content: none; } .lr-btn { padding: 0 6px; } }
@media (min-width: 700px) {
  h1 { font-size: clamp(30px, 3.4vw, var(--fs-7)); }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  dialog.sheet { margin: auto; border-radius: var(--r-l); }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; } .bottom-nav { display: none; } .nav-d, .hsearch { display: flex; } .only-d { display: initial !important; } .only-m { display: none !important; }
  .brand { font-size: 20px; } .brand .logo, .brand img { width: 40px; height: 40px; }
  .topbar .bar { gap: 12px; }
  .cartbar, .install { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .split { grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 460px); gap: clamp(24px, 3vw, 56px); } .split > aside { position: sticky; top: calc(var(--chrome-h) + 16px); }
  .split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
  .twocol { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .sticky-act, .action-bar { position: static; background: none; border: 0; padding: 12px 0; margin: 0; } .auth { min-height: 70vh; align-content: center; }
  .map { height: 340px; } .radar { height: 380px; margin-top: 0; }
  .toasts { top: calc(var(--chrome-h) + 14px); }
  .footer { margin-top: var(--s-8); }
}
/* small laptops (900-1099px): the header doesn't have room for inline search and the partner button, so search collapses to its icon */
@media (min-width: 900px) and (max-width: 1099px) { .hsearch { display: none; } .hsearch-m { display: grid; } .nav-tag { display: none; } }
@media (min-width: 1100px) { .rail { margin-inline: calc(var(--pad) * -1); } .hsearch { flex-basis: 360px; } .topbar .nav-partner { display: inline-flex; } }
@media (min-width: 1600px) { :root { --fs-3: 16px; } }
@media (max-width: 899px) { .hsearch { display: none; } .hsearch-m { display: grid; } .mega, .cart-btn { display: none !important; } }
@media (min-width: 1100px) { .hsearch-m { display: none; } }

/* ---------- standalone (installed) app tweaks ---------- */
@media (display-mode: standalone) {
  html { overscroll-behavior-y: none; }
  body { -webkit-user-select: none; user-select: none; }
  p, h1, h2, h3, input, textarea, .card, .price, .code { -webkit-user-select: text; user-select: text; }
  .footer { display: none; }
}
.chrome, .btn, .chip, .cat, .tabs, .bottom-nav, .iconbtn { -webkit-touch-callout: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .skel { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
  html.js [data-stagger] > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  .chrome, .topbar, .bottom-nav, .cartbar, .install, .toasts, .splash, .offline-bar, .footer, .skip, .sticky-act, .action-bar { display: none !important; }
  body { padding: 0; background: white; color: black; }
  .card, .kpi, .stat { border: 1px solid gray; break-inside: avoid; }
  a { text-decoration: underline; }
}

/* ---------- status colour system: green = good / savings / verified, amber = limited / pending / warning, red = urgent / error / cancelled ----------
   Tokens above (--ok --warn --bad plus -t tint and -b border). Text on a tint always passes WCAG AA (checked by tools/contrast_check.py). */
:root { --pine-s: var(--ok-t); --leaf-s: var(--ok-t); --gold-s: var(--warn-t); --danger-s: var(--bad-t); }
.tag { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 10px; border-radius: var(--r-p); font-size: var(--fs-1); font-weight: 700; line-height: 1.2; white-space: nowrap; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.tag .i { width: 13px; height: 13px; flex: none; }
.tag.ok { background: var(--ok-t); border-color: var(--ok-b); color: var(--ok); }
.tag.warn { background: var(--warn-t); border-color: var(--warn-b); color: var(--warn); }
.tag.bad { background: var(--bad-t); border-color: var(--bad-b); color: var(--bad); }
.tag.brand { background: var(--surface); border-color: var(--brand); color: var(--brand); }
/* every existing status pill gets its colour from one place */
.badge.good, .pf-pill.ok, .po-pill.ok, .mp-pill.ok { background: var(--ok-t); border-color: var(--ok-b); color: var(--ok); }
.badge.warn, .pf-pill.warn, .po-pill.warn, .mp-pill.warn { background: var(--warn-t); border-color: var(--warn-b); color: var(--warn); }
.badge.bad, .pf-pill.bad, .po-pill.bad, .po-pill.late, .mp-pill.bad { background: var(--bad-t); border-color: var(--bad-b); color: var(--bad); }
.po-pill.info, .pf-pill.info { background: var(--surface-2); color: var(--ink-2); }
.mp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.bk-badge.good, .bk-badge.warn, .bk-badge.bad { padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; }
.bk-badge.good { background: var(--ok-t); border-color: var(--ok-b); } .bk-badge.warn { background: var(--warn-t); border-color: var(--warn-b); } .bk-badge.bad { background: var(--bad-t); border-color: var(--bad-b); }
.bk-banner.ok { background: var(--ok-t); border-color: var(--ok-b); } .bk-banner.warn { background: var(--warn-t); border-color: var(--warn-b); } .bk-banner.bad, .bk-banner.err { background: var(--bad-t); border-color: var(--bad-b); }
.alert.ok { background: var(--ok-t); border-color: var(--ok-b); } .alert.warn { background: var(--warn-t); border-color: var(--warn-b); } .alert.err { background: var(--bad-t); border-color: var(--bad-b); }
.alert.ok, .alert.warn, .alert.err { color: var(--ink); }
.toast.ok { border-color: var(--ok-b); } .toast.warn { border-color: var(--warn-b); } .toast.err { border-color: var(--bad-b); }
.stars-row .i { stroke: var(--star); } .stars-row .i.on, .stars-row .i[data-on] { fill: var(--star); }
.line.disc, .bk-line.disc { color: var(--ok); }
.save { color: var(--ok); } .price-old { color: var(--muted); text-decoration: line-through; }
.hx-empty.ok { background: var(--ok-t); box-shadow: inset 0 0 0 1px var(--ok-b); } .hx-empty.warn { background: var(--warn-t); box-shadow: inset 0 0 0 1px var(--warn-b); } .hx-empty.bad { background: var(--bad-t); box-shadow: inset 0 0 0 1px var(--bad-b); }
/* offer cards: a flat top band shows urgency (green saving, amber ending soon, red last day) */
.hx-offer { border-top: 4px solid var(--ok); }
.hx-offer[data-tone="warn"] { border-top-color: var(--warn-fill); } .hx-offer[data-tone="bad"] { border-top-color: var(--bad); }
.hx-offer .big.save { color: var(--ok); } .hx-offer[data-tone="warn"] .big.save { color: var(--warn); } .hx-offer[data-tone="bad"] .big.save { color: var(--bad); }
.hx-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.hx-meter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.hx-meter > i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.hx-offer[data-tone="warn"] .hx-meter > i { background: var(--warn-fill); } .hx-offer[data-tone="bad"] .hx-meter > i { background: var(--bad); }
.hx-left { font-weight: 700; color: var(--ink-2); }
.hx-code { border-color: var(--ok); color: var(--ink); } .hx-code:hover { background: var(--ok-t); border-color: var(--ok); }
.hx-code .i { color: var(--ok); }
.off-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gut, var(--pad)) 4px; position: sticky; top: var(--chrome-h); z-index: 5; background: var(--bg); }
.off-nav a { text-decoration: none; } .off-nav .tag { min-height: 36px; padding: 0 14px; font-size: var(--fs-2); }
.off-pad { padding-inline: var(--gut, var(--pad)); }
.off-gift { display: grid; gap: 12px; justify-items: start; margin-inline: var(--gut, var(--pad)); padding: 20px; border-radius: 14px; background: var(--warn-t); box-shadow: inset 0 0 0 1px var(--warn-b); max-width: 640px; }
.off-gift p { color: var(--ink); }
.off-terms { list-style: none; margin: 0; padding: 0 var(--gut, var(--pad)); display: grid; gap: 10px; max-width: 760px; }
.off-terms li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: var(--fs-2); }
.off-terms .i { color: var(--ok); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.of-save { background: var(--ok-t); color: var(--ok); border: 1px solid var(--ok-b); border-radius: 999px; padding: 1px 8px; font-weight: 700; }

/* map attribution links: leaflet.css loads later and would win on equal specificity */
.leaflet-container .leaflet-control-attribution a { color: var(--ink-2); }
/* helper text on tinted rows (partner checklist): --muted is too light on the brand tint */
.pa-steps .pa-steptxt small { color: var(--ink-2); }

/* ---- button consistency (shared): 44px tap targets, one focus ring, visible disabled states, labels that wrap instead of clipping */
.add, .stepper button { min-height: 44px; }
.add { height: 44px; max-width: 100%; white-space: nowrap; }
.stepper { max-width: 100%; }
.stepper button { height: 44px; }
.add:focus-visible, .stepper button:focus-visible, .chip:focus-visible, .iconbtn:focus-visible, .lr-btn:focus-visible, .lr-icon:focus-visible, .theme-seg button:focus-visible, .menu-theme button:focus-visible, .ly-code:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.stepper button:focus-visible { outline-color: var(--on-brand); outline-offset: -4px; }
.add[disabled], .add[aria-disabled="true"], .stepper button[disabled], .chip[disabled], .chip[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.lr-btn, .lr-icon, .ly-code { position: relative; }
.lr-btn::after, .lr-icon::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }   /* visual size stays; the tap area reaches 44px */
.theme-seg button, .menu-theme button { min-height: 44px; }
.btn { max-width: 100%; text-align: center; }
.btn.sm.tight { min-height: 40px; }
@media (pointer: coarse) { .btn.sm.tight, .ly-code { min-height: 44px; } }
@media (max-width: 420px) { .btn { white-space: normal; line-height: 1.25; padding-block: 10px; } .btn.loading { white-space: nowrap; } }

/* ---------- language switcher + Nepali typography ---------- */
.lang-seg { grid-template-columns: repeat(2, 1fr); margin: 4px 0; }
.foot-bar .lang-seg { min-width: 150px; }
:lang(ne) body { word-spacing: normal; line-height: 1.65; }
:lang(ne) .btn, :lang(ne) .chip, :lang(ne) .bottom-nav span { letter-spacing: 0; }
