@import url("./tokens.css?v=v5");

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-4));
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(239, 62, 74, 0.08), transparent 220px),
    var(--bg);
  color: var(--text);
  font: var(--weight-regular) var(--fs-3) / var(--lh-copy) var(--font-sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.app-body {
  background: var(--bg-soft);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: var(--lh-title);
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
  color: inherit;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: var(--ring);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 1000;
  border-radius: var(--r-2);
  background: var(--text);
  color: var(--ink-inverse);
  padding: 9px 13px;
  font-size: var(--fs-2);
  font-weight: var(--weight-bold);
  box-shadow: var(--sh-2);
  transform: translateY(calc(-100% - 20px));
  transition: transform 140ms ease;
}

.skip-link:focus-visible {
  outline-color: var(--text);
  transform: translateY(0);
}

:where(button, input, textarea, select):focus {
  outline: none;
}

::selection {
  background: rgba(239, 62, 74, 0.35);
}

.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(calc(100% - clamp(32px, 4vw, 96px)), var(--max));
  margin-inline: auto;
}

.main {
  flex: 1;
}

.section {
  padding: var(--sp-10) 0;
  border-top: 1px solid var(--line);
}

.section.compact {
  padding: var(--sp-8) 0;
}

.section-head {
  display: grid;
  gap: var(--sp-3);
  max-width: 900px;
  margin-bottom: var(--sp-7);
}

.section-head h2,
.feature-card h2 {
  font-size: clamp(1.75rem, 2.4vw, 3rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.center-actions {
  justify-content: center;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: var(--fs-0);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker {
  color: var(--muted);
  font-size: var(--fs-1);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  max-width: var(--measure);
  color: var(--text-soft);
  font-size: var(--fs-4);
}

.muted {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.small {
  font-size: var(--fs-1);
}

.stack {
  display: grid;
  gap: var(--sp-4);
}

.stack-lg {
  display: grid;
  gap: var(--sp-6);
}

.cluster {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: var(--weight-bold);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--r-2);
  display: grid;
  place-items: center;
  background: var(--accent-ink);
  color: var(--on-accent);
  font-size: var(--fs-2);
  font-weight: 800;
  box-shadow: var(--sh-1);
}

.brand-word {
  white-space: nowrap;
}

img.brand-mark-image {
  background: transparent;
  box-shadow: var(--sh-1);
  border-radius: 9px;
}

img.app-phone-logo {
  background: transparent;
}

.app-phone-card + .app-phone-card {
  margin-top: 0;
}

.brand.small-brand .brand-mark {
  width: 26px;
  height: 26px;
  font-size: var(--fs-0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--nav-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-nav,
.app-nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--sp-4);
}

.nav-links a,
.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--r-2);
  color: var(--muted);
  font-size: var(--fs-2);
  font-weight: var(--weight-semibold);
}

.nav-links a:hover,
.nav-link:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
}

.hamburger {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: var(--sp-3) 0 var(--sp-4);
}

.mobile-panel .container {
  display: grid;
  gap: var(--sp-2);
}

.mobile-nav-links {
  display: grid;
  gap: var(--sp-1);
}

.mobile-panel a,
.mobile-panel button {
  justify-content: flex-start;
  width: 100%;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #080b10;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  grid-template-areas:
    "brand nav"
    "copyright legal";
  column-gap: clamp(var(--sp-7), 5vw, var(--sp-11));
  row-gap: var(--sp-5);
  align-items: start;
  padding: var(--sp-7) 0 var(--sp-6);
  color: var(--muted);
  font-size: var(--fs-2);
}

.footer-brand-block {
  grid-area: brand;
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
}

.footer-brand-block p {
  max-width: 54ch;
  color: var(--dim);
  font-size: var(--fs-1);
}

.footer-links {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-3);
}

.footer-legal {
  grid-area: legal;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-4);
  font-size: var(--fs-1);
}

.footer-copyright {
  grid-area: copyright;
  color: var(--dim);
  font-size: var(--fs-1);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--text);
}

.footer-powered {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding: 11px 0 13px;
  color: var(--dim);
  font-size: var(--fs-0);
  letter-spacing: 0.025em;
  text-align: right;
}

.footer-powered span {
  color: var(--muted);
  font-weight: var(--weight-semibold);
}

.button,
button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  font-weight: var(--weight-semibold);
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 80ms ease,
    box-shadow 140ms ease;
}

.button:hover,
button:hover {
  background: var(--surface-3);
  border-color: #485468;
}

.button:active,
button:active {
  transform: translateY(1px);
}

.button[aria-disabled="true"],
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.button.primary,
button.primary {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--on-accent);
  box-shadow: 0 8px 22px rgba(204, 44, 57, 0.28);
}

.button.primary:hover,
button.primary:hover {
  background: var(--accent-ink-hover);
  border-color: var(--accent-ink-hover);
}

.button.secondary,
button.secondary {
  background: var(--text);
  border-color: var(--text);
  color: #07101a;
}

