/* =========================================================
   SEATMATES — style.css
   Layout concept: an app shell (sticky top bar, phone tab bar) around
   content built from one object: the seat. Seats fill as people join.
   ========================================================= */
:root {
  /* colour: clean white, warm sunset orange for actions, peach for taken seats, ink for money panels */
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f7f7f7; --line: #e9e6e3; --fg: #1f1f1f; --fg-2: #5b5753; --muted: #8b8682;
  --brand: #f0532d; --brand-hover: #db4320; --brand-text: #d4421d; --on-brand: #ffffff;
  --saffron: #f0532d; --saffron-soft: #fff1eb; --saffron-ink: #ffffff;
  --coral: #d93636; --coral-soft: #fdecec; --ok: #12845a; --ok-soft: #e6f4ed;
  --hero: #1f1f1f; --hero-2: #2b2b2b; --on-hero: #ffffff; --on-hero-2: #b9b4b0;
  --warm: #fff6f1; --warm-2: #ffe7dc;
  --taken-bg: #ffe8de; --taken-line: #ffcdb9; --taken-fg: #b93f1c; --taken-strong: #ffb39a;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 28px -14px rgba(0,0,0,.18);
  --shadow-lg: 0 24px 60px -24px rgba(60,30,20,.28);
  /* type */
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --r: 20px; --r-sm: 12px; --r-xs: 8px;
  --hd: 68px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
:root[data-mode="dark"] {
    --bg: #121212; --surface: #1b1b1b; --surface-2: #242424; --line: #313131; --fg: #f3f1ef; --fg-2: #bfbab6; --muted: #8e8a86;
    --brand: #ff6743; --brand-hover: #ff7d5e; --brand-text: #ff8b6c; --on-brand: #ffffff;
    --saffron: #ff6743; --saffron-soft: #35211a; --saffron-ink: #ffffff;
    --coral: #ff6b6b; --coral-soft: #3a1d1d; --ok: #4cc38a; --ok-soft: #15301f;
    --hero: #0c0c0c; --hero-2: #181818; --on-hero: #ffffff; --on-hero-2: #a9a5a1;
    --warm: #1a1512; --warm-2: #2b1e17;
    --taken-bg: #3a251c; --taken-line: #5c3828; --taken-fg: #ffb49c; --taken-strong: #8f4c35;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 30px -16px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -30px rgba(0,0,0,.8);
    color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.6 var(--f-body); overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2.5px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s, color .2s; }
.btn:active { transform: scale(.98); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-sun { background: var(--saffron); color: var(--saffron-ink); }
.btn-sun:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--fg-2); }
.btn-light { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn-light:hover { border-color: var(--fg); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { border-color: var(--fg-2); }
.link { color: var(--brand-text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.app-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hd { display: flex; align-items: center; gap: 28px; height: var(--hd); max-width: 1240px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; }
.hd-nav { display: flex; gap: 4px; margin-right: auto; }
.hd-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--fg-2); font-size: .95rem; }
.hd-nav a:hover { background: var(--surface-2); color: var(--fg); }
.hd-nav a[aria-current] { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.hd-right { display: flex; align-items: center; gap: 10px; }
.hd-me { display: block; text-decoration: none; }

/* ---------- avatars ---------- */
.av { --h: 140; position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: hsl(var(--h) 45% 82%); color: hsl(var(--h) 55% 22%); font-weight: 700; font-size: .85rem; border: 2px solid var(--surface); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av i { font-style: normal; }
.av.xs { width: 28px; height: 28px; font-size: .68rem; }
.av.sm { width: 36px; height: 36px; font-size: .78rem; }
.av.lg { width: 64px; height: 64px; font-size: 1.2rem; }
.av.xl { width: 112px; height: 112px; font-size: 2rem; border-width: 4px; }
.av.more { background: var(--surface-2); color: var(--fg-2); }
:root[data-mode="dark"] .av:not(.more) { background: hsl(var(--h) 30% 30%); color: hsl(var(--h) 60% 88%); }

/* ---------- image slots + placeholders ---------- */
.slot { position: relative; display: block; overflow: hidden; background: var(--surface-2); isolation: isolate; }
.slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .7s; z-index: 0; }
.slot.loaded > img { opacity: 1; }
.slot.ph { background:
  radial-gradient(110% 90% at 90% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
  repeating-radial-gradient(circle at 15% 115%, transparent 0 18px, color-mix(in srgb, var(--brand) 9%, transparent) 18px 19px),
  linear-gradient(150deg, var(--warm), var(--warm-2)); }
.ph-label { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-family: var(--f-display); font-size: 1.05rem; }
.ph-label .ic { width: 20px; height: 20px; color: var(--brand-text); }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.tight { padding-block: 32px 56px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 8px; }
.sec-head p { color: var(--fg-2); max-width: 58ch; margin-top: 10px; }
.band { background: var(--warm); color: var(--fg); }
.trip-hero .eyebrow { color: #ffd2c2; }
.band .sec-head p { color: var(--fg-2); }

/* ---------- home hero ---------- */
.hero { background: linear-gradient(180deg, var(--warm) 0%, var(--bg) 100%); color: var(--fg); position: relative; overflow-x: clip; z-index: 5; }
.hero::after { content: ''; position: absolute; inset: -30% -10% auto 45%; height: 110%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
.hero h1 .seat-word { display: inline-flex; align-items: center; gap: .12em; }
.hero h1 .seat-chip { display: inline-block; width: .62em; height: .62em; border-radius: .16em; background: var(--brand); vertical-align: .05em; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero-lead { font-size: 1.15rem; color: var(--fg-2); max-width: 46ch; margin: 20px 0 28px; }
.search { display: grid; grid-template-columns: 1fr 1fr .9fr auto; gap: 6px; background: var(--surface); color: var(--fg); border-radius: 22px; padding: 6px; box-shadow: var(--shadow-lg); max-width: 640px; }
.search label { display: grid; gap: 0; padding: 8px 14px; border-radius: 16px; cursor: text; min-width: 0; }
.search label:hover { background: var(--surface-2); }
.search label > span:first-child { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search .dd-val { font-size: 1rem; }
.search input, .search select { border: 0; background: none; padding: 0; font-weight: 600; outline: none; width: 100%; min-width: 0; }
.search .btn { min-height: 100%; border-radius: 16px; padding: 0 22px; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--fg-2); font-size: .9rem; }
.hero-proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero-proof .ic { color: var(--brand-text); }

/* live seat board in the hero */
.board { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow-lg); }
.board-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.board-top h3 { font-size: 1.25rem; }
.board-top p { color: var(--fg-2); font-size: .88rem; margin-top: 4px; }
.board-price { text-align: right; }
.board-price b { font-family: var(--f-display); font-size: 1.5rem; color: var(--fg); display: block; line-height: 1; }
.board-price small { color: var(--muted); font-size: .78rem; }
.board-feed { display: grid; gap: 8px; margin-top: 16px; min-height: 92px; }
.feed-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--fg-2); animation: feedIn .5s ease both; }
.feed-item b { color: var(--fg); font-weight: 600; }
.feed-item .av { border-color: var(--surface); }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- category rail ---------- */
.rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.cat { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cat .ic { color: var(--brand-text); width: 20px; height: 20px; }
.cat:hover { border-color: var(--brand-text); }
.cat.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.cat.on .ic { color: var(--on-brand); }

/* ---------- trip cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.tcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tc-media { aspect-ratio: 16 / 10; max-width: 100%; }
.tcard:hover .tc-media > img { transform: scale(1.04); }
.tc-cat, .tc-flag { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #1f1f1f; font-size: .75rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tc-cat .ic { color: #d4421d; }
.tc-flag { top: auto; bottom: 12px; background: var(--saffron); color: var(--saffron-ink); }
.tc-save { position: absolute; z-index: 3; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1b2a22; display: grid; place-items: center; cursor: pointer; }
.tc-save.on { color: var(--coral); }
.tc-save.on .ic { fill: currentColor; }
.tc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tc-route { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tc-route .ic { width: 14px; height: 14px; }
.tcard h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.tcard h3 a { text-decoration: none; }
.tcard h3 a:hover { color: var(--brand-text); }
.tc-when { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--fg-2); }
.tc-when .ic { color: var(--muted); }
.tc-fill { font-size: .82rem; }
.tc-foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 6px; }
.tc-people { display: flex; }
.tc-people .av + .av { margin-left: -8px; }
.tc-price { text-align: right; }
.tc-price b { font-family: var(--f-display); font-size: 1.35rem; display: block; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tc-price small { color: var(--muted); font-size: .75rem; }

/* seat strip: one square per seat */
.strip { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.strip i { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--surface-2); }
.strip i.on { background: var(--taken-strong); border-color: var(--taken-strong); }
.strip i.you { background: var(--brand); border-color: var(--brand); }
.fill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.fill .ic { width: 14px; height: 14px; }
.fill.ok { color: var(--ok); }
.fill.need { color: var(--brand-text); }
.fill.low { color: var(--coral); }
.fill.full { color: var(--muted); }

/* ---------- seat map ---------- */
.seatmap { --seat-bg: var(--surface); --seat-line: var(--line); --seat-fg: var(--fg); display: flex; justify-content: center; }
.sm-body { display: grid; gap: 10px; padding: 18px 16px 22px; border-radius: 34px 34px 18px 18px; border: 2px solid var(--seat-line); min-width: 0; }
.sm-row { display: grid; grid-template-columns: repeat(var(--cols), 46px); gap: 8px; justify-content: center; }
.sm-cell { height: 46px; border-radius: 12px 12px 8px 8px; display: grid; place-items: center; font-size: .8rem; }
.sm-aisle { background: none; }
.sm-driver { border: 1.5px dashed var(--seat-line); color: var(--seat-fg); opacity: .6; }
.sm-door { font-size: .66rem; color: var(--seat-fg); opacity: .5; text-transform: uppercase; letter-spacing: .08em; }
.sm-seat { position: relative; border: 1.5px solid var(--seat-line); background: var(--seat-bg); color: var(--seat-fg); align-content: center; gap: 0; line-height: 1.1; padding: 0; }
.sm-seat b { font-weight: 700; font-size: .9rem; }
.sm-seat small { font-size: .6rem; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
button.sm-seat { cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
button.sm-seat:hover { border-color: var(--brand-text); transform: translateY(-1px); }
.sm-seat.prem { border-style: dashed; border-color: var(--saffron); }
.sm-seat.taken { background: var(--taken-bg); border-color: var(--taken-line); color: var(--taken-fg); }
.sm-seat.taken small { opacity: .75; }
.sm-seat.blocked { background: repeating-linear-gradient(45deg, var(--surface-2) 0 6px, transparent 6px 12px); border-color: var(--seat-line); color: var(--muted); }
.sm-seat.sel, .sm-seat.you { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--fg-2); justify-content: center; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--surface); }
.legend i.t { background: var(--taken-bg); border-color: var(--taken-line); }
.legend i.s { background: var(--brand); border-color: var(--brand); }
.legend i.p { border-style: dashed; border-color: var(--saffron); }

/* ---------- home: how it works, for owners, community ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 12px; align-content: start; }
.how-card .step { font-family: var(--f-display); font-size: .85rem; font-weight: 700; color: var(--brand-text); display: inline-flex; align-items: center; gap: 8px; }
.how-card .step i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--saffron); color: var(--saffron-ink); font-style: normal; }
.how-card h3 { font-size: 1.35rem; }
.how-card p { color: var(--fg-2); }
.owner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.owner-media { border-radius: 28px; aspect-ratio: 5 / 4; max-width: 100%; }
.owner h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 16px; }
.owner p { color: var(--fg-2); max-width: 50ch; }
.owner-math { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 26px 0; }
.owner-math div { background: var(--surface); padding: 16px; }
.owner-math small { color: var(--fg-2); font-size: .78rem; display: block; }
.owner-math b { font-family: var(--f-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.owner-math .hi b { color: var(--brand-text); }
.community { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.comm-photo { border-radius: var(--r); min-height: 340px; }
.comm-list { display: grid; gap: 14px; }
.comm-item { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.comm-item .ic-wrap { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--saffron-soft); color: var(--brand-text); flex: none; }
:root[data-mode="dark"] .comm-item .ic-wrap { color: var(--saffron); }
.comm-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.comm-item p { color: var(--fg-2); font-size: .94rem; }

/* ---------- explore ---------- */
.ex-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 26px 18px; }
.ex-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.ex-head .search { margin-top: 18px; max-width: none; box-shadow: none; border: 1.5px solid var(--line); }
.ex-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--hd) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 20px; }
.filters h3 { font-size: .78rem; font-family: var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: .94rem; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); }
.range { width: 100%; accent-color: var(--brand); }
.range-val { display: flex; justify-content: space-between; font-size: .85rem; color: var(--fg-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ex-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ex-bar p { color: var(--fg-2); }
.select { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: .9rem; }
.filter-btn { display: none; }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r); }
.empty h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty p { color: var(--fg-2); margin-bottom: 18px; }

/* ---------- trip detail ---------- */
.trip-hero { position: relative; }
.trip-cover { height: clamp(260px, 42vw, 460px); }
.trip-cover::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(6,18,12,.85), rgba(6,18,12,.1) 60%); }
.trip-hero-in { position: absolute; inset: auto 0 0 0; z-index: 2; color: #f4f7f1; padding-bottom: 28px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .84rem; opacity: .85; margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.trip-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 22ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface-2); color: var(--fg); border: 0; }
.trip-hero .chip { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.chip .ic { width: 15px; height: 15px; }
.trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.trip-main { display: grid; gap: 40px; min-width: 0; }
.trip-main h2 { font-size: 1.6rem; margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--fg-2); max-width: 62ch; }
.vibes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; }
.stops li { display: grid; grid-template-columns: 110px 22px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.stops li::before { content: ''; position: absolute; left: 134px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.stops li:last-child::before { display: none; }
.stops time { font-size: .82rem; color: var(--muted); font-weight: 600; padding-top: 2px; font-variant-numeric: tabular-nums; }
.stops .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-text); margin-top: 5px; position: relative; z-index: 1; justify-self: center; }
.stops li:first-child .dot, .stops li:last-child .dot { background: var(--saffron); border-color: var(--saffron); }
.stops h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; }
.stops p { color: var(--fg-2); font-size: .92rem; }
.goers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.goer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.goer b { display: block; font-size: .92rem; }
.goer small { color: var(--muted); font-size: .78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goer.match { border-color: var(--saffron); background: var(--saffron-soft); }
.match-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--saffron-soft); color: var(--fg); font-size: .92rem; margin-bottom: 14px; }
.match-note .ic { color: var(--coral); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.list-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: start; color: var(--fg-2); font-size: .94rem; }
.ticks .ic { margin-top: 3px; color: var(--ok); }
.ticks.no .ic { color: var(--muted); }
.host-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.host-card h3 { font-size: 1.3rem; }
.host-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--fg-2); font-size: .88rem; margin: 6px 0 10px; }
.host-meta span { display: inline-flex; gap: 6px; align-items: center; }
.host-meta .ic { width: 15px; height: 15px; }
.star { color: var(--saffron); fill: var(--saffron); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { display: inline-flex; gap: 5px; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .76rem; font-weight: 700; }
.badge .ic { width: 13px; height: 13px; }
.vehicle-row { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface-2); margin-top: 16px; }
.vehicle-row .slot { width: 110px; height: 72px; border-radius: 12px; flex: none; }
.vehicle-row b { display: block; }
.vehicle-row small { color: var(--fg-2); }

