:root {
  --ink: #1B2A47;
  --muted: #667085;
  --line: #e4eaf2;
  --paper: #ffffff;
  --wash: #F5F7FA;
  --teal: #109B9B;
  --teal-deep: #077b7e;
  --navy: #1B2A47;
  --navy-deep: #10203b;
  --gold: #FFBF00;
  --orange: #E64A19;
  --charcoal: #2D3748;
  --shadow: 0 28px 80px rgba(27, 42, 71, 0.18);
  --soft-shadow: 0 18px 46px rgba(27, 42, 71, 0.13);
}

* { box-sizing: border-box; }

html, body, #app { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(16,155,155,.12), transparent 34%),
    linear-gradient(315deg, rgba(255,191,0,.13), transparent 36%),
    var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.waitlist-page {
  min-height: 100vh;
  color: white;
  background: #0d1d2c;
}

h1, h2, h3, .logo-block b, button, .signal {
  font-family: Outfit, Inter, ui-sans-serif, system-ui, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.waitlist-bg,
.waitlist-video,
.waitlist-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.waitlist-bg {
  background-image: url("/assets/pon-di-way-hero-bg.png");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.02);
}

.waitlist-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  z-index: -1;
  opacity: 1;
  transition: opacity .35s ease;
  transform: scale(1.02);
}

.waitlist-video.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.waitlist-shade {
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 20, 34, .94) 0%, rgba(9, 20, 34, .76) 34%, rgba(9, 20, 34, .24) 64%, rgba(9, 20, 34, .08) 100%),
    linear-gradient(180deg, rgba(9, 20, 34, .42), transparent 34%, rgba(9, 20, 34, .56));
}

.waitlist-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.waitlist-brand,
.pilot-link,
.theme-toggle,
.whatsapp-button {
  color: white;
  text-decoration: none;
}

.waitlist-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Outfit, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 900;
}

.waitlist-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

.pilot-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.waitlist-content {
  position: relative;
  z-index: 1;
  width: min(590px, calc(100vw - 40px));
  align-self: center;
  margin: 0 auto 9vh;
  padding-right: min(8vw, 80px);
  justify-self: start;
  transform: translateX(max(20px, calc((100vw - 1160px) / 2)));
}

.waitlist-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 18px;
  padding: 0 16px;
  color: #09211d;
  background: #ffd65a;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.waitlist-content h1 {
  max-width: 11.5ch;
  margin: 0;
  color: white;
  font-size: clamp(52px, 7.3vw, 92px);
  line-height: .95;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

.waitlist-copy {
  max-width: 470px;
  margin: 24px 0 22px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.35;
}

.waitlist-mobile-text {
  display: none;
}

.waitlist-mobile-label {
  display: none;
}

.waitlist-trust-line {
  display: none;
}

.waitlist-form {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.waitlist-form[hidden],
.waitlist-note[hidden] {
  display: none;
}

.waitlist-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.name-fields,
.location-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.waitlist-form input,
.waitlist-form select {
  min-width: 0;
  border: 0;
  outline: none;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, .13);
  font-size: 17px;
  font-weight: 800;
}

.waitlist-form select {
  appearance: none;
}

.waitlist-form select:invalid {
  color: rgba(255, 255, 255, .68);
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, .68);
}

.phone-field {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .13);
}

.phone-field input {
  background: transparent;
  border-radius: 0 8px 8px 0;
}

.country-trigger {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px 0 0 8px;
  color: white;
  background: rgba(9, 20, 34, .22);
  font-size: 15px;
  font-weight: 900;
}

.country-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, .78);
}

.country-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(9, 20, 34, .96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

.country-menu.open-up {
  top: auto;
  bottom: calc(100% + 8px);
}

.country-menu[hidden] {
  display: none;
}

.country-menu input {
  width: 100%;
  background: rgba(255, 255, 255, .11);
}

.country-options {
  display: grid;
  gap: 4px;
  max-height: min(220px, 34vh);
  overflow: auto;
}

.country-options button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: white;
  background: transparent;
  text-align: left;
}

.country-options button:hover,
.country-options button[aria-selected="true"] {
  background: rgba(255, 214, 90, .18);
}

.country-options strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.country-options em {
  color: rgba(255, 255, 255, .72);
  font-style: normal;
  font-weight: 900;
}

.country-empty {
  margin: 8px;
  color: rgba(255, 255, 255, .7);
  font-weight: 800;
}

.interest-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.interest-field legend {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 900;
}

.interest-field label {
  position: relative;
  min-width: 0;
}

.interest-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interest-field label > span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .1);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.interest-field input:checked + span {
  color: #062115;
  background: #ffd65a;
  border-color: #ffd65a;
}

.interest-field input:focus-visible + span {
  outline: 2px solid white;
  outline-offset: 2px;
}

.waitlist-form button,
.whatsapp-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: #25d366;
  color: #062115;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .3);
}

.waitlist-form button:disabled {
  opacity: .7;
}

.waitlist-form.is-complete {
  animation: puff-away .34s ease forwards;
}

.waitlist-note {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 700;
}

.waitlist-status {
  display: none;
  width: min(520px, 100%);
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  color: white;
  background: rgba(9, 20, 34, .72);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
}

.waitlist-status.success,
.waitlist-status.error,
.waitlist-status.busy {
  display: grid;
  gap: 8px;
}

.waitlist-status.success {
  border-color: rgba(37, 211, 102, .5);
}

.waitlist-status.error {
  border-color: rgba(255, 96, 96, .55);
}

.waitlist-status span {
  color: rgba(255, 255, 255, .78);
}

.waitlist-status .whatsapp-button {
  width: fit-content;
  margin-top: 6px;
}

.waitlist-success-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  width: min(520px, 100%);
  margin: -4px 0 0;
  padding: 18px;
  border: 1px solid rgba(37, 211, 102, .42);
  border-radius: 8px;
  color: white;
  background: rgba(9, 20, 34, .78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
  animation: success-in .42s ease both;
}

.waitlist-success-card[hidden] {
  display: none;
}

.waitlist-success-card img {
  grid-row: 1 / span 2;
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  animation: logo-bounce 1.2s ease-in-out infinite;
  box-shadow: 0 14px 18px rgba(0, 0, 0, .2);
}

.waitlist-success-card strong {
  display: block;
  font-family: Outfit, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  line-height: 1.05;
}

.waitlist-success-card span {
  display: block;
  max-width: 440px;
  margin-top: 5px;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 1.35;
}

@media (min-width: 761px) {
  .has-waitlist-success .waitlist-content::after {
    content: "";
    display: block;
    width: min(520px, 100%);
    height: clamp(240px, 32vh, 300px);
  }
}

@keyframes puff-away {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to { opacity: 0; transform: scale(.92); filter: blur(8px); }
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logo-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-8px) scale(1.04); }
}