.button.secondary:hover,
button.secondary:hover {
  background: #e7edf5;
  border-color: #e7edf5;
}

.button.ghost,
button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.button.ghost:hover,
button.ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.button.danger,
button.danger {
  color: #ffd8d5;
  border-color: rgba(255, 116, 109, 0.36);
  background: rgba(255, 116, 109, 0.09);
}

.button.link,
button.link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
}

.button.link:hover,
button.link:hover {
  color: var(--text);
  background: transparent;
}

.button.block,
button.block {
  width: 100%;
}

.button.lg,
button.lg {
  min-height: 50px;
  padding-inline: 20px;
  font-size: var(--fs-3);
}

.button.sm,
button.sm {
  min-height: 44px;
  padding-inline: 12px;
  font-size: var(--fs-1);
}

.icon-btn {
  width: 42px;
  padding: 0;
}

.spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: rr-spin 700ms linear infinite;
}

.primary .spin {
  border-color: rgba(6, 16, 28, 0.28);
  border-top-color: var(--on-accent);
}

@keyframes rr-spin {
  to {
    transform: rotate(360deg);
  }
}

label,
.field {
  display: grid;
  gap: var(--sp-2);
  color: var(--muted);
  font-size: var(--fs-1);
  font-weight: var(--weight-semibold);
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: #090d13;
  color: var(--text);
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--dim);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

input:disabled {
  color: var(--muted);
  background: var(--surface);
}

.field-error {
  min-height: 18px;
  color: #ffd8d5;
  font-size: var(--fs-0);
}

.field.invalid input,
.field.invalid textarea,
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-2);
  color: var(--text-soft);
}

.check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.square-card-container {
  min-height: 94px;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
}

.square-card-container:empty {
  display: none;
}

.form-grid {
  display: grid;
  gap: var(--sp-4);
}

fieldset {
  margin: 0;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}

legend {
  padding: 0 var(--sp-2);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.38fr) auto;
  align-items: end;
  gap: var(--sp-3);
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice {
  min-height: 0;
  border-radius: var(--r-2);
  font-size: var(--fs-2);
}

.notice:empty {
  display: none;
}

.notice:not(:empty) {
  padding: 10px 12px;
}

.notice.info {
  color: #d9eaff;
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(105, 167, 255, 0.4);
}

.notice.ok {
  color: #c9f6dc;
  background: rgba(75, 208, 131, 0.1);
  border: 1px solid rgba(75, 208, 131, 0.38);
}

.notice.err {
  color: #ffd8d5;
  background: rgba(255, 116, 109, 0.1);
  border: 1px solid rgba(255, 116, 109, 0.4);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%) translateY(12px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--elevated);
  color: var(--text);
  box-shadow: var(--sh-3);
  padding: 11px 16px;
  font-size: var(--fs-2);
  font-weight: var(--weight-semibold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.ok {
  border-color: rgba(75, 208, 131, 0.5);
}

.toast.err {
  border-color: rgba(255, 116, 109, 0.5);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
  box-shadow: var(--sh-1);
  overflow: clip;
}

.card.pad {
  padding: var(--sp-5);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-width: 0;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.card-head h2,
.card-head h3 {
  min-width: 0;
  font-size: var(--fs-4);
  font-weight: var(--weight-bold);
}

.card-body {
  padding: var(--sp-5);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--sp-4);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
}

.feature-card h3 {
  font-size: var(--fs-4);
}

.feature-card p {
  color: var(--muted);
  font-size: var(--fs-2);
}

.chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--muted);
  padding: 3px 10px;
  font-size: var(--fs-0);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.chip.accent {
  color: #d9eaff;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.chip.reward {
  color: #ffe7b2;
  background: rgba(241, 195, 109, 0.11);
  border-color: rgba(241, 195, 109, 0.38);
}

.badge.pending,
.badge.assigned {
  color: #ffe7b2;
  border-color: rgba(241, 195, 109, 0.45);
  background: rgba(241, 195, 109, 0.12);
}

.badge.en_route_to_pickup,
.badge.on_trip {
  color: #d9eaff;
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.badge.done,
.badge.paid {
  color: #c9f6dc;
  border-color: rgba(75, 208, 131, 0.38);
  background: rgba(75, 208, 131, 0.1);
}

.badge.cancelled,
.badge.rejected,
.badge.due {
  color: #ffd8d5;
  border-color: rgba(255, 116, 109, 0.4);
  background: rgba(255, 116, 109, 0.1);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #090d13;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  flex: 0 0 auto;
}

.tab:hover {
  background: var(--surface);
  color: var(--text);
}

.tab.active,
.tab[aria-selected="true"] {
  background: var(--elevated);
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  background: rgba(0, 0, 0, 0.62);
  overflow: auto;
  overscroll-behavior: contain;
  backdrop-filter: blur(2px);
}

/* Dialogs are page-blocking: prevent the underlying booking/profile view from scrolling. */
body.modal-open {
  overflow: hidden;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  width: min(100%, 520px);
  max-height: calc(100dvh - (var(--sp-5) * 2));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
  box-shadow: var(--sh-3);
  overflow: auto;
}

.modal-body {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
}

.modal-body h2 {
  font-size: var(--fs-5);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-3);
}

