/* Tumpang - mobile-first styles. Tokens first; every colour used below comes from here. */
:root {
  /* Ungu brand */
  --ungu: #6d28d9;          /* primary actions, links. White text on it: 7.1:1 */
  --ungu-dark: #4c1d95;     /* hover, text on tints */
  --ungu-soft: #ede7fb;     /* selected / info tint */
  --ungu-line: #d6c8f5;
  /* Ink & surfaces */
  --ink: #1e1530;           /* deep aubergine-black body text */
  --ink-2: #5b5470;         /* secondary text: 6.5:1 on --bg */
  --bg: #f4f3f8;            /* cool very-light background */
  --surface: #ffffff;
  --line: #e3e0ec;
  --line-strong: #c9c4d8;
  /* Visor yellow: price / "your turn" moments only. Always dark text on it. */
  --visor: #ffc727;
  --visor-soft: #fff3c4;
  --visor-ink: #5c4300;
  /* States */
  --go: #15803d;  --go-soft: #e3f4e8;  --go-ink: #14532d;
  --stop: #b91c1c; --stop-soft: #fdecec; --stop-ink: #8a1c1c;
  --sky-soft: #e4eeff; --sky-ink: #1e3a8a;
  --gmaps: #1a73e8;
  /* Shape: radius by size of the thing, not one value everywhere */
  --r-xs: 4px;    /* number plate, tags */
  --r-sm: 10px;   /* inputs, buttons, photos */
  --r-md: 16px;   /* cards */
  --r-lg: 22px;   /* sheets */
  --r-pill: 999px;
  /* Type: 13 / 15 / 17 / 20 / 26 / 34 */
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --fs-xs: 13px; --fs-sm: 15px; --fs-md: 17px; --fs-lg: 20px; --fs-xl: 26px; --fs-2xl: 34px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --lift: 0 1px 2px rgba(30, 21, 48, .06), 0 6px 20px rgba(30, 21, 48, .08);
  font-family: var(--font-ui);
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  min-height: 100vh; font-size: var(--fs-sm); line-height: 1.5; -webkit-text-size-adjust: 100%;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
}
body.no-nav { padding-bottom: 24px; }
body.has-bar { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 96px); }
body.no-nav.has-bar { padding-bottom: 110px; }
a { color: var(--ungu); text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--fs-lg); letter-spacing: -.005em; }
h3 { font-size: var(--fs-md); }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-xs); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* focus: visible for keyboard users everywhere */
:focus-visible { outline: 3px solid var(--ungu); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 16px; min-height: 60px; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; min-height: 48px; justify-content: center; }
.logo b { font-family: var(--font-display); font-weight: 800; font-size: 23px; color: var(--ungu); letter-spacing: -.02em; }
.logo span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.topbar .spacer { flex: 1; }
.icon-btn { position: relative; width: 48px; height: 48px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font: inherit; flex: none; }
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: 6px; right: 5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-pill); background: var(--visor); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }

/* BM | EN segmented switch */
.lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line); flex: none; }
.lang button { min-width: 42px; height: 40px; padding: 0 8px; border: 0; border-radius: var(--r-pill); background: none; font: 700 var(--fs-xs)/1 var(--font-ui); color: var(--ink-2); cursor: pointer; letter-spacing: .02em; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ungu-dark); box-shadow: 0 1px 3px rgba(30, 21, 48, .18); }
.lang.on-dark { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.lang.on-dark button { color: #fff; }
.lang.on-dark button[aria-pressed="true"] { background: #fff; color: var(--ungu-dark); }

/* ---------- bottom nav ---------- */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.bottomnav .in { max-width: 480px; margin: 0 auto; display: flex; }
.bottomnav a, .bottomnav button {
  position: relative; flex: 1; min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--ink-2); font: 600 12px/1.1 var(--font-ui); background: none; border: 0; cursor: pointer; padding: 0 4px; text-align: center;
}
.bottomnav svg { width: 24px; height: 24px; }
.bottomnav .active { color: var(--ungu); }
.bottomnav .active::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ungu); }

