/* ─── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:         #0a0a0a;
  --dark:          #111111;
  --dark-2:        #1c1c1c;
  --dark-3:        #2a2a2a;
  --yellow:        #f5c518;
  --yellow-dark:   #d4a800;
  --yellow-soft:   rgba(245,197,24,.12);
  --white:         #ffffff;
  --off-white:     #f8f8f8;
  --grey-1:        #f0f0f0;
  --grey-2:        #e0e0e0;
  --grey-3:        #aaaaaa;
  --grey-4:        #666666;
  --text:          #0a0a0a;
  --text-2:        #444444;
  --text-3:        #888888;
  --danger:        #e53935;
  --success:       #1db954;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.15);
  --shadow-xl:     0 24px 64px rgba(0,0,0,.20);
  --r-sm:          10px;
  --r-md:          16px;
  --r-lg:          24px;
  --r-xl:          32px;
  --r-full:        999px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h:         60px;
  --bottom-h:      80px;
  --sheet-radius:  28px;
}

html { height: 100%; }
body {
  height: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

/* ─── Splash Screen ────────────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .4s ease, visibility .4s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
}
.splash-logo span { color: var(--yellow); }
.splash-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
  letter-spacing: .3px;
}
.splash-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid rgba(255,255,255,.15);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-top: 48px;
}

/* ─── Page Shell ───────────────────────────────────────────────── */
.page {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--white);
}
.page.active { display: flex; }

/* ─── Auth Pages ───────────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.auth-top {
  background: var(--black);
  padding: 0 28px;
  padding-top: max(56px, env(safe-area-inset-top));
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
/* decorative circles */
.auth-top::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: var(--yellow-soft);
  border-radius: 50%;
}
.auth-top::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 20px;
  width: 120px; height: 120px;
  background: rgba(245,197,24,.06);
  border-radius: 50%;
}
.auth-logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}
.auth-logo span { color: var(--yellow); }
.auth-headline {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  position: relative;
  z-index: 1;
  letter-spacing: -.5px;
}
.auth-sub {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.auth-body {
  flex: 1;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ─── Form Controls ────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  background: var(--off-white);
  border: 1.5px solid var(--grey-1);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
  outline: none;
}
.form-input:focus {
  background: var(--white);
  border-color: var(--black);
}
.form-input.error { border-color: var(--danger); background: #fff5f5; }
.form-input::placeholder { color: var(--grey-3); }

.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 50px; }
.input-icon {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--grey-3);
  cursor: pointer;
  padding: 4px;
  display: flex; align-items: center;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 24px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform .1s, opacity .15s, background .15s;
  width: 100%;
  text-decoration: none;
  letter-spacing: -.1px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--dark-2); }

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
}
.btn-yellow:hover { background: var(--yellow-dark); }

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--grey-2);
}
.btn-outline:hover { background: var(--off-white); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  height: 44px;
}

.btn-sm { height: 42px; font-size: 13px; padding: 0 16px; }

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.btn-primary.btn-loading { color: transparent; }
.btn-yellow.btn-loading::after { border-color: rgba(0,0,0,.2); border-top-color: var(--black); }
.btn-yellow.btn-loading { color: transparent; }

/* ─── Social Auth ──────────────────────────────────────────────── */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  border: 1.5px solid var(--grey-2);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
  color: var(--text);
  transition: background .15s, border-color .15s;
}
.social-btn:hover { background: var(--off-white); border-color: var(--grey-3); }
.social-btn:active { transform: scale(.98); }
.social-btn img { width: 20px; height: 20px; }

/* ─── Divider ──────────────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  color: var(--grey-3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--grey-2); }

/* ─── Error Banner ─────────────────────────────────────────────── */
.error-banner {
  background: #fff0f0;
  border: 1px solid #fcc;
  border-left: 3px solid var(--danger);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 18px;
  display: none;
  font-weight: 500;
}
.error-banner.show { display: block; }

/* ─── Auth Footer ──────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-3);
}
.auth-link { color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none; }

/* ─── Topnav ───────────────────────────────────────────────────── */
.topnav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-1);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topnav-back {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--off-white);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: background .15s;
}
.topnav-back:hover { background: var(--grey-1); }
.topnav-title { font-size: 16px; font-weight: 700; flex: 1; letter-spacing: -.2px; }
.topnav-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--black);
  flex: 1;
}
.topnav-brand span { color: var(--yellow); }

/* ─── Bottom Nav ───────────────────────────────────────────────── */
.bottom-nav {
  height: var(--bottom-h);
  background: var(--white);
  border-top: 1px solid var(--grey-1);
  display: flex;
  align-items: stretch;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--grey-3);
  font-size: 11px;
  font-weight: 600;
  transition: color .15s;
  padding: 8px 4px;
  letter-spacing: .2px;
}
.bottom-nav-item.active { color: var(--black); }
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-dot {
  width: 5px; height: 5px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0;
  margin-top: 1px;
  transition: opacity .2s;
}
.bottom-nav-item.active .bottom-nav-dot { opacity: 1; }