.modal-actions > button {
  min-width: 118px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
  min-height: 0;
  padding: clamp(44px, 5vw, 76px) 0 var(--sp-9);
}

.hero-copy {
  display: grid;
  gap: var(--sp-5);
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 6.25rem);
  line-height: var(--lh-tight);
  font-weight: 820;
}

.hero-copy .lead {
  font-size: var(--fs-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  padding-top: var(--sp-3);
}

.proof-item {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-3);
  min-width: 0;
}

.proof-item b {
  display: block;
  color: var(--text);
  min-height: 1.3em;
  font-size: clamp(0.875rem, 1vw, 1.05rem);
  line-height: 1.3;
  white-space: nowrap;
}

.proof-item span {
  color: var(--muted);
  font-size: var(--fs-1);
}

.route-visual {
  min-height: 560px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background:
    linear-gradient(135deg, rgba(239, 62, 74, 0.14), transparent 42%),
    linear-gradient(45deg, rgba(241, 195, 109, 0.09), transparent 48%),
    #0b1018;
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.route-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.24));
}

.route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.hero-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(239, 62, 74, 0.2), transparent 35%),
    linear-gradient(140deg, rgba(33, 48, 65, 0.88), rgba(8, 13, 20, 0.96));
}

.hero-map-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(185, 207, 228, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(185, 207, 228, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(145deg, #000, transparent 78%);
}

.hero-map-fallback svg {
  position: absolute;
  inset: 6% 3% 4%;
  width: 94%;
  height: 90%;
  opacity: 0.86;
}

.hero-map-glow {
  position: absolute;
  top: -12%;
  right: -8%;
  width: 48%;
  height: 54%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 62, 74, 0.3), transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.hero-story-status {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1px solid rgba(61, 220, 132, 0.34);
  border-radius: var(--r-pill);
  background: rgba(7, 12, 17, 0.9);
  padding: 8px 12px;
  color: var(--text-soft);
  font-size: var(--fs-1);
  font-weight: var(--weight-semibold);
  box-shadow: var(--sh-2);
  pointer-events: none;
}

/* Dark-theme the OSM raster tiles (CSP-allowed host kept; filter removes the blue basemap). */
.leaflet-container {
  background: #0a0f17;
  font-family: var(--font-sans);
}

.hero-map.leaflet-container {
  background: transparent;
}

/* Rider tracking map: the driver's live route on their own trip. */
.track-map-shell {
  position: relative;
  height: 260px;
  width: 100%;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong, #1c2634);
  background: #0a0f17;
}

.track-map {
  height: 100%;
  width: 100%;
}

.track-map .leaflet-container {
  height: 100%;
  width: 100%;
}

.track-map-fallback {
  z-index: 2;
  border-radius: inherit;
}

.leaflet-tile {
  filter: invert(1) hue-rotate(180deg) brightness(1.32) contrast(0.94) saturate(0.72);
}

.leaflet-tooltip.hero-tip {
  background: rgba(11, 16, 23, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  font-weight: var(--weight-bold);
  font-size: 12px;
  padding: 3px 8px;
  box-shadow: var(--sh-1);
  white-space: nowrap;
}

.leaflet-tooltip.hero-tip.muted {
  color: var(--muted);
  font-weight: var(--weight-semibold);
}

.leaflet-tooltip.hero-tip::before {
  display: none;
}

.showcase-route.route-active-base {
  filter: drop-shadow(0 0 5px rgba(255, 89, 100, 0.72));
}

.showcase-route.route-active-flow,
.phone-route.route-active-flow {
  animation: rr-route-flow 900ms linear infinite;
  filter: drop-shadow(0 0 4px rgba(255, 217, 220, 0.72));
  pointer-events: none;
}

@keyframes rr-route-flow {
  to { stroke-dashoffset: -28; }
}

.showcase-driver-marker {
  border: 0;
  background: transparent;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.5));
  transition: transform 110ms linear;
  will-change: transform;
}

.showcase-driver-marker span {
  position: relative;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 3px solid #08110d;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow:
    0 0 0 2px rgba(61, 220, 132, 0.28),
    0 0 18px rgba(61, 220, 132, 0.58);
}

.showcase-driver-marker span::after {
  content: "";
  width: 5px;
  height: 7px;
  border-radius: 2px;
  background: #07120c;
  box-shadow: 0 -3px 0 -1px rgba(255, 255, 255, 0.7);
}

.rr-route-pulse {
  stroke: var(--ok);
  stroke-width: 4.5;
  stroke-dasharray: 24 640;
  filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.75));
  animation: rr-travel 3.6s linear infinite;
}

@keyframes rr-travel {
  from { stroke-dashoffset: 664; }
  to { stroke-dashoffset: 0; }
}

.rr-node {
  fill: var(--text-soft);
  opacity: 0.65;
}

.rr-pin-dot {
  fill: var(--accent);
}

