/* Taxico design tokens and shared components */
:root {
  color-scheme: light;
  --ink: #1a1b1f;
  --text-2: #4b4d55;
  --text-3: #74767f;
  --text-4: #b9bbc2;
  --line: #ecedf0;
  --wash: #f3f4f6;
  --wash-2: #e8e9ed;
  --canvas: #ffffff;

  /* Taxico orange: brand and primary action */
  --orange: #ff6a13;
  --orange-pressed: #e85a08;
  --orange-tint: #fff1e7;
  --orange-soft: #ffe2cf;
  --action: var(--orange);
  --action-pressed: var(--orange-pressed);
  --action-tint: var(--orange-tint);
  --brand: var(--orange);
  --brand-ink: #ffffff;

  --green: #12a37f;
  --green-tint: #e4f6f0;
  --blue: #3d8bff;
  --taxi-yellow: #ffc21a;
  --success: var(--green);
  --success-tint: var(--green-tint);
  --danger: #d23f2a;
  --warn-tint: #fff4d6;

  --pastel-1: #ffe9dc;
  --pastel-2: #dff3ea;
  --pastel-3: #e3ecfb;

  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 20px;
  --t-xl: 26px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-card: 0 4px 20px rgba(26, 27, 31, .08);
  --shadow-float: 0 2px 10px rgba(26, 27, 31, .14);

  --fast: 150ms;
  --med: 200ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font: 400 var(--t-md)/1.4 var(--font);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss03";
  letter-spacing: -.011em;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: var(--orange); }

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.medium { font-weight: 500; }
.semibold { font-weight: 600; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.hstack { display: flex; align-items: center; gap: 12px; }
.vstack { display: flex; flex-direction: column; gap: 12px; }
.icon { flex: none; display: block; }

/* ---------- Buttons (phone tier: 48 primary, 44 secondary) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 24px;
  font-weight: 600; font-size: var(--t-md); white-space: nowrap; text-decoration: none;
  transition: background var(--fast) var(--ease), opacity var(--fast);
}
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:active { background: var(--orange-pressed); }
.btn-primary:disabled { background: var(--wash-2); color: var(--text-3); cursor: default; }
.btn-outline { height: 44px; border: 1px solid var(--line); color: var(--ink); background: var(--canvas); font-weight: 500; }
.btn-outline:active { background: var(--wash); }
.btn-ghost { height: 44px; color: var(--orange); padding: 0 12px; font-weight: 500; }
.btn-ghost:active { background: var(--orange-tint); }
.btn-danger-text { height: 44px; color: var(--danger); padding: 0 12px; font-weight: 500; }
.btn-danger-text:active { background: var(--wash); }
.btn-row { display: flex; gap: 8px; }
.btn-row > .btn { flex: 1; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.icon-btn:active { background: var(--wash); }

.fab {
  position: fixed; z-index: 500; width: 44px; height: 44px; border-radius: 12px;
  background: var(--canvas); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-float);
}
.fab:active { background: var(--wash); }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: var(--t-sm); color: var(--text-2); font-weight: 500; }
.input {
  height: 48px; width: 100%; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--r-md); background: var(--wash);
  outline: none; transition: border-color var(--fast), background var(--fast);
}
.input:focus { border-color: var(--orange); background: var(--canvas); box-shadow: 0 0 0 3px var(--orange-tint); }
.input::placeholder { color: var(--text-3); }
.phone-input { display: flex; align-items: center; background: var(--wash); border: 1px solid transparent; border-radius: var(--r-md); height: 56px; padding: 0 14px; gap: 10px; }
.phone-input:focus-within { border-color: var(--orange); background: var(--canvas); box-shadow: 0 0 0 3px var(--orange-tint); }
.phone-input .prefix { color: var(--text-2); font-weight: 500; padding-right: 10px; border-right: 1px solid var(--wash-2); }
.phone-input input { border: 0; outline: none; flex: 1; min-width: 0; font-size: var(--t-lg); letter-spacing: .5px; background: none; }
.code-input { text-align: center; font-size: var(--t-xl); letter-spacing: 12px; height: 64px; }
.error-text { color: var(--danger); font-size: var(--t-sm); }

/* ---------- Segmented / chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--text-2); background: var(--canvas);
}
.chip[aria-pressed="true"] { background: var(--orange-tint); border-color: transparent; color: var(--orange); font-weight: 500; }

.segmented { display: flex; background: var(--wash); border-radius: var(--r-md); padding: 4px; gap: 4px; }
.segmented button { flex: 1; height: 40px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: var(--t-sm); }
.segmented button[aria-pressed="true"] { background: var(--canvas); color: var(--ink); box-shadow: 0 1px 2px rgba(26, 27, 31, .08); }

/* ---------- Rows ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0;
  border-bottom: 1px solid var(--line); text-align: left; width: 100%; color: inherit; text-decoration: none;
}
.rows > .row:last-child { border-bottom: 0; }
button.row:active, a.row:active { background: var(--wash); }
.row .lead {
  width: 36px; height: 36px; border-radius: 50%; background: var(--wash); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.row .lead.plain { background: none; color: var(--ink); width: 28px; }
.row-title { font-weight: 500; }
.row-sub { font-size: var(--t-sm); color: var(--text-2); }
.row .trail { color: var(--text-3); font-size: var(--t-sm); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.row .trail.on { color: var(--orange); font-weight: 500; }

/* Vehicle option rows (quote) */
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 8px 12px 8px 8px;
  border-radius: var(--r-md); text-align: left; border: 1.5px solid transparent;
}
.opt[aria-pressed="true"] { background: var(--orange-tint); border-color: var(--orange-soft); }
.opt:disabled { opacity: .45; }
.opt .veh-glyph { width: 64px; height: 44px; flex: none; }
.opt .fare { text-align: right; }
.opt .fare-label { font-size: var(--t-xs); color: var(--text-3); }
.opt .fare-value { font-size: var(--t-lg); font-weight: 700; white-space: nowrap; letter-spacing: -.2px; }
.check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-4); flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
[aria-pressed="true"] > .check { background: var(--orange); border-color: var(--orange); }