/* ─── Page Content ─────────────────────────────────────────────── */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--bottom-h) + 16px);
  -webkit-overflow-scrolling: touch;
}

/* ─── Home / Map screen ────────────────────────────────────────── */
#map-screen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  position: relative;
}
#map {
  flex: 1;
  width: 100%;
  min-height: 0;
}

/* ─── Booking Sheet ────────────────────────────────────────────── */
.booking-sheet {
  position: absolute;
  bottom: var(--bottom-h);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.12);
  padding: 10px 20px 20px;
  z-index: 100;
}
.sheet-pill {
  width: 40px; height: 4px;
  background: var(--grey-2);
  border-radius: 2px;
  margin: 0 auto 18px;
}
.greeting {
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -.5px;
  margin-bottom: 4px;
}
.greeting-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* ─── Address Input Card ───────────────────────────────────────── */
.addr-card {
  background: var(--off-white);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1.5px solid var(--grey-1);
}
.addr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  height: 52px;
}
.addr-row + .addr-row {
  border-top: 1px solid var(--grey-2);
}
.addr-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.addr-dot.pickup   { background: var(--black); }
.addr-dot.dropoff  { background: var(--yellow); border: 2px solid var(--black); }
.addr-line {
  width: 1px;
  height: 20px;
  background: var(--grey-2);
  margin: 0 auto;
  display: none; /* connector line — shown between rows */
}
.addr-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  font-weight: 500;
}
.addr-input::placeholder { color: var(--grey-3); font-weight: 400; }
.addr-row.focused { background: var(--white); }
.addr-card:focus-within { border-color: var(--black); }

/* ─── Map FAB ──────────────────────────────────────────────────── */
.map-fab {
  position: absolute;
  background: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  transition: transform .15s;
}
.map-fab:active { transform: scale(.93); }
.fab-locate {
  width: 46px; height: 46px;
  right: 16px;
  bottom: calc(var(--bottom-h) + 240px);
  color: var(--text-2);
}

/* ─── Autocomplete dropdown ────────────────────────────────────── */
.autocomplete-dropdown {
  position: fixed;
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--grey-1);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  z-index: 500;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.autocomplete-dropdown.show { display: block; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--grey-1);
  transition: background .1s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--off-white); }