/* booking panel */
.book { position: sticky; top: calc(var(--hd) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.book-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.book-top b { font-family: var(--f-display); font-size: 2rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.book-top small { color: var(--muted); display: block; margin-top: 4px; }
.book-sum { display: grid; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .92rem; }
.book-sum div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.book-sum .tot { font-weight: 700; font-size: 1.05rem; }
.book-note { display: flex; gap: 8px; font-size: .82rem; color: var(--fg-2); }
.book-note .ic { color: var(--ok); margin-top: 2px; }
.anchor { font-size: .82rem; color: var(--fg-2); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.anchor b { color: var(--fg); }
.mbar { display: none; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; font-size: .88rem; }
.field > span i { font-style: normal; font-weight: 400; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea { width: 100%; min-width: 0; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); font-size: .96rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-text) 20%, transparent); }
.field small { color: var(--muted); font-size: .8rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h2 { font-size: 1.35rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card h2 .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: .9rem; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.opt:has(input:checked) { border-color: var(--brand-text); background: color-mix(in srgb, var(--brand-text) 6%, var(--surface)); }
.opt b { display: block; font-size: .95rem; }
.opt small { color: var(--muted); font-size: .82rem; }
.opt > [data-ic] { margin-left: auto; color: var(--muted); display: grid; }
.opt .ic { width: 22px; height: 22px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle b { display: block; font-size: .95rem; }
.toggle small { color: var(--muted); font-size: .84rem; }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }

/* ---------- checkout ---------- */
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.co-main { display: grid; gap: 20px; min-width: 0; }
.hold { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--saffron-soft); font-size: .94rem; }
.hold b { font-variant-numeric: tabular-nums; font-family: var(--f-display); font-size: 1.15rem; }
.hold .ic { color: var(--coral); }
.pass-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pass-row:last-child { border-bottom: 0; }
.seat-tag { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px 12px 8px 8px; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.summary { position: sticky; top: calc(var(--hd) + 20px); display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.summary .slot { aspect-ratio: 16 / 8; max-width: 100%; }
.sum-body { padding: 20px 22px; display: grid; gap: 14px; }
.sum-body h3 { font-size: 1.25rem; }
.lines { display: grid; gap: 8px; font-size: .92rem; }
.lines div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.lines .tot { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.1rem; }

/* ---------- ticket ---------- */
.ticket-wrap { max-width: 760px; margin-inline: auto; }
.confirm-top { text-align: center; margin-bottom: 26px; }
.confirm-top .ok-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin: 0 auto 16px; }
.confirm-top .ok-ring .ic { width: 34px; height: 34px; }
.confirm-top h1 { font-size: clamp(2rem, 5vw, 3rem); }
.confirm-top p { color: var(--fg-2); margin-top: 10px; }
.ticket { display: grid; grid-template-columns: 1fr 220px; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.tk-main { padding: 26px; display: grid; gap: 18px; min-width: 0; }
.tk-route { display: flex; align-items: center; gap: 14px; }
.tk-route b { font-family: var(--f-display); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.03em; }
.tk-route .ic { color: var(--saffron); width: 26px; height: 26px; }
.tk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tk-grid small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.tk-grid b { font-size: 1rem; }
.tk-side { position: relative; background: var(--hero); color: var(--on-hero); padding: 26px 22px; display: grid; gap: 12px; align-content: center; justify-items: center; text-align: center; border-left: 2px dashed var(--line); }
.tk-side::before, .tk-side::after { content: ''; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.tk-side::before { top: -12px; } .tk-side::after { bottom: -12px; }
.tk-side canvas { width: 140px; height: 140px; background: #fff; border-radius: 12px; padding: 8px; }
.tk-side small { color: var(--on-hero-2); font-size: .78rem; }
.tk-code { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .1em; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.next-steps .card { padding: 18px; display: grid; gap: 8px; }
.next-steps .ic { color: var(--brand-text); width: 24px; height: 24px; }
.next-steps h3 { font-size: 1.05rem; }
.next-steps p { font-size: .88rem; color: var(--fg-2); }

/* ---------- tabs / lists ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); margin-bottom: 22px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--fg-2); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.trip-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.trip-row .slot { height: 96px; border-radius: 14px; }
.trip-row h3 { font-size: 1.15rem; margin: 4px 0; }
.trip-row p { color: var(--fg-2); font-size: .9rem; }
.trip-row .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.wait { background: var(--saffron-soft); color: var(--fg); }
.status.done { background: var(--surface-2); color: var(--fg-2); }
.stack { display: grid; gap: 12px; }

/* ---------- profile ---------- */
.prof-head { background: linear-gradient(180deg, var(--warm), var(--bg)); color: var(--fg); padding-block: 40px 0; border-bottom: 1px solid var(--line); }
.prof-in { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: end; padding-bottom: 28px; }
.prof-in h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.prof-in p { color: var(--fg-2); margin-top: 6px; }
.prof-stats { display: flex; gap: 28px; }
.prof-stats div { text-align: center; }
.prof-stats b { display: block; font-family: var(--f-display); font-size: 1.6rem; color: var(--fg); }
.prof-stats small { color: var(--fg-2); font-size: .8rem; }
.prof-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.review-top small { color: var(--muted); display: block; font-size: .8rem; }
.stars { display: inline-flex; gap: 2px; margin-left: auto; }
.stars .ic { width: 15px; height: 15px; }
.review p { color: var(--fg-2); }

/* ---------- drive & earn ---------- */
.drive-hero { background: linear-gradient(180deg, var(--warm), var(--bg)); color: var(--fg); overflow: hidden; }
.drive-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.drive-in h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
.drive-in h1 em { font-style: normal; color: var(--brand-text); }
.drive-in p { color: var(--fg-2); font-size: 1.12rem; max-width: 48ch; margin: 18px 0 26px; }
.calc { background: var(--surface); color: var(--fg); border-radius: 26px; padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.calc h2 { font-size: 1.3rem; }
.calc-row { display: grid; gap: 8px; }
.calc-row label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; gap: 12px; }
.calc-row label output { font-variant-numeric: tabular-nums; color: var(--brand-text); }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-result div { border-radius: 16px; padding: 14px 16px; background: var(--surface-2); }
.calc-result small { display: block; color: var(--fg-2); font-size: .8rem; }
.calc-result b { font-family: var(--f-display); font-size: 1.45rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc-result .big { grid-column: 1 / -1; background: var(--brand); color: var(--on-brand); }
.calc-result .big small { color: var(--on-brand); opacity: .8; }
.calc-result .big b { font-size: 2.2rem; }
.loan-bar { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.loan-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--ok)); border-radius: 999px; transition: width .4s; }
.loan-note { font-size: .9rem; color: var(--fg-2); }
.loan-note b { color: var(--fg); }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps4 li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps4 li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--saffron); color: var(--saffron-ink); font-family: var(--f-display); font-weight: 800; }
.steps4 h3 { font-size: 1.15rem; }
.steps4 p { color: var(--fg-2); font-size: .92rem; }
.steps4 { padding: 0; margin: 0; }
.fee-split { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.fee-bar { display: flex; height: 54px; border-radius: 16px; overflow: hidden; font-weight: 700; font-size: .9rem; }
.fee-bar span { display: grid; place-items: center; }
.fee-bar .you { flex: 9; background: var(--hero); color: var(--on-hero); }
.fee-bar .us { flex: 1; background: var(--saffron); color: var(--saffron-ink); min-width: 60px; }
.reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.req { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .94rem; }
.req .ic { color: var(--brand-text); width: 22px; height: 22px; }

/* ---------- trip designer ---------- */
.wiz { display: grid; grid-template-columns: 240px minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.wiz-steps { position: sticky; top: calc(var(--hd) + 20px); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wiz-steps button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--fg-2); }
.wiz-steps button i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 1.5px solid var(--line); font-style: normal; font-size: .85rem; flex: none; }
.wiz-steps button[aria-current="step"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.wiz-steps button[aria-current="step"] i { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.wiz-steps button.done i { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }
.wiz-panel { display: grid; gap: 18px; min-width: 0; }
.wiz-panel[hidden] { display: none; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; }
.stop-list { display: grid; gap: 10px; }
.stop-row { display: grid; grid-template-columns: 26px 140px 1fr auto; gap: 10px; align-items: center; }
.stop-row .grip { color: var(--muted); display: grid; place-items: center; }
.stop-row input { padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); min-width: 0; width: 100%; }
.veh-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.veh-pick label { display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; background: var(--surface); }
.veh-pick label:has(input:checked) { border-color: var(--brand-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-text) 15%, transparent); }
.veh-pick input { position: absolute; opacity: 0; pointer-events: none; }
.veh-pick b { font-size: .95rem; }
.veh-pick small { color: var(--muted); font-size: .8rem; }
.veh-pick .ic { width: 26px; height: 26px; color: var(--brand-text); }
.preview-pane { position: sticky; top: calc(var(--hd) + 20px); display: grid; gap: 14px; }
.earn { background: var(--hero); color: var(--on-hero); border-radius: 22px; padding: 20px; display: grid; gap: 10px; }
.earn small { color: var(--on-hero-2); }
.earn .lines div { color: var(--on-hero-2); }
.earn .lines b { color: var(--on-hero); }
.earn .lines .tot { border-color: rgba(255,255,255,.15); color: var(--on-hero); }
.earn .lines .tot b { color: #ff8d6e; font-family: var(--f-display); font-size: 1.5rem; }
.published { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 40px 20px; }
.published .ok-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.published .ok-ring .ic { width: 34px; height: 34px; }

/* ---------- dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dash-head p { color: var(--fg-2); margin-top: 6px; }
.kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.kpi small { color: var(--fg-2); font-size: .82rem; font-weight: 600; }
.kpi b { font-family: var(--f-display); font-size: 1.9rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: .8rem; color: var(--ok); font-weight: 600; }
.kpi.main { background: var(--hero); color: var(--on-hero); border-color: transparent; }
.kpi.main small { color: var(--on-hero-2); }
.kpi.main b { color: #ff8d6e; font-size: 2.3rem; }
.kpi svg.spark { width: 100%; height: 54px; margin-top: 6px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 1.2rem; }
.up-trip { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.up-trip:last-child { border-bottom: 0; }
.up-trip h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; }
.up-trip p { color: var(--fg-2); font-size: .86rem; }
.up-trip .strip { grid-column: 1 / -1; }
.up-trip .money { text-align: right; font-variant-numeric: tabular-nums; }
.up-trip .money b { display: block; font-family: var(--f-display); font-size: 1.15rem; }
.up-trip .money small { color: var(--muted); font-size: .76rem; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; white-space: nowrap; }
.tbl td:first-child { white-space: nowrap; }
.doc-list { display: grid; gap: 10px; }
.doc { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: .92rem; }
.doc .ic { color: var(--brand-text); }
.doc .status { margin-left: auto; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--hd)); }
.auth-media { position: relative; }
.auth-media .slot { position: absolute; inset: 0; }
.auth-quote { position: absolute; z-index: 2; left: 32px; right: 32px; bottom: 32px; background: rgba(6,18,12,.7); backdrop-filter: blur(10px); color: #f2f6f0; padding: 22px; border-radius: 20px; }
.auth-quote p { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; }
.auth-quote small { display: block; margin-top: 10px; color: #b8c7bd; }
.auth-form { display: grid; align-content: center; justify-items: center; padding-block: 48px; padding-left: var(--gut); padding-right: var(--gut-r); }
.auth-box { width: 100%; max-width: 440px; display: grid; gap: 18px; }
.auth-box h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.role { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role label { display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; background: var(--surface); }
.role label:has(input:checked) { border-color: var(--brand-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-text) 15%, transparent); }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role .ic { color: var(--brand-text); width: 24px; height: 24px; }
.role b { font-size: .98rem; }
.role small { color: var(--muted); font-size: .8rem; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { text-align: center; font-size: 1.3rem; font-weight: 700; padding: 12px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); width: 100%; min-width: 0; }
.upload { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; font-size: .92rem; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload .ic { color: var(--brand-text); width: 22px; height: 22px; }
.upload span { color: var(--fg-2); }

/* ---------- safety ---------- */
.safe-hero { background: linear-gradient(180deg, var(--warm), var(--bg)); color: var(--fg); padding-block: clamp(48px, 7vw, 80px); }
.safe-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.safe-hero p { color: var(--fg-2); font-size: 1.1rem; max-width: 56ch; margin-top: 16px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; }
.pillar .ic-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.pillar .ic-wrap .ic { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.25rem; }
.pillar ul { margin: 0; padding-left: 18px; color: var(--fg-2); display: grid; gap: 6px; font-size: .94rem; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand-text); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--fg-2); padding-bottom: 18px; }

/* ---------- footer ---------- */
.app-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; }
.ft { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; max-width: 1240px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.ft-brand p { color: var(--fg-2); margin-top: 14px; max-width: 38ch; font-size: .94rem; }
.ft h4 { font-size: .8rem; font-family: var(--f-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.ft a:not(.logo) { display: block; text-decoration: none; padding: 5px 0; font-size: .94rem; color: var(--fg-2); }
.ft a:not(.logo):hover { color: var(--fg); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 18px 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); max-width: 1240px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.credit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg-2); }
.credit b { color: var(--fg); font-weight: 800; }
.credit em { font-style: normal; color: #fdc00b; }
.credit-seats { display: inline-flex; gap: 2px; }
.credit-seats i { width: 8px; height: 8px; border-radius: 2.5px; border: 1.5px solid var(--line); transition: background .2s, border-color .2s; }
.credit:hover .credit-seats i { background: #fdc00b; border-color: #fdc00b; }
.credit:hover .credit-seats i:nth-child(2) { transition-delay: .08s; }
.credit:hover .credit-seats i:nth-child(3) { transition-delay: .16s; }

/* ---------- tab bar (phones) ---------- */
.tabbar { display: none; }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); background: var(--fg); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; transition: all .25s; z-index: 200; pointer-events: none; white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .wiz { grid-template-columns: 200px minmax(0, 1fr); }
  .preview-pane { grid-column: 2; position: static; }
}
@media (max-width: 1024px) {
  .trip-layout, .co-layout, .prof-layout { grid-template-columns: 1fr; }
  .book, .summary { position: static; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .steps4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  :root { --hd: 60px; }
  .hd-nav, .hd-pub { display: none; }
  .hd { justify-content: space-between; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 6px 0; border-radius: 12px; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a[aria-current] { color: var(--brand-text); }
  .tabbar .tab-pub .ic { width: 40px; height: 32px; padding: 5px 9px; border-radius: 12px; background: var(--brand); color: var(--on-brand); margin-top: -4px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hero-in, .owner, .community, .drive-in, .auth { grid-template-columns: 1fr; }
  .auth-media { min-height: 240px; }
  .auth-quote { left: 16px; right: 16px; bottom: 16px; padding: 16px; }
  .auth-quote p { font-size: 1.05rem; }
  .how, .pillars { grid-template-columns: 1fr; }
  .ex-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filter-btn { display: inline-flex; }
  .wiz { grid-template-columns: 1fr; }
  .wiz-steps { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .wiz-steps li { flex: none; }
  .wiz-steps button { padding: 8px 12px; }
  .preview-pane { grid-column: auto; }
  .ticket { grid-template-columns: 1fr; }
  .tk-side { border-left: 0; border-top: 2px dashed var(--line); }
  .tk-side::before, .tk-side::after { top: -13px; left: auto; bottom: auto; }
  .tk-side::before { left: -12px; } .tk-side::after { right: -12px; }
  .next-steps { grid-template-columns: 1fr; }
  .prof-in { grid-template-columns: auto 1fr; }
  .prof-stats { grid-column: 1 / -1; justify-content: space-between; }
  .ft { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .mbar { display: flex; position: fixed; z-index: 75; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -12px 24px -18px rgba(0,0,0,.35); }
  .mbar b { font-family: var(--f-display); font-size: 1.3rem; display: block; line-height: 1.1; }
  .mbar small { color: var(--muted); font-size: .78rem; }
  body.has-mbar .tabbar { display: none; }
}
@media (max-width: 600px) {
  .search { grid-template-columns: 1fr 1fr; border-radius: 20px; }
  .search .btn { grid-column: 1 / -1; min-height: 50px; }
  .two-col, .row2, .row3, .calc-result, .role { grid-template-columns: 1fr; }
  .calc-result .big { grid-column: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi.main { grid-column: 1 / -1; }
  .owner-math { grid-template-columns: 1fr; }
  .stops li { grid-template-columns: 74px 18px 1fr; gap: 10px; }
  .stops li::before { left: 92px; }
  .trip-row { grid-template-columns: 96px 1fr; }
  .trip-row .slot { height: 80px; }
  .trip-row .acts { grid-column: 1 / -1; justify-content: start; }
  .tk-grid { grid-template-columns: 1fr 1fr; }
  .steps4 { grid-template-columns: 1fr; }
  .stop-row { grid-template-columns: 1fr auto; }
  .stop-row .grip { display: none; }
  .stop-row input:first-of-type { grid-column: 1 / -1; }
  .sm-row { grid-template-columns: repeat(var(--cols), 40px); gap: 6px; }
  .sm-cell { height: 42px; }
  .pass-row { grid-template-columns: auto 1fr; }
  .pass-row .field:last-child { grid-column: 1 / -1; }
  .fee-split { grid-template-columns: 1fr; }
  .ft { grid-template-columns: 1fr; }
  .hero-proof { gap: 12px; }
}

/* =========================================================
   Layer 2: cut-outs, vectors, reviews, history, galleries
   ========================================================= */

/* ---------- vectors and overlapping cut-outs ---------- */
.vec { display: block; width: 100%; height: 100%; }
.hero-vec { position: absolute; z-index: 0; left: -2%; right: 30%; bottom: 0; height: 200px; color: color-mix(in srgb, var(--brand) 55%, transparent); pointer-events: none; }
.board-wrap { position: relative; }
.board-wrap .board { position: relative; z-index: 1; }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: .85rem; line-height: 1.25; animation: floaty 6s ease-in-out infinite; }
.float-chip:empty { display: none; }
.float-chip b { display: flex; align-items: center; gap: 4px; }
.float-chip small { color: var(--muted); display: block; }
.float-chip > .ic { width: 22px; height: 22px; color: var(--brand-text); margin-left: 4px; }
.fc-trust { top: -22px; left: -46px; }
.fc-last { bottom: 96px; right: -34px; animation-delay: -3s; }
.fc-pay { right: -18px; bottom: 34px; }
.fc-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--saffron-soft); color: var(--brand-text); }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.vec-float { position: absolute; z-index: 2; pointer-events: none; color: var(--brand); }
.vf-spark1 { width: 28px; height: 28px; top: -30px; right: 24%; }
.vf-spark2 { width: 16px; height: 16px; top: 40%; left: -34px; opacity: .6; }
.vf-spark3 { width: 22px; height: 22px; top: -18px; left: 30%; }
.cutout { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(40, 20, 10, .22)); }
.co-friends { width: 300px; left: -150px; bottom: -40px; }
.owner-stage { position: relative; }
.co-van { width: 62%; right: -8%; bottom: -14%; }
.vf-palm { width: 120px; height: 170px; top: -60px; left: -36px; opacity: .55; color: var(--brand-text); z-index: 0; }
.calc-stage { position: relative; }
.co-driver { width: 220px; left: -170px; bottom: 0; z-index: 0; }
.calc-stage .calc { position: relative; z-index: 1; }
.drive-hero, .safe-hero { position: relative; }
.drive-vec, .proof-vec { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; color: var(--brand); pointer-events: none; }
.drive-in, .safe-hero .wrap { position: relative; z-index: 1; }
.proof { position: relative; overflow: hidden; background: var(--warm); }
.proof .wrap { position: relative; z-index: 1; }
.confirm-top { position: relative; }
.co-pack { width: 150px; right: 0; top: -10px; }
.vf-ticket { width: 90px; height: 56px; left: 4%; top: 6px; transform: rotate(-12deg); color: var(--brand-text); }
.co-traveller { width: 46%; right: -6%; bottom: 120px; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }

/* ---------- trip cards: trust line ---------- */
.tc-host { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--fg-2); }
.tc-host .ic { width: 14px; height: 14px; }
.tc-host b { color: var(--fg); }
.tc-hot { position: absolute; z-index: 2; top: 50px; left: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .72rem; font-weight: 700; }
.tc-hot .ic { width: 13px; height: 13px; }
.star-off { color: var(--line); fill: var(--line); }

/* ---------- interest-matched seats ---------- */
.seat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seat-head h2 { margin: 0 !important; }
.like-pick { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--fg-2); flex-wrap: wrap; }
.like-pick .ic { color: var(--brand-text); }
.like-pick .select { padding: 7px 12px; }
.sm-seat.match { border-color: var(--brand-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.sm-heart { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.sm-heart .ic { width: 11px; height: 11px; fill: currentColor; }
.legend i.m { border-color: var(--brand-text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }

/* ---------- reviews ---------- */
.rv-list { display: grid; gap: 0; margin-top: 8px; }
.rv-list .rv { border-bottom: 1px solid var(--line); }
.rv-list .rv:last-child { border-bottom: 0; }
.rv-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rv-cols .rv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.rv { padding: 18px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.rv.mine { position: relative; }
.rv.mine::before { content: 'Your review'; justify-self: start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); background: var(--saffron-soft); padding: 3px 8px; border-radius: 999px; }
.rv-top { display: flex; gap: 12px; align-items: center; }
.rv-top b { display: block; }
.rv-top small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .78rem; flex-wrap: wrap; }
.rv-top small .ic { width: 13px; height: 13px; color: var(--ok); }
.rv .stars { margin-left: auto; flex: none; }
.rv p { color: var(--fg-2); }
.rv-best { font-size: .9rem; background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }
.rv-best b { color: var(--fg); }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-tags span { font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); }
.rv-photos { display: grid; grid-template-columns: repeat(4, 76px); gap: 6px; }
.rv-photos .slot { aspect-ratio: 1; border-radius: 10px; max-width: 100%; }
.rating { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: center; }
.rating-big { display: grid; justify-items: start; gap: 4px; }
.rating-big b { font-family: var(--f-display); font-size: 3rem; line-height: 1; letter-spacing: -.03em; }
.rating-big small { color: var(--muted); font-size: .82rem; }
.rating-bars { display: grid; gap: 5px; min-width: 0; }
.rating-bars div { display: grid; grid-template-columns: 14px 1fr 24px; gap: 10px; align-items: center; font-size: .8rem; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.rating-bars i { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rating-bars em { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.rating-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.rating-tags span { font-size: .8rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); }
.rating-tags b { color: var(--brand-text); }
.chip.on { background: var(--fg); color: var(--bg); }
.review-goal { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; background: var(--saffron-soft); margin-bottom: 16px; }
.review-goal small { display: block; color: var(--fg-2); font-size: .84rem; }
.goal-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 15%, var(--surface)); overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.my-rv { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: .86rem; }
.my-rv .stars .ic { width: 13px; height: 13px; }
.sub-h { font-size: 1.15rem; margin: 32px 0 14px; }

/* ---------- galleries ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-grid.six { grid-template-columns: repeat(6, 1fr); }
.ph-tile { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: none; aspect-ratio: 1; max-width: 100%; }
.ph-tile .slot { position: absolute; inset: 0; }
.ph-tile .ph-label { font-size: .85rem; bottom: 34px; }
.ph-tile:hover .slot > img { transform: scale(1.05); }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 20px 8px 8px; color: #fff; font-size: .76rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.ph-cap .av { border-color: transparent; }
.ph-grid.masonry { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 160px; }
.ph-grid.masonry .ph-tile { aspect-ratio: auto; }
.ph-grid.masonry .ph-tile:nth-child(5n+1) { grid-row: span 2; }
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(10,10,10,.9); display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb figure { margin: 0; width: min(900px, 100%); display: grid; gap: 12px; }
.lb-img { aspect-ratio: 4 / 3; border-radius: 16px; max-width: 100%; }
.lb-img > img { object-fit: contain; background: #000; }
.lb figcaption { color: #eee; text-align: center; font-size: .9rem; }
.lb-x { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- host trip history ---------- */
.hist { list-style: none; margin: 0; padding: 0; display: grid; }
.hist li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.hist li::before { content: ''; position: absolute; left: 8px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.hist li:last-child::before { display: none; }
.hist-dot { width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--brand); background: var(--surface); margin-top: 2px; position: relative; z-index: 1; }
.hist-body { display: grid; gap: 10px; min-width: 0; }
.hist-top { display: flex; justify-content: space-between; gap: 12px; }
.hist-top small { display: block; color: var(--muted); font-size: .82rem; }
.hist-score { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.hist-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-mini { width: 72px; height: 54px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; position: relative; }
.ph-mini .slot { position: absolute; inset: 0; }

/* ---------- write a review ---------- */
.rv-page { max-width: 760px; display: grid; gap: 18px; }
.rv-trip { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.rv-trip .slot { height: 90px; border-radius: 14px; }
.rv-trip h2 { font-size: 1.35rem; margin: 6px 0 2px; }
.rv-form { display: grid; gap: 20px; }
.rv-form h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.star-input { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.star-input button { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; color: var(--line); padding: 4px; transition: transform .12s; }
.star-input button .ic { width: 100%; height: 100%; fill: currentColor; }
.star-input button.on { color: var(--brand); }
.star-input button:hover { transform: scale(1.1); }
.star-input b { font-family: var(--f-display); font-size: 1.2rem; }
.up-row { display: flex; gap: 10px; flex-wrap: wrap; }
.up-thumb { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.up-thumb button .ic { width: 14px; height: 14px; }
.up-add { width: 96px; height: 96px; border-radius: 14px; border: 1.5px dashed var(--line); display: grid; place-items: center; align-content: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--fg-2); cursor: pointer; position: relative; }
.up-add .ic { width: 24px; height: 24px; color: var(--brand-text); }
.up-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- stories ---------- */
.stories-hero { overflow: hidden; }
.st-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 26px; }
.st-stats b { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--brand-text); line-height: 1; }
.st-stats small { color: var(--fg-2); font-size: .85rem; }

@media (max-width: 1100px) {
  .co-friends { width: 220px; left: -60px; bottom: -60px; }
  .co-driver { display: none; }
  .fc-trust { left: -10px; }
  .fc-last { right: -6px; }
}
@media (max-width: 880px) {
  .ph-grid.six { grid-template-columns: repeat(3, 1fr); }
  .fc-trust { top: -18px; left: 8px; }
  .fc-last { right: 8px; bottom: auto; top: 120px; }
  .co-friends { width: 170px; left: auto; right: -8px; bottom: -70px; }
  .board-wrap { margin-top: 20px; margin-bottom: 40px; }
  .hero-vec { right: 0; height: 120px; opacity: .6; }
  .co-traveller { display: none; }
  .vf-spark2 { display: none; }
  .fc-pay { right: 8px; }
}
@media (max-width: 600px) {
  .rating { grid-template-columns: 1fr; }
  .rv-photos { grid-template-columns: repeat(4, 1fr); }
  .rv-trip { grid-template-columns: 84px 1fr; }
  .rv-trip .slot { height: 70px; }
  .star-input button { width: 42px; height: 42px; }
  .rv-top { flex-wrap: wrap; }
  .rv .stars { margin-left: 0; }
  .co-pack { width: 100px; }
  .vf-ticket { display: none; }
  .ph-grid.masonry { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
}
@media (max-width: 600px) { .co-van { width: 58%; right: 0; bottom: -10%; } .co-friends { right: 0; } }
.rv-top small { display: block; }
.rv-top small .ic { display: inline-block; vertical-align: -2px; margin-right: 2px; }

/* =========================================================
   Top-view vehicle seat map (front at the top, right-hand drive)
   ========================================================= */
.vmap { --maxh: 680px; position: relative; container-type: inline-size; width: min(100%, calc(var(--maxh) * var(--vw) / var(--vh))); aspect-ratio: var(--vw) / var(--vh); max-width: 100%; margin: 30px auto 0; }
.vmap[data-kind="car"] { --maxh: 520px; }
.vmap[data-kind="suv"] { --maxh: 560px; }
.vmap[data-kind="bus"] { --maxh: 980px; }
.vmap.compact { --maxh: 470px; }
.vmap.compact[data-kind="bus"] { --maxh: 600px; }
.vm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vs-body { fill: var(--surface); stroke: color-mix(in srgb, var(--fg) 22%, transparent); stroke-width: 2; }
.vs-floor { fill: var(--surface-2); }
.vs-glass { fill: color-mix(in srgb, #5f8fb8 30%, var(--surface)); stroke: color-mix(in srgb, var(--fg) 18%, transparent); stroke-width: 1.5; }
.vs-wheel { fill: var(--fg); opacity: .85; }
.vs-light { fill: #ffd27a; }
.vs-tail { fill: #ef5b4c; }
.vm-photo { position: absolute; inset: 0; z-index: 1; background: none; }
.vm-photo.ph { display: none; }
.vm-photo > img { object-fit: fill; transition: none; }
.vmap:has(.vm-photo.loaded) .vm-seat:not(.taken):not(.sel):not(.you) { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.vmap:has(.vm-photo.loaded) .vm-driver { background: color-mix(in srgb, var(--surface-2) 75%, transparent); }
.vmap:has(.vm-photo.loaded) .vm-door { color: #fff; background: rgba(20,20,20,.55); padding: 2px 5px; border-radius: 4px; }
.vmap:has(.vm-photo.loaded) .vm-svg { opacity: 0; }
.vm-seat { position: absolute; z-index: 2; width: var(--seat); aspect-ratio: 1 / 1.1; transform: translate(-50%, -50%); display: grid; place-items: center; padding: 0; border: 1.5px solid color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 32% 32% 20% 20%; background: var(--surface); color: var(--fg); font: 700 clamp(.58rem, 5.2cqw, .95rem) / 1 var(--f-body); box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.vm-seat::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: 7%; height: 16%; border-radius: 4px; background: currentColor; opacity: .14; }
button.vm-seat { cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
button.vm-seat:hover { transform: translate(-50%, -50%) scale(1.08); border-color: var(--brand-text); }
.vm-seat.prem { border-style: dashed; border-color: var(--brand); }
.vm-seat.taken { background: var(--taken-bg); border-color: var(--taken-line); color: var(--taken-fg); }
.vm-seat.blocked { background: repeating-linear-gradient(45deg, var(--surface-2) 0 5px, var(--surface) 5px 10px); color: var(--muted); }
.vm-seat.sel, .vm-seat.you { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.vm-seat.match { border-color: var(--brand-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.vm-seat .sm-heart { top: -8px; right: -8px; }
.vm-driver { background: var(--surface-2); color: var(--muted); border-style: solid; }
.vm-driver .ic { width: 62%; height: 62%; }
.vm-door { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vm-front { position: absolute; z-index: 3; left: 50%; top: -28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.vm-front .ic { width: 13px; height: 13px; transform: rotate(-90deg); }
.board .vmap { margin-top: 26px; }

/* ---------- custom dropdown ---------- */
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.dd-wrap { position: relative; }
.search label.dd-wrap { cursor: pointer; }
.search label.dd-open { background: var(--surface-2); }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--fg); text-align: left; cursor: pointer; }
.dd-btn:focus-visible { outline: none; }
.dd-wrap:has(.dd-btn:focus-visible) { box-shadow: 0 0 0 2.5px var(--brand); border-radius: 16px; }
.dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-any { color: var(--fg-2); }
.dd-chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.dd-open .dd-chev { transform: rotate(180deg); color: var(--brand-text); }
.dd-pill { display: inline-flex; width: auto; gap: 6px; padding: 8px 12px 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; }
.dd-pill:hover, .dd-open .dd-pill { border-color: var(--fg); }
.like-pick.dd-wrap, label.dd-wrap:has(.dd-pill) { display: inline-flex; }
.dd-pop { position: absolute; z-index: 80; top: calc(100% + 10px); left: 0; width: max(100%, 280px); max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -18px rgba(40, 20, 10, .35), 0 2px 6px rgba(0,0,0,.06); padding: 8px; cursor: default; animation: ddIn .16s ease-out; text-transform: none; letter-spacing: 0; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } }
.dd-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 6px; border-radius: 14px; background: var(--surface-2); }
.dd-search .ic { color: var(--muted); width: 18px; height: 18px; }
.dd-search input { border: 0; background: none; outline: none; width: 100%; min-width: 0; font: inherit; font-weight: 500; color: var(--fg); }
.dd-list { max-height: 300px; overflow-y: auto; display: grid; gap: 2px; overscroll-behavior: contain; }
.dd-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--fg); }
.dd-opt.active { background: var(--surface-2); }
.dd-opt[aria-selected="true"] { background: var(--saffron-soft); color: var(--brand-text); }
.dd-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--fg-2); flex: none; }
.dd-opt.active .dd-ic { background: var(--surface); }
.dd-opt[aria-selected="true"] .dd-ic { background: var(--surface); color: var(--brand-text); }
.dd-ic .ic { width: 17px; height: 17px; }
.dd-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-opt small { color: var(--muted); font-weight: 500; font-size: .8rem; white-space: nowrap; }
.dd-tick { width: 18px; height: 18px; color: var(--brand-text); }
.dd-empty { padding: 14px; color: var(--muted); text-align: center; font-size: .9rem; }
@media (max-width: 600px) {
  .dd-pop { width: min(300px, calc(100vw - 32px)); }
}
/* friends cut-out: overlap the card's lower-left edge, not its text */
.co-friends { width: 270px; left: -235px; right: auto; bottom: -56px; z-index: 2; }
@media (max-width: 1100px) { .co-friends { width: 210px; left: -150px; bottom: -70px; } }
@media (max-width: 880px) { .co-friends { width: 150px; left: auto; right: -4px; bottom: auto; top: -108px; z-index: 0; } .board-wrap { margin-top: 110px; } }

/* form-style dropdown */
.dd-field { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 500; min-height: 48px; }
.dd-field:hover, .dd-open .dd-field { border-color: var(--fg); }
.dd-wrap:has(.dd-field:focus-visible) { box-shadow: none; }
.dd-field:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.co-driver { width: 190px; left: -96px; bottom: 0; }
.drive-in h1 { max-width: 11ch; }
@media (max-width: 1100px) { .co-driver { display: none; } }

.drive-in > div:first-child { position: relative; z-index: 2; }
.drive-in > div:first-child p { max-width: 30rem; }
.co-driver { width: 175px; left: -62px; bottom: 0; z-index: 0; }
.co-driver { width: 165px; left: -140px; }
@media (max-width: 1250px) { .co-driver { display: none; } }
.calc .loan-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

/* ================= HOME HERO v2: marketplace ================= */
.hero h1 { max-width: 13ch; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.who-q { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.who button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px 9px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.who button .ic { width: 17px; height: 17px; color: var(--muted); }
.who button:hover { border-color: var(--fg); }
.who button[aria-checked="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.who button[aria-checked="true"] .ic { color: var(--brand); }
.who button:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.who-line { display: flex; gap: 8px; align-items: flex-start; min-height: 2.9em; margin: 0 0 18px; color: var(--fg-2); font-size: .95rem; max-width: 52ch; }
.who-line .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok, #12805c); }
.who-line b { color: var(--fg); }

.mk-wrap { position: relative; }
.mk { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 22px; }
.mk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mk-head h3 { font-size: 1.15rem; }
.mk-hosts { display: flex; align-items: center; flex: none; }
.mk-hosts > * { margin-left: -10px; border: 2.5px solid var(--surface); border-radius: 50%; }
.mk-more { display: grid; place-items: center; width: 36px; height: 36px; background: var(--surface-2); font-size: .78rem; font-weight: 700; }
.mk-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 6px; }
.mk-types span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); font-size: .82rem; line-height: 1.25; }
.mk-types small { color: var(--muted); }
.mk-list { display: grid; }
.mk-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: 14px; transition: background .15s; animation: feedIn .35s both; }
.mk-row:first-child { border-top: 0; }
.mk-row:hover { background: var(--surface-2); }
.mk-veh { width: 74px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.mk-veh img { width: 100%; height: 100%; object-fit: cover; }
.mk-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-main > b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-main > small { color: var(--muted); font-size: .8rem; }
.mk-own { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--fg-2); margin-top: 3px; min-width: 0; }
.mk-own > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-own .star { width: 12px; height: 12px; color: var(--brand); vertical-align: -1px; }
.mk-own em { font-style: normal; color: var(--brand-text); font-weight: 600; }
.mk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.mk-side b { font-size: .98rem; }
.mk-side small { color: var(--muted); font-size: .74rem; }
.mk-side small.hot { color: var(--brand-text); font-weight: 700; }
.mk-fill { width: 64px; height: 5px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin-top: 5px; }
.mk-fill i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.co-van { position: absolute; z-index: 2; width: 230px; left: -150px; bottom: -40px; pointer-events: none; filter: drop-shadow(0 18px 18px rgba(40, 20, 10, .18)); }
@media (max-width: 1100px) { .co-van { width: 170px; left: -90px; bottom: -50px; } }
@media (max-width: 880px) { .co-van { display: none; } }
@media (max-width: 520px) {
  .mk { padding: 16px; border-radius: 22px; }
  .mk-head h3 { font-size: 1rem; }
  .mk-types { grid-template-columns: repeat(2, 1fr); }
  .mk-row { grid-template-columns: 56px 1fr auto; gap: 10px; padding: 11px 2px; }
  .mk-veh { width: 56px; height: 44px; }
  .who-q { width: 100%; }
  .who button { padding: 8px 12px 8px 10px; font-size: .88rem; }
}

/* ways to travel */
.ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.way { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.way:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.way-img { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.way-img img { width: 100%; height: 100%; object-fit: cover; }
.way-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.way-t { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.way-t .ic { width: 20px; height: 20px; color: var(--brand-text); }
.way q { color: var(--muted); font-style: italic; font-size: .92rem; }
.way ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .9rem; color: var(--fg-2); flex: 1; }
.way li { display: flex; gap: 8px; align-items: flex-start; }
.way li .ic { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--ok, #12805c); }
.way .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.way .link .ic { width: 16px; height: 16px; }
@media (max-width: 1000px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ways-grid { grid-template-columns: 1fr; } .way { flex-direction: row; } .way-img { width: 38%; aspect-ratio: auto; flex: none; } .way-body { padding: 14px; gap: 7px; } .way ul { font-size: .84rem; } }

/* the maths */
.maths { display: grid; grid-template-columns: .8fr 2fr; gap: 28px; align-items: center; background: var(--warm); border-radius: 28px; padding: clamp(22px, 4vw, 40px); }
.maths-q p { color: var(--fg-2); margin-top: 8px; }
.maths-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.m-col { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border-radius: 20px; border: 1px solid var(--line); }
.m-col small { color: var(--muted); font-weight: 600; font-size: .82rem; }
.m-col b { font-size: 1.35rem; letter-spacing: -.02em; }
.m-col p { color: var(--fg-2); font-size: .88rem; flex: 1; }
.m-col:not(.hi) b { color: var(--muted); }
.m-col.hi { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.m-col.hi small, .m-col.hi p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.m-col.hi b { color: var(--brand); }
.m-col .btn { margin-top: 6px; align-self: flex-start; }
@media (max-width: 900px) { .maths { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .maths-cols { grid-template-columns: 1fr; } }
.co-van { width: 200px; left: -128px; bottom: -78px; z-index: 0; }
@media (max-width: 880px) { .board-wrap.mk-wrap { margin-top: 8px; } }
@media (max-width: 520px) {
  .mk-main > b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
  .mk-own > span { white-space: normal; }
}

.owner-note { font-size: .85rem; color: var(--muted); margin: -6px 0 22px; }
.maths-range { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: .86rem; color: var(--fg-2); }
.maths-range .ic { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--brand-text); }
.maths-range b { color: var(--fg); }