.theme-toggle {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 26px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: rgba(9, 20, 34, .58);
  color: white;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.theme-toggle.is-playing {
  background: rgba(37, 211, 102, .22);
}

@media (max-width: 760px) {
  .waitlist-hero {
    display: block;
    min-height: 100svh;
    overflow: auto;
    padding-bottom: 112px;
  }

  .waitlist-bg {
    background-position: 68% 58%;
    transform: none;
  }

  .waitlist-video {
    display: block;
    bottom: auto;
    height: min(54svh, 460px);
    object-position: 54% center;
    transform: none;
    opacity: 1;
  }

  .waitlist-shade {
    background:
      linear-gradient(180deg, rgba(9, 20, 34, .72) 0%, rgba(9, 20, 34, .42) 32%, rgba(9, 20, 34, .78) min(54svh, 460px), rgba(9, 20, 34, .95) calc(min(54svh, 460px) + 140px), rgba(9, 20, 34, .92) 100%),
      linear-gradient(90deg, rgba(9, 20, 34, .78), rgba(9, 20, 34, .24) 72%);
  }

  .waitlist-header {
    width: min(100vw - 28px, 640px);
    padding: 16px 0 0;
  }

  .waitlist-brand span {
    font-size: 17px;
  }

  .pilot-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .waitlist-content {
    width: min(100vw - 28px, 640px);
    margin: clamp(72px, 11svh, 112px) auto 0;
    padding-right: 0;
    transform: none;
  }

  .waitlist-kicker {
    margin-bottom: 12px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .waitlist-desktop-text {
    display: none;
  }

  .waitlist-mobile-text {
    display: inline;
  }

  .waitlist-desktop-label {
    display: none;
  }

  .waitlist-mobile-label {
    display: inline;
  }

  .waitlist-content h1 {
    max-width: 9.5ch;
    font-size: clamp(40px, 11.8vw, 50px);
    line-height: .96;
  }

  .waitlist-copy {
    max-width: 300px;
    margin: 14px 0 18px;
    font-size: 16px;
    line-height: 1.28;
  }

  .waitlist-trust-line {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: rgba(255, 255, 255, .82);
    background: rgba(9, 20, 34, .42);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    backdrop-filter: blur(14px);
  }

  .waitlist-success-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
    margin-top: -2px;
    background: rgba(9, 20, 34, .84);
  }

  .waitlist-success-card img {
    grid-row: auto;
    width: 62px;
    height: 62px;
  }

  .waitlist-success-card strong {
    font-size: 24px;
  }

  .waitlist-form {
    min-height: auto;
    margin-top: clamp(28px, 4.8svh, 42px);
  }

  .waitlist-fields {
    grid-template-columns: 1fr;
  }

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

  .interest-field {
    grid-template-columns: 1fr;
  }

  .waitlist-form input {
    min-height: 50px;
  }

  .waitlist-form button,
  .whatsapp-button {
    width: 100%;
  }

  .theme-toggle {
    left: 14px;
    right: auto;
    bottom: 14px;
  }
}

/* Critical Leaflet layout CSS kept local so map tiles cannot fall back to normal image flow. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-container {
  overflow: hidden;
  outline: 0;
  touch-action: pan-x pan-y;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  filter: inherit;
  visibility: hidden;
  border: 0;
}

.leaflet-tile-loaded { visibility: inherit; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-interactive { cursor: pointer; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab { cursor: grabbing; }

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-tile-pane {
  z-index: 200;
  filter: saturate(.72) brightness(1.06) contrast(.94);
}
.leaflet-overlay-pane { z-index: 420; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 620; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control-zoom {
  margin: 0 14px 14px 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(27,42,71,.18);
}
.leaflet-control-zoom a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
}
.leaflet-control-zoom a + a { border-top: 1px solid var(--line); }

.leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
.leaflet-popup-content-wrapper {
  padding: 8px 10px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(27,42,71,.16);
}
.leaflet-popup-tip-container { display: none; }

button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }

.loading, .lock {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,191,0,.28), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(16,155,155,.32), transparent 32%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 56%, var(--teal));
  color: white;
}

.loading-card {
  position: relative;
  z-index: 1;
  width: min(380px, calc(100vw - 32px));
  padding: 34px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(6, 30, 58, 0.42);
  backdrop-filter: blur(12px);
  text-align: center;
}

.loading-card h2 {
  margin: 0 0 12px;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: white;
}

.loading-subtitle {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

.loading-help {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.lock::before {
  display: none;
  content: none;
}

.lock-card {
  position: relative;
  z-index: 1;
  width: min(390px, calc(100vw - 32px));
  padding: 30px;
  background: white;
  color: var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.lock-card h1 { margin: 18px 0 4px; font-size: 44px; letter-spacing: 0; }
.lock-card p { margin: 0 0 22px; color: var(--muted); }

.logo {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: visible;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(27,42,71,.18);
}

.logo img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center;
}

.logo:not(.big) img {
  width: 94%;
  height: 94%;
  object-position: center;
}

.logo.big {
  width: 118px;
  height: 118px;
  margin: 0 auto;
  border-radius: 28px;
}

.logo.big img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  object-position: center;
}

.lock input, .route-inputs input, .ghost-input, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f5f7f6;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
}

.role-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,191,0,.28), transparent 28%),
    radial-gradient(circle at 80% 90%, rgba(16,155,155,.28), transparent 34%),
    rgba(16, 32, 59, .46);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.role-gate-card {
  position: relative;
  width: min(380px, 100%);
  padding: 24px;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-align: left;
}

.role-gate-card h2 {
  margin: 2px 0 8px;
  font-size: 34px;
  line-height: .95;
}

.role-gate-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.role-gate-card .eyebrow {
  margin: 12px 0 6px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.role-gate-card input {
  width: 100%;
  min-height: 54px;
  margin: 4px 0 14px;
  padding: 13px 15px;
  color: var(--ink);
  background: #f5f7f6;
  border: 1px solid rgba(27,42,71,.08);
  border-radius: 16px;
  outline: none;
  font-size: 18px;
  font-weight: 900;
}

.role-gate-card input:focus {
  background: white;
  border-color: rgba(16,155,155,.5);
  box-shadow: 0 0 0 4px rgba(16,155,155,.14);
}

.role-gate-card .black-button {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
}

.role-gate-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(16,155,155,.22);
}

.role-gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: #f4f7f8;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.request.queued-request {
  border: 2px solid rgba(255,191,0,.55);
  background:
    linear-gradient(135deg, rgba(255,191,0,.14), transparent 34%),
    rgba(255,255,255,.96);
}

.request.queued-request .request-pill {
  color: var(--ink);
  background: rgba(255,191,0,.28);
}

.request.shared-passenger {
  border-color: rgba(16, 155, 155, .32);
  background:
    linear-gradient(135deg, rgba(16,155,155,.10), rgba(255,191,0,.10)),
    #fff;
}

input:focus, select:focus {
  background: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(16,155,155,.13);
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  color: white;
  background: rgba(9, 20, 34, .48);
  border-color: rgba(255, 214, 90, .76);
  box-shadow: 0 0 0 3px rgba(255, 214, 90, .2);
}

.phone-field:focus-within {
  background: rgba(9, 20, 34, .48);
  box-shadow: 0 0 0 3px rgba(255, 214, 90, .2);
}

.phone-field input:focus,
.country-menu input:focus {
  background: transparent;
  box-shadow: none;
}

.waitlist-form input:-webkit-autofill,
.waitlist-form input:-webkit-autofill:hover,
.waitlist-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  caret-color: white;
  box-shadow: 0 0 0 1000px rgba(9, 20, 34, .74) inset, 0 0 0 3px rgba(255, 214, 90, .2);
  transition: background-color 9999s ease-out;
}

.error { color: var(--orange); font-weight: 800; }

.app-error {
  position: fixed;
  left: 50%;
  top: calc(72px + env(safe-area-inset-top));
  z-index: 1200;
  width: min(520px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid rgba(230, 74, 25, .18);
  border-radius: 18px;
  background: #fff4ef;
  box-shadow: var(--shadow);
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  padding: 12px 14px;
}
.muted { color: var(--muted); }

.black-button, .soft-button, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 900;
}

.black-button {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 16px 34px rgba(16,155,155,.25);
}
.soft-button { color: var(--ink); background: #eef8f8; }
.danger-button { color: white; background: var(--orange); }

.app-shell {
  min-height: 100vh;
  padding-bottom: 78px;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(14px, 3vw, 28px);
  color: white;
  background: linear-gradient(90deg, rgba(27,42,71,.98), rgba(27,42,71,.94), rgba(16,155,155,.92));
  backdrop-filter: blur(18px);
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-block b { display: block; font-size: 18px; }
.logo-block span { display: block; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }

.signal {
  padding: 8px 11px;
  color: var(--navy);
  background: rgba(255,191,0,.88);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.app-tabs {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(430px, calc(100vw - 28px));
  transform: translateX(-50%);
  padding: 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(27,42,71,.1);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(27,42,71,.16);
  backdrop-filter: blur(20px);
}

.app-tabs button {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 54px;
  color: var(--muted);
  background: transparent;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 900;
}

.app-tabs button.active {
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}

.app-main { min-height: calc(100vh - 72px); }

.map-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(12px, 3vw, 24px);
}

.rider-flow {
  display: grid;
  grid-template-columns: minmax(340px, 470px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
  padding: clamp(14px, 3vw, 28px) clamp(14px, 3vw, 28px) 96px;
}

.rider-panel {
  position: sticky;
  top: 92px;
  z-index: 5;
  min-width: 0;
}

.rider-map-shell {
  min-width: 0;
}

.rider-flow .map-card {
  min-height: clamp(430px, calc(100vh - 128px), 760px);
}

.map-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 118px);
  overflow: hidden;
  background: #e9f3f2;
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.map-header {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(520px, calc(100% - 36px));
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(27,42,71,.12);
  backdrop-filter: blur(16px);
}

.map-header b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.map-header span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 800; }
.map-header em { padding: 8px 10px; color: var(--teal-deep); background: #ddf6f5; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 950; }

.recenter-map {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(27,42,71,.1);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(27,42,71,.16);
  font-size: 12px;
  font-weight: 950;
  backdrop-filter: blur(16px);
}

.map-canvas, #map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #e9f3f2;
  font-weight: 900;
}

.leaflet-container { z-index: 1; font-family: inherit; background: #e9f3f2; }
.leaflet-tile-container img { max-width: none; }

.map-marker {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  filter: drop-shadow(0 16px 24px rgba(27,42,71,.24));
}

.map-marker.arrived-pulse::before,
.taxi-icon.arrived-pulse::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 3px solid rgba(255,191,0,.58);
  border-radius: 999px;
  animation: arrivalPulse 1.25s ease-out infinite;
}

.taxi-icon.arrived-pulse::before {
  inset: 4px 0 0;
  border-color: rgba(16,155,155,.58);
}

@keyframes arrivalPulse {
  from {
    opacity: .95;
    transform: scale(.76);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

.pin-glyph {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #ffd84d);
  border: 3px solid white;
  border-radius: 50% 50% 50% 10px;
  transform: rotate(-45deg);
}

.pin-glyph i {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

.rider-icon b,
.rider-icon strong,
.rider-icon .label {
  display: none !important;
}

.flag-glyph {
  position: relative;
  width: 34px;
  height: 38px;
}

.flag-glyph i {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 4px;
  height: 32px;
  background: var(--navy);
  border-radius: 999px;
}

.flag-glyph b {
  position: absolute;
  left: 12px;
  top: 3px;
  width: 24px;
  height: 18px;
  background:
    linear-gradient(45deg, #fff 25%, transparent 25% 50%, #fff 50% 75%, transparent 75%),
    var(--orange);
  background-size: 10px 10px;
  border: 3px solid white;
  border-left: 0;
  border-radius: 3px 9px 9px 3px;
}

.taxi-icon {
  position: relative;
  display: grid;
  width: 58px;
  height: 66px;
  place-items: center;
  filter: drop-shadow(0 10px 14px rgba(27,42,71,.22));
}

.taxi-icon svg {
  width: 48px;
  height: 62px;
  transform: rotate(var(--bearing, 0deg));
  transform-origin: 50% 50%;
  transition: transform .25s ease;
}

.taxi-icon .car-shadow,
.taxi-mini-svg .car-shadow { fill: rgba(27,42,71,.16); }
.taxi-icon .car-tire,
.taxi-mini-svg .car-tire { fill: #071326; }
.taxi-icon .car-base,
.taxi-mini-svg .car-base { fill: rgba(27,42,71,.36); }
.taxi-icon .car-body,
.taxi-mini-svg .car-body { fill: #f9fbf7; stroke: rgba(27,42,71,.46); stroke-width: 1.8; }
.taxi-icon .car-hood,
.taxi-mini-svg .car-hood { fill: #ffffff; }
.taxi-icon .car-cabin { fill: #0b2c69; }
.taxi-icon .car-window,
.taxi-icon .car-windshield,
.taxi-mini-svg .car-windshield { fill: #172844; }
.taxi-icon .car-glass,
.taxi-mini-svg .car-glass { fill: #20385b; }
.taxi-icon .car-roof,
.taxi-mini-svg .car-roof { fill: #ffffff; }
.taxi-icon .car-trunk { fill: #061936; }
.taxi-icon .car-crease,
.taxi-mini-svg .car-crease { fill: none; stroke: rgba(27,42,71,.18); stroke-width: 1.8; stroke-linecap: round; }
.taxi-icon .car-centerline { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2.2; stroke-linecap: round; }
.taxi-icon .taxi-sign,
.taxi-mini-svg .taxi-sign { fill: var(--gold); stroke: #13213a; stroke-width: 1.4; stroke-linejoin: round; }
.taxi-icon .front-plate,
.taxi-icon .rear-plate,
.taxi-mini-svg .front-plate,
.taxi-mini-svg .rear-plate { fill: #16864b; stroke: #ffffff; stroke-width: 1.05; }
.taxi-icon .car-rust,
.taxi-mini-svg .car-rust { fill: none; stroke: #a85e32; stroke-width: 1.4; stroke-linecap: round; opacity: .62; }
.taxi-icon .headlight,
.taxi-mini-svg .headlight { fill: var(--gold); }
.taxi-icon .tail-light,
.taxi-mini-svg .tail-light { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; }

.taxi-icon b {
  position: absolute;
  right: -1px;
  top: 2px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--ink);
  background: #f7df8d;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 950;
}

.place-suggestions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.place-suggestions::-webkit-scrollbar { display: none; }

.place-suggestions button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rider-search-screen .place-suggestions,
.rider-search-screen .search-suggestions {
  display: none !important;
}

.ride-sheet {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 20;
  width: min(420px, calc(100% - 48px));
}

.booking, .surface {
  width: 100%;
  min-width: 0;
  padding: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(20px);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 14px;
  background: #d4dbd8;
  border-radius: 999px;
}

.booking h1 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.ghost-input {
  min-height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 700;
}

.route-inputs {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.route-rail {
  display: grid;
  justify-items: center;
  padding-top: 22px;
}

.route-rail span, .route-rail b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.route-rail span { background: var(--gold); }
.route-rail b { background: var(--orange); }
.route-rail i { width: 2px; height: 66px; margin: 6px 0; background: linear-gradient(var(--gold), var(--orange)); opacity: .45; }

.route-inputs label {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pickup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.pickup-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 11px;
  color: var(--teal-deep);
  background: #ddf6f5;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.pickup-row button svg {
  width: 15px;
  height: 15px;
}

.place-results {
  display: grid;
  gap: 7px;
  margin: -3px 0 12px;
}

.place-results:empty {
  display: none;
}

.place-results button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  color: var(--ink);
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.place-results button:disabled {
  color: var(--muted);
  background: #f7fafc;
}

.place-results b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-results span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fare-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.taxi-glyph {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #edf3f2);
  border: 1px solid rgba(27,42,71,.12);
  border-radius: 15px;
  box-shadow: 0 8px 12px rgba(27,42,71,.1);
}

.taxi-glyph .taxi-mini-svg,
.driver-pass .mini-taxi .taxi-mini-svg {
  width: 32px;
  height: 42px;
}

.fare-card span, .driver-card span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 750; }

.quick-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.quick-row > div {
  min-height: 54px;
  padding: 9px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.quick-row span { display: block; font-size: 16px; font-weight: 950; }
.quick-row b { display: block; color: var(--muted); font-size: 11px; }

.wait-tile.live {
  color: var(--teal-deep);
  background: #ddf6f5;
  border-color: rgba(16,155,155,.26);
}

.wait-note {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.passengers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 !important;
  overflow: hidden;
}

.passengers button { background: #eef2f0; font-size: 20px; font-weight: 950; }
.passengers span { display: grid; place-items: center; background: white; }

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.progress span { height: 5px; background: #dbe2df; border-radius: 999px; }
.progress span.done { background: var(--teal); }

.driver-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.driver-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 950;
}

.driver-avatar.searching-avatar svg {
  width: 20px;
  height: 20px;
}

.uber-ride h1 {
  text-align: center;
  color: var(--navy);
  font-size: clamp(28px, 7vw, 42px);
  line-height: .95;
}

.rating-card span {
  display: block;
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mascot-taxi {
  position: relative;
  display: grid;
  width: 58px;
  height: 48px;
  place-items: center;
  isolation: isolate;
}

.mascot-taxi::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 2px;
  bottom: 4px;
  height: 26px;
  background: var(--gold);
  border: 3px solid white;
  border-radius: 18px 20px 13px 13px;
  box-shadow: 0 10px 22px rgba(27,42,71,.14);
  z-index: -1;
}

.mascot-taxi::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 11px;
  width: 14px;
  height: 7px;
  background: var(--navy);
  border-radius: 7px 7px 3px 3px;
}

.mascot-taxi img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 26%;
  border-radius: 50%;
}

.trip-detail-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  margin: 14px 0;
  padding: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.trip-detail-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
}

.trip-detail-card b {
  display: block;
  font-size: 23px;
  line-height: 1.08;
}

.trip-detail-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
}

.pin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-inline: -18px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pin-row span {
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 750;
}

.pin-row div {
  display: flex;
  gap: 4px;
}

.pin-row b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: #2f70e8;
  font-size: 18px;
  font-weight: 900;
}

.driver-pass {
  display: grid;
  grid-template-columns: 50px 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 17px 0 10px;
}

.driver-pass .mini-taxi {
  display: grid;
  width: 58px;
  height: 42px;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #edf3f2);
  border: 1px solid rgba(27,42,71,.12);
  border-radius: 14px;
  box-shadow: 0 8px 12px rgba(27,42,71,.1);
}

.driver-pass strong {
  display: block;
  font-size: clamp(24px, 6vw, 36px);
  line-height: .95;
}

.driver-pass span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.driver-pass em {
  color: var(--navy);
  font-style: normal;
  font-size: 16px;
  font-weight: 950;
}

.driver-link {
  margin: 2px 0 13px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.ride-complete {
  gap: 14px;
}

.ride-complete-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px 6px;
  text-align: center;
}

.ride-complete-hero span {
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.ride-complete-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 12vw, 72px);
  line-height: .92;
}

.ride-complete-hero p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.ride-complete-flag {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 4px;
  color: var(--navy);
  background: rgba(255,191,0,.18);
  border: 1px solid rgba(255,191,0,.34);
  border-radius: 999px;
}

.ride-complete-flag::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 3px solid rgba(255,191,0,.58);
  border-radius: inherit;
  animation: arrivalPulse 1.35s ease-out infinite;
}

.ride-complete-flag .button-finish-flag {
  transform: scale(1.24);
}

.complete-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.complete-summary strong {
  color: var(--navy);
  font-size: clamp(24px, 6vw, 34px);
  white-space: nowrap;
}

.rating-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 14px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(255,191,0,.20), rgba(16,155,155,.13)),
    white;
  border: 1px solid rgba(16,155,155,.18);
  border-radius: 24px;
  text-align: center;
}

.rating-card b {
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1;
}

.rating-card p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.rating-stars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(330px, 100%);
  margin-top: 6px;
}

.rating-button {
  display: grid;
  min-height: 52px;
  place-items: center;
  color: var(--gold);
  background: #fff8df;
  border: 1px solid rgba(255,191,0,.34);
  border-radius: 16px;
  font-size: 28px;
  font-weight: 950;
}

.rating-button:active {
  transform: scale(.96);
}

.ride-contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}

.rider-contact-card,
.driver-contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.rider-contact-card label,
.driver-phone-row {
  display: grid;
  gap: 5px;
}

.rider-phone-row {
  grid-column: 1 / -1;
}

.rider-contact-card .phone-field {
  min-height: 50px;
  border: 1px solid var(--line);
  background: white;
}

.rider-contact-card .country-trigger {
  min-height: 50px;
  color: var(--navy);
  border-right: 1px solid var(--line);
  background: #f8fbfb;
  font-size: 13px;
}

.rider-contact-card .phone-field input {
  min-height: 50px;
  background: white;
  border: 0;
}

.rider-contact-card .phone-field:focus-within,
.rider-contact-card .phone-field input:focus,
.rider-contact-card .phone-field button:focus {
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(16,155,155,.12);
}

.rider-contact-card .country-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  box-shadow: 0 24px 60px rgba(16, 155, 155, .16);
  z-index: 11;
}

.rider-contact-card .country-menu input {
  background: #f8fbfb;
  color: var(--navy);
  border: 1px solid var(--line);
}

.rider-contact-card .country-options button {
  color: var(--navy);
}

.rider-contact-card .country-options button:hover,
.rider-contact-card .country-options button[aria-selected="true"] {
  background: rgba(16,155,155,.1);
}

.rider-contact-card .country-options strong {
  color: var(--ink);
}

.rider-contact-card .country-empty {
  color: var(--muted);
}

.rider-contact-card span,
.driver-phone-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.rider-contact-card input,
.driver-phone-row input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  font: inherit;
  font-weight: 850;
}

.rider-contact-card input:focus,
.driver-phone-row input:focus {
  border-color: rgba(16,155,155,.4);
  box-shadow: 0 0 0 4px rgba(16,155,155,.12);
}

.rider-contact-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rider-setup-screen {
  display: grid;
  min-height: calc(100dvh - 150px);
  place-items: start center;
  padding: 10px 14px max(24px, env(safe-area-inset-bottom));
}

.rider-setup-card {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 18px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(27, 42, 71, .08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(27, 42, 71, .12);
}

.rider-setup-card .home-intent h1 {
  max-width: 11ch;
  font-size: 42px;
  line-height: .94;
}

.setup-card-section {
  grid-template-columns: 1fr !important;
}

.setup-confirm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.soft-action {
  min-height: 46px;
  padding: 0 14px;
  color: var(--navy);
  background: #edf7f7;
  border: 1px solid rgba(16,155,155,.18);
  border-radius: 14px;
  font: inherit;
  font-weight: 950;
}

.profile-chip {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(27, 42, 71, .1);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(27, 42, 71, .08);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.profile-chip:active {
  transform: translateY(1px);
}

.setup-status {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.setup-status.ready {
  color: #075e5e;
  background: rgba(16,155,155,.14);
}

.setup-status.pending {
  color: #805600;
  background: rgba(255,191,0,.2);
}

.payment-setup-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7f8fa;
  border: 1px solid rgba(27, 42, 71, .08);
  border-radius: 18px;
}

.payment-setup-card > div:first-child {
  display: grid;
  gap: 2px;
}

.payment-setup-card span,
.payment-setup-card label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-setup-card b {
  color: var(--navy);
  font-size: 17px;
  font-weight: 950;
}

.payment-setup-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.payment-setup-card label {
  display: grid;
  gap: 5px;
}

.payment-setup-card input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  font: inherit;
  font-weight: 850;
}

.payment-setup-card input:focus {
  border-color: rgba(16,155,155,.4);
  box-shadow: 0 0 0 4px rgba(16,155,155,.12);
}

.payment-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.setup-continue-action {
  min-height: 58px;
}

.driver-profile-card h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.05;
}

.driver-profile-card > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.driver-verification-card {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px;
  color: var(--navy);
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.driver-verification-card.verified {
  background:
    linear-gradient(135deg, rgba(16,155,155,.12), rgba(255,191,0,.1)),
    #fff;
  border-color: rgba(16,155,155,.24);
}

.driver-verification-card.failed {
  background: #fff6f3;
  border-color: rgba(230,74,25,.24);
}

.driver-verification-card b {
  display: block;
  font-size: 15px;
  font-weight: 950;
}

.driver-verification-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.driver-verification-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.driver-verification-actions button {
  min-height: 48px;
}

.request-contact-row {
  display: flex;
  margin: 12px 0 0;
}

.wa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--teal-deep);
  background: #e6fbf9;
  border: 1px solid rgba(16,155,155,.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.wa-link[aria-disabled="true"] {
  opacity: .48;
  pointer-events: none;
}

.small-wa {
  justify-self: start;
  margin-top: 8px;
}

.missing-wa {
  display: inline-flex;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.call-driver-action {
  min-height: 54px;
  color: var(--navy);
  background: #eeedf0;
  border-radius: 999px;
  font-weight: 850;
}

.call-driver-action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 16px;
  color: white;
  background: var(--navy);
  border: 0;
  text-decoration: none;
  font-size: 15px;
}

.call-driver-action svg {
  flex: 0 0 auto;
}

.driver-grid, .admin-grid {
  display: grid;
  grid-template-columns: minmax(310px, 430px) minmax(0, 1fr);
  gap: 16px;
  padding: 18px clamp(14px, 3vw, 28px) 96px;
}

.driver-grid .map-card, .admin-grid .map-card {
  min-height: 620px;
}

.hero-driver h1, .request h1, .admin-hero h1 {
  margin: 12px 0 6px;
  font-size: 34px;
  line-height: 1;
}

.driver-value-card {
  display: grid;
  gap: 2px;
  margin: 14px 0;
  padding: 14px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(16,155,155,.12), rgba(255,191,0,.16)),
    #fff;
  border: 1px solid rgba(16,155,155,.18);
  border-radius: 20px;
}

.driver-value-card span,
.driver-app-note {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.driver-value-card strong {
  font-size: clamp(30px, 8vw, 44px);
  line-height: .95;
}

.driver-value-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.driver-status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  color: var(--navy);
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.driver-status-card.live {
  background:
    linear-gradient(135deg, rgba(16,155,155,.12), rgba(255,191,0,.13)),
    #fff;
  border-color: rgba(16,155,155,.24);
}

.driver-status-card.offline {
  opacity: .72;
  filter: grayscale(.2);
}

.driver-status-card b {
  display: block;
  font-size: 18px;
  font-weight: 950;
}

.driver-status-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gps-pulse {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--muted);
  border-radius: 50%;
}

.gps-pulse::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
}

.driver-status-card.live .gps-pulse {
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(16,155,155,.12);
}

.driver-status-card.live .gps-pulse::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(16,155,155,.38);
  border-radius: 50%;
  animation: gpsPulse 1.6s ease-out infinite;
}

@keyframes gpsPulse {
  from {
    opacity: .9;
    transform: scale(.68);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

.driver-app-note {
  margin: 0 0 12px;
  text-transform: none;
}

.driver-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.app-shell.driver .driver-grid {
  gap: 0;
}

.app-shell.driver .map-card {
  overflow: hidden;
  border-radius: 26px 26px 18px 18px;
}

.app-shell.driver .driver-content {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 12px;
}

.driver-request-card {
  position: relative;
  overflow: visible;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(27, 42, 71, .14);
}

.driver-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.driver-request-card .request-pill {
  min-height: 28px;
  padding: 6px 9px;
  color: white;
  background: #111827;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.driver-verified-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  color: var(--navy);
  background: #f2f6ff;
  border: 1px solid rgba(27, 42, 71, .08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.driver-verified-badge i {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: white;
  background: #2563eb;
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

.driver-verified-badge.pending i {
  background: var(--orange);
}

.driver-request-fare {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.driver-request-fare h1 {
  margin: 0;
  color: #090f1f;
  font-size: 40px;
  line-height: .95;
  letter-spacing: 0;
}

.driver-request-fare span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.driver-request-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.driver-request-summary div {
  min-width: 0;
  padding: 10px;
  background: #f6f8fb;
  border-radius: 12px;
}

.driver-request-summary b,
.driver-request-summary span {
  display: block;
}

.driver-request-summary b {
  overflow: hidden;
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-request-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.driver-route-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 14px;
}

.driver-route-line {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 3px 0;
}

.driver-route-line::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: #111827;
  border-radius: 999px;
}

.driver-route-line span,
.driver-route-line i {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  background: white;
  border: 3px solid #111827;
  border-radius: 50%;
}

.driver-route-line i {
  align-self: end;
  background: #111827;
  border-radius: 4px;
  transform: rotate(45deg);
}

.driver-route-copy {
  display: grid;
  gap: 12px;
}

.driver-route-copy b,
.driver-route-copy span {
  display: block;
}

.driver-route-copy b {
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-route-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.driver-request-card .driver-app-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: none;
}

.driver-request-card .request-contact-row {
  margin-top: 12px;
}

.driver-request-card .wa-link {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
}

.driver-request-card .driver-actions {
  grid-template-columns: 1fr;
}

.driver-request-card .driver-actions:has(button + button) {
  grid-template-columns: 1fr 1fr;
}

.driver-route-plan {
  display: grid;
  gap: 12px;
}

.driver-route-section {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.driver-route-section + .driver-route-section {
  padding-top: 12px;
  border-top: 1px solid rgba(27, 42, 71, .08);
}

.driver-route-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.driver-route-stop {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid rgba(27, 42, 71, .07);
  border-radius: 14px;
}

.driver-route-stop.primary {
  background:
    linear-gradient(135deg, rgba(16, 155, 155, .12), rgba(255, 191, 0, .13)),
    #fff;
  border-color: rgba(16, 155, 155, .2);
}

.driver-route-stop b,
.driver-route-stop span,
.driver-route-stop small {
  display: block;
  min-width: 0;
}

.driver-route-stop b {
  overflow: hidden;
  color: var(--navy);
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-route-stop span {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.driver-route-stop small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-route-stop .driver-actions {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.driver-route-stop .driver-actions:has(button + button) {
  grid-template-columns: 1fr 1fr;
}

.request-pill {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--teal-deep);
  background: #ddf6f5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.trip-points {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.trip-points p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.trip-points b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font-size: 12px;
}

.trip-points .mini-pin,
.trip-points .mini-flag {
  position: relative;
  background: transparent;
  border-radius: 0;
}

.trip-points .mini-pin::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50% 50% 50% 5px;
  transform: rotate(-45deg);
}

.trip-points .mini-pin::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.trip-points .mini-flag::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 3px;
  height: 21px;
  background: var(--navy);
  border-radius: 999px;
}

.trip-points .mini-flag::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 3px;
  width: 16px;
  height: 12px;
  background:
    linear-gradient(45deg, #0a162b 25%, transparent 25% 50%, #0a162b 50% 75%, transparent 75%),
    #fff;
  background-size: 7px 7px;
  border: 1px solid rgba(10,22,43,.18);
  border-radius: 2px 6px 6px 2px;
}

.empty-state h2, .list h2 { margin: 0 0 10px; }
.empty-state p { margin: 0; color: var(--muted); }

.branded-empty {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 220px;
}

.branded-empty img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 18px rgba(27,42,71,.16));
}

.admin-grid {
  grid-template-columns: 380px minmax(0, 1fr);
}

.admin-hero, .list { grid-column: 1; }
.admin-grid .map-card { grid-column: 2; grid-row: 1 / span 3; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.admin-stats div {
  padding: 13px;
  background: #f5f7f6;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-stats b { display: block; font-size: 24px; }
.admin-stats span { color: var(--muted); font-size: 12px; font-weight: 850; }

.list article {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.list article b { display: block; }
.list article span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

.ops-command-header {
  display: grid;
  gap: 18px;
}

.ops-command-header h1 {
  margin: 8px 0 6px;
  font-size: 32px;
  line-height: 1.02;
  text-wrap: balance;
}

.ops-command-header p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.ops-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 9px;
  color: #075f5f;
  background: rgba(16,155,155,.11);
  border: 1px solid rgba(16,155,155,.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.ops-live-badge i,
.ops-status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(16,155,155,.14);
}

.ops-metric {
  min-width: 0;
}

.ops-metric.ready {
  background: rgba(16,155,155,.08);
  border-color: rgba(16,155,155,.22);
}

.ops-metric.attention {
  background: rgba(255,191,0,.16);
  border-color: rgba(194,139,0,.24);
}

.ops-metric.active {
  background: rgba(27,42,71,.06);
  border-color: rgba(27,42,71,.18);
}

.ops-panel {
  display: grid;
  gap: 14px;
}

.ops-panel-heading,
.ops-driver-group header,
.ops-ride-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-panel-heading h2,
.ops-danger-zone h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
}

.ops-panel-heading span,
.ops-driver-group header span,
.ops-ride-group header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ops-driver-group,
.ops-ride-group {
  display: grid;
  gap: 8px;
}

.ops-driver-group h3,
.ops-ride-group h3 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.2;
}

.ops-driver-rows,
.ops-ride-rows {
  display: grid;
  gap: 8px;
}

.ops-driver-row,
.ops-ride-row {
  display: grid;
  gap: 10px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ops-driver-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.ops-driver-row.busy .ops-status-dot,
.ops-ride-group.active .ops-ride-pill,
.ops-ride-row.onboard .ops-ride-pill {
  background: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,71,.12);
}

.ops-driver-row.offline .ops-status-dot {
  background: #a1a8b3;
  box-shadow: 0 0 0 3px rgba(161,168,179,.16);
}

.ops-driver-row b,
.ops-ride-row b {
  display: block;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
}

.ops-driver-row span,
.ops-ride-row span {
  min-width: 0;
}

.ops-driver-row div span,
.ops-ride-main > span:last-child,
.ops-ride-meta span,
.ops-ride-detail > span,
.ops-empty-line,
.ops-danger-zone p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.ops-ride-row {
  grid-template-columns: minmax(0, 1.15fr) minmax(160px, .65fr) auto;
  align-items: center;
}

.ops-ride-main,
.ops-ride-meta,
.ops-ride-actions {
  min-width: 0;
}

.ops-ride-main {
  display: grid;
  gap: 4px;
}

.ops-ride-meta {
  display: grid;
  gap: 3px;
}

.ops-route-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  min-width: 0;
}

.ops-route-line strong {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.ops-route-line i {
  flex: 0 0 auto;
  color: rgba(27,42,71,.52);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ops-ride-meta b {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 950;
}

.ops-ride-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.ops-contact-line {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.ops-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ops-contact-badge,
.ops-retry-badge,
.ops-plan-badge,
.ops-mode-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.ops-mode-chip {
  margin-left: 5px;
  color: #075f5f;
  background: rgba(16,155,155,.1);
  vertical-align: middle;
}

.ops-plan-badge {
  color: var(--navy);
  background: #eef1f3;
}

.ops-contact-badge.verified {
  color: #075f5f;
  background: rgba(16,155,155,.1);
}

.ops-contact-badge.pending {
  color: #7a4d00;
  background: rgba(255,191,0,.18);
}

.ops-contact-badge.failed,
.ops-contact-badge.missing,
.ops-retry-badge {
  color: #8b2020;
  background: rgba(188,47,47,.1);
}

.ops-ride-detail {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.ops-send-error {
  color: #8b2020 !important;
}

.ops-ride-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  color: #075f5f;
  background: rgba(16,155,155,.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ops-ride-group.needs-assignment .ops-ride-pill {
  color: #7a4d00;
  background: rgba(255,191,0,.2);
}

.ops-ride-row.waiting .ops-ride-pill {
  color: #075f5f;
  background: rgba(16,155,155,.1);
}

.ops-ride-row.dropped-off .ops-ride-pill,
.ops-ride-group.completed .ops-ride-pill {
  color: var(--muted);
  background: #eef1f3;
}

.ops-wa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #075f5f;
  background: rgba(16,155,155,.09);
  border: 1px solid rgba(16,155,155,.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.ops-wa-button:hover,
.ops-wa-button:focus-visible {
  color: #053f3f;
  background: rgba(16,155,155,.16);
  outline: none;
}

.ops-empty-line {
  margin: 0;
  padding: 10px 0;
}

.ops-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(188,47,47,.22);
  background: rgba(188,47,47,.04);
}

.ops-danger-zone p {
  margin: 5px 0 0;
}

@media (max-width: 1080px) {
  .rider-flow {
    grid-template-columns: 1fr;
    padding: 12px 12px 96px;
  }
  .rider-map-shell { order: 1; }
  .rider-panel { order: 2; position: static; }
  .rider-flow .map-card {
    min-height: clamp(340px, 48vh, 520px);
    border-radius: 26px;
  }
}

@media (max-width: 900px) {
  .map-stage { padding: 0; min-height: calc(100vh - 72px); }
  .map-card { min-height: calc(100vh - 72px); border-radius: 0; }
  .ride-sheet { left: 12px; right: 12px; bottom: 92px; width: auto; }
  .booking h1 { font-size: 30px; }
  .driver-grid, .admin-grid { grid-template-columns: 1fr; }
  .admin-grid .map-card { grid-column: auto; grid-row: auto; min-height: 430px; }
  .driver-grid .map-card { min-height: 430px; }
}

@media (max-width: 560px) {
  .app-top { padding: 12px 14px; }
  .map-header { left: 12px; top: 12px; width: calc(100% - 24px); }
  .recenter-map { left: 12px; bottom: 12px; }
  .ride-sheet { bottom: 88px; }
  .booking { padding: 14px; border-radius: 24px; }
  .route-inputs {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .route-inputs input { padding-inline: 10px; }
  .pickup-row { grid-template-columns: minmax(0, 1fr) 112px; }
  .pickup-row button {
    white-space: normal;
    line-height: 1.05;
  }
  .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-contact-card { grid-template-columns: 1fr; }
  .driver-actions { grid-template-columns: 1fr; }
}

/* Map-first mobile app shell */
.app-shell {
  min-height: 100dvh;
  padding: 92px 0 0;
}

.app-top {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 80;
  min-height: 58px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(27,42,71,.16);
}

.app-top .logo-block span { color: var(--muted); }

.app-tabs {
  position: fixed;
  top: calc(max(10px, env(safe-area-inset-top)) + 68px);
  bottom: auto;
  z-index: 90;
  width: min(390px, calc(100vw - 28px));
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(27,42,71,.16);
}

.app-tabs button {
  min-height: 46px;
  border-radius: 16px;
}

.app-main {
  min-height: calc(100dvh - 92px);
}

.role-screen,
.rider-flow,
.driver-grid,
.admin-grid {
  display: block;
  padding: 0 clamp(12px, 3vw, 28px) calc(28px + env(safe-area-inset-bottom));
}

.role-screen .map-card,
.rider-flow .map-card,
.driver-grid .map-card,
.admin-grid .map-card {
  position: sticky;
  top: calc(max(10px, env(safe-area-inset-top)) + 132px);
  z-index: 20;
  height: clamp(360px, 48dvh, 560px);
  min-height: 0;
  margin: 0 auto 14px;
  border-radius: 30px;
  box-shadow: 0 24px 72px rgba(27,42,71,.18);
}

.role-content,
.rider-panel,
.driver-content,
.admin-content {
  position: relative;
  z-index: 30;
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.admin-content {
  width: min(980px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-hero,
.admin-content .list {
  grid-column: auto;
}

.booking,
.surface {
  border-radius: 24px;
}

.booking-modern {
  display: grid;
  gap: 14px;
}

.rider-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 2px;
}

.rider-steps span {
  display: grid;
  min-height: 32px;
  place-items: center;
  color: var(--muted);
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.rider-steps span.done {
  color: var(--teal-deep);
  background: #ddf6f5;
  border-color: rgba(16,155,155,.22);
}

.booking-title-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.booking-title-row > div {
  min-width: 0;
}

.booking-title-row span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.booking-title-row h1 {
  margin: 0;
  line-height: .96;
}

.rider-name-pill {
  width: 108px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--navy);
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  font-size: 14px;
  font-weight: 900;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.uber-route-box {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.uber-route-box::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--orange));
  opacity: .55;
}

.route-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 14px 14px;
  color: var(--navy);
  text-align: left;
  background: transparent;
}

.route-line + .route-line {
  border-top: 1px solid rgba(27,42,71,.08);
}

.route-line small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.route-line b {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-line em {
  padding: 9px 11px;
  color: var(--teal-deep);
  background: #dff7f6;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.route-line em.ghost {
  display: none;
}

.route-dot {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
}

.pickup-dot {
  background: var(--gold);
}

.pickup-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.dropoff-dot {
  width: 30px;
  height: 34px;
  background: transparent;
  border-radius: 0;
}

.dropoff-dot::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 4px;
  height: 27px;
  background: var(--navy);
  border-radius: 999px;
}

.dropoff-dot::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  width: 19px;
  height: 14px;
  background:
    linear-gradient(45deg, #111827 25%, transparent 25% 50%, #111827 50% 75%, transparent 75%),
    white;
  background-size: 7px 7px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 2px 7px 7px 2px;
  box-shadow: 0 3px 8px rgba(16, 25, 43, 0.16);
}

.suggestion-panel {
  display: grid;
  gap: 12px;
}

.big-search {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--navy);
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(27,42,71,.08);
}