.rr-tier-bronze {
  fill: #c68b52;
}

.rr-tier-silver {
  fill: #aeb8c4;
}

.rr-tier-gold {
  fill: var(--reward);
}

.rr-tier-platinum {
  fill: #dff3ff;
}

.rr-pin-halo {
  fill: rgba(239, 62, 74, 0.16);
  stroke: rgba(239, 62, 74, 0.5);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: rr-halo 2.4s ease-out infinite;
}

@keyframes rr-halo {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.rr-label {
  fill: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  paint-order: stroke;
  stroke: rgba(7, 9, 13, 0.85);
  stroke-width: 4px;
}

.rr-label-muted {
  fill: var(--muted);
  font-size: 13px;
  font-weight: var(--weight-medium);
}

/* Stripped-down basemap under the route (self-contained; no external tiles). */
.rr-water {
  fill: #06090f;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.rr-road {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.rr-road-major {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.6;
}

.rr-coverage {
  fill: var(--muted);
  opacity: 0.6;
}

[data-page="home"] .route-visual::before {
  display: none;
}

/* A peek of the customer app in the hero. */
.app-phone {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 230px;
  z-index: 4;
  padding: 9px;
  border-radius: 30px;
  background: linear-gradient(180deg, #161c26, #0d121a);
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotate(-3deg);
}

.app-phone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 1;
}

.app-phone-screen {
  border-radius: 22px;
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-phone-head {
  display: flex;
  align-items: center;
  padding: 16px 12px 9px;
}

.app-phone-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--text);
}

.app-phone-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-ink);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}

.app-phone-map {
  height: 112px;
  margin: 0 10px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(239, 62, 74, 0.12), transparent 60%), #0c1119;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-phone-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-phone-map .leaflet-tile-pane {
  opacity: 0.62;
}

.app-phone-map .phone-route.route-active-base {
  stroke-width: 6;
  filter: drop-shadow(0 0 3px rgba(239, 62, 74, 0.76));
}

.app-phone-map .phone-route.route-active-flow {
  stroke-width: 2.1;
}

.app-phone-map .phone-route.route-future {
  stroke-width: 2.7;
  opacity: 0.38;
}

.app-phone-map .phone-route.route-passed {
  stroke-width: 2.2;
  opacity: 0.24;
}

.app-phone-map .showcase-driver-marker {
  transform-origin: center;
}

.app-phone-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  opacity: 0.62;
  transform: translateX(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.app-phone-card.is-active {
  border-color: rgba(61, 220, 132, 0.48);
  background: #202d38;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 3px 0 0 #3ddc84;
  opacity: 1;
  transform: translateX(-3px);
}

.app-phone-card.is-complete {
  opacity: 0.78;
}

.app-phone-card.is-future {
  opacity: 0.52;
}

.app-phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.app-phone-card[data-showcase-stage="pickup"] .app-phone-dot {
  background: #3ddc84;
}

.app-phone-card[data-showcase-stage="stop"] .app-phone-dot {
  background: #f1c36d;
}

.app-phone-card[data-showcase-stage="dropoff"] .app-phone-dot {
  background: #ef3e4a;
}

.app-phone-card.is-complete .app-phone-dot {
  background: #3ddc84;
}

.app-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  flex: 1 1 auto;
}

.app-phone-text b {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
}

.app-phone-text span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-phone-eta {
  margin-left: auto;
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ok);
  white-space: nowrap;
}

.app-phone-card.is-future .app-phone-eta {
  color: var(--muted);
}

.app-phone-cta {
  margin: 0 10px 12px;
  padding: 9px;
  border-radius: 10px;
  background: var(--accent-ink);
  color: var(--on-accent);
  text-align: center;
  font-size: 11.5px;
  font-weight: var(--weight-bold);
}

.visual-card {
  position: absolute;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: var(--sp-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: rgba(16, 20, 27, 0.88);
  backdrop-filter: blur(12px);
  padding: var(--sp-4);
}

.visual-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-2);
  display: grid;
  place-items: center;
  background: var(--accent-ink);
  color: var(--on-accent);
  font-weight: 820;
}

.visual-title {
  font-weight: var(--weight-bold);
}

.visual-sub {
  color: var(--muted);
  font-size: var(--fs-1);
}

.visual-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: rr-livepulse 1.8s ease-out infinite;
}

@keyframes rr-livepulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rr-route-pulse { animation: none; opacity: 0; }
  .rr-pin-halo { animation: none; }
  .live-dot { animation: none; }
  .showcase-route.route-active-flow,
  .phone-route.route-active-flow { animation: none; stroke-dashoffset: -12; }
  .showcase-driver-marker { transition: none; }
}

.step-list {
  display: grid;
  gap: var(--sp-4);
}

.step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: var(--r-2);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
  font-weight: var(--weight-bold);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.tier-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: var(--sp-5);
}