/* ---------- Money, plate, avatar, badges ---------- */
.money { display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; }
.price { font-weight: 600; white-space: nowrap; }
.plate {
  display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border-radius: 6px;
  border: 1.5px solid var(--ink); font-weight: 600; letter-spacing: .6px; font-size: var(--t-sm); white-space: nowrap;
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--pastel-1); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none;
}
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: var(--t-xs); font-weight: 500; background: var(--wash); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--green-tint); color: var(--green); }
.badge.live { background: var(--orange-tint); color: var(--orange); }
.badge.warn { background: var(--warn-tint); color: #8a6100; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 4px; background: var(--ink); color: #fff; font-size: var(--t-xs); font-weight: 600; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.dot.green { color: var(--green); }
.dot.orange { color: var(--orange); }
.star { color: #f5a400; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--t-lg); letter-spacing: -.2px; }
.logo-disc {
  width: 32px; height: 32px; border-radius: 10px; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.logo-disc.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 34px; }
.logo-disc.dark { background: var(--ink); color: var(--orange); }

/* ---------- App shell: map + bottom sheet ---------- */
.app { overflow: hidden; overscroll-behavior: none; }
#map { position: fixed; inset: 0; z-index: 0; background: #e9eef4; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
  background: var(--canvas); border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -4px 24px rgba(26, 27, 31, .1);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 80vh; overflow-y: auto;
  animation: sheet-in var(--med) var(--ease);
}
@keyframes sheet-in { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.grab { width: 36px; height: 4px; border-radius: 2px; background: var(--wash-2); margin: 0 auto 12px; }
.sheet h1 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -.2px; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin: -4px 0 8px -10px; }
.sheet-section { padding: 12px 0; border-top: 1px solid var(--line); }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.fab.top-left { top: calc(12px + env(safe-area-inset-top)); left: 16px; }
.fab.above-sheet { right: 16px; bottom: calc(var(--sheet-h, 240px) + 12px); transition: bottom var(--med) var(--ease); }

/* Home: floating "where to" card over the map, white body below */
.sheet.home { background: none; box-shadow: none; padding: 0; overflow: visible; max-height: none; border-radius: 0; }
.where-card {
  position: relative; z-index: 1; margin: 0 12px; background: var(--canvas); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 6px 10px 10px;
}
.pickup-line { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; text-align: left; color: var(--green); font-weight: 500; }
.where-field {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 64px; padding: 0 16px;
  background: var(--wash); border-radius: var(--r-md); text-align: left;
  font-size: var(--t-xl); font-weight: 700; letter-spacing: -.4px; color: var(--ink);
}
.where-field:active { background: var(--wash-2); }
.home-body { background: var(--canvas); margin-top: -36px; padding: 52px 16px 0; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -4px 24px rgba(26, 27, 31, .06); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 16px; }
.service { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: var(--r-md); font-size: var(--t-sm); color: var(--ink); }
.service:active { background: var(--wash); }
.service svg { width: 36px; height: 36px; }
.promo {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; margin-bottom: 12px;
  border-radius: var(--r-md); background: linear-gradient(100deg, #fff6f0, #fff0e6); text-align: left; overflow: hidden;
}
.promo-title { font-weight: 700; font-size: var(--t-md); line-height: 1.25; }
.promo-title em { font-style: normal; color: var(--orange); font-size: var(--t-lg); }
.promo-cta { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; margin-top: 10px; border-radius: 15px; background: var(--orange); color: #fff; font-weight: 600; font-size: var(--t-sm); }

/* Bottom tab bar */
.tabbar {
  display: flex; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--canvas);
  border-top: 1px solid var(--line);
}
.tab-item {
  flex: 1; height: 52px; border-radius: var(--r-md); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: var(--t-xs); color: var(--text-2);
}
.tab-item[aria-current="page"] { background: var(--orange-tint); color: var(--orange); font-weight: 600; }
.home-body .tabbar { margin: 0 -16px; }
.screen .tabbar { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); margin: auto -16px calc(-16px - env(safe-area-inset-bottom)); }

.city-pill {
  position: fixed; z-index: 500; top: calc(12px + env(safe-area-inset-top)); left: 16px;
  height: 40px; padding: 0 14px 0 10px; border-radius: 20px; background: var(--canvas); box-shadow: var(--shadow-float);
  display: flex; align-items: center; gap: 6px; font-weight: 700;
}
.city-pill svg { color: var(--orange); }

.search-trigger {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 16px;
  background: var(--wash); border-radius: var(--r-md); color: var(--text-2); font-size: var(--t-md); text-align: left;
}
.search-trigger:active { background: var(--wash-2); }

.trip-line { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; align-items: center; }
.trip-line .mark { margin: 0 auto; }
.mark { width: 10px; height: 10px; border-radius: 50%; }
.mark.pick { background: var(--green); }
.mark.drop { background: var(--orange); }
.trip-line .rail { width: 2px; height: 18px; background: var(--line); margin: 2px auto; }
.trip-line .addr { padding: 4px 0; }

/* Assigned driver card */
.driver-card { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; }
.plate-big { font-size: 24px; font-weight: 800; letter-spacing: .5px; line-height: 1.1; }
.driver-visual { position: relative; width: 112px; height: 64px; flex: none; }
.driver-visual .veh-glyph { width: 96px; height: 64px; }
.driver-visual .avatar { position: absolute; right: -4px; bottom: -6px; width: 40px; height: 40px; font-size: var(--t-sm); border: 2px solid #fff; }
.action-pills { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 22px;
  background: var(--canvas); box-shadow: 0 1px 6px rgba(26, 27, 31, .1); font-weight: 600; color: var(--ink); text-decoration: none;
  flex: 1 1 0; min-width: 0; white-space: nowrap;
}
.pill:active { background: var(--wash); }
.pill-text {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 48px; min-width: 52px; padding: 0 4px; color: var(--text-2); font-size: var(--t-xs); flex: none;
}
.pill-text.danger { color: var(--danger); }
.note { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--wash); font-size: var(--t-sm); color: var(--text-2); }
.note b { color: var(--ink); font-weight: 600; }

.progress { height: 4px; border-radius: 2px; background: var(--wash); overflow: hidden; position: relative; }
.progress::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--orange); border-radius: 2px;
  animation: indeterminate 1.4s var(--ease) infinite;
}
@keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.countdown { height: 6px; border-radius: 3px; background: var(--wash); overflow: hidden; }
.countdown > div { height: 100%; background: var(--orange); border-radius: 3px; transition: width 1s linear; }

.pay-box { margin: 0 0 16px; padding: 16px; border-radius: var(--r-md); background: var(--wash); }
.pay-box.ok { background: var(--green-tint); }
.pay-box .phone-input { background: var(--canvas); height: 52px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--orange-soft); border-top-color: var(--orange); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stars { display: flex; justify-content: center; gap: 4px; }
.stars button { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--wash-2); }
.stars button[aria-pressed="true"] { color: #f5a400; }

/* ---------- Full screen overlays ---------- */
.screen {
  position: fixed; inset: 0; z-index: 800; background: var(--canvas);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: calc(8px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  animation: fade-in var(--fast) var(--ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.screen-head { display: flex; align-items: center; gap: 8px; min-height: 52px; margin-left: -10px; }
.screen-head h2 { font-size: var(--t-lg); font-weight: 700; }
.screen-head.center { justify-content: center; position: relative; margin-left: 0; }
.screen-head.center .icon-btn { position: absolute; left: -10px; }
.auth { max-width: 420px; width: 100%; margin: 0 auto; flex: 1; display: flex; flex-direction: column; gap: 20px; padding-top: 32px; }
.auth h1 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -.4px; line-height: 1.2; }
.auth .spacer { flex: 1; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 16px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 88px;
  border-radius: var(--r-md); background: var(--wash); font-size: var(--t-sm); font-weight: 500; color: var(--ink); text-decoration: none;
}
.tile:active { background: var(--wash-2); }
.section-label { font-size: var(--t-lg); font-weight: 700; margin: 20px 0 4px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(26, 27, 31, .32); animation: fade-in var(--fast); }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 901; width: min(320px, 86vw); background: var(--canvas);
  padding: calc(20px + env(safe-area-inset-top)) 16px 16px; display: flex; flex-direction: column; gap: 8px;
  animation: drawer-in var(--med) var(--ease);
}
@keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

.banner {
  position: fixed; z-index: 1000; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 20px; padding: 8px 14px; font-size: var(--t-sm);
  max-width: calc(100vw - 32px); box-shadow: 0 4px 16px rgba(26, 27, 31, .2);
}

.center-pin { position: fixed; z-index: 400; left: 50%; top: calc(50% - var(--sheet-h, 240px) / 2); transform: translate(-50%, -100%); pointer-events: none; }

/* ---------- Map ---------- */
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 10px; }
/* Soft blue-grey basemap so orange and vehicles stand out */
.base-tiles { filter: grayscale(1) sepia(.18) hue-rotate(175deg) saturate(1.7) brightness(1.07) contrast(.86); }
.veh { background: none; border: 0; }
.veh-rot { width: 100%; height: 100%; transition: transform 600ms linear; }
.pin-marker { background: none; border: 0; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(61, 139, 255, .2); }
.pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid #fff; position: relative; box-shadow: var(--shadow-float); }
.pulse::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: .7; } to { transform: scale(1.4); opacity: 0; } }
.map-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-float); }
.map-dot.pick { background: var(--green); }
.map-dot.drop { background: var(--orange); }
.map-label {
  background: var(--canvas); border-radius: 8px; padding: 4px 8px; font-size: var(--t-xs); font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-float); transform: translate(-50%, calc(-100% - 14px)); display: inline-block;
}
/* Pickup callout: tag + place name on a stem */
.callout { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 2px)); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.callout-tag { align-self: flex-start; margin-left: 10px; background: var(--green); color: #fff; font-size: var(--t-xs); font-weight: 600; padding: 3px 10px 5px; border-radius: 10px 10px 0 0; }
.callout-body {
  display: flex; align-items: center; gap: 4px; margin-top: -2px; background: var(--canvas); border-radius: 10px; padding: 8px 12px;
  font-size: var(--t-md); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-float); max-width: 70vw;
}
.callout-body span { overflow: hidden; text-overflow: ellipsis; }
.callout-stem { width: 3px; height: 18px; background: var(--green); border-radius: 0 0 2px 2px; }
.callout-foot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid #fff; margin-top: -2px; box-shadow: var(--shadow-float); }
/* Status bubble above the assigned vehicle */
.map-bubble {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 30px));
  background: var(--canvas); border-radius: 12px; padding: 8px 12px; white-space: nowrap; box-shadow: var(--shadow-float);
}
.map-bubble b { display: block; font-size: var(--t-sm); font-weight: 700; }
.map-bubble span { font-size: var(--t-xs); color: var(--green); font-weight: 500; }