.big-search span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 50%;
}

.big-search b {
  font-size: 17px;
  font-weight: 950;
}

.fare-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  align-items: center;
  padding: 14px 15px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(255,191,0,.18), rgba(16,155,155,.13)),
    white;
  border: 1px solid rgba(16,155,155,.18);
  border-radius: 21px;
  box-shadow: 0 14px 34px rgba(27,42,71,.08);
}

.fare-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.fare-preview strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--navy);
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 950;
  white-space: nowrap;
}

.fare-preview small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.ride-option-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  color: var(--navy);
  background: white;
  border: 2px solid rgba(16,155,155,.25);
  border-radius: 21px;
  box-shadow: 0 14px 34px rgba(27,42,71,.10);
}

.ride-option-card b {
  display: block;
  font-size: 16px;
  font-weight: 950;
}

.ride-option-card span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ride-option-card strong {
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.confirm-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.confirm-strip div {
  min-height: 62px;
  padding: 10px 12px;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.confirm-strip span {
  display: block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 950;
}

.confirm-strip b {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.passenger-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 10px 9px 14px;
  color: var(--navy);
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 14px;
  font-weight: 950;
}

.passenger-row > span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.passenger-row .passengers {
  display: grid;
  grid-template-columns: 42px 38px 42px;
  overflow: hidden;
  min-height: 42px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.passenger-row .passengers button,
.passenger-row .passengers b {
  display: grid;
  min-width: 0;
  place-items: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 950;
}

.ride-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ride-mode-option {
  min-width: 0;
  min-height: 68px;
  padding: 12px 13px;
  text-align: left;
  color: var(--navy);
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(27, 42, 71, 0.06);
}

.ride-mode-option.selected {
  color: white;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  border-color: rgba(16, 155, 155, 0.34);
  box-shadow: 0 18px 40px rgba(16, 155, 155, 0.22);
}

.ride-mode-option b,
.ride-mode-option span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ride-mode-option b {
  font-size: 15px;
  font-weight: 950;
}

.ride-mode-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.ride-mode-option.selected span {
  color: rgba(255, 255, 255, 0.78);
}

.booking h1,
.hero-driver h1,
.request h1,
.admin-hero h1 {
  color: var(--navy);
}

.route-inputs {
  background: white;
  box-shadow: inset 0 0 0 1px rgba(27,42,71,.04);
}

.route-inputs input {
  background: #f8fbfb;
}

.place-results {
  position: relative;
  z-index: 45;
}

.place-results button {
  box-shadow: 0 12px 24px rgba(27,42,71,.08);
}

.booking-flow {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.route-choice {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 14px;
  color: var(--navy);
  text-align: left;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 19px;
}

.route-choice span {
  grid-row: 1 / span 2;
  align-self: center;
}

.route-choice b {
  overflow: hidden;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-choice small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.route-choice .mini-pin,
.route-choice .mini-flag {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
}

.route-choice .mini-pin::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
}

.route-choice .mini-pin::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
}

.route-choice .mini-flag::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 4px;
  height: 25px;
  background: var(--navy);
  border-radius: 999px;
}

.route-choice .mini-flag::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 4px;
  width: 20px;
  height: 14px;
  background:
    linear-gradient(45deg, #0a162b 25%, transparent 25% 50%, #0a162b 50% 75%, transparent 75%),
    #fff;
  background-size: 8px 8px;
  border: 1px solid rgba(10,22,43,.18);
  border-radius: 2px 7px 7px 2px;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
  padding: max(10px, env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(27, 42, 71, .18);
  backdrop-filter: blur(3px);
}

.search-sheet {
  width: min(680px, 100%);
  max-height: min(64dvh, 560px);
  margin: 0 auto;
  overflow: auto;
  padding: 14px;
  background: white;
  border: 1px solid rgba(27,42,71,.08);
  border-radius: 30px 30px 22px 22px;
  box-shadow: 0 22px 62px rgba(27,42,71,.22);
}

.search-top {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.search-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--navy);
  background: #eef3f6;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 800;
}

.search-top span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.search-top input {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  color: var(--navy);
  background: #fff;
  border: 2px solid rgba(16,155,155,.20);
  border-radius: 19px;
  outline: 0;
  box-shadow: 0 0 0 5px rgba(16,155,155,.07);
  font-size: 18px;
  font-weight: 900;
}

.use-location-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-bottom: 10px;
  color: var(--teal-deep);
  background: #ddf6f5;
  border-radius: 16px;
  font-weight: 950;
}

.search-results {
  display: grid;
  gap: 8px;
}

.search-results button {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 12px;
  color: var(--navy);
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.search-results button::after {
  content: none;
}

.search-results button:disabled::after {
  content: "";
  display: none;
}

.search-results button:disabled {
  color: var(--muted);
  background: #f8fbfb;
}

.search-results b {
  overflow: hidden;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results span {
  margin-top: 1px;
}

.search-results span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.action-dock {
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
  padding: 8px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(27,42,71,.08);
  border-radius: 22px;
  box-shadow: 0 20px 56px rgba(27,42,71,.18);
  backdrop-filter: blur(20px);
}

.action-dock.driver-actions {
  grid-template-columns: repeat(2, 1fr);
}

.action-dock.driver-actions.single-action {
  grid-template-columns: 1fr;
}

.offline-action {
  color: var(--navy);
  background: #f4f7f8;
}

.action-dock .black-button,
.action-dock .soft-button,
.action-dock .danger-button,
.primary-action {
  width: 100%;
  min-height: 58px;
  border-radius: 17px;
  font-size: 16px;
}

.hero-driver > .soft-button {
  margin-top: 10px;
}

.map-header {
  width: min(520px, calc(100% - 92px));
}

.recenter-map {
  left: 18px;
  right: auto;
  bottom: 16px;
}

.leaflet-control-zoom {
  margin: 0 14px 16px 0;
}

@media (min-width: 980px) {
  .app-shell {
    padding-top: 104px;
  }

  .app-top {
    left: 24px;
    right: auto;
    width: 300px;
  }

  .app-tabs {
    top: max(18px, env(safe-area-inset-top));
  }

  .role-screen .map-card,
  .rider-flow .map-card,
  .driver-grid .map-card,
  .admin-grid .map-card {
    top: 92px;
    height: min(52dvh, 590px);
    width: min(1280px, 100%);
  }

  .action-dock {
    width: min(520px, 100%);
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding-top: 130px;
  }

  .app-top {
    min-height: 54px;
  }

  .logo-block b {
    font-size: 16px;
  }

  .signal {
    padding: 7px 9px;
  }

  .role-screen,
  .rider-flow,
  .driver-grid,
  .admin-grid {
    padding-inline: 10px;
  }

  .role-screen .map-card,
  .rider-flow .map-card,
  .driver-grid .map-card,
  .admin-grid .map-card {
    top: calc(max(10px, env(safe-area-inset-top)) + 124px);
    height: clamp(330px, 47dvh, 430px);
    border-radius: 26px;
  }

  .map-header {
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px;
  }

  .map-header b {
    font-size: 13px;
  }

  .map-header span {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .recenter-map {
    left: 10px;
    right: auto;
    bottom: 10px;
    min-height: 40px;
    padding: 0 11px;
  }

  .admin-content {
    grid-template-columns: 1fr;
  }

  .booking,
  .surface {
    padding: 15px;
  }

  .booking h1 {
    font-size: 32px;
  }

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

  .pickup-row button {
    min-height: 44px;
  }
}

/* Keep map controls in opposite safe corners so they do not stack over markers. */
.map-card .recenter-map {
  left: 12px;
  right: auto;
  bottom: 12px;
}

.map-card .leaflet-control-zoom {
  margin: 0 12px 12px 0;
}

.map-card .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
}

/* Final phone-first rider polish */
.app-shell {
  background: linear-gradient(180deg, #edf6f6 0, #f6f8fa 46%, #fff 100%);
}

.app-top {
  min-height: 48px;
  padding: 6px 9px;
  border-radius: 18px;
}

.app-top .logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.app-top .logo-block {
  gap: 9px;
}

.app-top .logo-block b {
  font-size: 15px;
  line-height: 1.05;
}

.app-top .logo-block span {
  display: none;
}

.signal {
  padding: 7px 9px;
  font-size: 11px;
}

.app-tabs {
  top: calc(max(10px, env(safe-area-inset-top)) + 56px);
  width: min(350px, calc(100vw - 30px));
  padding: 5px;
  border-radius: 18px;
}

.app-tabs button {
  min-height: 38px;
  gap: 1px;
  border-radius: 14px;
  font-size: 11px;
}

.app-tabs svg {
  width: 16px;
  height: 16px;
}

.app-shell {
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 108px);
}

.role-screen,
.rider-flow,
.driver-grid,
.admin-grid {
  padding-inline: 10px;
}

.rider-flow .map-card {
  position: sticky;
  top: calc(max(10px, env(safe-area-inset-top)) + 108px);
  z-index: 20;
  height: clamp(250px, 34dvh, 360px);
  min-height: 0;
  margin-bottom: 10px;
  border-radius: 24px;
}

.rider-flow .map-header {
  left: 10px;
  top: 10px;
  width: auto;
  max-width: calc(100% - 86px);
  padding: 8px 10px;
  border-radius: 999px;
}

.rider-flow .map-header b {
  display: none;
}

.rider-flow .map-header span {
  margin: 0;
  max-width: 190px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rider-flow .map-header em {
  padding: 6px 8px;
  font-size: 10px;
}

.rider-panel {
  position: relative;
  top: auto;
  z-index: 30;
}

.rider-panel .booking {
  padding: 14px;
  border-radius: 24px;
  box-shadow: 0 14px 42px rgba(27,42,71,.12);
  backdrop-filter: none;
}

.sheet-handle {
  display: none;
}

.rider-steps {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.rider-steps span {
  min-height: 28px;
  font-size: 10px;
}

.booking-title-row h1 {
  font-size: 28px;
}

.rider-name-pill {
  width: 86px;
  min-height: 38px;
  font-size: 13px;
}

.uber-route-box {
  overflow: visible;
  background: white;
  border-radius: 20px;
}

.route-line {
  min-height: 64px;
  padding: 11px 12px;
  cursor: text;
}

.route-line.active {
  background: #f7fbfb;
}

.route-line input {
  width: 100%;
  min-height: 36px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  font-size: 17px;
  font-weight: 950;
}

.route-line input:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.inline-search-results {
  display: grid;
  gap: 0;
  padding: 2px 8px 10px 52px;
  background: #fff;
}

.inline-search-results button {
  width: 100%;
  min-height: 58px;
  color: var(--navy);
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(27,42,71,.08);
  border-radius: 0;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.inline-search-results button:last-child {
  border-bottom: 0;
}

.place-result-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
}

.place-result-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--navy);
  background: #f5f7fa;
  border-radius: 999px;
}

.place-result-icon .button-finish-flag {
  width: 34px;
  height: 34px;
  transform: scale(.82);
  transform-origin: center;
}

.place-result-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.place-result-copy b,
.inline-search-results button b {
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-result-copy small,
.inline-search-results button span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-result-empty {
  padding: 12px 4px;
  color: var(--muted) !important;
  font-weight: 900;
}

.inline-search-results button.choosing,
.search-results button.choosing,
.place-results button.choosing {
  color: var(--navy);
  background: linear-gradient(135deg, rgba(16,155,155,.18), rgba(255,191,0,.18));
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(16,155,155,.44), 0 14px 30px rgba(16,155,155,.16);
  transform: scale(.985);
}

.inline-search-results button.choosing .place-result-icon {
  color: white;
  background: var(--teal);
}

.inline-search-results button:disabled::after {
  content: "";
}

.inline-search-results b,
.inline-search-results span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-search-results b {
  font-size: 14px;
  font-weight: 950;
}

.inline-search-results span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.use-location-inline {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  color: var(--navy) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

.use-location-inline svg {
  display: block;
  width: 20px;
  height: 20px;
  padding: 7px;
  color: #fff;
  background: #111827;
  border-radius: 999px;
  box-sizing: content-box;
}

.use-location-inline span {
  display: grid;
  gap: 2px;
}

.use-location-inline b {
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
}

.use-location-inline small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.suggestion-panel .big-search {
  display: none;
}

.fare-preview {
  padding: 12px;
  border-radius: 18px;
}

.fare-preview strong {
  font-size: 24px;
}

.ride-option-card {
  grid-template-columns: 46px minmax(0, 1fr);
}

.ride-option-card > strong {
  display: none;
}

.taxi-glyph {
  width: 44px;
  height: 44px;
}

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

.confirm-strip div {
  min-height: 54px;
  padding: 9px;
}

.confirm-strip span {
  font-size: 15px;
}

.passenger-row {
  min-height: 52px;
}

.action-dock {
  bottom: calc(8px + env(safe-area-inset-bottom));
  margin-top: 10px;
  padding: 6px;
  border-radius: 18px;
}

.action-dock .black-button,
.action-dock .soft-button,
.action-dock .danger-button,
.primary-action {
  min-height: 54px;
  border-radius: 15px;
}

.search-backdrop {
  display: none;
}

.taxi-icon,
.taxi-icon.simple {
  width: 38px;
  height: 48px;
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,.86))
    drop-shadow(0 9px 11px rgba(27,42,71,.22));
}

.taxi-icon svg {
  width: 34px;
  height: 46px;
}

.taxi-icon .car-shadow {
  fill: rgba(27,42,71,.14);
}

.taxi-icon .car-base { fill: rgba(27,42,71,.32); }

.taxi-icon .car-body {
  fill: #f9fbf7;
  stroke: rgba(27,42,71,.42);
  stroke-width: 1.7;
}

.taxi-icon .car-hood,
.taxi-icon .car-roof {
  fill: #ffffff;
}

.taxi-icon .car-window,
.taxi-icon .car-glass,
.taxi-icon .car-windshield {
  fill: #182a48;
}

.taxi-icon .taxi-sign {
  fill: var(--gold);
  stroke: #13213a;
  stroke-width: 1.35;
}

.taxi-icon .front-plate,
.taxi-icon .rear-plate {
  fill: #178c4d;
  stroke: #ffffff;
  stroke-width: 1;
}

.taxi-icon .rust {
  fill: none;
  stroke: #b76632;
  stroke-width: 1.55;
  stroke-linecap: round;
  opacity: .76;
}

.taxi-icon .door-line {
  fill: none;
  stroke: rgba(27,42,71,.18);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.taxi-icon .headlight { fill: var(--gold); }
.taxi-icon .tail-light {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.3;
  stroke-linecap: round;
}

.taxi-with-rider .taxi-icon {
  filter:
    drop-shadow(0 0 12px rgba(255, 191, 0, 0.72))
    drop-shadow(0 10px 12px rgba(27,42,71,.18));
}

.taxi-with-rider .taxi-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid rgba(255, 191, 0, 0.76);
  border-radius: 999px;
  animation: taxiInRidePulse 1.8s ease-in-out infinite;
}

@keyframes taxiInRidePulse {
  0%, 100% { opacity: 0.25; transform: scale(0.94); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

.taxi-icon b {
  display: none;
}

.taxi-icon .taxi-stop-badge {
  display: grid;
  place-items: center;
  position: absolute;
  right: -8px;
  top: -6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--gold);
  border: 2px solid white;
  color: var(--navy);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 14px rgba(27,42,71,.18);
}

.flag-glyph b {
  background:
    linear-gradient(45deg, #000 25%, transparent 25% 50%, #000 50% 75%, transparent 75%),
    #fff;
  background-size: 8px 8px;
  border-color: white;
}

@media (min-width: 760px) {
  .rider-flow .map-card {
    height: clamp(300px, 38dvh, 460px);
  }

  .rider-panel .booking {
    width: min(720px, 100%);
    margin-inline: auto;
  }
}

/* Pon Di Way brand + route logic upgrade */
.logo img,
.brand-mark img,
.home-brand-row img,
.lock-card .logo.big img {
  display: block;
  object-fit: contain;
}

.lock-card .logo.big {
  background: transparent;
  box-shadow: none;
}

.lock-card .logo.big img {
  width: 110px;
  height: 110px;
}

.home-brand-row .logo {
  overflow: visible;
}

.home-brand-row .logo img,
.app-top .logo img,
.driver-empty img {
  object-fit: contain;
}

.rider-home-card {
  min-height: min(100dvh, 820px);
  padding: clamp(28px, 7dvh, 72px) clamp(22px, 7vw, 64px) 112px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 191, 0, .18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(16, 155, 155, .16), transparent 32%),
    linear-gradient(155deg, #fffaf0 0%, #ffffff 45%, #eefbfb 100%);
}

.home-brand-row {
  margin-bottom: clamp(52px, 12dvh, 130px);
}

.home-intent span {
  color: var(--teal);
  letter-spacing: .03em;
}

.where-to-button {
  min-height: 94px;
  border: 0;
  background: #172946;
  color: #fff;
  box-shadow: 0 22px 54px rgba(27, 42, 71, .18);
}

.where-to-button > span {
  background: linear-gradient(145deg, #109b9b, #1b2a47);
}

.where-to-button b {
  color: #fff;
}

.where-to-button small {
  color: rgba(255, 255, 255, .7);
}

.home-pickup-note {
  margin-top: 18px;
  color: rgba(27, 42, 71, .58);
  font-size: 15px;
  font-weight: 900;
}

.home-suggestions {
  display: none !important;
}

.brand-pin-mini {
  position: relative;
  display: inline-grid;
  width: 30px;
  height: 36px;
  place-items: center;
  background: linear-gradient(145deg, #109b9b 0%, #1b2a47 82%);
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 50% 50% 50% 14%;
  transform: rotate(-45deg);
  box-shadow: 0 10px 22px rgba(16, 155, 155, .28);
}

.brand-pin-mini i {
  width: 10px;
  height: 10px;
  background: #ffbf00;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  transform: rotate(45deg);
}

.pin-glyph {
  width: 36px;
  height: 42px;
  background: linear-gradient(145deg, #109b9b 0%, #1b2a47 84%);
  border: 3px solid white;
  border-radius: 50% 50% 50% 15%;
  box-shadow: 0 12px 26px rgba(16, 155, 155, .26);
  transform: rotate(-45deg);
}

.pin-glyph i {
  width: 11px;
  height: 11px;
  background: #ffbf00;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  transform: rotate(45deg);
}

.pickup-line .route-dot.pickup-dot {
  background: linear-gradient(145deg, #109b9b, #1b2a47);
  box-shadow: inset 0 0 0 6px #ffbf00, 0 8px 18px rgba(16, 155, 155, .22);
}

.flag-glyph b {
  background:
    linear-gradient(45deg, #111827 25%, transparent 25% 50%, #111827 50% 75%, transparent 75%),
    #fff;
  background-size: 10px 10px;
  border: 2px solid #fff;
  border-left: 0;
}

.button-finish-flag {
  position: relative;
}

.flag-glyph::after,
.button-finish-flag::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  background: #109b9b;
  clip-path: polygon(0 34%, 64% 34%, 64% 0, 100% 50%, 64% 100%, 64% 66%, 0 66%);
  transform: rotate(8deg);
}

.flag-glyph::after {
  left: 18px;
  top: 23px;
}

.button-finish-flag::after {
  right: -7px;
  bottom: 1px;
}

.route-flag-dot {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
}

.route-flag-dot .flag-glyph,
.route-flag-dot .button-finish-flag {
  transform: scale(.78);
  transform-origin: center;
}

.route-stop-marker {
  position: relative;
  display: grid;
  width: 34px;
  height: 42px;
  place-items: center;
  filter: drop-shadow(0 10px 16px rgba(27, 42, 71, .2));
}

.route-stop-marker b {
  position: relative;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  background: #1f6fe5;
  border: 2px solid #fff;
  border-radius: 999px;
}

.mini-stop-pin {
  position: absolute;
  inset: 4px 4px 2px;
  background: linear-gradient(145deg, #109b9b, #1b2a47);
  border: 2px solid white;
  border-radius: 50% 50% 50% 14%;
  transform: rotate(-45deg);
}

.route-stop-marker.dropoff .mini-stop-flag {
  position: absolute;
  top: 0;
  left: -2px;
  transform: scale(.58);
  transform-origin: top left;
}

.taxi-with-rider .taxi-icon {
  filter: drop-shadow(0 0 0 rgba(255, 191, 0, .7)) drop-shadow(0 0 18px rgba(16, 155, 155, .58));
}

.taxi-with-rider .taxi-icon::after {
  border-color: rgba(255, 191, 0, .42);
}

.taxi-icon .taxi-stop-badge {
  right: -5px;
  top: -5px;
  width: 18px;
  height: 18px;
  font-size: 10px;
  background: #1f6fe5;
  border: 2px solid white;
  box-shadow: 0 8px 16px rgba(31, 111, 229, .24);
}

.rider-icon b,
.rider-icon strong,
.rider-icon .label,
.taxi-with-rider .taxi-rider-label {
  display: none !important;
}

.rider-search-screen .place-result-row {
  cursor: pointer;
}

.rider-search-screen .place-result-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #172946;
  background: rgba(16, 155, 155, .08);
  border-radius: 999px;
}

.rider-search-screen .place-result-icon .button-finish-flag {
  transform: scale(.58);
}

.rider-search-screen .inline-search-results button.place-result-row.choosing {
  transform: translateX(3px);
}

.rider-search-screen .inline-search-results button.place-result-row.choosing .place-result-icon {
  background: #109b9b;
  color: #fff;
}

.rider-search-screen .search-suggestions {
  display: none !important;
}

@media (min-width: 760px) {
  .rider-home-card {
    min-height: 760px;
    border-radius: 34px;
  }

  .app-shell:not(.rider-search-shell) .app-top {
    left: 50% !important;
    right: auto !important;
    width: min(520px, calc(100vw - 32px)) !important;
    transform: translateX(-50%) !important;
  }
}

/* Uber-inspired rider flow: search first, map second, confirm with fare. */
.app-top {
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 22px;
}

.logo-block {
  min-width: 0;
}

.logo-block .logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.logo-block b {
  font-size: 16px;
}

.logo-block span {
  font-size: 12px;
}

.signal {
  min-width: auto;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffe27a, var(--gold));
  box-shadow: 0 10px 20px rgba(255,191,0,.24);
}

.app-tabs {
  max-width: 360px;
  min-height: 48px;
}

.app-tabs button {
  min-height: 38px;
}

.app-shell {
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 104px);
}

.role-screen.rider-flow {
  display: grid;
  gap: 10px;
  padding: 0 10px calc(86px + env(safe-area-inset-bottom));
}

.rider-flow .map-card {
  position: sticky;
  top: calc(max(10px, env(safe-area-inset-top)) + 104px);
  z-index: 18;
  margin: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 18px 48px rgba(27,42,71,.16);
}

.rider-flow.home-mode .map-card {
  height: clamp(168px, 23dvh, 250px);
}

.rider-flow.confirm-mode .map-card {
  height: clamp(238px, 34dvh, 390px);
}

.rider-flow .map-header {
  left: 10px;
  top: 10px;
  max-width: calc(100% - 118px);
  padding: 8px 11px;
  background: rgba(255,255,255,.94);
}

.rider-flow.home-mode .map-header span {
  font-size: 10px;
}

.rider-panel {
  z-index: 30;
}

.rider-panel .booking {
  box-shadow: 0 18px 54px rgba(27,42,71,.11);
}

.rider-home-card {
  display: grid;
  gap: 14px;
}

.rider-home-card .booking-title-row {
  align-items: end;
  gap: 12px;
}

.rider-home-card .booking-title-row span,
.rider-confirm-card .booking-title-row span {
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0;
}

.rider-home-card h1,
.rider-confirm-card h1 {
  color: var(--navy);
  letter-spacing: 0;
}

.where-to-button {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 13px 16px;
  color: var(--navy);
  text-align: left;
  background: #f0f4f7;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.where-to-button span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--navy);
  border-radius: 16px;
}

.where-to-button b {
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 950;
  line-height: 1;
}

.home-pickup-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
}

.home-pickup-row small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
}

.home-pickup-row b {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
}

.home-pickup-row em {
  padding: 8px 11px;
  color: var(--teal-deep);
  background: #ddf6f5;
  border-radius: 999px;
  font-style: normal;
  font-weight: 950;
}

.home-suggestions,
.search-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.home-suggestions::-webkit-scrollbar,
.search-suggestions::-webkit-scrollbar {
  display: none;
}

.home-suggestions button,
.search-suggestions button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.rider-search-screen {
  display: block;
  padding: 0 10px calc(92px + env(safe-area-inset-bottom));
}

.rider-search-card {
  display: grid;
  gap: 14px;
  min-height: calc(100dvh - max(10px, env(safe-area-inset-top)) - 126px);
  padding: 18px;
  border-radius: 28px;
}

.search-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.search-title-copy {
  min-width: 0;
}

.search-title-row h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1;
}

.search-title-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.search-back {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--navy);
  background: #f0f4f7;
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 950;
}

.search-profile-chip {
  min-width: 74px;
  min-height: 44px;
  padding-inline: 14px;
  justify-self: end;
  background: #fff;
}

.search-route-box {
  align-self: start;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(27,42,71,.08);
}

.search-route-box .route-line {
  min-height: 72px;
  padding: 13px 14px;
}

.search-route-box .route-line input {
  font-size: 19px;
}

.inline-search-results {
  padding: 0 10px 12px 48px;
}

.inline-search-results button {
  min-height: 62px;
  padding: 12px;
  background: white;
  border-radius: 17px;
}

.inline-search-results b {
  font-size: 16px;
}

.inline-search-results span {
  font-size: 13px;
}

.rider-confirm-card {
  display: grid;
  gap: 12px;
}

.rider-confirm-card .uber-route-box {
  border: 1px solid var(--line);
}

.rider-confirm-card .ride-option-card {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.rider-confirm-card .ride-option-card > strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.rider-confirm-card .fare-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 12px;
  color: var(--navy);
  background: linear-gradient(135deg, #e5f9f8, #fff7d6);
  border: 1px solid rgba(16,155,155,.18);
}

.rider-confirm-card .fare-preview span,
.rider-confirm-card .fare-preview small {
  color: var(--muted);
  font-weight: 850;
}

.rider-confirm-card .fare-preview strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--navy);
}

.rider-confirm-card .action-dock {
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 80;
}

.active-ride h1 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: clamp(34px, 8vw, 54px);
  line-height: .98;
  letter-spacing: 0;
}

.eta-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 14px;
  margin: 8px 0 12px;
  padding: 14px 16px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(16,155,155,.13), rgba(255,191,0,.16)),
    #fff;
  border: 1px solid rgba(16,155,155,.2);
  border-radius: 22px;
}