.tier-card.tier-bronze,
.account-tier.tier-bronze {
  background: linear-gradient(145deg, #6f432b, #2b211e 68%);
  border-color: #a76d49;
}

.tier-card.tier-silver,
.account-tier.tier-silver {
  background: linear-gradient(145deg, #76808b, #29313b 68%);
  border-color: #aeb8c4;
}

.tier-card.tier-gold,
.account-tier.tier-gold {
  background: linear-gradient(145deg, #8f6b20, #342a16 68%);
  border-color: #d7aa45;
}

.tier-card.tier-platinum,
.account-tier.tier-platinum {
  background: linear-gradient(145deg, #546779, #202d3b 68%);
  border-color: #9fb6ca;
}

.tier-card[class*="tier-"],
.account-tier[class*="tier-"] {
  color: #ffffff;
}

.tier-card[class*="tier-"] .muted,
.account-tier[class*="tier-"] .row-sub {
  color: #e5eaf0;
}

.account-tier.current {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
  box-shadow: var(--sh-2);
}

.tier-card.featured {
  border-color: rgba(241, 195, 109, 0.46);
  background:
    linear-gradient(180deg, rgba(241, 195, 109, 0.11), transparent),
    var(--surface);
}

.tier-card h3 {
  font-size: var(--fs-5);
}

.tier-card .points {
  color: var(--reward);
  font-weight: var(--weight-bold);
}

.faq-list {
  display: grid;
  gap: var(--sp-3);
}

details {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
  padding: var(--sp-4);
}

summary {
  cursor: pointer;
  font-weight: var(--weight-semibold);
}

details p {
  margin-top: var(--sp-3);
  color: var(--muted);
}

.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: var(--sp-6);
  align-items: stretch;
}

.coverage-map,
.app-map {
  min-height: 520px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: #0b1018;
  overflow: hidden;
  position: relative;
}

.coverage-map .leaflet-container,
.app-map .leaflet-container {
  background: #0b1018;
  font: inherit;
}

.leaflet-container a {
  color: var(--accent);
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--sp-6);
  text-align: center;
  color: var(--text-soft);
  background:
    radial-gradient(circle at 50% 34%, rgba(47, 107, 255, 0.13), transparent 42%),
    rgba(8, 13, 20, 0.94);
}

.map-fallback > div {
  width: min(100%, 440px);
}

.map-fallback strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-4);
}

.map-fallback p {
  margin: var(--sp-2) auto 0;
}

.map-fallback[data-state="loading"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: rr-map-loading 1.35s ease-in-out infinite;
}

.hero-map-status {
  z-index: 3;
  pointer-events: none;
}

@keyframes rr-map-loading {
  to { transform: translateX(325%); }
}

.service-list {
  display: grid;
  gap: var(--sp-3);
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-3) 0;
}

.service-row:last-child {
  border-bottom: 0;
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

body[data-auth="false"] [data-auth-only],
body[data-auth="true"] [data-guest-only] {
  display: none !important;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
}

.app-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: var(--sp-5);
}

.app-tabs .nav-tab {
  min-height: 38px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.app-tabs .nav-tab:hover,
.app-tabs .nav-tab.active {
  background: var(--surface);
  color: var(--text);
}

.app-main {
  width: min(calc(100% - clamp(32px, 4vw, 96px)), var(--max));
  margin: 0 auto;
  padding: var(--sp-6) 0 var(--sp-10);
}

.app-view {
  animation: rr-rise 180ms ease both;
}

@keyframes rr-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.auth-wrap {
  min-height: calc(100dvh - var(--nav-h) - 80px);
  display: grid;
  place-items: center;
  padding: var(--sp-8) 0;
}

.auth-panel {
  width: min(100%, 470px);
  display: grid;
  gap: var(--sp-5);
}

.auth-title {
  display: grid;
  gap: var(--sp-2);
  text-align: center;
}

.auth-title h1 {
  font-size: var(--fs-7);
}

.auth-card {
  padding: var(--sp-5);
}

.auth-switch {
  justify-content: center;
  color: var(--muted);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(560px, 680px) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 48px);
  align-items: start;
}

.booking-card {
  min-width: 0;
}

.booking-card .card-head {
  padding: var(--sp-6);
  align-items: flex-start;
}

.booking-card .card-head h1 {
  margin-top: var(--sp-1);
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.booking-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-2);
}

.home-fill-button {
  white-space: nowrap;
}

.booking-form-body {
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-6);
}

.map-panel {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-5));
  min-height: min(820px, calc(100dvh - var(--nav-h) - 48px));
  height: min(920px, calc(100dvh - var(--nav-h) - 48px));
  overflow: hidden;
  box-shadow: var(--sh-2);
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-panel .map-fallback {
  z-index: 2;
}

.pin-help {
  display: grid;
  gap: var(--sp-2);
  color: var(--muted);
  font-size: var(--fs-2);
}

.trip-stop-list,
#stops-list {
  display: grid;
  gap: var(--sp-4);
}

.trip-stop {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-color: var(--line-strong);
  background: rgba(9, 13, 19, 0.64);
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.trip-stop.active {
  border-color: var(--accent-line);
  background: rgba(239, 62, 74, 0.055);
  box-shadow: inset 3px 0 0 var(--accent);
}

.trip-stop legend {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text);
  font-size: var(--fs-4);
  font-weight: var(--weight-bold);
}

