/* Passby driver app — design tokens */
:root {
  --blue: #FFD23F; /* signal yellow: primary action */
  --blue-deep: #F2C21F;
  --blue-soft: #FFF4C7;
  --ink: #111318;
  --ink-2: #22252E;
  --mint: #FFD23F; /* money symbol on ink surfaces */
  --ground: #F4F3EE;
  --surface: #FFFFFF;
  --surface-2: #ECEAE2;
  --line: #E2DFD5;
  --text: #111318;
  --muted: #5C6270;
  --map-bg: #EFEEE8;
  --map-road: #FFFFFF;
  --map-road-edge: #D9D6CC;
  --map-minor: #E4E1D8;
  --map-label: #8B8F99;
  --map-park: #DCEFDC;
  --good: #178F5F;
  --warn: #D98A00;
  --bad: #D93B3B;
  --shadow: 0 10px 30px rgba(15, 19, 32, 0.12);
  --radius: 18px;
  --frame-bg: #111318;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--frame-bg);
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }

/* Phone frame on wide screens, full-bleed on phones */
.phone {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  background: var(--ground);
  overflow: hidden;
}
@media (min-width: 560px) {
  body { display: grid; place-items: center; }
  .phone {
    width: 390px;
    height: min(844px, 100dvh - 40px);
    border-radius: 44px;
    box-shadow: 0 0 0 10px #22262f, 0 0 0 12px #0a0c11, 0 40px 80px rgba(0,0,0,.6);
  }
  .notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 34px; border-radius: 20px; background: #000; z-index: 60;
  }
}
.notch { display: none; }
@media (min-width: 560px) { .notch { display: block; } }

/* Screen stack */
.screen {
  position: absolute; inset: 0;
  background: var(--ground);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateX(24px);
  transition: opacity .22s ease, transform .22s ease;
}
.screen.is-active { opacity: 1; pointer-events: auto; transform: none; z-index: 5; }
.screen.is-back { transform: translateX(-16px); }
@media (prefers-reduced-motion: reduce) { .screen { transition: none; } }

.screen-head {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 54px) 16px 10px;
}
.screen-head h1 {
  margin: 0; text-align: center; font-size: 17px; font-weight: 700; letter-spacing: -.01em;
}
.screen-body {
  flex: 1; overflow-y: auto; padding: 8px 20px 40px;
  -webkit-overflow-scrolling: touch;
}
.screen-body > * + * { margin-top: 14px; }
.screen-foot { padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 24px); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:focus-visible, .btn:focus-visible, .row:focus-visible, .input:focus-visible, .chip:focus-visible {
  outline: 3px solid rgba(17,19,24,.35); outline-offset: 2px;
}