.ac-icon {
  width: 36px; height: 36px;
  background: var(--grey-1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-4);
  flex-shrink: 0;
}
.ac-main { font-size: 14px; font-weight: 600; color: var(--text); }
.ac-sub  { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ─── Booking page ─────────────────────────────────────────────── */
.journey-summary {
  background: var(--black);
  padding: 16px 20px;
}
.journey-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.journey-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.journey-dot.pickup  { background: var(--white); }
.journey-dot.dropoff { background: var(--yellow); }
.journey-addr {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.journey-line-v {
  width: 1px; height: 14px; background: rgba(255,255,255,.2); margin-left: 4px;
}

/* ─── Vehicle cards ────────────────────────────────────────────── */
.vehicle-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 2px solid var(--grey-1);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.v-card.selected {
  border-color: var(--black);
  background: var(--off-white);
}
.v-card-emoji { font-size: 30px; width: 44px; text-align: center; flex-shrink: 0; }
.v-card-info  { flex: 1; }
.v-card-name  { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.v-card-desc  { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.v-card-right { text-align: right; }
.v-card-price { font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.v-card-eta   { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.v-card-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--black); border: none;
  display: none; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.v-card.selected .v-card-check { display: flex; }

/* ─── Promo input ──────────────────────────────────────────────── */
.promo-wrap {
  display: flex; gap: 8px; align-items: stretch;
}
.promo-wrap .form-input { height: 48px; flex: 1; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.promo-wrap .btn { width: auto; height: 48px; padding: 0 20px; flex-shrink: 0; }
.promo-success {
  font-size: 12px; font-weight: 700; color: var(--success);
  margin-top: 6px; display: none;
}
.promo-success.show { display: block; }

/* ─── Confirm bar (sticky at bottom of booking page) ──────────── */
.confirm-bar {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--grey-1);
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.price-label { font-size: 13px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.price-amount { font-size: 28px; font-weight: 800; letter-spacing: -1px; }

/* ─── Active ride screen ───────────────────────────────────────── */
#ride-map { width: 100%; height: 100dvh; position: fixed; inset: 0; z-index: 0; }
.ride-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.15);
  padding: 10px 20px 32px;
  z-index: 100;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.ride-back-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  width: 42px; height: 42px;
  background: var(--white);
  border: none; border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 150;
}
.ride-status {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.driver-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.driver-avi {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grey-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; overflow: hidden;
}
.driver-avi img { width: 100%; height: 100%; object-fit: cover; }
.driver-name { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.driver-vehicle { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.driver-rating-pill {
  margin-left: auto;
  background: var(--yellow);
  color: var(--black);
  font-size: 13px; font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-full);
  display: flex; align-items: center; gap: 3px;
}
.eta-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border: 2px solid var(--grey-1);
  border-radius: var(--r-md);
  margin-bottom: 14px;
}
.eta-left .label { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.eta-left .value { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-top: 2px; }

/* ─── Profile ──────────────────────────────────────────────────── */
.profile-hero {
  background: var(--black);
  padding: 40px 20px 28px;
  padding-top: max(40px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-avi {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  flex-shrink: 0; overflow: hidden;
}
.profile-avi img { width: 100%; height: 100%; object-fit: cover; }
.profile-name  { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -.5px; }
.profile-email { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 3px; }
.profile-edit-btn {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  padding: 7px 14px;
  cursor: pointer; font-family: var(--font);
  transition: background .15s;
}
.profile-edit-btn:hover { background: rgba(255,255,255,.18); }

/* ─── Loyalty Card ─────────────────────────────────────────────── */
.loyalty-card {
  margin: 20px;
  background: var(--black);
  border-radius: var(--r-lg);
  padding: 22px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.loyalty-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: var(--yellow-soft);
  border-radius: 50%;
}
.loyalty-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 30px;
  width: 100px; height: 100px;
  background: rgba(245,197,24,.05);
  border-radius: 50%;
}
.loyalty-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; opacity: .45; }
.loyalty-points { font-size: 48px; font-weight: 800; color: var(--yellow); line-height: 1; letter-spacing: -2px; margin: 6px 0 2px; }
.loyalty-unit   { font-size: 14px; opacity: .5; }
.loyalty-divider { height: 1px; background: rgba(255,255,255,.1); margin: 14px 0; }
.loyalty-worth  { font-size: 13px; opacity: .55; }
.loyalty-worth strong { opacity: 1; color: var(--yellow); }

/* ─── Settings list ────────────────────────────────────────────── */
.settings-section { padding: 20px 20px 0; }
.settings-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text-3); margin-bottom: 8px; }
.settings-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--grey-1);
  overflow: hidden;
}
.settings-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--grey-1);
  cursor: pointer;
  transition: background .1s;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:hover { background: var(--off-white); }
.settings-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.si-dark  { background: var(--black); color: var(--yellow); }
.si-grey  { background: var(--grey-1); color: var(--text-2); }
.si-red   { background: #fff0f0; color: var(--danger); }
.settings-text { flex: 1; }
.settings-row-title { font-size: 14px; font-weight: 600; }
.settings-row-sub   { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.chevron { color: var(--grey-3); }

/* ─── Trip history ─────────────────────────────────────────────── */
.trip-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--grey-1);
  overflow: hidden;
  margin: 0 20px 12px;
}
.trip-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
}
.trip-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.trip-info  { flex: 1; min-width: 0; }
.trip-route { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.trip-date  { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.trip-right { text-align: right; flex-shrink: 0; }
.trip-price { font-size: 16px; font-weight: 800; letter-spacing: -.5px; }
.trip-badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  margin-top: 4px;
}
.badge-ok  { background: #e8faf0; color: #1a7a40; }
.badge-no  { background: #fff0f0; color: var(--danger); }
.badge-act { background: #fff8e1; color: #b06000; }

/* ─── Sections ─────────────────────────────────────────────────── */
.section { padding: 20px 20px 0; }
.section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text-3); margin-bottom: 12px; }

/* ─── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 800;
  display: none; align-items: flex-end;
  backdrop-filter: blur(3px);
}
.modal-overlay.show { display: flex; }
.modal-sheet {
  background: var(--white);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  width: 100%;
  padding: 12px 20px max(28px, env(safe-area-inset-bottom));
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 20px; text-align: center; }

/* ─── Toast ────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: 16px; right: 16px;
  z-index: 2000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: var(--white);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: toastIn .3s cubic-bezier(.4,0,.2,1), fadeOut .3s ease 2.7s forwards;
  display: flex; align-items: center; gap: 10px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast-icon { font-size: 16px; }

/* ─── Spinner / Loading ────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 2.5px solid var(--grey-1);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 40px auto;
}
.page-spinner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
}

/* ─── Empty state ──────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 60px 24px;
}
.empty-emoji { font-size: 52px; margin-bottom: 12px; }
.empty-title { font-size: 18px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 6px; }
.empty-sub   { font-size: 14px; color: var(--text-3); }

/* ─── Utilities ────────────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.mt-8         { margin-top: 8px; }
.mt-12        { margin-top: 12px; }
.mt-16        { margin-top: 16px; }
.mt-20        { margin-top: 20px; }
.mb-16        { margin-bottom: 16px; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.fw-700       { font-weight: 700; }
.text-muted   { color: var(--text-3); }
.text-sm      { font-size: 13px; }
.w-full       { width: 100%; }

/* ─── Animations ───────────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to   { opacity: 0; pointer-events: none; } }

/* ─── Scrollbar / misc ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 0; }