.stop-order {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--reward);
  color: var(--ink-inverse);
  font-size: var(--fs-1);
}

.stop-order.pickup {
  background: var(--ok);
}

.stop-order.dropoff {
  background: var(--accent-ink);
  color: var(--on-accent);
}

.pin-button {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-4);
  min-height: 44px;
  padding-inline: 12px;
  font-size: var(--fs-1);
}

.pin-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.stop-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding-right: 118px;
}

.profile-home {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface-2);
}

.profile-home-heading {
  display: grid;
  gap: var(--sp-1);
}

.profile-home-heading h3 {
  font-size: var(--fs-3);
}

.profile-home-heading p {
  margin: 0;
}

.profile-home-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-self: start;
}

.profile-home-suggestions {
  display: grid;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--elevated);
  box-shadow: var(--sh-2);
}

.profile-home-suggestions[hidden] {
  display: none;
}

.profile-home-suggestions button {
  width: 100%;
  min-height: 0;
  display: grid;
  justify-content: stretch;
  align-items: start;
  gap: 3px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px;
  text-align: left;
  white-space: normal;
}

.profile-home-suggestions button:last-child {
  border-bottom: 0;
}

.profile-home-suggestions button:hover,
.profile-home-suggestions button.active {
  background: var(--surface-3);
  box-shadow: inset 3px 0 0 var(--accent);
}

.profile-home-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-1);
}

.profile-home-status.ok {
  color: var(--ok);
}

.profile-home-status.warn,
.profile-home-status.err {
  color: #ffd8d5;
}

.stop-move {
  width: 36px;
  min-height: 34px;
}

.stop-remove {
  min-height: 34px;
  padding-inline: 10px;
  color: var(--muted);
}

.address-label {
  color: var(--text-soft);
  font-size: var(--fs-2);
}

input.address-input {
  min-height: 62px;
  padding: 15px 16px;
  font-size: var(--fs-4);
  font-weight: var(--weight-medium);
}

.address-meta {
  display: grid;
  grid-template-columns: minmax(112px, 0.5fr) minmax(150px, 1fr) auto;
  gap: var(--sp-3);
  align-items: end;
}

.optional {
  color: var(--dim);
  font-size: var(--fs-0);
  font-weight: var(--weight-regular);
}

.search-button {
  min-height: 44px;
}

.pin-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-1);
}

.pin-status.ok {
  color: var(--ok);
}

.pin-status.warn {
  color: var(--warn);
}

.add-stop-button {
  width: 100%;
  min-height: 48px;
  border-style: dashed;
}

.schedule-panel {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-2);
  background: linear-gradient(135deg, var(--accent-soft), rgba(9, 13, 19, 0.72));
}

.schedule-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.schedule-heading h2 {
  margin-top: var(--sp-1);
  font-size: var(--fs-5);
}

.timing-tabs {
  flex: 0 0 auto;
}

.coming-soon {
  display: inline-grid;
  gap: 0;
  line-height: 1.1;
}

.coming-soon small {
  color: var(--warn);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.schedule-submit {
  min-height: 56px;
  font-size: var(--fs-4);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

.preview-metric {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface-2);
  padding: var(--sp-3);
}

.preview-metric span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--weight-bold);
}

.preview-metric b {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-4);
}

.preview-metric .preview-copy {
  font-size: var(--fs-1);
  line-height: 1.3;
}

.address-suggestions {
  position: absolute;
  left: var(--sp-5);
  right: var(--sp-5);
  top: 116px;
  z-index: 500;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--elevated);
  box-shadow: var(--sh-3);
}

.intermediate .address-suggestions {
  top: 162px;
}

.address-suggestions button {
  width: 100%;
  min-height: 0;
  display: grid;
  justify-content: stretch;
  align-items: start;
  gap: 3px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px;
  text-align: left;
  white-space: normal;
}

.address-suggestions button:last-child {
  border-bottom: 0;
}

.result-title {
  font-weight: var(--weight-semibold);
}

.result-sub {
  color: var(--muted);
  font-size: var(--fs-1);
}

.address-suggestions button.active {
  background: var(--surface-3);
  box-shadow: inset 3px 0 0 var(--accent);
}

.map-mode {
  position: absolute;
  top: var(--sp-4);
  left: 50%;
  z-index: 510;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transform: translateX(-50%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(9, 13, 19, 0.9);
  padding: 8px 14px;
  color: var(--text-soft);
  box-shadow: var(--sh-2);
  font-size: var(--fs-1);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.14);
}

.account-menu {
  position: relative;
}

.avatar-btn {
  min-width: 0;
  height: 42px;
  border-radius: var(--r-pill);
  padding: 0 10px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--accent-ink);
  color: var(--on-accent);
  font-size: var(--fs-1);
  font-weight: 820;
}

.avatar-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 90;
  width: min(260px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
  box-shadow: var(--sh-3);
  padding: var(--sp-2);
}