/* Type */
h2.display { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 34px; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h3 { font-size: 16px; font-weight: 700; margin: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.money { font-variant-numeric: tabular-nums; font-weight: 800; }
.sym { font-size: .62em; font-weight: 700; letter-spacing: .01em; }
.money .sym { color: var(--good); }
.card.ink .money .sym { color: var(--mint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 0 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; letter-spacing: .01em;
  background: var(--blue); color: var(--ink); transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.985); }
.btn:hover { background: var(--blue-deep); }
.btn.secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--line); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost:hover { background: var(--blue-soft); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.sm { min-height: 40px; font-size: 14px; width: auto; padding: 0 16px; }

/* Cards & rows */
.card {
  background: var(--surface); border-radius: var(--radius); padding: 16px 18px;
  border: 1px solid var(--line);
}
.card.ink { background: var(--ink); color: #fff; border-color: transparent; }
.card.blue { background: var(--blue); color: #fff; border-color: transparent; }
.stack > * + * { margin-top: 10px; }
.row {
  display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 14px 16px; border: 0; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.row:hover { background: var(--surface-2); }
.row .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.row .ico svg { width: 20px; height: 20px; }
.row .ico.soft { background: var(--blue-soft); color: var(--ink); }
.row b { display: block; font-size: 15px; }
.row span { display: block; color: var(--muted); font-size: 13px; }
.row .chev { color: var(--muted); }
.list > * + * { margin-top: 10px; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); flex: none; }
.kv span:last-child { font-weight: 600; text-align: right; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted);
}
.pill.open { background: var(--blue-soft); color: #6B4E00; }
.pill.applied { background: #FFF2D9; color: var(--warn); }
.pill.approved, .pill.active, .pill.paid { background: #DDF6E8; color: var(--good); }
.pill.completed { background: var(--surface-2); color: var(--muted); }
.pill.pending { background: #FFF2D9; color: var(--warn); }
.pill.tier-standard { background: var(--surface-2); color: var(--muted); }
.pill.tier-plus { background: #DDF6E8; color: #0E6B44; }
.pill.tier-premium { background: #F6EBCF; color: #7A5A12; }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Stat pills (the black balance capsules from the real app) */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: center; }
.stat .cap {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 12px 8px;
  font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stat .cap .sym { color: var(--mint); }
.stat .lbl { margin-top: 8px; font-size: 14px; color: var(--text); font-weight: 500; }

/* Forms */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
}
.input:focus { border-color: var(--blue); outline: none; }
textarea.input { padding: 12px 16px; min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.error { color: var(--bad); font-size: 13px; font-weight: 600; }
.notice { background: var(--blue-soft); color: #6B4E00; border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; }
.notice.warn { background: #FFF2D9; color: #8A5A00; }

.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.switch b { display: block; font-size: 15px; }
.switch span { display: block; font-size: 13px; color: var(--muted); }
.toggle { position: relative; width: 50px; height: 30px; border-radius: 999px; background: #CBD2DF; border: 0; flex: none; transition: background .15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.toggle[aria-checked="true"] { background: var(--blue); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Welcome ---------- */
.welcome { background: linear-gradient(180deg, #F7F6F1 0%, #F4F3EE 55%, #FFE9A3 100%); }
.welcome .hero { padding: calc(env(safe-area-inset-top, 0px) + 84px) 24px 0; position: relative; }
.welcome .hero h2 { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 54px; line-height: .98; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.welcome .tiles { position: absolute; right: 18px; top: 60px; display: grid; gap: 22px; }
.welcome .tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.welcome .tile svg { width: 26px; height: 26px; }
.welcome .car { margin-top: 18px; padding: 0 0 0 0; }
.welcome .car svg { width: 100%; height: auto; display: block; }
.welcome .laurel { margin: 6px auto 0; text-align: center; }
.welcome .laurel .cap { display: inline-block; background: var(--ink); color: #fff; border-radius: 28px; padding: 12px 28px; }
.welcome .laurel .cap small { display: block; font-size: 13px; font-weight: 700; }
.welcome .laurel .cap .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.welcome .laurel .cap .big .sym { color: var(--mint); }
.welcome .screen-foot { display: grid; gap: 10px; margin-top: auto; }

/* Progress dots for onboarding */
.steps { display: flex; gap: 6px; justify-content: center; }
.steps i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.steps i.on { background: var(--blue); width: 22px; border-radius: 999px; }

/* ---------- Home / map ---------- */
#screen-home { background: var(--map-bg); }
.map-wrap { position: absolute; inset: 0; }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-wrap.driving .map-tint { opacity: 1; }
.map-tint {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, rgba(255,210,63,.18), rgba(255,210,63,.35));
}
.home-top {
  position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 54px);
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 12px; padding: 0 16px; z-index: 6;
}
.round-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow);
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn.avatar { background: var(--ink); color: var(--blue); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.badge {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--blue); color: var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface);
}
.badge:empty { display: none; }
.balance-pill {
  justify-self: center; background: var(--ink); color: #fff; border-radius: 24px; min-width: 150px; padding: 10px 24px;
  text-align: center; font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -.01em; box-shadow: var(--shadow); font-variant-numeric: tabular-nums;
}
.balance-pill .sym { color: var(--mint); }
.balance-pill small { display: block; font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #A6A9B3; margin-top: -2px; }

.home-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; justify-items: center; gap: 14px; padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 28px);
}
.start-btn {
  width: 132px; height: 132px; border-radius: 50%; border: 0; background: var(--blue); color: var(--ink);
  font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 24px; font-weight: 800; box-shadow: 0 18px 40px rgba(255,210,63,.45), 0 0 0 0 rgba(255,210,63,.35);
  transition: transform .1s ease, background .15s ease;
  animation: pulse 2.4s ease-out infinite;
}
.start-btn:hover { background: var(--blue-deep); }
.start-btn:active { transform: scale(.96); }
.start-btn.stop { background: var(--ink); color: #fff; animation: none; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
@keyframes pulse {
  0% { box-shadow: 0 18px 40px rgba(255,210,63,.45), 0 0 0 0 rgba(255,210,63,.35); }
  70% { box-shadow: 0 18px 40px rgba(255,210,63,.45), 0 0 0 22px rgba(255,210,63,0); }
  100% { box-shadow: 0 18px 40px rgba(255,210,63,.45), 0 0 0 0 rgba(255,210,63,0); }
}
@media (prefers-reduced-motion: reduce) { .start-btn { animation: none; } }

.campaign-strip {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow); border: 0; text-align: left;
}
.campaign-strip .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; letter-spacing: .02em; }
.campaign-strip b { display: block; font-size: 14px; }
.campaign-strip span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campaign-strip > span:nth-child(2) { min-width: 0; }
.campaign-strip .rate { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }

.live-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%;
}
.live-stats div { background: rgba(11,14,20,.85); color: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; backdrop-filter: blur(6px); }
.live-stats b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-stats small { font-size: 11px; color: #A9B4CC; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.gps-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); background: #fff; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.gps-tag.sim { color: #6B4E00; }
.gps-tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Drive summary overlay */
.summary {
  position: absolute; inset: 0; z-index: 20; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(180deg, rgba(17,19,24,.94), rgba(34,37,46,.97)); color: #fff; padding: 40px 24px;
}
.summary.is-open { display: flex; }
.summary .cap { background: var(--blue); color: var(--ink); border-radius: 46px; padding: 22px 40px; text-align: center; }
.summary .cap small { display: block; font-size: 15px; font-weight: 700; }
.summary .cap .big { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.summary .cap .big .sym { color: var(--good); }
.summary h2 { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 34px; font-weight: 800; margin: 0; color: var(--blue); }
.summary .facts { display: flex; gap: 28px; font-weight: 600; opacity: .95; }
.summary .facts b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary .facts small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.summary .btn { max-width: 260px; background: #fff; color: var(--ink); margin-top: 12px; }
.summary .btn:hover { background: #ECEAE2; }

/* Drawer */
.drawer-scrim { position: absolute; inset: 0; background: rgba(11,14,20,.45); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: 82%; max-width: 320px; background: var(--surface); z-index: 31;
  transform: translateX(-100%); transition: transform .24s ease; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 60px) 16px 24px; border-radius: 0 28px 28px 0; }
.drawer.is-open { transform: none; }
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer .who { display: flex; gap: 12px; align-items: center; padding: 0 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer .who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.drawer .who b { display: block; }
.drawer .who span { display: block; font-size: 13px; color: var(--muted); }
.drawer nav { display: grid; gap: 2px; }
.drawer nav button { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 12px 10px; border: 0; background: transparent; border-radius: 12px; font-weight: 600; font-size: 15px; }
.drawer nav button:hover { background: var(--surface-2); }
.drawer nav button svg { width: 20px; height: 20px; color: var(--muted); }
.drawer nav .cnt { font-size: 12px; font-weight: 800; background: var(--blue); color: var(--ink); min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
.drawer .foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--muted); }

/* Campaign cards */
.camp {
  width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 0; overflow: hidden;
}
.camp:hover { border-color: #C9D3EA; }
.camp .art { height: 96px; position: relative; display: flex; align-items: flex-end; padding: 12px 16px; color: #fff; }
.camp .art .brand { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.camp .art .pill { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); }
.camp .meta { padding: 12px 16px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.camp .meta b { display: block; font-size: 15px; }
.camp .meta span { display: block; font-size: 13px; color: var(--muted); }
.camp .meta .rate { text-align: right; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.camp .meta .rate small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.brand-hero { border-radius: 22px; height: 150px; display: flex; align-items: flex-end; padding: 18px; color: #fff; }
.brand-hero .brand { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.facts-grid b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.facts-grid small { color: var(--muted); font-weight: 600; font-size: 12px; }
.placement { display: grid; grid-template-columns: 1fr; gap: 10px; }
.placement svg { width: 100%; height: auto; }

/* Earnings chart */
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 140px; padding-top: 8px; }
.chart .bar { display: grid; justify-items: center; gap: 6px; align-self: end; }
.chart .bar i { display: block; width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: var(--blue-soft); transition: height .3s; }
.chart .bar.on i { background: var(--blue); }
.chart .bar.today i { background: var(--ink); }
.chart .bar small { font-size: 11px; font-weight: 700; color: var(--muted); }
.chart .bar b { font-size: 11px; font-variant-numeric: tabular-nums; }
.cycle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cycle div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cycle b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cycle small { color: var(--muted); font-weight: 600; font-size: 12px; }

/* Ride rows */
.ride { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ride:hover { background: var(--surface-2); }
.ride .day { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; text-align: center; line-height: 1; }
.ride .day b { display: block; font-size: 16px; }
.ride .day small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ride .info b { display: block; font-size: 14px; }
.ride .info span { display: block; font-size: 12px; color: var(--muted); }
.ride .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.ride .amt .sym { color: var(--good); }
.mini-map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--map-bg); aspect-ratio: 1.3; }
.mini-map svg { width: 100%; height: 100%; display: block; }

/* Guide steps */
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.step b { display: block; margin-bottom: 2px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Profile */
.profile-top { text-align: center; padding-top: 4px; }
.profile-top .av { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg, #111318, #3A3F4B); color: var(--blue); display: grid; place-items: center; font-size: 38px; font-weight: 800; position: relative; }
.profile-top .av i { position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); border: 3px solid var(--ground); display: grid; place-items: center; }
.profile-top .av i svg { width: 13px; height: 13px; color: var(--ink); }
.profile-top .name { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 22px; font-weight: 800; }
.profile-top .sub { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.profile-top .sub em { color: var(--text); }
.profile-top .sub button { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; }
.profile-top .sub button svg { width: 11px; height: 11px; }

/* Toast */
.toast { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 104px); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: .25s; z-index: 50; pointer-events: none; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Sheet (modal) */
.sheet-scrim { position: absolute; inset: 0; background: rgba(11,14,20,.5); z-index: 40; display: none; align-items: flex-end; }
.sheet-scrim.is-open { display: flex; }
.sheet { width: 100%; background: var(--surface); border-radius: 28px 28px 0 0; padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 24px); max-height: 85%; overflow-y: auto; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet > * + * { margin-top: 12px; }

.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.empty svg { width: 46px; height: 46px; color: #C4CBDA; margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