.eta-status-card span {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.eta-status-card strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: clamp(26px, 8vw, 42px);
  line-height: .95;
  white-space: nowrap;
}

.eta-status-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.switch-driver-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 14px;
  background: #fff8df;
  border: 1px solid rgba(255,191,0,.36);
  border-radius: 20px;
}

.switch-driver-card span {
  display: block;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.switch-driver-card b {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.1;
}

.switch-driver-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.driver-pass {
  grid-template-columns: 54px 52px minmax(0, 1fr) auto;
}

.driver-pass strong {
  color: var(--navy);
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1;
}

.driver-pass span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.driver-link {
  margin: 2px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  font-weight: 850;
}

@media (max-width: 520px) {
  .app-top {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .role-screen.rider-flow,
  .rider-search-screen {
    padding-inline: 8px;
  }

  .rider-panel .booking,
  .rider-search-card {
    padding: 14px;
    border-radius: 25px;
  }

  .booking-title-row {
    grid-template-columns: 1fr auto;
  }

  .where-to-button {
    min-height: 64px;
  }

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

/* True rider starting point: no dashboard, no map, just "Where to?" */
.rider-home-shell {
  min-height: 100dvh;
  padding-top: max(12px, env(safe-area-inset-top));
  background:
    radial-gradient(circle at 15% 10%, rgba(255,191,0,.22), transparent 34%),
    radial-gradient(circle at 85% 28%, rgba(16,155,155,.18), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fa 100%);
}

.rider-home-shell .app-top {
  display: none;
}

.rider-home-shell .app-tabs {
  position: fixed;
  top: auto;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 120;
  width: min(320px, calc(100vw - 28px));
  transform: translateX(-50%);
  box-shadow: 0 18px 46px rgba(27,42,71,.18);
}

.rider-home-shell .app-tabs button {
  min-height: 40px;
}

.rider-home-shell .app-main {
  min-height: calc(100dvh - 78px);
}

.rider-home-shell .rider-flow {
  min-height: calc(100dvh - 78px);
  align-content: center;
  padding: 12px 16px calc(82px + env(safe-area-inset-bottom));
}

.rider-home-shell .rider-panel {
  width: min(560px, 100%);
  margin: 0 auto;
}

.rider-home-shell .rider-panel .booking {
  padding: clamp(20px, 6vw, 30px);
  border-radius: 32px;
  box-shadow: 0 26px 80px rgba(27,42,71,.13);
}

.home-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-brand-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-brand-row .logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.home-brand-row span {
  color: var(--navy);
  font-family: Outfit, Inter, sans-serif;
  font-size: 20px;
  font-weight: 950;
}

.home-brand-row b {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffe585, var(--gold));
  border-radius: 999px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(255,191,0,.22);
}

.rider-home-shell .rider-home-card {
  gap: 18px;
}

.rider-home-shell .booking-title-row {
  display: block;
}

.rider-home-shell .booking-title-row span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.rider-home-shell .booking-title-row h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(48px, 16vw, 82px);
  line-height: .9;
  letter-spacing: 0;
}

.rider-home-shell .rider-name-pill {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  text-align: left;
  border-radius: 16px;
}

.rider-home-shell .where-to-button {
  grid-template-columns: 50px 1fr;
  min-height: 76px;
  padding: 14px 16px;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 18px 42px rgba(27,42,71,.2);
}

.rider-home-shell .where-to-button span {
  color: var(--navy);
  background: var(--gold);
}

.rider-home-shell .where-to-button b {
  color: white;
  font-size: clamp(27px, 8vw, 42px);
}

.rider-home-shell .home-pickup-row {
  min-height: 64px;
  background: #f7fafb;
}

.rider-home-shell .home-suggestions {
  margin-inline: -2px;
}

.rider-home-shell .home-suggestions button {
  background: #fff;
}

/* Pon Di Way v2 mobile product system */
html,
body,
#app {
  min-height: 100%;
}