.dropdown button,
.dropdown a {
  width: 100%;
  justify-content: flex-start;
}

.account-layout {
  display: grid;
  gap: var(--sp-5);
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--sp-4);
}

.dashboard-title {
  display: grid;
  gap: var(--sp-2);
}

.dashboard-title h1 {
  font-size: var(--fs-7);
}

.dashboard-title p {
  color: var(--muted);
}

.account-tabs {
  width: 100%;
}

.account-panel {
  display: grid;
  gap: var(--sp-5);
}

.ride-list,
.invoice-list,
.wallet-list,
.history-list {
  display: grid;
  gap: var(--sp-3);
}

.ride-row,
.invoice-row,
.wallet-row,
.history-row {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface-2);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}

.row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  min-width: 0;
}

.row-title {
  min-width: 0;
  font-weight: var(--weight-bold);
}

.row-sub {
  color: var(--muted);
  font-size: var(--fs-2);
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(var(--status-position-count, 5), minmax(0, 1fr));
  gap: 0;
  overflow-x: auto;
  padding-block: 2px var(--sp-2);
  container-type: inline-size;
}

.stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}

.stage::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
}

.stage:first-child::before {
  display: none;
}

.stage-pip {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  z-index: 1;
}

.stage small {
  color: var(--dim);
  /* The status line is a single line: labels never wrap. The font scales with
     the track's width (container units) so every position fits side by side on
     narrow screens; the rem fallback below covers engines without cq units. */
  font-size: 0.62rem;
  line-height: 1.2;
  white-space: nowrap;
}

@supports (font-size: 1cqw) {
  .stage small {
    font-size: clamp(0.44rem, 2.2cqw, 0.68rem);
  }
}

.stage.done::before,
.stage.done .stage-pip {
  background: var(--ok);
  border-color: var(--ok);
}

.stage.current .stage-pip {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(239, 62, 74, 0.16);
}

.stage.done small,
.stage.current small {
  color: var(--text-soft);
}

.ride-row.full-red {
  background: #9f1821;
  border-color: #ff8b91;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.ride-row.full-red .row-sub,
.ride-row.full-red .stage small,
.ride-row.full-red small {
  color: rgba(255, 255, 255, 0.84);
}

.ride-row.full-red .stage::before {
  background: rgba(255, 255, 255, 0.42);
}

.ride-row.full-red .stage-pip {
  background: #9f1821;
  border-color: rgba(255, 255, 255, 0.72);
}

.ride-cancelled-label {
  display: block;
  padding: var(--sp-3);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--r-2);
  background: rgba(48, 0, 4, 0.28);
  color: #ffffff;
  font-size: var(--fs-5);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ride-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.ride-fare {
  justify-self: start;
  text-align: left;
}

.ride-perk {
  justify-self: center;
  text-align: center;
}

.ride-rewards {
  justify-self: end;
  text-align: right;
}

.ride-fare,
.ride-perk,
.ride-rewards {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ride-footer small {
  color: var(--muted);
  font-size: var(--fs-1);
}

.ride-row.full-red .ride-footer {
  border-color: rgba(255, 255, 255, 0.42);
}

.customer-agreement {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-2);
  background: var(--accent-soft);
  color: var(--text);
}

.customer-agreement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.customer-agreement-head > div {
  display: grid;
  gap: 2px;
}

.customer-agreement-kind,
.customer-agreement-status {
  color: var(--muted);
  font-size: var(--fs-2);
}

.customer-agreement-status {
  padding: 3px 8px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.customer-agreement p {
  margin: 0;
  color: inherit;
}

.customer-agreement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.customer-agreement-response {
  display: grid;
  gap: var(--sp-3);
}

.customer-agreement-response[hidden] {
  display: none;
}

.customer-agreement-response label {
  display: grid;
  gap: var(--sp-2);
  color: inherit;
}

.customer-agreement-response textarea {
  width: 100%;
  resize: vertical;
}

.customer-agreement.status-accepted,
.customer-agreement.status-responded {
  border-color: color-mix(in srgb, var(--ok) 55%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, var(--surface-2));
}

.ride-row.full-red .customer-agreement {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(48, 0, 4, 0.28);
  color: #ffffff;
}

.ride-row.full-red .customer-agreement-kind,
.ride-row.full-red .customer-agreement-status {
  color: rgba(255, 255, 255, 0.84);
}

.ride-row.full-red .customer-agreement-status,
.ride-row.full-red .customer-agreement textarea {
  border-color: rgba(255, 255, 255, 0.58);
}

.reward-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
}

.twofa-qr {
  width: min(220px, 100%);
  min-height: 220px;
  padding: 8px;
  border-radius: var(--r-2);
  background: #ffffff;
}

.twofa-qr canvas {
  width: 100%;
  height: auto;
}

.reward-balance {
  font-size: var(--fs-8);
  line-height: var(--lh-tight);
  font-weight: 820;
}

.reward-ring {
  --pct: 0;
  position: relative;
  width: 112px;
  height: 112px;
}

.reward-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.reward-ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-bg {
  stroke: #090d13;
}

.ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: calc(327 - 327 * var(--pct));
  transition: stroke-dashoffset 420ms ease;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.2;
}