/* ---------- sticky action bar (main action on key screens) ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 25; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30, 21, 48, .06); }
.no-nav .actionbar { bottom: 0; padding-bottom: var(--safe-b); }
.actionbar .in { max-width: 480px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center; }
.actionbar .btn { flex: 1; }
.actionbar .sum { flex: none; line-height: 1.15; }
.actionbar .sum .small { display: block; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border-radius: var(--r-md); padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.card.tight { padding: 12px 14px; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--line-strong); }
.card.current { border: 2px solid var(--ungu); }
.section { margin: 26px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section h2 { font-size: var(--fs-md); }
.row { display: flex; gap: 12px; align-items: center; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: var(--fs-xs); }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.page-head { margin-bottom: 16px; }
.page-head p { margin-top: 4px; color: var(--ink-2); }

/* ---------- forms ---------- */
label.f, .f { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--ink); }
.f .opt { font-weight: 500; color: var(--ink-2); }
.hint { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 6px; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
}
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b5470' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input::placeholder, textarea::placeholder { color: #767089; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ungu); box-shadow: 0 0 0 3px var(--ungu-soft); }
input[aria-invalid="true"] { border-color: var(--stop); }
textarea { min-height: 84px; resize: vertical; }
.field-err { color: var(--stop-ink); font-size: var(--fs-xs); font-weight: 600; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-weight: 600; min-height: 56px; line-height: 1.25; }
.check input { width: 22px; height: 22px; accent-color: var(--ungu); flex: none; margin: 0; }
.check:has(input:checked) { border-color: var(--ungu); background: var(--ungu-soft); }
.check:has(input:focus-visible) { outline: 3px solid var(--ungu); outline-offset: 2px; }
.check .sub { display: block; font-weight: 500; font-size: var(--fs-xs); color: var(--ink-2); }
.check.static { cursor: default; background: var(--bg); border-style: dashed; }
.check.plain { font-weight: 500; font-size: var(--fs-xs); align-items: flex-start; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: var(--r-sm); border: 0;
  background: var(--ungu); color: #fff; font: 700 16px/1.2 var(--font-ui); cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--ungu-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--ungu-dark); box-shadow: inset 0 0 0 1.5px var(--ungu-line); }
.btn.ghost:hover { background: var(--ungu-soft); }
.btn.visor { background: var(--visor); color: var(--ink); }
.btn.visor:hover { background: #f5b800; }
.btn.danger { background: var(--surface); color: var(--stop); box-shadow: inset 0 0 0 1.5px #efc4c4; }
.btn.danger:hover { background: var(--stop-soft); }
.btn.quiet { background: none; color: var(--ink-2); min-height: 48px; padding: 0 12px; }
.btn.quiet:hover { background: var(--line); color: var(--ink); }
.btn.sm { min-height: 48px; padding: 0 14px; font-size: var(--fs-sm); }
.btn.gmaps { background: var(--gmaps); }
.btn.gmaps:hover { background: #1558b0; }
.btn.big { min-height: 60px; font-size: var(--fs-md); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- messages ---------- */
.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm); margin-bottom: 14px; line-height: 1.4; }
.alert.warn { background: var(--visor-soft); color: var(--visor-ink); }
.alert.err { background: var(--stop-soft); color: var(--stop-ink); font-weight: 600; }
.alert.ok { background: var(--go-soft); color: var(--go-ink); }
.alert.info { background: var(--ungu-soft); color: var(--ungu-dark); }
.alert a { color: inherit; font-weight: 700; }
.alert code { font-size: 12px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 20px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; z-index: 70; box-shadow: var(--lift); max-width: calc(100vw - 32px); width: max-content; display: flex; gap: 10px; align-items: center;
  animation: toast-in .18s ease-out;
}
.no-nav .toast { bottom: 24px; }
.has-bar .toast { bottom: calc(var(--nav-h) + var(--safe-b) + 92px); }
.toast.ok::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; flex: none; }
.toast.err::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #f87171; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.empty { padding: 22px 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); }
.empty h3 { margin-bottom: 4px; }
.empty p { color: var(--ink-2); }
.empty .btn { margin-top: 14px; }
.loading { color: var(--ink-2); padding: 12px 0; }
.skel { border-radius: var(--r-md); background: linear-gradient(90deg, #ebe9f2 0%, #f6f5fa 50%, #ebe9f2 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; height: 132px; margin-bottom: 12px; }
.skel.short { height: 64px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- chips, pills, stars ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: var(--fs-xs); font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink-2); line-height: 1.3; border: 1px solid var(--line); }
.chip.peak { background: var(--visor-soft); color: var(--visor-ink); border-color: transparent; }
.chip.rain { background: var(--sky-soft); color: var(--sky-ink); border-color: transparent; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px 4px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-open { background: var(--ungu-soft); color: var(--ungu-dark); }
.st-assigned { background: var(--visor-soft); color: var(--visor-ink); }
.st-picked_up { background: var(--sky-soft); color: var(--sky-ink); }
.st-completed { background: var(--go-soft); color: var(--go-ink); }
.st-cancelled { background: var(--bg); color: var(--ink-2); }
.stars { color: #8a5a00; font-weight: 700; white-space: nowrap; }
.stars-big { color: #d99a00; font-size: 24px; letter-spacing: 2px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-xs); line-height: 1.3; white-space: nowrap; }
.tag.low { background: var(--visor); color: var(--ink); }
.tag.top { background: var(--ungu-soft); color: var(--ungu-dark); }
.tag.new { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- prices ---------- */
.price { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; line-height: 1; color: var(--ink); }
.price .cur { font-size: .52em; font-weight: 700; margin-right: 3px; letter-spacing: 0; vertical-align: .38em; color: var(--ink-2); }
.price.md { font-size: var(--fs-lg); }
.price.lg { font-size: 30px; }
.price.xl { font-size: var(--fs-2xl); }

/* ---------- Malaysian number plate: black plate, white bold letters ---------- */
.plate {
  display: inline-block; font-family: var(--font-display); font-variation-settings: 'wdth' 80; font-weight: 800; font-size: 16px; line-height: 1;
  background: #000; color: #fff; padding: 6px 9px 5px; border-radius: var(--r-xs); letter-spacing: .06em; white-space: nowrap;
  outline: 1px solid rgba(255, 255, 255, .6); outline-offset: -3px; font-variant-numeric: tabular-nums;
}
.plate.lg { font-size: 28px; padding: 10px 14px 9px; outline-offset: -5px; outline-width: 1.5px; }
.plate.none { background: var(--bg); color: var(--ink-2); outline: 1px dashed var(--line-strong); font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; font-size: var(--fs-xs); }

/* ---------- route ---------- */
.route { position: relative; padding-left: 28px; }
.route::before { content: ''; position: absolute; left: 7px; top: 24px; bottom: 26px; width: 2px; background: repeating-linear-gradient(var(--line-strong) 0 4px, transparent 4px 8px); }
.route .pt { position: relative; }
.route .pt + .pt { margin-top: 10px; }
.route .pt::before { content: ''; position: absolute; left: -28px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 4px var(--ungu); }
.route .pt.drop::before { border-radius: 3px; box-shadow: none; background: var(--ink); width: 14px; height: 14px; left: -27px; top: 4px; }
.route .lbl { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.3; }
.route .nm { font-weight: 700; font-size: var(--fs-md); line-height: 1.3; }
.route.compact .nm { font-size: var(--fs-sm); }

/* ---------- job cards ---------- */
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.job-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; }
.job-foot .lbl { font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 4px; }
.note { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; font-size: var(--fs-sm); margin-top: 14px; overflow-wrap: anywhere; }
.note .k { font-size: var(--fs-xs); color: var(--ink-2); display: block; }

/* stepper (a real sequence, so it is shown as steps) */
.steps { display: flex; gap: 4px; margin: 0 0 16px; }
.steps div { flex: 1; font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.2; }
.steps div::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps div.on::before { background: var(--ungu); }
.steps div.now { color: var(--ungu-dark); font-weight: 700; }

/* fare quote (post page) */
.quote { padding: 18px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.quote .lbl { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.quote .price { margin: 8px 0 10px; }
.quote .meta { margin-bottom: 10px; }
.map.map-tall { height: 280px; }

/* address search (OpenStreetMap / Photon) */
.geo-field { position: relative; }
.geo-input { -webkit-appearance: none; appearance: none; }
.geo-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--lift); max-height: 320px; overflow-y: auto; }
.geo-result { display: block; padding: 11px 14px; min-height: 52px; cursor: pointer; border-top: 1px solid var(--line); line-height: 1.3; }
.geo-result:first-child { border-top: 0; }
.geo-result .nm { display: block; font-weight: 700; }
.geo-result .ad { display: block; font-size: var(--fs-xs); color: var(--ink-2); margin-top: 2px; }
.geo-result:hover, .geo-result[aria-selected="true"] { background: var(--ungu-soft); }
.geo-status { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 6px; }
.geo-status.busy { color: var(--stop-ink); font-weight: 600; }
.quick-picks { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; align-items: center; scrollbar-width: thin; }
.quick-picks .qp-lbl { flex: none; font-size: 12px; color: var(--ink-2); margin-right: 2px; }
.quick-pick { flex: none; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 12px/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.quick-pick[aria-pressed="true"] { border-color: var(--ungu); background: var(--ungu-soft); color: var(--ungu-dark); }
/* map pins (Leaflet divIcon) */
.pin { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); color: #fff; font: 800 14px/1 var(--font-ui); box-shadow: 0 2px 6px rgba(30, 21, 48, .35); border: 2px solid #fff; }
.pin b { transform: rotate(45deg); }
.pin-A { background: var(--ungu); }
.pin-B { background: var(--ink); }
.leaflet-container { font-family: var(--font-ui); }
.leaflet-control-attribution { font-size: 11px; }
.locate-btn { margin: 6px 0 0 -12px; color: var(--ungu-dark); }
.addr-line { margin-top: 6px; }
.route .addr { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.35; overflow-wrap: anywhere; }
.map { width: 100%; height: 200px; border-radius: var(--r-sm); overflow: hidden; background: #e6e3ef; border: 0; display: block; }

/* ---------- offers: the trust card ---------- */
.sorter { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.sorter button { min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; font: 600 var(--fs-xs)/1 var(--font-ui); color: var(--ink-2); cursor: pointer; }
.sorter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.offer { background: var(--surface); border-radius: var(--r-md); padding: 16px; margin-bottom: 14px; box-shadow: var(--lift); border: 1px solid var(--line); }
.offer.best { border-color: var(--visor); box-shadow: var(--lift), 0 0 0 1px var(--visor); }
.offer.dim { opacity: .6; box-shadow: none; }
.offer-head { display: flex; gap: 12px; align-items: flex-start; }
.offer .who { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; color: inherit; text-decoration: none; min-height: 64px; }
.offer .face { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg); }
.offer .who h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer .who h3 .chev { color: var(--ink-2); font-weight: 500; }
.offer .rating { font-size: var(--fs-xs); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; }
.offer .price-col { text-align: right; flex: none; }
.offer .price-col .tag { margin-top: 8px; }
.bike-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-2); }
.pics { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; margin: 12px 0; }
.pics figure { margin: 0; }
.pics img { width: 100%; height: 108px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg); }
.pics figcaption { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.offer .comment { font-size: var(--fs-sm); margin: 12px 0 0; padding-left: 12px; border-left: 3px solid var(--ungu-line); overflow-wrap: anywhere; }
.offer .actions { margin-top: 14px; }
.offer .outcome { margin-top: 12px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.offer .outcome.won { color: var(--go-ink); }

/* assigned rider panel (customer) */
.rider-panel .look { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; border-radius: var(--r-sm); background: var(--bg); }
.rider-panel .look img { width: 44%; height: 96px; object-fit: cover; border-radius: var(--r-sm); }
.rider-panel .look .k { font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 6px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; padding: 4px 2px 8px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 16px; font-size: var(--fs-sm); background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; overflow-wrap: anywhere; }
.msg.mine { background: var(--ungu); color: #fff; align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.msg .who { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.msg .t { display: block; font-size: 11px; opacity: .8; margin-top: 2px; text-align: right; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; }
.chat-form .btn { flex: none; }
.quick-row { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 2px; }
.quick { flex: none; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--ungu-line); background: var(--surface); color: var(--ungu-dark); font: 600 var(--fs-xs)/1 var(--font-ui); cursor: pointer; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); margin-bottom: 16px; }
.tabs button { flex: 1; min-height: 44px; border: 0; background: none; font: 700 var(--fs-sm)/1 var(--font-ui); color: var(--ink-2); border-radius: var(--r-pill); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }

/* ---------- modal sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(30, 21, 48, .55); display: flex; align-items: flex-end; justify-content: center; }
.modal .sheet { background: var(--surface); width: 100%; max-width: 480px; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 8px 18px calc(22px + var(--safe-b)); max-height: 92vh; overflow-y: auto; animation: sheet-in .2s ease-out; }
.modal .sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .6; } }
@media (min-width: 600px) { .modal { align-items: center; } .modal .sheet { border-radius: var(--r-lg); } }

/* bid price input */
.price-input { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 14px; background: var(--surface); }
.price-input:focus-within { border-color: var(--ungu); box-shadow: 0 0 0 3px var(--ungu-soft); }
.price-input span { font-weight: 700; color: var(--ink-2); font-size: var(--fs-lg); }
.price-input input[type=number] { border: 0; box-shadow: none; font-family: var(--font-display); font-weight: 800; font-size: 30px; padding: 8px; min-height: 60px; font-variant-numeric: tabular-nums; }
.price-input input[type=number]:focus { box-shadow: none; }
.steppers { display: flex; gap: 8px; margin-top: 8px; }
.steppers button { flex: 1; min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); font: 700 var(--fs-sm)/1 var(--font-ui); color: var(--ink); cursor: pointer; }

/* rating */
.star-pick { display: flex; gap: 4px; justify-content: center; margin: 6px 0 14px; }
.star-pick button { width: 52px; height: 52px; font-size: 38px; line-height: 1; background: none; border: 0; cursor: pointer; color: #d3cfdf; padding: 0; border-radius: var(--r-sm); }
.star-pick button.on { color: #e0a100; }
.pay-opt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr { max-width: 220px; margin: 10px auto 0; border-radius: var(--r-sm); border: 1px solid var(--line); }
.duitnow-box { margin-top: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--bg); text-align: center; }

/* ---------- profile ---------- */
.profile-hero { display: flex; gap: 16px; align-items: center; }
.profile-hero .face { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.photo-edit { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.photo-edit:first-child { border-top: 0; padding-top: 0; }
.photo-edit .thumb { width: 88px; height: 88px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg); display: grid; place-items: center; color: var(--ink-2); font-size: 12px; text-align: center; border: 1.5px dashed var(--line-strong); padding: 4px; }
.photo-edit img.thumb { border: 0; padding: 0; }
.photo-edit .state { font-size: 12px; font-weight: 700; margin-top: 2px; }
.photo-edit .state.need { color: var(--stop-ink); }
.photo-edit .state.pending { color: var(--visor-ink); }
.photo-edit .state.ok { color: var(--go-ink); }
.photo-edit .state.opt { color: var(--ink-2); font-weight: 600; }
.file-btn { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--ungu-line); color: var(--ungu-dark); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; margin-top: 8px; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn:focus-within { outline: 3px solid var(--ungu); outline-offset: 2px; }
input.plate-input { font-family: var(--font-display); font-variation-settings: 'wdth' 80; font-weight: 800; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; background: #000; color: #fff; border-color: #000; }
input.plate-input::placeholder { color: #9a9a9a; }
.review { padding: 12px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 0; }
.review p { margin-top: 4px; overflow-wrap: anywhere; }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; padding: 14px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); min-height: 56px; }
.notif:hover { background: var(--surface); }
.notif .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; }
.notif.unread .dot { background: var(--ungu); }
.notif.unread .body { font-weight: 700; }
.notif .when { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 2px; }

/* ---------- logged-out pages ---------- */
.hero { background: var(--ungu); color: #fff; padding: 10px 16px 30px; }
.hero .in { max-width: 480px; margin: 0 auto; }
.hero .top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; margin-bottom: 26px; }
.hero .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.hero h1 { font-size: var(--fs-2xl); line-height: 1.06; max-width: 14ch; color: #fff; letter-spacing: -.02em; }
.hero p { margin-top: 12px; color: #ece5fc; font-size: var(--fs-md); max-width: 34ch; }
.demo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.demo-btns button { min-height: 56px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); font: 700 var(--fs-sm)/1.25 var(--font-ui); cursor: pointer; text-align: left; padding: 8px 12px; color: var(--ink); }
.demo-btns button span { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.demo-btns button:hover { border-color: var(--ungu); }

/* ---------- prototype test tools (demo mode only) ---------- */
.demo-btn { min-height: 48px; min-width: 48px; border: 0; border-radius: var(--r-pill); padding: 0 8px; font: 700 var(--fs-xs)/1 var(--font-ui); background: none; color: var(--ink); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; }
.demo-btn:hover { background: var(--bg); }
.demo-btn .ico { font-size: 18px; }
.demo-users { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.demo-user { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; min-height: 64px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font: 700 var(--fs-sm)/1.25 var(--font-ui); text-align: left; cursor: pointer; color: var(--ink); }
.demo-user .r { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.demo-user.on { border: 2px solid var(--ungu); background: var(--ungu-soft); }
.demo-lan { margin-top: 14px; padding: 12px; border-radius: var(--r-sm); background: var(--bg); font-size: var(--fs-xs); }
.demo-lan code { font-size: 13px; }
@media (max-width: 400px) { .demo-btn .lbl { display: none; } }
@media (max-width: 350px) { .logo span { display: none; } }

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

/* ---------- events calendar ---------- */
.ev-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ev-strip .event-card { flex: 0 0 78%; max-width: 290px; scroll-snap-align: start; }
.event-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.ev-strip .event-card { margin-bottom: 0; }
a.event-card:hover { border-color: var(--ungu-line); }
.event-card .ev-top { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-2); flex-wrap: wrap; }
.event-card .ev-ico { font-size: 16px; }
.event-card .ev-name { font-size: var(--fs-md); margin-top: 6px; line-height: 1.25; }
.event-card .ev-when { font-weight: 700; color: var(--ungu-dark); margin-top: 6px; font-size: var(--fs-sm); }
.event-card .ev-venue { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 2px; }
.event-card .demand-hint { margin-top: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--visor-soft); color: var(--visor-ink); font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; }
.event-card .ev-map { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: var(--gmaps); color: #fff; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.event-card .ev-map svg { width: 18px; height: 18px; }
.tag.tbc { background: var(--visor-soft); color: var(--visor-ink); }
.event-badge { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--ungu-soft); color: var(--ungu-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-row { margin: -6px 0 12px; }
.month-head { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; margin: 20px 0 8px; }
.ev-detail .ev-name { font-family: var(--font-display); font-size: var(--fs-xl); margin-top: 8px; }
.ev-detail .when-big { font-size: var(--fs-md); font-weight: 700; color: var(--ungu-dark); margin-top: 8px; }
.ev-actions { display: grid; gap: 10px; margin-top: 16px; }
.ev-actions .hint { margin-top: -4px; }
/* admin */
.admin-event-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.admin-event-row:first-child { border-top: 0; }
.admin-event-row.is-hidden .ev-name, .admin-event-row.is-past .ev-name { color: var(--ink-2); }
.admin-event-row .ev-name { font-weight: 700; }
.admin-event-row .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-event-row .acts .btn { min-height: 40px; padding: 0 12px; font-size: var(--fs-xs); }
.grid-dt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
input[type=date], input[type=time], input[type=url] { width: 100%; font: inherit; font-size: 16px; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }

/* brand logo (final kit: Helmet Lebih) */
.logo img { display: block; width: 134px; height: 26px; margin-bottom: 2px; }
.hero .wordmark img { display: block; width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }

/* ---------- help & support ---------- */
.emergency { display: block; text-decoration: none; font-size: var(--fs-sm); }
.emergency b { font-size: var(--fs-md); }
.btn.wa { background: var(--go); color: #fff; }
.btn.wa:hover { background: var(--go-ink); }
.msg-preview { margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-2); }
.msg-preview summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; }
.msg-preview p { background: var(--bg); border-radius: var(--r-sm); padding: 8px 10px; overflow-wrap: anywhere; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; min-height: 52px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--ungu); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 16px 14px; color: var(--ink); line-height: 1.5; }
.ride-support { text-align: center; margin: 4px 0 14px; font-size: var(--fs-sm); }
.ride-support-link { display: inline-block; min-height: 44px; padding: 10px 6px; color: var(--ink-2); text-decoration: none; }
.ride-support-link b { color: var(--ungu); text-decoration: underline; text-underline-offset: 2px; }
#supportEmail { flex-direction: column; gap: 0; padding: 8px 20px; line-height: 1.25; }

/* ---------- terms & privacy ---------- */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
.legal-links.center { justify-content: center; }
.legal-links a { display: inline-block; min-height: 40px; padding: 10px 2px; }
.check.plain a { font-weight: 700; }
.modal.gate { z-index: 90; background: rgba(30, 21, 48, .72); }
.modal.gate .sheet::before { display: none; }
.modal.gate .sheet { padding-top: 22px; }
body.gated { overflow: hidden; }
.legal-doc { max-width: 68ch; line-height: 1.6; }
.legal-doc h1 { font-size: var(--fs-xl); }
.legal-doc .legal-version { color: var(--ink-2); font-size: var(--fs-xs); margin-top: 6px; }
.legal-doc p, .legal-doc ul { margin: 12px 0 0; }
.legal-doc ul { padding-left: 22px; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc section h2 { font-size: var(--fs-md); margin-top: 28px; scroll-margin-top: 76px; }
.legal-doc section { scroll-margin-top: 76px; }
.legal-toc { margin-top: 20px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.legal-toc h2 { font-size: var(--fs-sm); color: var(--ink-2); }
.legal-toc ul { margin: 8px 0 0; padding: 0; list-style: none; }
.legal-toc li { margin: 2px 0; }
.legal-toc a { display: inline-block; padding: 6px 0; }
.legal-other { margin-top: 28px !important; }

/* ---------- account & registration ---------- */
.account-link { margin: 6px 0 0 -12px; }
.readonly { font-weight: 700; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px dashed var(--line-strong); overflow-wrap: anywhere; }
.username-status { font-size: var(--fs-xs); font-weight: 600; margin-top: 4px; min-height: 1em; color: var(--ink-2); }
.username-status.ok { color: var(--go-ink); }
.username-status.bad { color: var(--stop-ink); }
#checkEmail h2:focus { outline: none; }

/* ---------- notifications: bigger badge, pulse, banner ---------- */
.badge { min-width: 22px; height: 22px; font-size: 12px; top: 3px; right: 2px; }
.badge.pulse { animation: badge-pulse 1.2s ease-in-out infinite; }
@keyframes badge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.sound-toggle { width: 40px; font-size: 18px; }
.notif-toast {
  position: fixed; top: 10px; left: 50%; z-index: 95; width: min(460px, calc(100vw - 20px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: var(--fs-md); line-height: 1.3;
  box-shadow: 0 10px 30px rgba(30, 21, 48, .35); border-left: 6px solid var(--visor);
  animation: nt-in .35s cubic-bezier(.2, .9, .3, 1.3), nt-bump 1.2s ease-in-out .4s 2;
}
.notif-toast.soft { border-left-color: var(--ungu-line); font-size: var(--fs-sm); }
.notif-toast .nt-ico { font-size: 24px; flex: none; }
.notif-toast.out { opacity: 0; transform: translate(-50%, -20px); transition: opacity .5s, transform .5s; }
@keyframes nt-in { from { transform: translate(-50%, -120%); opacity: 0; } }
@keyframes nt-bump { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.04); } }

/* ---------- payment hand-off ---------- */
.qr.qr-big { width: min(280px, 80vw); max-width: none; margin: 12px auto 0; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.modal.pay-qr { z-index: 92; background: var(--surface); align-items: stretch; }
.modal.pay-qr .sheet { max-width: 480px; margin: 0 auto; border-radius: 0; max-height: 100vh; min-height: 100vh; text-align: center; padding: 22px 18px 28px; }
.modal.pay-qr .sheet::before { display: none; }
.pq-fare { margin: 10px 0 4px; }
.pq-id { margin-top: 10px; }
.pq-status { margin: 16px auto 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ungu-soft); color: var(--ungu-dark); font-weight: 700; display: flex; gap: 10px; align-items: center; justify-content: center; max-width: 380px; }
.pq-status.done { background: var(--go-soft); color: var(--go-ink); font-size: var(--fs-md); }
.pq-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: badge-pulse 1.2s ease-in-out infinite; flex: none; }
.pq-status.done .pq-dot { display: none; }
.pq-valve { margin-top: 16px; padding: 14px; border-radius: var(--r-sm); background: var(--visor-soft); color: var(--visor-ink); text-align: left; }
.pq-valve p { margin-bottom: 10px; }
.pay-card { border: 2px solid var(--ungu); }
.pay-qr-box { margin-top: 10px; }
.pay-line { font-weight: 700; }
.profile-block { padding: 16px; border-radius: var(--r-md); background: var(--stop-soft); color: var(--stop-ink); border: 2px solid #efc4c4; margin-bottom: 16px; }
.profile-block p { margin: 6px 0 12px; color: var(--ink); }
.profile-block.flash { animation: block-flash .9s ease-in-out 2; }
@keyframes block-flash { 50% { box-shadow: 0 0 0 6px rgba(185, 28, 28, .25); } }

/* ---------- finished trips: quiet, collapsible History ---------- */
.trip-history { margin-top: 14px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.trip-history summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); min-height: 48px; display: flex; align-items: center; gap: 6px; }
.trip-row { display: block; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: var(--fs-xs); line-height: 1.35; }
.trip-row:hover { background: #ecebf2; }
.trip-row .tr-route { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-row .tr-meta { display: flex; gap: 12px; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .badge.pulse { box-shadow: 0 0 0 3px var(--visor-soft), 0 0 0 5px var(--visor); }
  .notif-toast { box-shadow: 0 0 0 4px var(--visor), 0 10px 30px rgba(30, 21, 48, .35); }
}
@media (max-width: 400px) { .topbar .logo img { width: 104px; height: auto; } .lang button { min-width: 38px; padding: 0 6px; } }

/* ---------- installable app (PWA) ---------- */
/* Installed app on phones with a notch / status bar drawn over the page: keep bars clear of it. */
:root { --safe-t: env(safe-area-inset-top, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); }
.topbar { padding-top: var(--safe-t); }
.topbar .in { padding-left: max(16px, var(--safe-l)); padding-right: max(10px, var(--safe-r)); }
.hero { padding-top: calc(10px + var(--safe-t)); }
.bottomnav .in { padding-left: var(--safe-l); padding-right: var(--safe-r); }
.notif-toast { top: calc(10px + var(--safe-t)); }
.modal.pay-qr { padding-top: var(--safe-t); padding-bottom: var(--safe-b); }

.install-banner {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 10px 12px 12px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ungu); border-radius: var(--r-md); box-shadow: var(--lift);
}
.hero + .install-banner { max-width: 448px; margin: -14px auto 16px; position: relative; }
.install-banner img { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.install-banner .ib-text { flex: 1 1 calc(100% - 112px); min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); line-height: 1.35; }
.install-banner .ib-text span { color: var(--ink-2); }
.install-banner { flex-wrap: wrap; }
.install-banner .ib-close { order: 2; }
.install-banner .btn { flex: none; order: 3; margin-left: 56px; }
.install-banner .ib-close { flex: none; align-self: flex-start; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-2); cursor: pointer; border-radius: 50%; }
.install-banner .ib-close:hover, .install-banner .ib-close:focus-visible { background: var(--bg); }

.update-banner {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(68px + var(--safe-t)); z-index: 50;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; width: max-content; max-width: calc(100vw - 24px);
  background: var(--ink); color: #fff; border-radius: 999px; box-shadow: var(--lift); font-weight: 600; font-size: var(--fs-sm);
}
.no-nav .update-banner { top: calc(12px + var(--safe-t)); }
.update-banner .btn { background: var(--visor); color: var(--ink); min-height: 36px; }