body {
  background: #f4f8fa;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.app-top {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 90;
  width: min(480px, calc(100vw - 20px));
  min-height: 54px;
  margin: 0 auto 8px;
  padding: 8px 9px;
  color: var(--navy);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(27,42,71,.08);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(27,42,71,.1);
  backdrop-filter: blur(22px);
}

.app-top .logo-block span {
  color: var(--muted);
}

.app-tabs {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 120;
  width: min(330px, calc(100vw - 24px));
  min-height: 54px;
  padding: 5px;
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(27,42,71,.17);
}

.app-tabs button {
  min-height: 42px;
  border-radius: 15px;
  font-size: 11px;
}

.app-tabs button.active {
  background: linear-gradient(135deg, var(--navy), var(--teal));
}

.app-main {
  min-height: auto;
}

.rider-home-shell {
  padding: max(12px, env(safe-area-inset-top)) 0 0;
  background:
    radial-gradient(circle at 8% 6%, rgba(255,191,0,.22), transparent 28%),
    radial-gradient(circle at 94% 18%, rgba(16,155,155,.17), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f4f8fa 72%, #edf5f5 100%);
}

.rider-home-shell .app-top {
  display: none;
}

.rider-home-shell .rider-flow {
  display: block;
  min-height: calc(100dvh - 88px);
  padding: 18px 18px calc(92px + env(safe-area-inset-bottom));
}

.rider-home-shell .rider-panel {
  position: static;
  width: min(520px, 100%);
  margin: 0 auto;
}

.rider-home-card {
  display: grid;
  gap: 18px;
  min-height: calc(100dvh - 128px);
  align-content: center;
}

.home-brand-row {
  margin-bottom: clamp(18px, 8dvh, 72px);
}

.home-brand-row .logo {
  width: 46px;
  height: 46px;
}

.home-brand-row span {
  font-size: 19px;
}

.home-brand-row b {
  padding: 9px 12px;
  font-size: 12px;
}

.home-intent span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-intent h1 {
  margin: 0;
  color: var(--navy);
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(56px, 17vw, 92px);
  font-weight: 950;
  line-height: .88;
  letter-spacing: 0;
}

.rider-home-shell .where-to-button {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(27,42,71,.22);
}

.rider-home-shell .where-to-button span {
  width: 52px;
  height: 52px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 18px;
}

.rider-home-shell .where-to-button b,
.where-to-button b {
  display: block;
  color: inherit;
  font-size: clamp(26px, 7vw, 38px);
  line-height: .95;
}

.where-to-button small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 750;
}