.ring-label b {
  font-size: var(--fs-4);
}

.ring-label span {
  color: var(--muted);
  font-size: var(--fs-0);
}

.progress {
  height: 8px;
  border-radius: var(--r-pill);
  background: #090d13;
  overflow: hidden;
}

.progress > span {
  display: block;
  width: calc(var(--pct, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

.perks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-2);
  color: var(--text-soft);
}

.perks li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--ok);
}

.empty,
.skel {
  border-radius: var(--r-2);
}

.empty {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-7) var(--sp-4);
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-2);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-weight: var(--weight-bold);
}

.skel {
  height: 86px;
  background: linear-gradient(90deg, #121722, #202837, #121722);
  background-size: 220% 100%;
  animation: rr-skeleton 1.15s linear infinite;
}

@keyframes rr-skeleton {
  to {
    background-position: -220% 0;
  }
}

.secret-box,
.recovery-codes {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-2);
  background: #090d13;
  padding: 10px 12px;
  color: var(--text);
  overflow-x: auto;
}

.recovery-codes {
  width: 100%;
  min-height: 176px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: var(--fs-2);
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.recovery-code-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .hero,
  .coverage-layout,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: var(--sp-8);
  }

  .route-visual {
    min-height: 520px;
    order: initial;
  }

  .hero-map .leaflet-tooltip.hero-tip {
    display: none;
  }

  .booking-card {
    position: static;
  }

  .map-panel {
    position: relative;
    top: auto;
    height: 560px;
    min-height: 430px;
    order: -1;
  }

  .grid-3,
  .grid-4,
  .tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container,
  .app-main {
    width: min(100% - 28px, var(--max));
  }

  .nav-links,
  .nav-actions,
  .app-tabs,
  .avatar-name {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .app-nav .mobile-toggle {
    margin-left: var(--sp-2);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "legal"
      "copyright";
    align-items: start;
  }

  .footer-links,
  .footer-legal {
    justify-content: flex-start;
  }

  .footer-powered {
    text-align: left;
  }

  .hero-copy h1,
  .dashboard-title h1 {
    font-size: var(--fs-7);
  }

  .proof-row,
  .grid-2,
  .grid-3,
  .grid-4,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row,
  .form-row.two,
  .form-row.three {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    grid-template-columns: 1fr;
  }

  .reward-hero {
    grid-template-columns: 1fr;
  }

  .coverage-map,
  .app-map {
    min-height: 380px;
  }

  .booking-card .card-head,
  .booking-form-body {
    padding: var(--sp-4);
  }

  .trip-stop {
    padding: var(--sp-4);
  }

  .address-meta {
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
  }

  .address-meta .search-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .address-suggestions {
    left: var(--sp-4);
    right: var(--sp-4);
    top: 109px;
  }

  .intermediate .address-suggestions {
    top: 155px;
  }

  .schedule-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .timing-tabs {
    width: 100%;
  }

  .timing-tabs .tab {
    flex: 1;
  }

  .modal-backdrop {
    padding: var(--sp-4);
  }

  .modal {
    max-height: calc(100dvh - (var(--sp-4) * 2));
  }
}

@media (max-width: 430px) {
  .brand-word {
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions .button,
  .hero-actions button {
    width: 100%;
  }

  .route-visual {
    min-height: 500px;
  }

  .app-main {
    width: calc(100% - 20px);
  }

  .booking-card .card-head {
    display: grid;
  }

  .booking-head-actions {
    justify-content: flex-start;
  }

  .trip-stop {
    padding-top: var(--sp-5);
  }

  .pin-button {
    position: static;
    width: 100%;
  }

  .stop-actions {
    justify-content: flex-start;
    padding-right: 0;
  }

  .address-suggestions,
  .intermediate .address-suggestions {
    position: static;
    max-height: 260px;
  }

  .address-meta {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: var(--sp-3);
  }

  .modal {
    max-height: calc(100dvh - (var(--sp-3) * 2));
  }

  .modal-body {
    padding: var(--sp-5);
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions > button {
    width: 100%;
  }

  .recovery-code-actions {
    display: grid;
  }

  .recovery-code-actions > button {
    width: 100%;
  }

  .profile-home-actions,
  .profile-home-actions > button {
    width: 100%;
  }

  .map-panel {
    height: 440px;
  }

  .app-phone {
    width: 184px;
    right: 12px;
    bottom: 12px;
    transform: rotate(-4deg);
  }

  .app-phone-map {
    height: 86px;
  }

  .app-phone-card {
    margin: 7px;
    padding: 7px 8px;
  }

  .app-phone-cta {
    margin: 0 7px 8px;
  }

  .visual-card {
    grid-template-columns: auto 1fr;
  }

  .visual-time {
    grid-column: 2;
  }

  .stage small {
    font-size: 0.62rem;
  }
}

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