@media (min-width: 640px) {
  .sheet { left: 16px; right: auto; width: 400px; bottom: 16px; border-radius: var(--r-lg); padding-bottom: 16px; }
  .sheet.home { padding-bottom: 0; }
  .home-body { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .fab.above-sheet { bottom: 28px; right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* =========================================================================
   DiDi-style screens (login, home, search, vehicle choice, payment)
   ========================================================================= */

.btn-dark { background: #0f2540; color: #fff; }
.btn-dark:active { background: #0a1a2e; }
.btn-dark:disabled { background: var(--wash-2); color: var(--text-3); cursor: default; }
.link-muted { color: var(--text-3); font-size: var(--t-sm); min-height: 32px; }
.link-muted:disabled { cursor: default; }

/* ---------- Login ---------- */
.login { position: relative; min-height: 100%; width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; padding-top: 20px; }
.login > * { position: relative; z-index: 1; }
.login .login-glow {
  position: absolute; z-index: 0; top: -150px; right: -140px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, #ffd9c2 0%, rgba(255, 217, 194, .45) 42%, rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.login-logo { width: 44px; height: 44px; border-radius: 13px; font-size: 24px; }
.login-title { font-size: 28px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; margin-top: 28px; }
.login-sub { color: var(--text-2); margin-top: 6px; }
.login-card { margin-top: 28px; background: var(--canvas); border-radius: 20px; padding: 20px 16px; box-shadow: 0 8px 32px rgba(26, 27, 31, .08); }
.phone-field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; }
.phone-field:focus-within { border-color: var(--ink); }
.phone-field .cc { display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 18px; padding-right: 12px; border-right: 1px solid var(--line); }
.phone-field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 20px; letter-spacing: .3px; }
.phone-field input::placeholder { color: var(--text-4); font-size: 18px; letter-spacing: 0; }
.terms { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 20px; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.terms input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.terms .tick { width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--text-4); flex: none; display: flex; align-items: center; justify-content: center; color: transparent; transition: background var(--fast); }
.terms input:checked + .tick { background: var(--orange); border-color: var(--orange); color: #fff; }
.terms input:focus-visible + .tick { box-shadow: 0 0 0 3px var(--orange-soft); }
.terms em { font-style: normal; color: var(--orange); }
.login-help { text-align: right; margin-top: 12px; }
.login-foot { margin-top: auto; padding-top: 24px; text-align: center; font-size: var(--t-sm); color: var(--text-3); }
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; cursor: text; }
.otp-box { height: 56px; border-radius: 12px; background: var(--canvas); box-shadow: 0 1px 6px rgba(26, 27, 31, .12); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; }
.otp-box.active::after { content: ""; width: 2px; height: 26px; border-radius: 1px; background: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.otp input { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; border: 0; }
.otp-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.toast-center {
  position: fixed; z-index: 1100; left: 50%; top: 42%; transform: translate(-50%, -50%);
  min-width: 200px; padding: 22px 28px; border-radius: 16px; background: #1f3550; color: #fff; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: fade-in var(--fast);
}
.toast-center .ok { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #1f3550; display: flex; align-items: center; justify-content: center; }

/* ---------- Home ---------- */
.pickup-line .pl-label { color: var(--text-3); font-weight: 400; flex: none; }
.pickup-line .pl-place { color: var(--green); font-weight: 600; }
.quick-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 0; }
.quick-row button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px; border-radius: 10px; font-size: var(--t-sm); color: var(--ink); }
.quick-row button:active { background: var(--wash); }
.quick-row button .icon { color: var(--text-2); }
.quick-row .sep { width: 1px; height: 14px; background: var(--line); flex: none; }
.services5 { display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 10px; margin: 0 -6px 16px; }
.services5 .service { position: relative; font-size: 13px; gap: 4px; }
.services5 .svc-art { width: 36px; height: 36px; }
.svc-badge { position: absolute; top: -4px; left: 50%; margin-left: 4px; padding: 1px 5px; border-radius: 8px 8px 8px 2px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-card { position: relative; min-height: 112px; padding: 14px 12px; border-radius: 16px; overflow: hidden; text-align: left; background: linear-gradient(160deg, #fff4ec, #ffe4d2); }
.promo-card.blue { background: linear-gradient(160deg, #eef5ff, #dceaff); }
.promo-card b { display: block; font-size: var(--t-md); font-weight: 800; letter-spacing: -.2px; }
.promo-card small { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--text-2); }
.promo-card .cta { position: absolute; left: 12px; bottom: 12px; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--orange); color: #fff; font-size: var(--t-xs); font-weight: 600; display: inline-flex; align-items: center; }
.promo-card .art { position: absolute; right: -4px; bottom: -4px; width: 68px; height: 68px; }
.sheet.home .home-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

.tabbar-float {
  position: fixed; z-index: 850; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 64px; padding: 6px; gap: 4px; display: flex; border-radius: 32px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26, 27, 31, .06); box-shadow: 0 8px 28px rgba(26, 27, 31, .14);
}
.tabbar-float button { flex: 1; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: var(--t-xs); color: var(--text-2); }
.tabbar-float button[aria-current="page"] { background: var(--wash); color: var(--orange); font-weight: 600; }
.screen.with-tabbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Search ---------- */
.screen.wash { background: #f5f6f8; }
.search-top { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 12px -8px; }
.search-top .icon-btn { margin-top: 26px; }
.search-box { flex: 1; min-width: 0; padding: 2px 14px; border-radius: 16px; background: var(--canvas); box-shadow: 0 2px 12px rgba(26, 27, 31, .06); }
.sb-row { display: flex; align-items: center; gap: 12px; height: 50px; }
.sb-row .dot { width: 9px; height: 9px; }
.sb-row input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: var(--t-md); }
.sb-row input:focus { font-weight: 500; }
.sb-row input::placeholder { color: var(--text-3); }
.sb-div { height: 1px; margin-left: 21px; background: var(--line); }
.shortcut-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.shortcut { height: 46px; border-radius: 12px; background: var(--canvas); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--t-sm); font-weight: 500; box-shadow: 0 1px 4px rgba(26, 27, 31, .05); white-space: nowrap; }
.shortcut .icon { color: var(--text-2); }
.shortcut:active { background: var(--wash); }
.list-card { padding: 2px 14px; border-radius: 16px; background: var(--canvas); }
.list-title { padding: 12px 0 2px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.place-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
.list-card .place-row:last-child { border-bottom: 0; }
.place-row:active { background: var(--wash); }
.place-row .icon { color: var(--text-3); }
.place-row b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-row small { display: block; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-dist { flex: none; font-size: 13px; color: var(--text-3); }
.list-empty { padding: 20px 0; font-size: var(--t-sm); color: var(--text-2); }

/* ---------- Vehicle choice ---------- */
.map-top { position: fixed; z-index: 550; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; }
.round-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--canvas); box-shadow: var(--shadow-float); display: flex; align-items: center; justify-content: center; }
.route-pill { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--canvas); box-shadow: var(--shadow-float); display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.route-pill .rp-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-pill .rp-line { flex: 0 0 22px; height: 2px; border-radius: 1px; background: var(--text-4); }
.map-label.end { display: inline-flex; align-items: center; gap: 2px; padding: 6px 8px 6px 10px; font-size: 13px; border-radius: 10px; }
.map-label.end .icon { color: var(--text-3); }
.route-badge { display: inline-block; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 10px; background: rgba(31, 36, 51, .92); color: #fff; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-float); }
.route-badge b { color: #7ee2bf; font-weight: 600; margin-right: 6px; }

.sheet.quote { height: 62vh; max-height: none; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.sheet.quote .grab { margin: 8px auto 0; }
.q-hint { padding: 8px 16px 10px; font-size: var(--t-sm); font-weight: 600; }
.q-hint b { color: var(--green); }
.q-body { flex: 1; min-height: 0; display: flex; background: #f5f6f8; }
.q-rail { width: 78px; flex: none; padding: 8px 0; overflow-y: auto; }
.q-rail button { width: 100%; height: 52px; font-size: var(--t-sm); color: var(--text-2); border-radius: 0 12px 12px 0; }
.q-rail button[aria-current="true"] { background: var(--canvas); color: var(--ink); font-weight: 700; }
.q-list { flex: 1; min-width: 0; padding: 8px 10px 12px 0; overflow-y: auto; }
.q-group { margin-bottom: 10px; padding: 2px 12px; border-radius: 16px; background: var(--canvas); }
.q-group-title { padding: 10px 0 0; font-size: 13px; font-weight: 500; color: var(--text-2); }
.veh-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 70px; padding: 10px 0; text-align: left; }
.veh-row + .veh-row { border-top: 1px solid var(--line); }
.veh-row .veh-art { width: 62px; height: 36px; flex: none; }
.veh-row .vr-main { flex: 1; min-width: 0; }
.veh-row .vr-name { display: flex; align-items: center; gap: 6px; font-size: var(--t-md); font-weight: 700; }
.veh-row .vr-seats { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-xs); font-weight: 500; color: var(--text-3); }
.veh-row .vr-sub { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.veh-row .vr-price { flex: none; text-align: right; }
.veh-row .vr-price small { display: block; font-size: 11px; color: var(--text-3); }
.veh-row .vr-price b { font-size: 19px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; }
.veh-row .vr-price b span { margin-left: 2px; font-size: var(--t-xs); font-weight: 600; }
.sq-check { width: 22px; height: 22px; margin-left: 4px; flex: none; border-radius: 6px; border: 1.5px solid var(--text-4); display: flex; align-items: center; justify-content: center; color: transparent; }
.veh-row[aria-pressed="true"] .sq-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.veh-row:disabled { cursor: default; }
.veh-row:disabled .veh-art, .veh-row:disabled .vr-main { opacity: .45; }
.soon-tag { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--orange-tint); color: var(--orange); font-size: var(--t-xs); font-weight: 600; }
.q-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--canvas); border-top: 1px solid var(--line); }
.fee-strip { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: var(--orange-tint); color: #b24a0b; font-size: 13px; text-align: center; }
.call-bar { display: flex; height: 60px; border-radius: 30px; overflow: hidden; background: #1f2433; }
.call-bar .cb-est { flex: 1.1; min-width: 0; padding: 0 20px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.call-bar .cb-est small { font-size: var(--t-xs); opacity: .7; }
.call-bar .cb-est b { font-size: var(--t-lg); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-bar .cb-go { flex: 1; border-radius: 30px; background: var(--orange); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; line-height: 1.2; }
.call-bar .cb-go small { font-size: var(--t-xs); font-weight: 500; opacity: .92; }
.call-bar .cb-go:active { background: var(--orange-pressed); }
.call-bar .cb-go:disabled { background: #474c5b; color: rgba(255, 255, 255, .6); }

/* ---------- Payment sheet ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 950; background: rgba(15, 18, 28, .45); animation: fade-in var(--fast); }
.modal-sheet {
  position: fixed; z-index: 951; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--canvas);
  animation: sheet-in var(--med) var(--ease);
}
.modal-sheet h2 { padding-right: 44px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.modal-sheet .modal-close { position: absolute; top: 12px; right: 10px; }
.est-big { margin: 18px 0; text-align: center; }
.est-big small { margin-right: 6px; font-size: 15px; color: var(--text-2); }
.est-big b { font-size: 34px; font-weight: 800; letter-spacing: -.6px; }
.est-big span { margin-left: 4px; font-size: var(--t-md); font-weight: 600; }
.pay-list { padding: 2px 14px; border-radius: 16px; background: var(--wash); }
.pay-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; text-align: left; }
.pay-opt + .pay-opt { border-top: 1px solid var(--wash-2); }
.pay-opt:disabled { opacity: .45; cursor: default; }
.pay-tile { width: 34px; height: 34px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--text-4); display: flex; align-items: center; justify-content: center; color: transparent; }
.pay-opt[aria-checked="true"] .radio { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- Trips ---------- */
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; padding: 16px 0 4px; }
.trip-card { display: block; width: 100%; margin-bottom: 10px; padding: 14px; border-radius: 16px; background: var(--canvas); text-align: left; }
.trip-card .tc-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.trip-card .tc-price { margin-left: auto; font-size: var(--t-md); font-weight: 800; color: var(--ink); }
.empty-state { padding: 64px 24px; text-align: center; }
.empty-state h3 { margin-top: 16px; font-size: var(--t-lg); font-weight: 800; }
.empty-state p { margin-top: 6px; color: var(--text-2); }

@media (min-width: 640px) {
  .sheet.quote { height: 72vh; }
  .modal-sheet { left: 50%; right: auto; width: 440px; bottom: 16px; transform: translateX(-50%); border-radius: 22px; }
  .tabbar-float { left: 50%; right: auto; width: 360px; transform: translateX(-50%); }
  .map-top { left: 440px; }
}

/* ---------- Assigned driver: driver, vehicle, actions ---------- */
.dc { margin-top: 12px; }
.dc-driver, .dc-vehicle { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.dc-vehicle { border-top: 1px solid var(--line); }
.dc-driver .avatar { width: 48px; height: 48px; }
.dc-name { font-size: var(--t-md); font-weight: 700; }
.dc-vehicle .veh-art { width: 76px; height: 44px; flex: none; }
.dc-vehicle .plate-big { font-size: 22px; }
.action-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 14px 0 2px; border-top: 1px solid var(--line); }
.action-grid a, .action-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0; font-size: 13px; color: var(--ink); text-decoration: none; }
.action-grid span { width: 48px; height: 48px; border-radius: 50%; background: var(--wash); display: flex; align-items: center; justify-content: center; }
.action-grid a:active span, .action-grid button:active span { background: var(--wash-2); }
.action-grid .danger { color: var(--danger); }
.action-grid .danger span { background: #fdecea; }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); }
.type-grid button .veh-art { width: 56px; height: 32px; }
.type-grid button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-tint); color: var(--ink); }
.otp-meta .link-muted { white-space: nowrap; flex: none; }
.quick-row button { white-space: nowrap; font-size: 13px; gap: 5px; padding: 0 4px; }
.promo-card b, .promo-card small { padding-right: 44px; }
.promo-card .art { width: 60px; height: 60px; }
.q-rail { width: 88px; }
.q-rail button { font-size: 13px; padding: 0 4px; }
.screen { overflow-x: hidden; }
.login .login-glow { position: fixed; }

/* ---------- Reservations ---------- */
.q-hint { display: flex; align-items: center; gap: 8px; }
.when-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 16px; background: var(--wash); color: var(--ink); font-size: 13px; font-weight: 600; flex: none; }
.when-chip .icon { color: var(--text-2); }
.when-line { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--orange-tint); font-size: var(--t-sm); font-weight: 600; }
.when-line .icon { color: var(--orange); }
.when-days { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-bottom: 2px; scrollbar-width: none; }
.when-days::-webkit-scrollbar { display: none; }
.when-days button { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--wash); font-size: var(--t-sm); font-weight: 500; color: var(--text-2); white-space: nowrap; }
.when-days button[aria-selected="true"] { background: var(--ink); color: #fff; }
.when-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 200px; overflow-y: auto; margin-top: 12px; }
.when-slots button { height: 44px; border-radius: 12px; border: 1.5px solid var(--line); font-size: var(--t-md); font-weight: 500; font-variant-numeric: tabular-nums; }
.when-slots button[aria-checked="true"] { border-color: var(--orange); background: var(--orange-tint); color: var(--orange); font-weight: 700; }
.res-list { margin-bottom: 6px; }
.res-card { padding: 12px 14px 4px; border-radius: 16px; background: var(--canvas); border: 1px solid var(--line); margin-bottom: 10px; }
.res-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--t-sm); }
.res-head .icon { color: var(--orange); }
.res-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.res-cancel { height: 40px; padding: 0 4px; color: var(--danger); font-size: var(--t-sm); font-weight: 500; flex: none; }
.list-head { font-size: var(--t-md); font-weight: 700; margin: 16px 2px 8px; }

/* ---------- Shared trip page (/suivi) ---------- */
.share-brand { position: fixed; z-index: 500; top: calc(12px + env(safe-area-inset-top)); left: 16px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 20px; background: var(--canvas); box-shadow: var(--shadow-float); font-weight: 700; }
.share-logo { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.sc { margin-top: 14px; padding: 2px 14px; border-radius: 16px; background: var(--wash); }
.sc-car { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.sc-car .veh-art { width: 96px; height: 56px; flex: none; }
.sc-driver { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--wash-2); }
.sc-driver .avatar { width: 40px; height: 40px; font-size: var(--t-sm); }
.share-foot { display: block; margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--line); text-align: center; font-size: var(--t-sm); color: var(--text-2); text-decoration: none; }
.share-foot b { color: var(--orange); font-weight: 600; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live-blink 1.4s infinite; }
@keyframes live-blink { 50% { opacity: .3; } }
.res-strip { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px; padding: 10px 12px; border-radius: 14px; background: var(--orange-tint); text-align: left; }
.res-strip > .icon { color: var(--orange); flex: none; }
.res-strip b { display: block; font-size: var(--t-sm); font-weight: 600; }
.res-strip small { display: block; font-size: var(--t-xs); color: var(--text-2); }
.res-strip > .icon:last-child { color: var(--text-3); }

/* ---------- Home v2: map mode with a pull-up card ---------- */
.sheet.home {
  top: 60vh; bottom: 0; max-height: none; padding: 0; overflow: hidden;
  background: var(--canvas); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 24px rgba(26, 27, 31, .12);
  transition: top 260ms var(--ease); animation: none;
}
.sheet.home.no-anim, .sheet.home.dragging { transition: none; }
.home-scroll { height: 100%; overflow-y: hidden; overscroll-behavior: contain; }
.sheet.home.open .home-scroll { overflow-y: auto; }
.home-head { position: sticky; top: 0; z-index: 2; background: var(--canvas); padding: 6px 16px 2px; }
.home-head .grab { display: block; margin: 2px auto 8px; cursor: pointer; box-shadow: 0 0 0 12px transparent; }
.promo-strip {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 12px; margin-bottom: 4px;
  border-radius: 12px; background: linear-gradient(90deg, #fff1e7, #ffe6d6); color: var(--ink); font-size: var(--t-sm); text-align: left;
}
.promo-strip > .icon { color: var(--orange); }
.promo-strip b { color: var(--orange); font-weight: 700; }
.promo-strip .ps-more { display: inline-flex; align-items: center; gap: 2px; color: var(--orange); font-weight: 600; font-size: 13px; flex: none; }
.sheet.home .pickup-line { min-height: 40px; padding: 0 4px; gap: 10px; font-size: var(--t-sm); }
.sheet.home .pickup-line .pl-label { color: var(--text-2); }
.sheet.home .where-field {
  height: 54px; padding: 0 6px 0 14px; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -.3px;
  border: 1.5px solid var(--ink); background: var(--canvas); border-radius: 16px;
}
.wf-main { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--ink); }
.wf-chip { flex: 0 1 auto; max-width: 46%; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--wash); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.sheet.home .quick-row { justify-content: flex-start; gap: 18px; padding: 6px 2px 0; }
.sheet.home .quick-row button { height: 40px; font-size: var(--t-sm); font-weight: 500; gap: 6px; }
.home-more { padding: 2px 16px calc(100px + env(safe-area-inset-bottom)); }
.last-trip { display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.lt-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--wash); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex: none; }
.last-trip b { display: block; font-weight: 600; }
.last-trip small { display: block; font-size: 13px; color: var(--text-2); }
.lt-go { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--orange); color: #fff; font-weight: 600; font-size: var(--t-sm); flex: none; }
.services4 { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; margin: 0 -4px 18px; }
.services4 .service { position: relative; gap: 6px; font-size: 13px; font-weight: 500; }
.services4 .svc-art { width: 42px; height: 42px; }
.services4 .svc-badge { margin-left: 8px; }
.promo-card { font: inherit; color: inherit; }
.promo-card b { font-weight: 700; }

/* Centre pin: the pickup (green) or the picked point (orange) */
.center-pin { top: 50%; transform: translate(-50%, -100%); transition: top 260ms var(--ease); }
.center-pin svg { display: block; margin: 0 auto; transition: transform 160ms var(--ease); }
.center-pin .pin-head, .center-pin .pin-stem { fill: var(--orange); }
.center-pin.pickup .pin-head, .center-pin.pickup .pin-stem { fill: var(--green); }
.center-pin.lifted svg { transform: translateY(-10px); }
.center-pin.lifted .pin-shadow { transform: translateY(10px); }
.pin-label {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 6px; pointer-events: auto;
  display: flex; align-items: center; gap: 4px; max-width: 64vw; height: 34px; padding: 0 10px 0 12px; border-radius: 10px;
  background: var(--canvas); box-shadow: var(--shadow-float); font-size: var(--t-sm); font-weight: 600; white-space: nowrap;
}
.pin-label .icon { color: var(--text-3); flex: none; }

/* Centred dialog */
.dialog-wrap { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 28, .45); animation: fade-in var(--fast); }
.dialog {
  position: relative; width: 100%; max-width: 320px; padding: 24px 20px 14px; border-radius: 20px; background: var(--canvas);
  text-align: center; animation: dialog-in 180ms var(--ease);
}
@keyframes dialog-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog-art { display: flex; justify-content: center; margin-bottom: 12px; }
.dialog-art .svc-art { width: 64px; height: 64px; }
.dialog h2 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -.2px; }
.dialog p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.dialog-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.dialog-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--orange-tint); color: var(--orange); display: flex; align-items: center; justify-content: center; }
.dialog-list { margin: 10px 0 0; padding: 0; list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.dialog-list li { padding: 10px 12px; border-radius: 12px; background: var(--wash); font-size: var(--t-sm); color: var(--text-2); }
.dialog-list b { color: var(--orange); font-weight: 700; }

@media (min-width: 640px) {
  .sheet.home { top: 16px; bottom: 16px; border-radius: var(--r-lg); }
  .sheet.home .home-scroll { overflow-y: auto; }
}

/* ---------- Vehicle list v2: one airy list, no side rail ---------- */
.sheet.quote { height: 64vh; }
.q-head { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px; font-size: 15px; font-weight: 500; }
.q-head b { color: var(--green); font-weight: 700; }
.q-head .when-chip { height: 34px; padding: 0 12px; gap: 6px; font-weight: 500; }
.q-promo { display: flex; align-items: center; gap: 8px; margin: 0 16px 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--orange-tint); color: var(--orange); font-size: 13px; font-weight: 600; text-align: left; }
.sheet.quote .q-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 8px; background: var(--canvas); }
.sheet.quote .q-group { margin: 0; padding: 0; border-radius: 0; background: none; }
.sheet.quote .q-group-title { padding: 14px 16px 2px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.sheet.quote .veh-row { gap: 14px; min-height: 76px; padding: 10px 16px; border: 0; }
.sheet.quote .veh-row + .veh-row { border-top: 0; box-shadow: inset 0 1px var(--line); }
.sheet.quote .veh-row[aria-pressed="true"] { background: #fff7f1; }
.sheet.quote .veh-row .veh-art { width: 58px; height: 34px; }
.sheet.quote .vr-name { font-size: 16px; font-weight: 600; }
.sheet.quote .vr-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.sheet.quote .vr-price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.vr-now { font-size: 17px; font-weight: 700; white-space: nowrap; letter-spacing: -.2px; }
.vr-now small { display: inline; font-size: 12px; font-weight: 500; color: var(--text-3); }
.vr-price s { font-size: 12px; color: var(--text-3); }
.sheet.quote .veh-row[data-soon] { opacity: .55; }
.skel { border-radius: 8px; background: var(--wash); }
.sheet.quote .q-foot { border-top: 1px solid var(--line); }

/* ---------- Payment sheet v2 ---------- */
.pay-sheet { padding-top: 8px; }
.ms-top { display: flex; justify-content: flex-end; height: 40px; margin: 0 -6px 2px; }
.pay-sheet h2 { padding-right: 0; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.pay-est { margin: 16px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--wash); }
.pay-est > div { display: flex; align-items: baseline; gap: 6px; }
.pay-est small { font-size: var(--t-sm); color: var(--text-2); }
.pay-est b { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.pay-est span { font-size: var(--t-sm); font-weight: 600; }
.pay-est p { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.pay-sheet .pay-list { padding: 0; background: none; border-radius: 0; }
.pay-sheet .pay-opt { min-height: 60px; gap: 12px; }
.pay-sheet .pay-opt + .pay-opt { border-top: 1px solid var(--line); }
.pay-opt .row-title { display: block; font-weight: 600; }
.pay-opt .row-sub { display: block; font-size: 13px; }
img.pay-tile { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.pay-tile { width: 36px; height: 36px; border-radius: 10px; }
.pay-tile.cash { background: var(--green-tint); color: var(--green); }
.pay-tile.miapay { background: linear-gradient(135deg, #ff6a13, #e84d00); color: #fff; font-weight: 800; font-size: 17px; }
.pay-tile.card { background: var(--wash); color: var(--text-2); }
.cb-tag { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--green-tint); color: var(--green); font-size: 11px; font-weight: 600; white-space: nowrap; }
.demo-note { margin-top: 8px; font-size: 12px; color: var(--text-3); text-align: center; }
.sheet.quote .vr-price .vr-now small { display: inline; margin-right: 1px; font-size: 12px; color: var(--text-3); font-weight: 500; }
.map-bubble.below { transform: translate(-50%, 28px); }

/* ---------- Ride sheet v2: car first, ETA block, waiting countdown ---------- */
.ride-head { display: flex; align-items: flex-start; gap: 12px; }
.ride-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; }
.ride-sub { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.eta-block { flex: none; min-width: 64px; height: 56px; padding: 0 10px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.eta-block b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.eta-block small { font-size: 11px; opacity: .8; }
.eta-block.wait { background: var(--green); }
.eta-block.late { background: var(--orange); }
.dc2 { margin-top: 14px; padding: 4px 14px 14px; border-radius: 16px; background: var(--wash); }
.dc2-car { display: flex; align-items: center; gap: 12px; padding-top: 10px; }
.dc2 .plate-big { font-size: 24px; font-weight: 800; letter-spacing: .4px; }
.dc2-model { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.dc2-visual { position: relative; flex: none; width: 104px; height: 60px; }
.dc2-visual .veh-art { width: 100px; height: 58px; }
.dc2-visual .avatar { position: absolute; left: -8px; bottom: -4px; width: 38px; height: 38px; font-size: 13px; border: 2.5px solid var(--wash); }
.dc2-driver { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.dc2-driver b { color: var(--ink); font-weight: 600; font-size: 15px; }
.dc2-driver .icon { color: #f5a400; vertical-align: -2px; }
.dc2-contact { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.msg-field { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--canvas); color: var(--text-2); text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.round-act { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--canvas); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.round-act:active, .msg-field:active { background: var(--wash-2); }
.ride-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.ride-foot b { color: var(--ink); font-weight: 600; }
.link-danger { flex: none; height: 36px; padding: 0 4px; color: var(--danger); font-weight: 600; font-size: 14px; }
.cancel-note { margin-top: 6px; font-size: 13px; color: var(--danger); }
.dc2-driver { align-items: center; }
.dc2-driver span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.dc2-driver .icon { vertical-align: 0; }
.ride-foot s { color: var(--text-3); font-size: 12px; }
.miapay-card { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #fff1e7, #ffe2cf); }
.miapay-card small { display: block; font-size: 13px; color: var(--text-2); }
.miapay-card b { font-size: 22px; font-weight: 800; }

/* ---------- Trajets list and trip details ---------- */
.trip-list { margin: 0 -16px; background: var(--canvas); }
.trip-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; text-align: left; }
.trip-row + .trip-row { border-top: 1px solid var(--line); }
.tr-thumb { width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--wash); display: flex; align-items: center; justify-content: center; }
.tr-thumb .veh-art { width: 54px; height: 32px; }
.trip-row b { display: block; font-size: 16px; font-weight: 600; }
.trip-row small { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.detail-top { height: 48px; display: flex; align-items: center; margin-left: -8px; }
.td-map { height: 170px; margin-top: 12px; border-radius: 16px; overflow: hidden; background: #e9eef4; }
.td-head { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.td-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; }
.td-head p { margin-top: 6px; font-size: 16px; color: var(--text-2); }
.td-head .td-price { margin-top: 2px; color: var(--ink); font-weight: 500; }
.td-avatar { width: 64px; height: 64px; font-size: 20px; flex: none; }
.tag-red { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 6px; background: var(--danger); color: #fff; font-size: 14px; font-weight: 600; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 16px; padding: 0 18px; border-radius: 22px; background: var(--wash); font-weight: 600; }
.receipt { margin-top: 12px; padding: 6px 16px; border-radius: 14px; background: var(--wash); }
.rc-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--text-2); }
.rc-line + .rc-line { border-top: 1px solid var(--wash-2); }
.rc-line.total { color: var(--ink); font-weight: 700; }
.rc-line.green span:last-child { color: var(--green); font-weight: 600; }
.td-stops { margin-top: 16px; }
.td-stop { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.td-stop .mk { width: 12px; height: 12px; flex: none; border: 3px solid var(--green); border-radius: 50%; }
.td-stop .mk.drop { border-color: var(--orange); border-radius: 3px; }
.td-stop b { display: block; font-weight: 500; }
.td-stop small { display: block; font-size: 13px; color: var(--text-2); }
.td-time { flex: none; font-size: 14px; color: var(--text-2); }
.td-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.td-row .icon { color: #f5a400; }
.td-section { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.td-help { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 0; text-align: left; border-bottom: 1px solid var(--line); }
.td-help b { display: block; font-weight: 600; }
.td-help small { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.td-help > .icon:last-child, .td-support > .icon:last-child { color: var(--text-3); }
.td-support { display: flex; align-items: center; gap: 14px; width: 100%; margin: 16px 0 8px; padding: 16px; border-radius: 14px; background: var(--wash); font-weight: 600; text-align: left; }
.wf-main span { white-space: nowrap; }
.wf-chip { max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-img, .avatar-svg { display: block; border-radius: 50%; object-fit: cover; flex: none; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick b { display: block; font-weight: 600; }
.photo-pick small { display: block; font-size: 13px; color: var(--text-2); }
.photo-btn { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--wash); color: var(--text-3); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1.5px dashed var(--text-4); }
.photo-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ride card v3: driver, car, contact, payment/price, route, actions ---------- */
.dc3 { margin-top: 14px; padding: 4px 14px 14px; border-radius: 16px; background: var(--wash); }
.dc3-driver, .dc3-car { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.dc3-car { border-top: 1px solid var(--wash-2); }
.dc3-meta { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.dc3-meta .icon { color: #f5a400; }
.dc3-car .veh-art { width: 76px; height: 44px; flex: none; }
.dc3-car .plate-big { font-size: 22px; font-weight: 800; letter-spacing: .4px; }
.dc3-model { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.dc3 .dc2-contact { margin-top: 4px; }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile2 { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); text-align: left; font-weight: 600; }
.tile2 .pay-tile, .tile2 img.pay-tile { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.tile2 > .icon:last-child { color: var(--text-3); flex: none; }
.tile2 small { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); }
.tile2 b { display: block; font-weight: 700; }
.t2-icon { color: var(--green); display: flex; }
.route-box { margin-top: 12px; padding: 4px 14px; border-radius: 14px; border: 1px solid var(--line); }
.rb-row { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.rb-row + .rb-row { border-top: 1px solid var(--line); }
.rb-row small { display: block; font-size: 12px; color: var(--text-2); }
.rb-row b { display: block; font-weight: 600; }
.rb-edit { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 600; }
.round-row { display: flex; justify-content: center; gap: 40px; margin: 18px 0 4px; }
.round-big { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.round-big span { width: 56px; height: 56px; border-radius: 50%; background: var(--wash); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.round-big:active span { background: var(--wash-2); }
.round-big[data-act="cancel"] span { color: var(--danger); background: #fdecea; }
.dialog .btn-danger-text { height: 48px; }

/* ---------- Home v3: full-screen scroller over the map (rest / scrolled / map mode) ---------- */
.sheet.home {
  top: 0; bottom: 0; left: 0; right: 0; max-height: none; padding: 0; border-radius: 0;
  background: transparent; box-shadow: none; overflow-y: auto; overscroll-behavior: contain;
  pointer-events: none; transition: none; animation: none; scrollbar-width: none;
}
.sheet.home::-webkit-scrollbar { display: none; }
.sheet.home.map-mode { overflow: hidden; }
.home-spacer { pointer-events: none; transition: height 280ms var(--ease); }
.home-card {
  pointer-events: auto; min-height: 100%; background: var(--canvas);
  border-radius: 20px 20px 0 0; box-shadow: 0 -6px 24px rgba(26, 27, 31, .12);
}
.home-card .home-head { position: static; padding: 6px 16px 0; }
.home-sticky { position: sticky; top: 0; z-index: 2; background: var(--canvas); padding: 4px 16px 4px; transition: box-shadow 150ms; }
.home-sticky.pinned { padding-top: calc(10px + env(safe-area-inset-top)); box-shadow: 0 6px 16px rgba(26, 27, 31, .08); }
@media (min-width: 640px) {
  .sheet.home { left: 16px; right: auto; width: 400px; top: 16px; bottom: 16px; border-radius: var(--r-lg); pointer-events: auto; }
  .home-card { border-radius: var(--r-lg); }
}
/* Enough scroll for the search field to reach the top and pin there. */
.home-card { min-height: calc(100% + 140px); }
/* Réserver / Pour un proche: centred grey pills */
.sheet.home .quick-row { justify-content: center; gap: 12px; padding: 10px 0 4px; }
.sheet.home .quick-row button { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--wash); gap: 6px; font-weight: 500; }
.sheet.home .quick-row button:active { background: var(--wash-2); }
.list-card + .list-card { margin-top: 12px; }

/* ---------- Search v2: back row, full-width box, Pour vous, favourites, stop ---------- */
.search-head { height: 48px; display: flex; align-items: center; margin: 0 0 4px -8px; }
.search-box { margin-bottom: 12px; }
.sb-add { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--wash); font-size: 13px; font-weight: 600; }
.sb-x { flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.dot.stop, .mark.stop { background: var(--canvas); border: 2.5px solid var(--ink); color: transparent; }
.sb-row .dot.stop { width: 10px; height: 10px; }
.map-dot.stop { background: var(--canvas); border: 3px solid var(--ink); }
.td-stop .mk.stop { border-color: var(--ink); border-radius: 50%; }
.rp-stop { flex: none; margin-left: 4px; padding: 2px 6px; border-radius: 6px; background: var(--wash); font-size: 11px; font-weight: 600; color: var(--text-2); }
.place-line { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.list-card .place-line:last-child { border-bottom: 0; }
.place-line .place-row { flex: 1; min-width: 0; border-bottom: 0; }
.place-row b, .place-row small { display: block; }
.fav-btn { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-3); }
.fav-btn small { font-size: 10px; }
.fav-btn[aria-pressed="true"] { color: var(--orange); }
.pl-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--orange); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; vertical-align: 2px; }
.list-card.foryou { padding: 0 14px 2px; border: 1px solid var(--orange-soft); overflow: hidden; }
.list-card.foryou .list-title { margin: 0 -14px; padding: 12px 14px; background: linear-gradient(180deg, #fff1e7, #fff8f3); color: var(--orange); font-weight: 600; }
.list-card { flex: none; }
.pay-est { text-align: center; padding: 14px 16px 12px; }
.pay-est > small { display: block; font-size: 13px; color: var(--text-2); }
.pay-est > div { justify-content: center; margin-top: 2px; }
.pay-est p { margin-top: 4px; }
.tile-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tile2 { min-width: 0; }

/* Payment sheet: white cards on a light grey sheet (DiDi), orange estimate */
.pay-sheet { background: var(--wash); }
.pay-sheet .pay-est { margin: 14px 0 16px; padding: 0; background: none; text-align: center; }
.pay-sheet .pay-est small { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.pay-sheet .pay-est p { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.pay-sheet .pay-est b { display: block; margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -.6px; color: var(--orange); line-height: 1.1; }
.pay-sheet .pay-list { padding: 0 14px; border-radius: 16px; background: var(--canvas); }
.pay-sheet .pay-opt + .pay-opt { border-top: 1px solid var(--line); }
.pay-sheet .demo-note { margin-top: 10px; }
.pay-opt .grow { min-width: 0; } .pay-opt .row-title, .pay-opt .row-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Desktop: the phone apps shown in a phone-sized frame ---------- */
body.desk-frame {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 64px; padding: 24px;
  background: radial-gradient(circle at 30% 20%, #fff1e7, #f3f4f6 60%); overflow: hidden;
}
.desk-side { max-width: 280px; }
.desk-side .logo-disc { width: 56px; height: 56px; border-radius: 16px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.desk-side h1 { margin-top: 16px; font-size: 32px; font-weight: 800; letter-spacing: -.6px; }
.desk-side p { margin-top: 8px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.desk-phone {
  width: 390px; height: min(844px, calc(100vh - 48px)); flex: none; padding: 10px; border-radius: 46px;
  background: #111317; box-shadow: 0 30px 80px rgba(26, 27, 31, .28);
}
.desk-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: var(--canvas); }
@media (max-width: 900px) { .desk-side { display: none; } }
/* Map place labels: up to 2 lines, small line under the name */
.map-label.end { display: flex; align-items: center; gap: 4px; width: max-content; max-width: 190px; white-space: normal; padding: 6px 8px 6px 10px; }
.ml-text { min-width: 0; }
.ml-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.25; }
.ml-text small { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; color: var(--green); }
.search-box { flex: none; }

/* Ride card slides over the map like the home card */
.sheet.ride {
  top: 0; bottom: 0; left: 0; right: 0; max-height: none; padding: 0; border-radius: 0;
  background: transparent; box-shadow: none; overflow-y: auto; overscroll-behavior: contain;
  pointer-events: none; animation: none; scrollbar-width: none;
}
.sheet.ride::-webkit-scrollbar { display: none; }
.ride-card { min-height: 0; }
.ride-inner { padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) {
  .sheet.ride { left: 16px; right: auto; width: 400px; top: 16px; bottom: 16px; border-radius: var(--r-lg); pointer-events: auto; }
  .sheet.ride .home-card { border-radius: var(--r-lg); }
}
.tile2 { gap: 8px; padding: 8px 10px; font-size: 15px; } .tile2 > .icon:last-child { width: 12px; }

/* ---------- In-app chat ---------- */
.chat-wrap { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; background: var(--wash); animation: fade-in var(--fast); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px 4px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-weight: 600; }
.chat-head small { display: block; font-size: 13px; color: var(--text-2); }
.chat-head .round-act { background: var(--wash); }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-empty { margin: auto; color: var(--text-3); font-size: 14px; }
.msg { max-width: 78%; align-self: flex-start; }
.msg p { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--canvas); font-size: 15px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.msg time { display: block; margin: 3px 6px 0; font-size: 11px; color: var(--text-3); }
.msg.mine { align-self: flex-end; text-align: right; }
.msg.mine p { background: var(--orange); color: #fff; border-radius: 18px 18px 6px 18px; text-align: left; }
.chat-quick { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--canvas); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.chat-bar { display: flex; gap: 8px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--canvas); border-top: 1px solid var(--line); }
.chat-bar input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--wash); font-size: 16px; outline: none; }
.chat-send { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; }
.chat-send:disabled { background: var(--wash-2); color: var(--text-3); }
.msg-field { font: inherit; text-align: left; }
.msg-new { color: var(--orange); font-weight: 600; }
.count-dot { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; }

/* ---------- Rating after the trip ---------- */
.rate-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: 4px; }
.rate-head h1 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.rate-head p { font-size: 14px; color: var(--text-2); }
.rate-stars { justify-content: center; gap: 4px; margin-top: 14px; }
.rate-stars button { color: var(--text-4); }
.rate-stars button[aria-pressed="true"] { color: #f5a400; }
.rate-word { margin-top: 4px; text-align: center; font-weight: 600; color: var(--text-2); }
.rate-ask { margin-top: 18px; font-size: 15px; font-weight: 600; text-align: center; }
.rate-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.rate-tags button { height: 38px; padding: 0 14px; border-radius: 19px; background: var(--wash); font-size: 14px; font-weight: 500; }
.rate-tags button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rate-comment { display: block; width: 100%; min-height: 84px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); font: inherit; font-size: 15px; resize: vertical; outline: none; }
.rate-comment:focus { border-color: var(--text-3); background: var(--canvas); }
.rate-pref { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); text-align: left; font-weight: 600; }
.rate-pref .icon { color: var(--text-3); }
.rate-pref[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-tint); }
.rate-pref[aria-pressed="true"] .icon { color: var(--orange); }
.rate-pref.block[aria-pressed="true"] { border-color: var(--danger); background: #fdecea; }
.rate-pref.block[aria-pressed="true"] .icon { color: var(--danger); }
.tip-box { margin: 18px 0 14px; padding: 14px; border-radius: 16px; background: var(--wash); text-align: center; }
.tip-box h3 { font-size: 16px; font-weight: 700; }
.tip-box p { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.tip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.tip-row button { height: 42px; border-radius: 21px; background: var(--canvas); border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; }
.tip-row button[aria-pressed="true"] { border-color: var(--orange); color: var(--orange); background: var(--orange-tint); }
.tip-input { margin-top: 10px; height: 48px; background: var(--canvas); }
.tip-input input { text-align: center; }

.low-rating { color: var(--danger); font-weight: 700; }
/* Promo cards: title, one line, then the button with the picture beside it */
.promo-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 0; padding: 14px 14px 12px; }
.promo-card b { padding-right: 0; font-size: 16px; line-height: 1.2; }
.promo-card small { padding-right: 0; margin-top: 4px; font-size: 13px; }
.promo-card .cta { position: static; margin-top: 14px; height: 30px; padding: 0 14px; font-size: 13px; }
.promo-card .art { width: 52px; height: 52px; right: -4px; bottom: -4px; }

/* Compte v2: name and avatar, four tiles, wallet and offer cards, then lists. */
.acct-head { display: flex; align-items: center; gap: 14px; padding: 12px 0 18px; }
.acct-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; }
.acct-head p { margin-top: 2px; color: var(--text-2); font-size: var(--t-sm); }
.acct-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--wash); font-size: var(--t-xs); font-weight: 500; color: var(--text-2); }
.acct-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acct-tiles button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 76px; border-radius: 14px; background: var(--wash); font: 500 var(--t-xs)/1.2 var(--font); color: var(--ink); }
.acct-tiles button:active { background: #e8e9ec; }
.acct-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 14px; border-radius: 16px; text-align: left; font: inherit; color: inherit; }
.acct-tiles + .acct-card { margin-top: 16px; }
.acct-card .grow { min-width: 0; }
.acct-card b { display: block; font-size: var(--t-md); font-weight: 700; letter-spacing: -.2px; }
.acct-card small { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--text-2); }
.acct-card strong { color: var(--ink); font-weight: 700; letter-spacing: .5px; }
.acct-card.miapay { border: 1px solid var(--line); }
.acct-card.miapay small { margin: 0 0 2px; font-size: var(--t-xs); color: var(--text-3); }
.acct-card.miapay b { font-size: var(--t-lg); }
.acct-card.miapay > svg { color: var(--text-3); }
.acct-card.offer { background: linear-gradient(160deg, #fff4ec, #ffe4d2); }
.acct-card.refer { background: linear-gradient(160deg, #eef5ff, #dceaff); }
.acct-badge { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #fff; color: var(--orange); display: flex; align-items: center; justify-content: center; }
.acct-badge.blue { color: var(--blue); }
.acct-section { margin: 26px 0 4px; font-size: var(--t-xs); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; }
.danger-row .row-title, .danger-row .lead { color: var(--danger); }
.fav-row { gap: 12px; }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 16px; font-size: var(--t-sm); flex: none; }
.rc-line.muted { color: var(--text-3); }
/* Share page v2: the rider app's ride card. */
.share-title h1 { font-size: 22px; line-height: 1.2; }
.share-stops { margin-top: 14px; }
.sheet .dc3 { margin-top: 14px; }

/* Driver app v2: offer, trip, summary and home in the rider app's style. */
.nav-banner { position: fixed; z-index: 550; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.nav-banner[hidden] { display: none; }
.nav-banner .nb-icon { color: var(--orange); display: flex; }
.nav-banner small { display: block; font-size: var(--t-xs); color: rgba(255,255,255,.65); }
.nav-banner b { display: block; font-size: var(--t-md); font-weight: 600; }
.nav-banner .nb-go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--orange); color: #fff; font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
@media (min-width: 640px) { .nav-banner { left: 16px; right: auto; width: 400px; } }

.offer-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px -8px 0 0; }
.offer-fare { margin-top: 10px; font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
.offer-earn { margin-top: 4px; font-size: var(--t-sm); color: var(--text-2); }
.offer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.offer-stats div { padding: 10px 12px; border-radius: 12px; background: var(--wash); }
.offer-stats small { display: block; font-size: var(--t-xs); color: var(--text-3); }
.offer-stats b { display: block; margin-top: 2px; font-weight: 600; }
.accept-btn { position: relative; overflow: hidden; margin-top: 16px; height: 56px; font-size: 18px; }
.accept-btn, .accept-btn:active { background: #ffb380; }
.accept-btn .accept-fill { position: absolute; inset: 0 auto 0 0; background: var(--orange); transition: width 1s linear; }
.accept-btn .accept-label { position: relative; }

.drv-title { display: flex; align-items: flex-start; gap: 10px; }
.drv-title h1 { font-size: 22px; line-height: 1.2; }
.drv-title .badge { margin-top: 3px; }
.rider-card { padding-bottom: 4px; }
.rider-card .dc3-driver { gap: 10px; }
.rider-card .round-act { position: relative; }
.rider-card .count-dot { position: absolute; top: -4px; right: -4px; }

.slide { position: relative; margin-top: 16px; height: 60px; border-radius: 30px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; user-select: none; -webkit-user-select: none; }
.slide::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.12); transform-origin: left; transform: scaleX(var(--p, 0)); }
.slide-label { position: relative; padding-left: 40px; font-size: 17px; font-weight: 600; opacity: calc(1 - var(--p, 0)); }
.slide-knob { position: absolute; left: 4px; top: 4px; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--orange); display: flex; align-items: center; justify-content: center; touch-action: none; transition: transform .25s var(--ease); }
.slide.dragging .slide-knob { transition: none; }
.slide[aria-disabled="true"] { opacity: .6; }

.done-head { display: flex; align-items: center; gap: 12px; }
.done-head h1 { font-size: 22px; }
.done-check { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.done-amount { margin: 18px 0 4px; text-align: center; }
.done-amount small { display: block; font-size: var(--t-sm); color: var(--text-2); }
.done-amount small.paid { color: var(--green); font-weight: 600; }
.done-amount b { display: block; margin-top: 2px; font-size: 36px; font-weight: 800; letter-spacing: -.8px; }

.drv-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.drv-stats div { padding: 12px; border-radius: 14px; background: var(--wash); }
.drv-stats small { display: block; font-size: var(--t-xs); color: var(--text-3); }
.drv-stats b { display: block; margin-top: 2px; font-size: var(--t-lg); font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.drv-search { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; font-weight: 500; }
.radar { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--orange); }
.radar::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--orange); animation: radar 1.6s ease-out infinite; }
@keyframes radar { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.drv-stats + .btn, .drv-search + .btn { margin-top: 16px; }
.drv-keep { margin-top: 10px; text-align: center; font-size: var(--t-xs); color: var(--text-3); }