.button-finish-flag {
  position: relative;
  display: block;
  width: 30px;
  height: 36px;
}

.button-finish-flag i {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 4px;
  height: 30px;
  background: var(--navy);
  border-radius: 999px;
}

.button-finish-flag b {
  position: absolute;
  left: 10px;
  top: 3px;
  width: 23px;
  height: 17px;
  background:
    linear-gradient(45deg, #111 25%, transparent 25% 50%, #111 50% 75%, transparent 75%),
    #fff;
  background-size: 8px 8px;
  border: 2px solid white;
  border-left: 0;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 8px 12px rgba(27,42,71,.14);
}

.home-pickup-row,
.home-name-row {
  min-height: 62px;
  padding: 12px 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(27,42,71,.08);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(27,42,71,.06);
}

.home-name-row {
  display: grid;
  gap: 4px;
}

.home-name-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-name-row input {
  width: 100%;
  min-height: 30px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 17px;
  font-weight: 900;
  box-shadow: none;
}

.home-name-row input:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-suggestions {
  margin-top: 0;
}

.home-suggestions button,
.search-suggestions button {
  min-height: 40px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(27,42,71,.05);
}

.rider-search-screen {
  min-height: calc(100dvh - 76px);
  padding: 10px 14px calc(86px + env(safe-area-inset-bottom));
}

.rider-search-card {
  min-height: calc(100dvh - 110px);
  padding: 18px;
  background: rgba(255,255,255,.96);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(27,42,71,.1);
}

.search-title-row h1 {
  font-size: clamp(34px, 10vw, 52px);
}

.search-route-box {
  overflow: hidden;
  background: #fff;
}

.search-route-box .route-line {
  min-height: 76px;
  background: #fff;
}

.search-route-box .route-line.active {
  background: #f3fbfb;
}

.inline-search-results {
  gap: 8px;
  max-height: min(48dvh, 390px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.inline-search-results button {
  border-color: rgba(27,42,71,.09);
  box-shadow: 0 7px 18px rgba(27,42,71,.05);
}

.role-screen.rider-flow.confirm-mode {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 0 10px calc(86px + env(safe-area-inset-bottom));
}

.rider-flow.confirm-mode .map-card {
  position: sticky;
  top: calc(max(8px, env(safe-area-inset-top)) + 70px);
  height: clamp(230px, 35dvh, 390px);
  border-radius: 26px;
}

.rider-flow.confirm-mode .map-header {
  display: none;
}

.rider-flow.confirm-mode .recenter-map {
  left: 12px;
  bottom: 12px;
}

.rider-confirm-card,
.active-ride {
  border-radius: 28px;
}

.rider-confirm-card .rider-steps,
.active-ride .rider-steps {
  display: none;
}

.rider-confirm-card .booking-title-row h1,
.active-ride h1 {
  font-size: clamp(36px, 10vw, 58px);
}

.rider-confirm-card .fare-preview {
  order: -1;
  min-height: 88px;
  padding: 16px;
  border-radius: 24px;
}

.rider-confirm-card .fare-preview strong {
  font-size: clamp(30px, 9vw, 46px);
}

.rider-confirm-card .ride-option-card {
  grid-template-columns: 50px minmax(0, 1fr);
}

.rider-confirm-card .action-dock,
.active-ride .action-dock,
.driver-actions.action-dock {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 100;
  padding: 6px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(27,42,71,.08);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(27,42,71,.13);
  backdrop-filter: blur(18px);
}

.primary-action,
.action-dock .black-button,
.action-dock .soft-button,
.action-dock .danger-button {
  min-height: 58px;
  border-radius: 17px;
  font-size: 17px;
}

.driver-grid,
.admin-grid {
  display: grid;
  gap: 12px;
  padding: 0 10px calc(88px + env(safe-area-inset-bottom));
}

.driver-grid .map-card,
.admin-grid .map-card {
  min-height: 240px;
  height: clamp(240px, 34dvh, 390px);
  border-radius: 26px;
}

.driver-content,
.admin-content {
  display: grid;
  gap: 12px;
}

.surface {
  border-radius: 26px;
}

.hero-driver h1,
.admin-hero h1 {
  font-size: clamp(38px, 11vw, 64px);
  line-height: .92;
}

.request h1 {
  font-size: clamp(50px, 15vw, 78px);
  line-height: .86;
}

.driver-value-card,
.admin-stats div,
.quick-row div {
  background: #f8fbfb;
  border: 1px solid rgba(27,42,71,.08);
}

@media (min-width: 760px) {
  .rider-home-shell .rider-flow {
    align-content: center;
  }

  .role-screen.rider-flow.confirm-mode,
  .driver-grid,
  .admin-grid {
    width: min(980px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 390px) {
  .rider-home-shell .rider-flow {
    padding-inline: 12px;
  }

  .home-intent h1 {
    font-size: 52px;
  }

.rider-home-shell .where-to-button {
    min-height: 72px;
  }
}

/* Hard reset rider home: make the first impression unmistakably non-dashboard. */
.rider-home-shell .home-mode-tabs {
  width: auto;
  min-height: 0;
  padding: 0;
  gap: 8px;
  grid-template-columns: repeat(2, auto);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.rider-home-shell .home-mode-tabs button {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  color: rgba(27,42,71,.58);
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(27,42,71,.08);
  border-radius: 999px;
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(27,42,71,.06);
}

.rider-home-shell .home-mode-tabs button svg {
  width: 14px;
  height: 14px;
}

.rider-home-shell .home-mode-tabs button.active {
  color: rgba(27,42,71,.58);
  background: rgba(255,255,255,.62);
}

.rider-home-shell .rider-home-card {
  min-height: calc(100dvh - 118px);
  padding-top: 4px;
}

.rider-home-shell .home-brand-row {
  align-self: start;
  margin-bottom: clamp(34px, 11dvh, 96px);
}

.rider-home-shell .home-intent h1 {
  max-width: 7ch;
}

.rider-home-shell .home-pickup-row,
.rider-home-shell .home-name-row {
  box-shadow: none;
}

.rider-home-shell .home-name-row {
  display: none;
}

.rider-search-shell .app-top {
  display: none;
}

.rider-search-shell {
  padding-top: max(10px, env(safe-area-inset-top));
}

.rider-search-shell .app-tabs {
  display: none;
}

.rider-search-shell .rider-search-screen {
  padding-top: 0;
}

.rider-confirm-card .action-dock,
.active-ride .action-dock {
  bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  z-index: 120;
}

.rider-confirm-card {
  padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
}

/* Safety: fare belongs only in the estimated fare panel. */
.rider-confirm-card .ride-option-card > strong {
  display: none !important;
}

/* Desktop rescue: keep the phone-first shell from stretching controls into slabs. */
.app-tabs {
  top: auto !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  right: auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(330px, calc(100vw - 24px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transform: translateX(-50%) !important;
}

.app-tabs button {
  width: auto !important;
  height: auto !important;
  min-height: 42px !important;
  padding: 7px 8px !important;
}

.rider-home-shell .home-mode-tabs {
  grid-template-columns: repeat(2, auto) !important;
  width: auto !important;
}

.rider-search-shell .app-tabs {
  display: none !important;
}

@media (min-width: 760px) {
  .app-shell {
    padding-top: 88px;
  }

  .app-top {
    top: 18px;
    left: 50%;
    right: auto;
    width: min(430px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .role-screen.rider-flow.confirm-mode,
  .driver-grid {
    width: min(520px, calc(100vw - 32px));
    margin-inline: auto;
  }

  .admin-grid {
    width: min(860px, calc(100vw - 32px));
    margin-inline: auto;
  }

  .rider-flow.confirm-mode .map-card,
  .driver-grid .map-card,
  .admin-grid .map-card {
    top: 88px;
    width: 100%;
    height: 300px;
    min-height: 0;
  }

  .rider-search-screen {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 20px;
  }

  .rider-search-card {
    width: min(520px, 100%);
    min-height: min(760px, calc(100dvh - 40px));
    margin: 0 auto;
  }

  .rider-home-shell .rider-flow {
    width: min(520px, calc(100vw - 32px));
    margin-inline: auto;
  }
}

@media (max-width: 759px) {
  .rider-contact-card,
  .driver-contact-card {
    grid-template-columns: 1fr;
  }

  .rider-search-shell {
    height: 100dvh;
    overflow: hidden;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .rider-search-shell .app-main {
    height: 100%;
    overflow: hidden;
  }

  .rider-search-shell .rider-search-screen {
    display: flex;
    height: 100%;
    min-height: 0;
    padding: 10px 14px max(12px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .rider-search-shell .rider-search-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
  }

  .rider-search-shell .search-title-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-self: start;
    margin-bottom: 10px;
  }

  .rider-search-shell .search-title-row h1 {
    font-size: clamp(36px, 13vw, 58px);
    line-height: .92;
  }

  .rider-search-shell .search-profile-chip {
    min-width: 72px;
    min-height: 44px;
    padding-inline: 12px;
  }

  .rider-search-shell .search-route-box {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-self: stretch;
    min-height: 0;
    overflow: hidden;
  }

  .rider-search-shell .search-route-box .dropoff-line {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .rider-search-shell .inline-search-results {
    min-height: 0;
    max-height: none;
    padding-bottom: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .rider-search-shell .inline-search-results:empty {
    display: none;
  }
}

/* Rider destination search: Uber-style tap-anywhere rows, no separate Set control. */
.rider-search-screen .inline-search-results {
  display: grid;
  gap: 0;
  min-height: 0;
  max-height: min(48dvh, 390px);
  padding: 2px 8px 12px 52px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
}

.rider-search-screen .inline-search-results button.place-result-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 4px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(27,42,71,.08);
  border-radius: 0;
  box-shadow: none;
}

.rider-search-screen .inline-search-results button.place-result-row:last-child {
  border-bottom: 0;
}

.rider-search-screen .inline-search-results button.place-result-row::after {
  content: none;
}

.rider-search-screen .inline-search-results button.place-result-row.choosing {
  background: linear-gradient(135deg, rgba(16,155,155,.14), rgba(255,191,0,.14));
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(16,155,155,.38), 0 14px 30px rgba(16,155,155,.12);
}

.rider-search-screen .place-result-copy b {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-search-screen .place-result-copy small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-search-screen .place-result-empty {
  display: block;
  min-height: 54px;
  padding: 14px 4px;
  color: var(--muted);
  background: #fff;
  border: 0;
  box-shadow: none;
  font-weight: 900;
}

/* Desktop must behave like a polished phone preview, not a stretched web dashboard. */
@media (min-width: 760px) {
  .role-screen.rider-flow.confirm-mode {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    width: min(520px, calc(100vw - 32px)) !important;
    margin: 0 auto !important;
    padding-inline: 0 !important;
  }

  .rider-flow.confirm-mode .map-card {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
  }

  .rider-flow.confirm-mode .rider-panel {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
  }

  .rider-flow.confirm-mode .rider-panel .booking,
  .rider-flow.confirm-mode .active-ride,
  .rider-flow.confirm-mode .rider-confirm-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .rider-flow.confirm-mode .active-ride h1,
  .rider-flow.confirm-mode .rider-confirm-card h1 {
    font-size: clamp(38px, 7vw, 56px) !important;
    line-height: .96 !important;
  }

  .rider-flow.confirm-mode .eta-status-card {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .rider-flow.confirm-mode .driver-pass {
    grid-template-columns: 46px 48px minmax(0, 1fr) auto !important;
  }

  .rider-flow.confirm-mode .action-dock {
    width: 100% !important;
  }
}

/* Desktop is only a testing viewport for a phone-first taxi app. Keep every role as a centered phone preview. */
@media (min-width: 760px) {
  .app-shell:not(.rider-search-shell) {
    position: relative !important;
    width: min(520px, calc(100vw - 32px)) !important;
    margin: 0 auto !important;
    padding-top: 88px !important;
  }

  .app-shell:not(.rider-search-shell) .app-top {
    position: absolute !important;
    top: 18px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .app-shell:not(.rider-search-shell) .app-main {
    width: 100% !important;
    min-height: auto !important;
  }

  .app-shell:not(.rider-search-shell) .role-screen,
  .app-shell:not(.rider-search-shell) .rider-flow,
  .app-shell:not(.rider-search-shell) .driver-grid,
  .app-shell:not(.rider-search-shell) .admin-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 0 96px !important;
  }

  .app-shell:not(.rider-search-shell) .map-card,
  .app-shell:not(.rider-search-shell) .driver-grid .map-card,
  .app-shell:not(.rider-search-shell) .admin-grid .map-card {
    position: relative !important;
    top: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
  }

  .app-shell:not(.rider-search-shell) .role-content,
  .app-shell:not(.rider-search-shell) .rider-panel,
  .app-shell:not(.rider-search-shell) .driver-content,
  .app-shell:not(.rider-search-shell) .admin-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 94px !important;
  }

  .app-shell:not(.rider-search-shell) .surface,
  .app-shell:not(.rider-search-shell) .booking {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  .app-shell:not(.rider-search-shell) .active-ride h1,
  .app-shell:not(.rider-search-shell) .hero-driver h1,
  .app-shell:not(.rider-search-shell) .request h1,
  .app-shell:not(.rider-search-shell) .admin-hero h1 {
    font-size: clamp(38px, 7vw, 56px) !important;
    line-height: .96 !important;
  }

  .app-shell:not(.rider-search-shell) .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Launch-grade stabilization: hide old shortcut clutter and keep search keyboard-safe. */
.home-suggestions,
.search-suggestions,
.rider-home-card > .place-suggestions {
  display: none !important;
}

.rider-icon b,
.rider-icon small {
  display: none !important;
}

.rider-search-shell {
  min-height: 100dvh !important;
  overflow: hidden !important;
}

.rider-search-shell .app-main {
  height: 100dvh !important;
  overflow: hidden !important;
}

.rider-search-shell .rider-search-screen {
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
}

.rider-search-shell .rider-search-card {
  width: min(100%, 500px) !important;
  height: min(760px, calc(100dvh - 24px)) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

.rider-search-shell .search-route-box {
  min-height: 0 !important;
  overflow: hidden !important;
}

.rider-search-shell .inline-search-results {
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 8px 12px 52px !important;
}

.rider-search-screen .inline-search-results button.place-result-row {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  border-bottom: 1px solid rgba(27, 42, 71, .1) !important;
  box-shadow: none !important;
}

.rider-search-screen .place-result-copy b,
.rider-search-screen .place-result-copy small {
  white-space: normal !important;
}

.rider-confirm-card,
.active-ride {
  padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
}

.action-dock {
  z-index: 940 !important;
}

.app-tabs {
  z-index: 970 !important;
  pointer-events: auto;
}

.taxi-with-rider .taxi-icon,
.taxi-icon.arrived-pulse {
  filter: drop-shadow(0 0 12px rgba(16, 155, 155, .55));
}

/* Ops is a real desktop command center. Rider and Driver stay phone-first. */
@media (min-width: 980px) {
  .app-shell.admin:not(.rider-search-shell) {
    width: min(1360px, calc(100vw - 56px)) !important;
    padding-top: 96px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .app-top {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(760px, calc(100vw - 56px)) !important;
  }

  .app-shell.admin:not(.rider-search-shell) .app-main {
    width: 100% !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-grid {
    grid-template-columns: minmax(620px, 1.25fr) minmax(420px, .75fr) !important;
    gap: 20px !important;
    width: 100% !important;
    padding-bottom: 104px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-grid .map-card {
    position: sticky !important;
    top: 96px !important;
    height: calc(100vh - 138px) !important;
    min-height: 640px !important;
    margin: 0 !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-content {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    max-height: calc(100vh - 138px);
    overflow: auto;
    padding-bottom: 128px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-hero,
  .app-shell.admin:not(.rider-search-shell) .value-list {
    grid-column: 1 / -1;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-hero,
  .app-shell.admin:not(.rider-search-shell) .ops-panel,
  .app-shell.admin:not(.rider-search-shell) .ops-danger-zone {
    border-radius: 14px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-rides-panel,
  .app-shell.admin:not(.rider-search-shell) .ops-danger-zone {
    grid-column: 1 / -1;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-command-header {
    grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
    align-items: center;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-stats {
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-shell.admin:not(.rider-search-shell) .admin-stats div {
    border-radius: 10px;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-group {
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(150px, .5fr) minmax(150px, auto);
  }

  .app-shell.admin:not(.rider-search-shell) .app-tabs {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(420px, calc(100vw - 48px)) !important;
  }
}

@media (min-width: 980px) and (max-width: 1180px) {
  .app-shell.admin:not(.rider-search-shell) .admin-grid {
    grid-template-columns: 1fr !important;
    width: min(900px, 100%) !important;
    margin-inline: auto !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-grid .map-card {
    position: relative !important;
    top: auto !important;
    height: 520px !important;
    min-height: 0 !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-content {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .ops-ride-row,
  .ops-driver-row,
  .ops-danger-zone {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ops-driver-row,
  .ops-danger-zone {
    align-items: stretch;
  }

  .ops-ride-actions {
    justify-content: flex-start;
  }

  .ops-ride-detail {
    justify-items: start;
  }
}

/* Launch-grade final pass: clear flow, stable keyboard search, centered phone previews. */
.rider-confirm-card .rider-steps {
  display: none !important;
}

.rider-confirm-card .booking-title-row,
.rider-confirm-card > .booking-title-row {
  display: none !important;
}

.rider-confirm-card .ride-option-card {
  align-items: center !important;
}

.rider-confirm-card .ride-option-card b {
  font-size: 20px !important;
}

.rider-confirm-card .ride-option-card span {
  display: block !important;
  margin-top: 4px !important;
  color: var(--muted) !important;
  line-height: 1.25 !important;
}

.rider-confirm-card .fare-preview {
  order: -1 !important;
  margin-top: 0 !important;
}

.rider-confirm-card .fare-preview strong {
  font-size: clamp(34px, 8vw, 64px) !important;
}

.ride-mode-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.ride-mode-option {
  text-align: left !important;
  min-height: 76px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

.ride-mode-option b {
  font-size: 16px !important;
}

.ride-mode-option span {
  font-size: 12px !important;
}

.rider-search-shell {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 191, 0, .16), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(16, 155, 155, .16), transparent 26%),
    var(--page) !important;
}

.rider-search-shell .app-top,
.rider-search-shell .app-tabs {
  display: none !important;
}

.rider-search-shell .app-main {
  display: grid !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
}

.rider-search-shell .rider-search-screen {
  width: min(100%, 520px) !important;
  min-height: 0 !important;
  height: min(780px, calc(100dvh - 20px)) !important;
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.rider-search-shell .rider-search-card {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 18px !important;
  padding: clamp(18px, 4vw, 28px) !important;
  overflow: hidden !important;
  border-radius: 28px !important;
}

.rider-search-shell .search-title-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
}

.rider-search-shell .search-title-row h1 {
  font-size: clamp(40px, 10vw, 58px) !important;
  line-height: .95 !important;
  margin: 0 !important;
}

.rider-search-shell .search-title-row p {
  margin-top: 4px !important;
  font-size: 14px !important;
  color: var(--muted) !important;
}

.rider-search-shell .search-route-box {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.rider-search-shell .route-line.pickup-line,
.rider-search-shell .route-line.dropoff-line {
  min-height: 92px !important;
  background: rgba(16, 155, 155, .06) !important;
}

.rider-search-shell .route-line input {
  width: 100% !important;
  color: var(--ink) !important;
}

.rider-search-shell .inline-search-results {
  display: block !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding: 6px 0 12px 58px !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

.rider-search-screen .inline-search-results button.place-result-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 70px !important;
  padding: 10px 14px 10px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(27, 42, 71, .1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

.rider-search-screen .inline-search-results button.place-result-row:last-child {
  border-bottom: 0 !important;
}

.rider-search-screen .place-result-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: rgba(27, 42, 71, .08) !important;
}

.rider-search-screen .place-result-copy b {
  font-size: 17px !important;
  line-height: 1.15 !important;
  color: var(--ink) !important;
}

.rider-search-screen .place-result-copy small {
  margin-top: 3px !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.25 !important;
}

.rider-search-screen .inline-search-results button.place-result-row.choosing {
  background: rgba(16, 155, 155, .1) !important;
}

.rider-search-screen .place-result-empty {
  width: calc(100% - 12px) !important;
  min-height: 64px !important;
  margin-top: 8px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: rgba(27, 42, 71, .05) !important;
  color: var(--muted) !important;
  text-align: left !important;
}

.driver-profile-card > h1,
.hero-driver > h1 {
  display: none !important;
}

.driver-value-card span {
  text-transform: none !important;
}

.driver-value-card small {
  color: var(--muted) !important;
}

.driver-profile-card .action-dock {
  position: static !important;
  padding: 0 !important;
  margin-top: 14px !important;
  box-shadow: none !important;
  background: transparent !important;
}

.driver-profile-card .driver-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

.rider-icon b,
.rider-icon small,
.leaflet-marker-icon .rider-icon b,
.leaflet-marker-icon .rider-icon small {
  display: none !important;
}

.ride-complete .action-dock {
  position: sticky !important;
  bottom: calc(76px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 980px) {
  .app-shell.rider:not(.rider-search-shell),
  .app-shell.driver:not(.rider-search-shell) {
    width: min(560px, calc(100vw - 48px)) !important;
    max-width: 560px !important;
    margin-inline: auto !important;
    padding-top: 92px !important;
  }

  .app-shell.rider:not(.rider-search-shell) .app-top,
  .app-shell.driver:not(.rider-search-shell) .app-top {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(520px, calc(100vw - 48px)) !important;
  }

  .app-shell.rider:not(.rider-search-shell) .app-main,
  .app-shell.driver:not(.rider-search-shell) .app-main {
    width: 100% !important;
  }

  .app-shell.rider:not(.rider-search-shell) .map-card,
  .app-shell.driver:not(.rider-search-shell) .map-card {
    height: 350px !important;
  }

  .app-shell.rider:not(.rider-search-shell) .app-tabs,
  .app-shell.driver:not(.rider-search-shell) .app-tabs {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(380px, calc(100vw - 48px)) !important;
  }
}

@media (max-width: 720px) {
  .rider-search-shell .rider-search-screen {
    width: 100% !important;
    height: 100dvh !important;
  }

  .rider-search-shell .rider-search-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-top: max(16px, env(safe-area-inset-top)) !important;
  }

  .rider-search-shell .search-title-row h1 {
    font-size: clamp(34px, 11vw, 54px) !important;
  }

  .rider-search-shell .search-profile-chip {
    min-width: 70px !important;
    padding-inline: 11px !important;
  }

  .rider-search-shell .inline-search-results {
    padding-bottom: max(120px, env(safe-area-inset-bottom)) !important;
  }

  .rider-confirm-card .fare-preview {
    grid-template-columns: 1fr !important;
  }

  .rider-confirm-card .fare-preview strong {
    text-align: left !important;
  }
}

/* Driver request view, map-first with Uber-like request sheet. */
.app-shell.driver:not(.rider-search-shell) .driver-grid {
  gap: 0 !important;
}

.app-shell.driver:not(.rider-search-shell) .map-card {
  height: min(58vh, 430px) !important;
  margin-bottom: 0 !important;
  border-radius: 26px 26px 18px 18px !important;
}

.app-shell.driver:not(.rider-search-shell) .driver-content {
  position: relative !important;
  z-index: 8 !important;
  gap: 12px !important;
  margin-top: -74px !important;
  padding-inline: 10px !important;
}

.app-shell.driver:not(.rider-search-shell) .driver-request-card:first-child {
  animation: driverSheetIn .18s ease-out both;
}

.app-shell.driver:not(.rider-search-shell) .driver-profile-card,
.app-shell.driver:not(.rider-search-shell) .branded-empty {
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(27, 42, 71, .08) !important;
}

.active-ride .eta-status-card.requested {
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 5px !important;
  padding: 14px !important;
}

.active-ride .eta-status-card.requested span,
.active-ride .eta-status-card.requested strong,
.active-ride .eta-status-card.requested small {
  grid-column: 1 !important;
  grid-row: auto !important;
  min-width: 0 !important;
}

.active-ride .eta-status-card.requested strong {
  max-width: 100% !important;
  font-size: clamp(22px, 6vw, 30px) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.active-ride .eta-status-card.requested small {
  max-width: 34ch !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

@media (max-width: 420px) {
  .rider-flow.confirm-mode .active-ride h1,
  .app-shell.rider:not(.rider-search-shell) .active-ride h1 {
    font-size: 34px !important;
    line-height: 1 !important;
  }
}

@keyframes driverSheetIn {
  from {
    opacity: .86;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell.driver:not(.rider-search-shell) .driver-request-card:first-child {
    animation: none;
  }
}

@media (max-width: 420px) {
  .driver-request-summary {
    grid-template-columns: 1fr 1fr;
  }

  .driver-request-summary div:first-child {
    grid-column: 1 / -1;
  }
}

/* Rider confirm, map-first taxi request sheet inspired by native ride apps. */
.rider-flow.confirm-mode .map-card {
  background: #e7eeee !important;
}

.rider-flow.confirm-mode .map-header {
  width: auto !important;
  max-width: calc(100% - 92px) !important;
  padding: 10px 12px !important;
  border-radius: 999px !important;
}

.rider-flow.confirm-mode .map-header b {
  font-size: 13px !important;
}

.rider-flow.confirm-mode .map-header span,
.rider-flow.confirm-mode .map-header em {
  display: none !important;
}

.rider-confirm-card {
  display: grid !important;
  gap: 8px !important;
  padding: 10px 14px calc(82px + env(safe-area-inset-bottom)) !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 26px 26px 0 0 !important;
  box-shadow: 0 -10px 34px rgba(27, 42, 71, .14) !important;
}

.rider-confirm-card .sheet-handle {
  width: 42px !important;
  height: 4px !important;
  margin: 0 auto 2px !important;
  border-radius: 999px !important;
  background: rgba(27, 42, 71, .16) !important;
}

.confirm-sheet-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 24px;
}

.confirm-sheet-title span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.confirm-sheet-title b {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
}

.rider-route-summary {
  display: grid !important;
  position: relative !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fbfcfd !important;
  border: 1px solid rgba(27, 42, 71, .08) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.rider-route-summary::before {
  left: 25px !important;
  top: 34px !important;
  bottom: 34px !important;
  width: 2px !important;
  background: #111827 !important;
  opacity: .82 !important;
}

.rider-route-summary .route-line {
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  gap: 9px !important;
  min-height: 48px !important;
  padding: 8px 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.rider-route-summary .route-line + .route-line {
  border-top: 1px solid rgba(27, 42, 71, .08) !important;
}

.rider-route-summary .route-line small {
  margin-bottom: 2px !important;
  font-size: 10px !important;
}

.rider-route-summary .route-line b {
  overflow: hidden;
  max-width: 100%;
  font-size: 14px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-route-summary .route-line em {
  padding: 7px 9px !important;
  font-size: 11px !important;
}

.rider-route-summary .route-dot,
.rider-route-summary .route-flag-dot {
  display: grid !important;
  width: 30px !important;
  height: 30px !important;
  place-items: center !important;
  background: #111827 !important;
  border: 3px solid #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 5px 12px rgba(17, 24, 39, .16) !important;
}

.rider-route-summary .pickup-dot::after {
  width: 8px !important;
  height: 8px !important;
  background: #fff !important;
}

.rider-route-summary .route-flag-dot .button-finish-flag {
  display: none !important;
}

.rider-route-summary .route-flag-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  background: #fff;
  border-radius: 999px;
}

.rider-trip-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.taxi-choice {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 78px !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 76px !important;
  padding: 9px 10px !important;
  color: var(--navy) !important;
  background: #f7f8fa !important;
  border: 2px solid transparent !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  text-align: left !important;
}

.taxi-choice.selected {
  background: #fff !important;
  border-color: rgba(27, 42, 71, .86) !important;
  box-shadow: 0 10px 26px rgba(27, 42, 71, .1) !important;
}

.taxi-choice-art {
  display: grid !important;
  place-items: center !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  color: #10203b !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(233, 239, 247, .96)) !important;
  border: 1px solid rgba(27, 42, 71, .08) !important;
  border-radius: 14px !important;
}

.taxi-choice-art svg {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  margin: auto !important;
  color: #10203b !important;
  stroke: currentColor !important;
  stroke-width: 2.35 !important;
  opacity: 1 !important;
}

.taxi-choice-art .taxi-mini-svg {
  width: 38px !important;
  height: 44px !important;
  transform: translateY(1px) !important;
}

.taxi-choice.selected .taxi-choice-art {
  color: #10203b !important;
  background: linear-gradient(145deg, #fff, #eef7f7) !important;
  border-color: rgba(16, 155, 155, .24) !important;
}

.taxi-choice.selected .taxi-choice-art svg {
  color: #10203b !important;
  opacity: 1 !important;
}

.taxi-choice-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.taxi-choice-copy b {
  overflow: hidden;
  color: var(--navy);
  font-size: 17px !important;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxi-choice-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #6c7481 !important;
  font-size: 11px !important;
  font-weight: 750;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.taxi-choice-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  width: 78px;
  min-width: 78px;
}

.taxi-choice-meta strong {
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.taxi-choice-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payment-summary-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 2px;
  border-top: 1px solid rgba(27, 42, 71, .1);
  border-bottom: 1px solid rgba(27, 42, 71, .1);
}

.payment-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0d7777);
  border-radius: 999px;
}

.payment-badge svg {
  width: 18px;
  height: 18px;
}

.payment-summary-row span,
.payment-summary-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.payment-summary-row b {
  display: block;
  margin-top: 1px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
}

.payment-summary-row .profile-chip {
  min-height: 30px;
  padding-inline: 10px;
  background: #edf7f7;
  border-color: rgba(16, 155, 155, .18);
}

.rider-confirm-card .rider-contact-card {
  gap: 8px !important;
  padding: 10px !important;
  background: #f7f8fa !important;
  border: 1px solid rgba(27, 42, 71, .08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.rider-confirm-card .rider-contact-card small {
  font-size: 12px !important;
}

.rider-driver-note {
  display: none !important;
}

.rider-confirm-card .action-dock {
  left: 50% !important;
  right: auto !important;
  bottom: calc(26px + env(safe-area-inset-bottom)) !important;
  width: min(520px, calc(100vw - 28px)) !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
}

.request-now-action {
  min-height: 56px !important;
  color: #2a2100 !important;
  background: linear-gradient(135deg, #ffd66b, #ffb22e) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 28px rgba(255, 178, 46, .32) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.request-now-action:disabled {
  opacity: .58;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  .app-shell.rider:not(.rider-search-shell) .app-tabs {
    display: none !important;
  }

  .role-screen.rider-flow.confirm-mode {
    display: grid !important;
    grid-template-rows: minmax(250px, 39dvh) minmax(0, auto) !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .rider-flow.confirm-mode .map-card {
    height: 39dvh !important;
    min-height: 250px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .rider-flow.confirm-mode .rider-panel {
    position: relative !important;
    z-index: 12 !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  .rider-flow.confirm-mode .rider-panel .booking {
    width: 100% !important;
    margin: 0 !important;
  }

  .rider-confirm-card {
    max-height: calc(100dvh - 210px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 721px) {
  .role-screen.rider-flow.confirm-mode {
    overflow: hidden !important;
    border-radius: 34px !important;
    background: #fff !important;
    box-shadow: 0 28px 80px rgba(27, 42, 71, .16) !important;
  }

  .rider-flow.confirm-mode .map-card {
    height: 360px !important;
    margin-bottom: -18px !important;
    border-radius: 34px 34px 0 0 !important;
    box-shadow: none !important;
  }

  .rider-flow.confirm-mode .rider-panel {
    z-index: 12 !important;
  }

  .rider-confirm-card {
    border-radius: 26px 26px 34px 34px !important;
  }

  .rider-confirm-card .action-dock {
    width: min(492px, calc(100vw - 56px)) !important;
  }
}

.app-shell.rider:has(.rider-flow.confirm-mode) {
  padding-top: 0 !important;
}

.app-shell.rider:has(.rider-flow.confirm-mode) .app-top,
.app-shell.rider:has(.rider-flow.confirm-mode) .app-tabs {
  display: none !important;
}

.app-shell.rider:has(.rider-flow.confirm-mode) .app-main {
  min-height: 100dvh !important;
}

.app-shell.rider:has(.rider-flow.confirm-mode) .map-card {
  position: relative !important;
  top: 0 !important;
}

.rider-confirm-card .action-dock {
  position: fixed !important;
  left: 14px !important;
  right: 14px !important;
  bottom: calc(26px + env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: 492px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (min-width: 721px) {
  .rider-confirm-card .action-dock {
    left: 50% !important;
    right: auto !important;
    width: min(492px, calc(100vw - 56px)) !important;
    transform: translateX(-50%) !important;
  }
}

/* DIRECTOR patch: live rider location dot, no finish arrow, and pilot navigation restored. */
.pin-glyph {
  position: relative !important;
  display: grid !important;
  width: 22px !important;
  height: 22px !important;
  place-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: 3 !important;
}

.pin-glyph::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 22px !important;
  height: 22px !important;
  background: var(--teal) !important;
  border: 4px solid #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .28), 0 0 0 1px rgba(16, 155, 155, .18) !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
}

.pin-glyph::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 8px !important;
  height: 8px !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1 !important;
}

.pin-glyph i {
  position: relative !important;
  z-index: 4 !important;
  width: 8px !important;
  height: 8px !important;
  margin-top: 0 !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 0 !important;
  border-radius: 999px !important;
  transform: none !important;
}

.map-marker.pickup {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  filter: none !important;
}

.map-marker.pickup::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 34px !important;
  height: 34px !important;
  background: rgba(16, 155, 155, .16) !important;
  border: 2px solid rgba(16, 155, 155, .55) !important;
  border-radius: 999px !important;
  transform: translate(-50%, -50%) scale(.72) !important;
  animation: livePickupPulse 1.35s ease-out infinite !important;
  z-index: 1 !important;
}

.map-marker.rider-live {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
}

.live-location-glyph {
  position: relative;
  z-index: 2;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  background: #109b9b;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(16, 155, 155, .28);
}

.live-location-glyph i {
  width: 6px;
  height: 6px;
  background: #ffbf00;
  border-radius: 999px;
}

.map-marker.rider-live::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 34px !important;
  height: 34px !important;
  background: rgba(16, 155, 155, .16) !important;
  border: 2px solid rgba(16, 155, 155, .45) !important;
  border-radius: 999px !important;
  transform: translate(-50%, -50%) scale(.72) !important;
  animation: livePickupPulse 1.35s ease-out infinite !important;
  z-index: 1 !important;
}

@keyframes livePickupPulse {
  0% {
    opacity: .8;
    transform: translate(-50%, -50%) scale(.62);
  }
  72% {
    opacity: .12;
    transform: translate(-50%, -50%) scale(1.42);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.65);
  }
}

.flag-glyph::after,
.button-finish-flag::after {
  display: none !important;
  content: none !important;
}

.rider-search-shell {
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 58px) !important;
}

.rider-search-shell .app-tabs,
.app-shell.rider:has(.rider-flow.confirm-mode) .app-tabs {
  display: grid !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  bottom: auto !important;
  z-index: 980 !important;
  width: min(330px, calc(100vw - 24px)) !important;
}

.app-shell.rider:has(.rider-flow.confirm-mode) .app-top {
  display: none !important;
}

.app-shell.rider:has(.rider-flow.confirm-mode) {
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 58px) !important;
}

.active-ride.arrived .eta-status-card.arrived {
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 6px !important;
  padding: 16px !important;
}

.active-ride.arrived .eta-status-card.arrived span,
.active-ride.arrived .eta-status-card.arrived strong {
  grid-column: 1 !important;
  grid-row: auto !important;
}

.active-ride.arrived .eta-status-card.arrived span {
  color: var(--teal-deep) !important;
  font-size: 13px !important;
  letter-spacing: .02em !important;
}

.active-ride.arrived .eta-status-card.arrived strong {
  max-width: 100% !important;
  font-size: clamp(24px, 6.4vw, 34px) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.active-ride.started,
.active-ride.stopped {
  gap: 14px !important;
  padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
}

.active-ride.started .eta-status-card.started,
.active-ride.stopped .eta-status-card.stopped {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 6px 12px !important;
  margin-top: 0 !important;
  padding: 16px !important;
}

.active-ride.started .eta-status-card.started strong,
.active-ride.stopped .eta-status-card.stopped strong {
  grid-column: 1 !important;
  grid-row: 1 !important;
  color: var(--navy) !important;
  font-size: clamp(30px, 8vw, 42px) !important;
  line-height: 1 !important;
  white-space: normal !important;
}

.active-ride.started .eta-status-card.started small,
.active-ride.stopped .eta-status-card.stopped small {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  max-width: 42ch !important;
  line-height: 1.3 !important;
}

.onboard-eta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 2px 12px;
  color: var(--navy);
  border-bottom: 1px solid rgba(27, 42, 71, .08);
}

.onboard-eta-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.onboard-eta-row b {
  color: var(--navy);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.active-ride.started .driver-pass,
.active-ride.stopped .driver-pass {
  padding: 0 !important;
  border-top: 0 !important;
}

.active-ride.started .driver-pass strong,
.active-ride.stopped .driver-pass strong {
  font-size: clamp(28px, 7vw, 40px) !important;
}

.app-shell.rider:has(.ride-state-started),
.app-shell.rider:has(.ride-state-stopped) {
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 58px) !important;
}

@media (max-width: 720px) {
  .role-screen.rider-flow.confirm-mode.ride-state-started,
  .role-screen.rider-flow.confirm-mode.ride-state-stopped {
    grid-template-rows: minmax(430px, 68dvh) minmax(0, auto) !important;
  }

  .rider-flow.confirm-mode.ride-state-started .map-card,
  .rider-flow.confirm-mode.ride-state-stopped .map-card {
    height: 68dvh !important;
    min-height: 430px !important;
  }

  .rider-flow.confirm-mode.ride-state-started .rider-panel,
  .rider-flow.confirm-mode.ride-state-stopped .rider-panel {
    margin-top: 14px !important;
  }
}

.ride-complete {
  text-align: center !important;
}

.ride-complete-flag {
  position: relative !important;
  display: grid !important;
  width: 86px !important;
  height: 86px !important;
  place-items: center !important;
  margin: 0 auto !important;
  color: var(--navy) !important;
  background: radial-gradient(circle, rgba(255, 191, 0, .28), rgba(16, 155, 155, .13) 58%, transparent 72%) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 34px rgba(255, 191, 0, .38), 0 18px 42px rgba(16, 155, 155, .18) !important;
}

.ride-complete-flag::before {
  content: "" !important;
  position: absolute !important;
  inset: 13px !important;
  display: block !important;
  background: #fff !important;
  border: 1px solid rgba(27, 42, 71, .08) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 191, 0, .22) !important;
}

.ride-complete-flag .button-finish-flag {
  position: relative !important;
  z-index: 1 !important;
  transform: scale(1.25) !important;
}

.ride-complete-hero p {
  color: var(--navy) !important;
  font-size: clamp(22px, 6vw, 30px) !important;
  font-weight: 950 !important;
}

.rider-setup-shell {
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 70px) !important;
}

.rider-setup-shell .app-top {
  display: none !important;
}

.app-shell.rider.rider-setup-shell:not(.rider-search-shell) .app-tabs {
  display: grid !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  bottom: auto !important;
  z-index: 980 !important;
  width: min(330px, calc(100vw - 24px)) !important;
}

.app-shell.driver:not(.rider-search-shell) {
  width: auto !important;
  max-width: none !important;
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 128px) !important;
}

.app-shell.driver:not(.rider-search-shell) .app-top {
  display: flex !important;
}

.app-shell.driver:not(.rider-search-shell) .app-tabs {
  display: grid !important;
  top: calc(max(10px, env(safe-area-inset-top)) + 68px) !important;
  bottom: auto !important;
  z-index: 980 !important;
}

.app-shell.driver:not(.rider-search-shell) .driver-grid {
  gap: clamp(14px, 2vw, 22px) !important;
}

.app-shell.driver:not(.rider-search-shell) .map-card {
  height: clamp(300px, 42dvh, 460px) !important;
  margin-bottom: 12px !important;
  border-radius: 26px !important;
}

.app-shell.driver:not(.rider-search-shell) .driver-content {
  margin-top: 0 !important;
  padding-inline: 0 !important;
}

@media (max-width: 979px) {
  .app-shell.driver:not(.rider-search-shell) {
    width: 100% !important;
    max-width: none !important;
    padding-top: calc(max(10px, env(safe-area-inset-top)) + 78px) !important;
  }

  .app-shell.driver:not(.rider-search-shell) .app-top {
    display: none !important;
  }

  .app-shell.driver:not(.rider-search-shell) .app-main {
    width: 100% !important;
  }

  .app-shell.driver:not(.rider-search-shell) .app-tabs {
    top: max(10px, env(safe-area-inset-top)) !important;
    bottom: auto !important;
    width: min(390px, calc(100vw - 24px)) !important;
  }

  .app-shell.driver:not(.rider-search-shell) .driver-grid {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 calc(108px + env(safe-area-inset-bottom)) !important;
  }

  .app-shell.driver:not(.rider-search-shell) .map-card {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    height: clamp(420px, 62dvh, 620px) !important;
    min-height: 420px !important;
    margin: 0 !important;
    border-radius: 0 0 24px 24px !important;
  }

  .app-shell.driver:not(.rider-search-shell) .map-card .map-header {
    display: none !important;
  }

  .app-shell.driver:not(.rider-search-shell) .driver-content {
    position: static !important;
    z-index: auto !important;
    display: grid !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 12px 0 !important;
    transform: none !important;
  }

  .app-shell.driver:not(.rider-search-shell) .driver-request-card:first-child {
    animation: none !important;
  }
}

@media (min-width: 980px) {
  .app-shell.driver:not(.rider-search-shell) {
    width: min(1120px, calc(100vw - 48px)) !important;
    max-width: 1120px !important;
    padding-top: 128px !important;
  }

  .app-shell.driver:not(.rider-search-shell) .app-top {
    width: min(760px, calc(100vw - 48px)) !important;
  }

  .app-shell.driver:not(.rider-search-shell) .driver-grid {
    display: grid !important;
    grid-template-columns: minmax(460px, .95fr) minmax(420px, .85fr) !important;
    width: 100% !important;
  }

  .app-shell.driver:not(.rider-search-shell) .map-card {
    position: sticky !important;
    top: 128px !important;
    height: calc(100vh - 170px) !important;
    min-height: 560px !important;
  }

  .app-shell.driver:not(.rider-search-shell) .driver-content {
    max-height: calc(100vh - 170px);
    overflow: auto;
  }
}

@media (min-width: 980px) {
  .app-shell.admin:not(.rider-search-shell) .ops-command-header {
    display: grid !important;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr) !important;
    gap: 18px !important;
    align-items: start !important;
    overflow: hidden !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-command-header h1 {
    max-width: 100% !important;
    margin: 8px 0 8px !important;
    font-size: clamp(42px, 4.8vw, 64px) !important;
    line-height: .94 !important;
    overflow-wrap: anywhere !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-command-header p {
    max-width: 34ch !important;
    margin: 0 !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-stats {
    align-self: stretch !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-stats div {
    min-width: 0 !important;
    padding: 14px !important;
  }
}

/* Ops phone rescue: keep desktop command center, but make phone Ops map-first. */
@media (max-width: 759px) {
  .app-shell.admin:not(.rider-search-shell) {
    padding-top: max(6px, env(safe-area-inset-top)) !important;
  }

  .app-shell.admin:not(.rider-search-shell) .app-top {
    position: sticky !important;
    top: max(6px, env(safe-area-inset-top)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    min-height: 44px !important;
    padding: 7px 10px !important;
    transform: none !important;
    border-radius: 16px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .app-top .logo-block b {
    font-size: 14px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .signal {
    max-width: 11ch !important;
    overflow: hidden !important;
    font-size: 11px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 6px 10px calc(90px + env(safe-area-inset-bottom)) !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-grid .map-card {
    position: sticky !important;
    top: calc(max(6px, env(safe-area-inset-top)) + 54px) !important;
    z-index: 15 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    height: clamp(390px, 58dvh, 560px) !important;
    min-height: 390px !important;
    margin: 0 0 8px !important;
    border-radius: 18px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .map-header {
    left: 10px !important;
    top: 10px !important;
    width: calc(100% - 20px) !important;
    min-height: 46px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .map-header b,
  .app-shell.admin:not(.rider-search-shell) .map-header span,
  .app-shell.admin:not(.rider-search-shell) .map-header em {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-content {
    width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    gap: 10px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-command-header {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-command-header h1 {
    margin: 4px 0 2px !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-command-header p {
    display: none !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-live-badge {
    min-height: 26px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-stats div {
    min-width: 0 !important;
    padding: 9px !important;
    border-radius: 10px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-stats b {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .app-shell.admin:not(.rider-search-shell) .admin-stats span {
    display: block !important;
    margin-top: 3px !important;
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-panel,
  .app-shell.admin:not(.rider-search-shell) .ops-danger-zone {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-panel-heading h2,
  .app-shell.admin:not(.rider-search-shell) .ops-danger-zone h2 {
    font-size: 16px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-detail {
    justify-items: start !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-actions {
    justify-content: flex-start !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-wa-button {
    min-height: 38px !important;
  }
}

/* Ops lane readability rescue: separate route, meta, and actions. */
@media (min-width: 980px) {
  .app-shell.admin:not(.rider-search-shell) .admin-content {
    scrollbar-gutter: stable !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-row {
    grid-template-columns: minmax(0, 1fr) minmax(170px, .46fr) minmax(168px, .42fr) !important;
    align-items: start !important;
    gap: 14px !important;
    padding: 14px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-main {
    gap: 6px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-route-line {
    max-width: 100% !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-route-line strong {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-meta {
    gap: 9px !important;
    padding-top: 2px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-meta span {
    display: block !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-detail {
    justify-items: stretch !important;
    min-width: 0 !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    justify-content: stretch !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-wa-button {
    width: 100% !important;
    min-height: 36px !important;
    padding-inline: 9px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

@media (max-width: 979px) {
  .app-shell.admin:not(.rider-search-shell) .ops-ride-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-detail {
    justify-items: start !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-ride-actions {
    justify-content: flex-start !important;
  }
}

@media (max-width: 520px) {
  .app-shell.admin:not(.rider-search-shell) .ops-ride-meta {
    grid-template-columns: 1fr !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-route-line {
    display: grid !important;
    gap: 2px !important;
  }

  .app-shell.admin:not(.rider-search-shell) .ops-route-line i {
    font-size: 10px !important;
  }
}
