:root {
  --bg: #f4f7fb;
  --bg-strong: #e8eef6;
  --card: rgba(255, 255, 255, 0.94);
  --card-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --brand: #2563eb;
  --brand-deep: #002147;
  --accent: #0369a1;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;
  --surface-muted: #f8fafc;
  --danger: #b42318;
  --success: #15803d;
  --warning: #b45309;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(180deg, var(--bg), #eef3f8 65%, #e8eef6);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 96px;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #123b6d, #002147);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #f8fafc;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.site-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.92);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav-list a:hover,
.site-nav-list a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  outline: none;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-weight: 700;
}

.site-nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-nav-meta .pill {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav-meta .ghost-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.page-header,
.section-head,
.action-row,
.header-actions,
.tabs,
.composer,
.profile-grid,
.quote-card,
.chip-row,
.stats-grid {
  display: flex;
  gap: 16px;
}

.page-header,
.section-head {
  justify-content: space-between;
  align-items: flex-start;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1,
.section-head h2,
.hero-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

.page-header h1 {
  max-width: 760px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.page-copy,
.hero-copy p,
.section-head p,
.auth-card p,
.map-summary,
.profile-mini p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.wide-panel {
  grid-column: span 8;
}

.hero-panel,
.map-panel {
  grid-column: span 6;
}

.auth-panel {
  grid-column: span 4;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  background:
    linear-gradient(140deg, rgba(37, 99, 235, 0.95), rgba(0, 33, 71, 0.94)),
    url("ims/pexels-cottonbro-4606402.jpg") center/cover;
  color: #f8fafc;
  overflow: hidden;
}

.hero-panel .eyebrow,
.hero-panel .page-copy,
.hero-panel .hero-copy p,
.hero-panel .auth-card p {
  color: rgba(248, 250, 252, 0.84);
}

.auth-card,
.profile-card,
.quote-card,
.document-item,
.table-shell table,
.ride-card,
.notification-item,
.message-item,
.banner,
.profile-mini {
  border-radius: 20px;
}

.auth-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-mini img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.request-form {
  display: grid;
  gap: 10px;
}

.request-form-toggle {
  display: none;
  width: 100%;
  margin-top: 16px;
}

.request-mobile-shell {
  display: block;
}

.request-form label {
  font-weight: 700;
}

.input-help {
  margin: -2px 0 4px;
  color: var(--muted);
}

.request-form input,
.request-form textarea,
.request-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
}

.request-form textarea {
  resize: vertical;
}

.camera-capture {
  display: grid;
  gap: 12px;
}

.camera-shell {
  position: relative;
  min-height: 240px;
  border: 1px dashed rgba(37, 99, 235, 0.3);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.2), transparent 40%),
    linear-gradient(160deg, rgba(37, 99, 235, 0.14), rgba(0, 33, 71, 0.28));
}

.camera-feed,
.camera-preview {
  display: block;
  width: 100%;
  min-height: 240px;
  max-height: 320px;
  object-fit: cover;
}

.camera-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: rgba(248, 250, 252, 0.92);
  font-weight: 700;
}

.camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.compact-form button {
  grid-column: 1 / -1;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.tab-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.secondary-btn {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-deep);
}

.ghost-btn,
.tab-btn {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--brand-deep);
  background: rgba(37, 99, 235, 0.12);
}

.quote-card,
.profile-grid,
.stats-grid {
  margin-top: 18px;
  flex-wrap: wrap;
}

.quote-card > div,
.profile-card,
.stats-grid .stat-card {
  flex: 1 1 140px;
  padding: 16px;
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.quote-card p,
.profile-card strong,
.stat-card p {
  margin: 0 0 6px;
}

.quote-card strong,
.stat-card strong {
  font-size: 1.15rem;
}

.chip-row {
  margin-top: 18px;
  flex-wrap: wrap;
}

.chip-row button {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--brand-deep);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vehicle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.vehicle-card-main {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.vehicle-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vehicle-name {
  font-weight: 700;
}

.vehicle-visual {
  flex: 0 0 120px;
  width: 120px;
  min-width: 120px;
  height: 82px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.vehicle-svg {
  display: block;
  width: 100%;
  height: auto;
}

.vehicle-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  transform-origin: center center;
  transform: none;
}

.vehicle-card .fare {
  color: var(--brand-deep);
  font-size: 1.05rem;
}

.vehicle-card.selected {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.input-stack {
  position: relative;
}

.suggestions {
  position: absolute;
  inset: calc(100% + 6px) 0 auto;
  z-index: 20;
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.suggestions.active {
  display: block;
}

.suggestion-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
}

.suggestion-item:hover {
  background: rgba(37, 99, 235, 0.08);
}

.map-surface {
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 14px;
}

.map-summary {
  margin-top: 14px;
}

.route-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.route-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.route-step p,
.route-step small {
  margin: 0;
}

.route-step small,
.route-step-empty {
  color: var(--muted);
}

.route-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-deep);
  font-weight: 700;
}

.route-step-empty {
  padding: 14px 4px 0;
}

.ride-list,
.notification-list,
.message-list,
.document-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.ride-card,
.notification-item,
.message-item,
.document-item {
  background: var(--card-strong);
  border: 1px solid var(--line);
  padding: 16px;
}

.ride-card-header,
.ride-card-footer,
.notification-item,
.message-meta,
.message-item.self {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ride-card h3,
.ride-card p,
.notification-item p,
.message-item p {
  margin: 0;
}

.ride-card .route {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.ride-actions,
.table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ride-actions button,
.table-actions button,
.table-actions select,
.table-actions input {
  min-height: 42px;
}

.message-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.message-item.self {
  background: rgba(37, 99, 235, 0.12);
}

.composer {
  margin-top: 16px;
  align-items: stretch;
}

.composer textarea {
  flex: 1;
}

.table-shell {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.switcher input {
  width: 20px;
  height: 20px;
}

.tabs {
  margin-bottom: 18px;
}

.tab-btn.active {
  background: rgba(37, 99, 235, 0.16);
  color: var(--brand-deep);
}

.tab-body {
  display: none;
}

.tab-body.active {
  display: block;
}

.hidden {
  display: none !important;
}

html.session-hint-driver #driverAuthPanel,
html.session-hint-admin #adminLoginPanel {
  display: none !important;
}

html.session-hint-driver #driverProfilePanel,
html.session-hint-driver #driverMapPanel,
html.session-hint-driver #driverAssignedPanel,
html.session-hint-driver #driverMessagesPanel,
html.session-hint-driver #driverNotificationsPanel,
html.session-hint-admin #adminSummaryPanel,
html.session-hint-admin #adminMapPanel,
html.session-hint-admin #adminRidesPanel,
html.session-hint-admin #adminDriversPanel,
html.session-hint-admin #adminFarePanel,
html.session-hint-admin #adminDocsPanel,
html.session-hint-admin #adminNotificationsPanel {
  display: block !important;
}

html.session-hint-driver #driverLogoutBtn,
html.session-hint-admin #adminLogoutBtn,
html.session-hint-customer #customerLogoutBtn,
html.session-hint-customer #viewProfileBtn,
html.session-hint-customer #customerProfileMini {
  display: inline-flex !important;
}

html.session-hint-customer #customerProfileMini {
  display: flex !important;
}

html.session-hint-customer #googleLoginMount,
html.session-hint-customer #customerAuthCard .hero-stat-strip {
  display: none !important;
}

html.session-hint-driver #driverAuthState,
html.session-hint-admin #adminAuthState,
html.session-hint-customer #customerAuthState,
html.session-hint-customer #customerAccessTitle,
html.session-hint-customer #customerAuthMessage {
  font-size: 0 !important;
}

html.session-hint-driver #driverAuthState::after,
html.session-hint-admin #adminAuthState::after,
html.session-hint-customer #customerAuthState::after {
  content: "Signed in";
  font-size: 0.95rem;
}

html.session-hint-customer #customerAccessTitle::after {
  content: "Customer ready";
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

html.session-hint-customer #customerAuthMessage::after {
  content: "You are signed in and ready to request, track, and manage rides.";
  font-size: 1rem;
  color: var(--muted);
}

.banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.banner[data-tone="neutral"] {
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
}

.banner[data-tone="success"] {
  background: rgba(21, 128, 61, 0.94);
  color: white;
}

.banner[data-tone="danger"] {
  background: rgba(180, 35, 24, 0.94);
  color: white;
}

.banner[data-tone="warning"] {
  background: rgba(180, 83, 9, 0.95);
  color: #ffffff;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 13, 0.68);
  backdrop-filter: blur(10px);
}

.request-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 248, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.38);
}

.request-modal-card h2,
.request-modal-card p {
  margin: 0;
}

.request-modal-copy {
  font-size: 1.2rem;
  font-weight: 700;
}

.request-modal-meta {
  display: grid;
  gap: 10px;
}

.request-modal-card select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
}

.request-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.notification-item.unread {
  border-color: rgba(37, 99, 235, 0.32);
  background: rgba(37, 99, 235, 0.08);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
}

.status-dot.online {
  background: var(--success);
}

.status-dot.offline {
  background: var(--danger);
}

.driver-shell .panel,
.admin-shell .panel {
  background: rgba(255, 250, 242, 0.95);
}

@media (max-width: 1100px) {
  .panel,
  .wide-panel,
  .hero-panel,
  .map-panel,
  .auth-panel {
    grid-column: 1 / -1;
  }

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

  .compact-form {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 20px, 1400px);
    padding-top: 18px;
  }

  .site-header {
    padding: 14px 16px;
  }

  .site-brand span {
    font-size: 1rem;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 48px;
    z-index: 40;
    display: none;
    margin-left: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(0, 33, 71, 0.98), rgba(15, 55, 100, 0.98));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav-meta {
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }

  .request-form-toggle {
    display: inline-flex;
    justify-content: center;
  }

  .request-mobile-shell {
    display: none;
    margin-top: 16px;
  }

  .request-mobile-shell.open {
    display: block;
  }

  #requestPanel .header-actions {
    display: none;
  }

  .site-nav-list li,
  .site-nav-list a {
    width: 100%;
  }

  .page-header,
  .section-head,
  .header-actions,
  .action-row,
  .composer,
  .camera-actions,
  .request-modal-actions {
    flex-direction: column;
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }
}

/* Migrated from index.html */
.site-header--showcase {
      align-items: center;
      flex-wrap: wrap;
      background:
        linear-gradient(135deg, rgba(0, 33, 71, 0.98), rgba(15, 55, 100, 0.98)),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.24), transparent 35%);
    }

    .site-nav {
      margin-left: auto;
    }

    .site-nav-user {
      position: relative;
      margin-left: 6px;
    }

    .site-auth-trigger {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 10px 16px;
      border: 0;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.1);
      color: rgba(248, 250, 252, 0.96);
      font-weight: 700;
    }

    .site-auth-trigger.is-guest {
      background: linear-gradient(135deg, #2563eb, #002147);
      color: #ffffff;
      box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
    }

    .site-auth-menu {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      z-index: 60;
      display: none;
      min-width: 180px;
      padding: 12px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(0, 33, 71, 0.98), rgba(15, 55, 100, 0.98));
      box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
      border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .site-nav-user.open .site-auth-menu {
      display: grid;
      gap: 10px;
    }

    .site-auth-menu-btn {
      width: 100%;
      border: 0;
      border-radius: 14px;
      padding: 12px 14px;
      background: rgba(255, 255, 255, 0.12);
      color: #f8fafc;
      font-weight: 700;
      text-align: left;
    }

    .site-auth-menu .ghost-btn {
      width: 100%;
      background: rgba(255, 255, 255, 0.12);
      color: #f8fafc;
      border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .landing-panel {
      position: relative;
      grid-column: span 8;
      min-height: 100%;
    }

    .landing-panel::after {
      content: "";
      position: absolute;
      inset: auto -40px -40px auto;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(14, 165, 233, 0.24), transparent 68%);
      pointer-events: none;
    }

    .hero-copy {
      position: relative;
      z-index: 1;
    }

    .summary-cards {
      display: flex;
      flex-wrap: wrap;
      gap: 1.1rem;
      margin: 24px 0 0;
    }

    .card0 {
      display: block;
      width: 100%;
      min-height: 112px;
      background:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url("ims/wish.jpeg") no-repeat center center / cover;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 20px 34px rgba(0, 0, 0, 0.2);
    }

    .card2 {
      padding: 18px 0;
    }

    .card2 h3 {
      margin: 0;
      padding: 0 1rem;
      color: #ffffff;
      font-family: "Space Grotesk", sans-serif;
    }

    .hero-content {
      position: relative;
      overflow: hidden;
      height: 3rem;
      width: 100%;
      margin-top: 8px;
    }

    .hero-content h1 {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      margin: 0;
      padding: 0 1rem;
      white-space: nowrap;
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.45rem;
      font-weight: 800;
      line-height: 3rem;
      letter-spacing: -0.02em;
      color: #38bdf8;
      text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
      opacity: 0;
      transform: translateX(100%);
      transition: transform 1s ease, opacity 1s ease;
    }

    .hero-content h1.active {
      transform: translateX(0);
      opacity: 1;
    }

    .hero-content h1.exit {
      transform: translateX(-150%);
      opacity: 0;
    }

    .card1 {
      display: flex;
      width: 100%;
      gap: 1.1rem;
    }

    .card {
      flex: 1 1 220px;
      min-width: 0;
      padding: 2rem;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 0 18px 30px rgba(12, 22, 19, 0.12);
      position: relative;
      overflow: hidden;
      text-align: center;
    }

    .card::before {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }

    .card1 .card h3 {
      margin: 0 0 1rem;
      color: var(--text);
      font-family: "Space Grotesk", sans-serif;
    }

    .card1 .btn {
      position: relative;
      z-index: 1;
      display: block;
      width: 100%;
      max-width: 200px;
      margin: 0 auto;
      padding: 1.2rem 2.5rem;
      border-radius: 12px;
      background: linear-gradient(135deg, #2563eb 0%, #0369a1 100%);
      color: #fff;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-size: 1.1rem;
      font-weight: 700;
      overflow: hidden;
      transition: transform 0.4s ease, background 0.4s ease;
    }

    .card1 .btn::before {
      content: "";
      position: absolute;
      inset: 0;
      left: -100%;
      background: rgba(255, 255, 255, 0.3);
      transition: left 0.4s ease;
      z-index: -1;
    }

    .card1 .btn:hover::before,
    .card1 .btn:focus-visible::before {
      left: 0;
    }

    .card1 .btn:hover,
    .card1 .btn:focus-visible {
      transform: translateY(-4px) scale(1.05);
      background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
      outline: none;
    }

    .hero-stat-strip {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .hero-stat {
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.08);
    }

    .hero-stat strong,
    .contact-link-card strong,
    .marketing-card h3 {
      display: block;
      margin-bottom: 6px;
      font-family: "Space Grotesk", sans-serif;
    }

    .hero-stat p,
    .marketing-card p,
    .contact-link-card p {
      margin: 0;
    }

    .marketing-panel {
      grid-column: span 12;
    }

    .marketing-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      margin-top: 18px;
    }

    .marketing-card,
    .contact-link-card {
      display: grid;
      gap: 12px;
      padding: 20px;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.94));
    }

    .marketing-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(37, 99, 235, 0.12);
      color: var(--brand-deep);
      font-family: "Space Grotesk", sans-serif;
      font-weight: 700;
    }

    .marketing-card .primary-btn,
    .contact-link-card .primary-btn {
      width: fit-content;
      text-decoration: none;
    }

    .contact-panel {
      grid-column: span 4;
    }

    .contact-stack {
      display: grid;
      gap: 14px;
      margin-top: 16px;
    }

    .contact-link-card {
      text-decoration: none;
      color: inherit;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .contact-link-card:hover,
    .contact-link-card:focus-visible {
      transform: translateY(-2px);
      box-shadow: 0 18px 36px rgba(23, 33, 28, 0.1);
      outline: none;
    }

    .contact-link-card span {
      font-size: 0.86rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--brand-deep);
    }

    .request-panel-copy {
      max-width: 520px;
    }

    .site-nav-list a.is-active {
      background: rgba(255, 255, 255, 0.18);
      color: #ffffff;
    }

    .dashboard-panel {
      display: none;
    }

    .dashboard-panel.active-dashboard {
      display: block;
      grid-column: 1 / -1 !important;
      animation: dashboardFade 0.24s ease;
    }

    @keyframes dashboardFade {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .home-dashboard {
      grid-column: 1 / -1;
      display: grid;
      gap: 28px;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .home-dashboard:not(.active-dashboard) {
      display: none;
    }

    .home-hero-shell {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 24px;
      padding: 24px;
      border-radius: var(--radius);
      background:
        linear-gradient(140deg, rgba(37, 99, 235, 0.95), rgba(0, 33, 71, 0.94)),
        url("ims/pexels-cottonbro-4606402.jpg") center/cover;
      color: #f8fafc;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .home-dashboard-block {
      padding: 24px;
      margin: 4px 0;
      border-radius: var(--radius);
      background: var(--card);
      border: 1px solid rgba(255, 255, 255, 0.65);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .marketing-panel,
    .contact-panel,
    .wide-panel,
    .profile-dashboard,
    #chatPanel,
    #notificationsPanel {
      margin: 6px 0;
    }

    .home-dashboard .marketing-grid {
      margin-top: 18px;
    }

    .home-hero-shell .eyebrow,
    .home-hero-shell .hero-copy p,
    .home-hero-shell .auth-card p {
      color: rgba(248, 250, 252, 0.88);
    }

    .home-hero-shell .hero-copy h2,
    .home-hero-shell .auth-card h3,
    .home-hero-shell .profile-mini strong {
      color: #f8fafc;
    }

    .booking-dashboard {
      grid-column: 1 / -1;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      overflow: visible;
    }

    .booking-map-shell {
      position: relative;
      height: calc(100vh - 210px);
      min-height: 620px;
      overflow: hidden;
      border-radius: 28px;
      background: #dfe7ef;
      box-shadow: 0 28px 70px rgba(23, 33, 28, 0.18);
    }

    .booking-map-surface {
      position: absolute;
      inset: 0;
      min-height: 100%;
      margin: 0;
      border: 0;
      border-radius: 0;
      background:
        radial-gradient(circle at 74% 28%, rgba(37, 99, 235, 0.2) 0 8px, transparent 9px),
        linear-gradient(32deg, transparent 43%, rgba(255, 255, 255, 0.72) 44% 48%, transparent 49%),
        linear-gradient(146deg, transparent 36%, rgba(255, 255, 255, 0.56) 37% 41%, transparent 42%),
        #e6edf5;
    }

    .booking-map-shell::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(16, 24, 32, 0.08), rgba(16, 24, 32, 0.2));
      pointer-events: none;
      z-index: 1;
    }

    .choosetrip-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 2;
      max-height: min(64vh, 760px);
      overflow-y: auto;
      background: #ffffff;
      border-top-left-radius: 28px;
      border-top-right-radius: 28px;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
      padding: 24px 18px 120px;
      scroll-behavior: smooth;
      transform: translateY(0);
      transition: max-height 0.35s ease, bottom 0.35s ease, padding-bottom 0.35s ease, transform 0.35s ease, border-radius 0.35s ease;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .choosetrip-overlay::-webkit-scrollbar {
      display: none;
    }

    .where-to-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .where-to-header h2,
    .booking-subheading {
      margin: 0;
      font-family: "Space Grotesk", sans-serif;
    }

    .booking-subheading {
      margin-top: 18px;
      margin-bottom: 12px;
      font-size: 1.2rem;
    }

    .booking-status-pill {
      background: #eff6ff;
      color: #2563eb;
    }

    #requestPanel .request-form-toggle {
      display: none !important;
    }

    #requestPanel .request-mobile-shell {
      display: block !important;
      margin-top: 0;
    }

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

    .booking-shell label {
      display: block;
      margin-bottom: 6px;
      font-weight: 700;
      color: #334155;
    }

    .booking-shell input,
    .booking-shell textarea,
    .booking-shell select {
      border-radius: 14px;
      border: 1px solid #d8dee8;
      background: #f8fafc;
      padding: 14px 16px;
    }

    .clone-quote-card {
      margin-top: 4px;
      gap: 12px;
    }

    .clone-quote-card > div {
      border-radius: 12px;
      background: #f5f7fa;
      border: 1px solid #e3e8ef;
    }

    .clonecab-vehicle-grid {
      display: grid;
      gap: 12px;
    }

    #requestPanel .vehicle-card {
      display: flex;
      align-items: center;
      gap: 12px;
      border: 2px solid transparent;
      border-radius: 10px;
      background: #f5f7fa;
      box-shadow: none;
      padding: 12px 18px;
    }

    #requestPanel .vehicle-card.selected {
      background: #dbeafe;
      border-color: #2563eb;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    }

    #requestPanel .vehicle-card:disabled {
      opacity: 0.56;
      cursor: not-allowed;
    }

    #requestPanel .vehicle-card-main {
      flex: 1;
      min-width: 0;
    }

    #requestPanel .vehicle-visual {
      width: 78px;
      min-width: 78px;
      height: 54px;
      border-radius: 12px;
      background: #ffffff;
      border: 1px solid #e3e8ef;
    }

    #requestPanel .vehicle-name {
      font-size: 1.05rem;
    }

    #requestPanel .vehicle-card .fare {
      margin-left: auto;
      white-space: nowrap;
      color: #334155;
    }

    .booking-extra-grid {
      display: grid;
      grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }

    .booking-card {
      padding: 14px;
      border-radius: 14px;
      background: #f8fafc;
      border: 1px solid #e3e8ef;
    }

    .booking-card label {
      margin-bottom: 8px;
    }

    .selected-trip-card {
      display: grid;
      gap: 10px;
      padding: 14px 16px;
      border-radius: 16px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
    }

    .selected-trip-label {
      margin: 0;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #475569;
    }

    .selected-trip-main {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .selected-trip-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .selected-trip-copy strong,
    .selected-trip-copy span {
      display: block;
    }

    .selected-trip-copy span {
      color: #475569;
      font-weight: 600;
    }

    .booking-route-meta {
      display: grid;
      gap: 10px;
      margin-top: 12px;
      padding: 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(221, 228, 237, 0.96);
    }

    .booking-route-meta p {
      margin: 0;
    }

    .booking-route-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

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

    .booking-when-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .booking-footer-fixed {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 3;
      padding: 14px 18px 18px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94) 38%, #ffffff 100%);
    }

    .teleka-book-button {
      width: min(460px, 100%);
      margin: 0 auto;
    }

    .teleka-book-button button {
      width: 100%;
      min-height: 54px;
      border: 0;
      border-radius: 59px;
      background: #2563eb;
      color: #ffffff;
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .teleka-book-button button:disabled {
      background: #475465;
      cursor: not-allowed;
    }

    .booking-dashboard .chip-row {
      margin-top: 16px;
    }

    .booking-dashboard .route-steps {
      margin-top: 0;
    }

    .booking-dashboard[data-sheet-state="estimate"] .booking-map-shell {
      --stacked-map-height: clamp(250px, 40vh, 360px);
    }

    .booking-dashboard[data-sheet-state="estimate"] .booking-map-surface {
      inset: 0 0 auto 0;
      height: var(--stacked-map-height);
      min-height: var(--stacked-map-height);
    }

    .booking-dashboard[data-sheet-state="estimate"] .booking-map-shell::after {
      inset: 0 0 auto 0;
      height: var(--stacked-map-height);
    }

    .booking-dashboard[data-sheet-state="estimate"] .choosetrip-overlay {
      top: calc(var(--stacked-map-height) - 10px);
      bottom: 0;
      max-height: none;
      padding-bottom: 126px;
      transform: translateY(0);
      border-top-left-radius: 28px;
      border-top-right-radius: 28px;
    }

    .booking-dashboard[data-sheet-state="vehicle"] .choosetrip-overlay {
      max-height: min(78vh, 820px);
      padding-bottom: 126px;
      transform: translateY(0);
    }

    .booking-dashboard[data-sheet-state="estimate"] .booking-input-stack,
    .booking-dashboard[data-sheet-state="estimate"] .selected-trip-card,
    .booking-dashboard[data-sheet-state="estimate"] .booking-extra-grid,
    .booking-dashboard[data-sheet-state="estimate"] .chip-row,
    .booking-dashboard[data-sheet-state="estimate"] .booking-route-meta {
      display: none;
    }

    .booking-dashboard[data-sheet-state="estimate"] .booking-subheading,
    .booking-dashboard[data-sheet-state="estimate"] .clonecab-vehicle-grid,
    .booking-dashboard[data-sheet-state="estimate"] #selectedVehicleHint {
      display: none;
    }

    .booking-dashboard[data-sheet-state="estimate"] .quote-card {
      order: 9;
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      margin-top: 8px;
      position: sticky;
      bottom: 150px;
      z-index: 5;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 20%);
    }

    .booking-dashboard[data-sheet-state="estimate"] .quote-card > :not(:last-child) {
      display: none;
    }

    .booking-dashboard[data-sheet-state="estimate"] .quote-card > :last-child {
      display: grid;
      gap: 4px;
      justify-items: start;
      padding: 14px 16px;
      margin-bottom: 0;
    }

    .booking-dashboard[data-sheet-state="estimate"] .booking-when-grid {
      order: 10;
      position: sticky;
      bottom: 18px;
      z-index: 4;
      margin-top: 16px;
      padding-top: 12px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 26%);
    }

    .booking-dashboard[data-dashboard-mode="tracking"] .booking-request-content,
    .booking-dashboard[data-dashboard-mode="tracking"] .booking-footer-fixed {
      display: none;
    }

    .booking-dashboard[data-dashboard-mode="tracking"] .choosetrip-overlay {
      left: 0;
      right: 0;
      bottom: 0;
      max-width: none;
      max-height: min(32vh, 320px);
      border-top-left-radius: 28px;
      border-top-right-radius: 28px;
      padding: 18px 18px 22px;
      transform: translateY(0);
    }

    .booking-dashboard[data-dashboard-mode="tracking"] .booking-route-meta {
      margin-top: 0;
      min-height: 0;
      align-content: start;
    }

    .booking-dashboard[data-dashboard-mode="tracking"] .where-to-header {
      margin-bottom: 10px;
    }

    .profile-dashboard {
      grid-column: 1 / -1;
    }

    .profile-grid-shell {
      display: grid;
      grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
      gap: 20px;
    }

    .profile-overview-card,
    .profile-detail-card {
      padding: 22px;
      border-radius: 24px;
      background: var(--card);
      border: 1px solid rgba(255, 255, 255, 0.65);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .profile-overview-card {
      display: grid;
      gap: 14px;
      align-content: start;
      background:
        linear-gradient(160deg, rgba(37, 99, 235, 0.95), rgba(0, 33, 71, 0.92)),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.24), transparent 34%);
      color: #f8fafc;
    }

    .profile-overview-card .eyebrow,
    .profile-overview-card p {
      color: rgba(248, 250, 252, 0.84);
    }

    .profile-hero {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .profile-hero img {
      width: 72px;
      height: 72px;
      border-radius: 22px;
      object-fit: cover;
      background: rgba(255, 255, 255, 0.14);
    }

    .profile-pill-grid {
      display: grid;
      gap: 10px;
    }

    .profile-pill-card {
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .profile-pill-card p,
    .profile-pill-card strong {
      margin: 0;
      display: block;
    }

    .profile-detail-grid {
      display: grid;
      gap: 18px;
    }

    .profile-section-card {
      padding: 18px;
      border-radius: 20px;
      background: var(--card-strong);
      border: 1px solid var(--line);
      display: grid;
      gap: 14px;
    }

    .profile-section-card h3,
    .profile-section-card p {
      margin: 0;
    }

    .profile-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .profile-field {
      display: grid;
      gap: 8px;
    }

    .profile-field input,
    .profile-field select {
      width: 100%;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.78);
      border-radius: 16px;
      padding: 14px 16px;
      color: var(--text);
    }

    .profile-wallet-row,
    .profile-actions-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .profile-wallet-balance {
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.8rem;
      margin: 0;
    }

    .danger-btn {
      border: 0;
      border-radius: 999px;
      padding: 12px 18px;
      font-weight: 700;
      background: rgba(180, 35, 24, 0.12);
      color: var(--danger);
    }

    @media (max-width: 1100px) {
      .landing-panel,
      .marketing-panel,
      .contact-panel,
      .home-dashboard {
        grid-column: 1 / -1;
      }

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

      .booking-extra-grid {
        grid-template-columns: 1fr;
      }

      .booking-when-grid {
        grid-template-columns: 1fr;
      }

      .profile-grid-shell,
      .profile-form-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .site-header--showcase {
        align-items: stretch;
      }

      .summary-cards,
      .card1 {
        flex-direction: column;
      }

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

      .marketing-grid {
        grid-template-columns: 1fr;
      }

      .booking-map-shell {
        height: calc(100vh - 172px);
        min-height: 560px;
        border-radius: 22px;
      }

      .booking-dashboard[data-sheet-state="estimate"] .booking-map-shell {
        --stacked-map-height: clamp(220px, 34vh, 280px);
      }

      .choosetrip-overlay {
        padding: 18px 14px 112px;
        max-height: min(72vh, 760px);
      }

      .booking-dashboard[data-sheet-state="vehicle"] .choosetrip-overlay {
        max-height: min(84vh, 820px);
      }

      .where-to-header {
        grid-template-columns: 1fr;
        display: grid;
      }

      .nav-book-btn {
        width: 100%;
        justify-content: center;
      }

      .booking-dashboard[data-dashboard-mode="tracking"] .choosetrip-overlay {
        left: 0;
        right: 0;
        max-width: none;
        bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
      }

      .site-nav-user {
        margin-left: 0;
      }

      .site-auth-trigger,
      .site-auth-menu .ghost-btn {
        width: 100%;
      }

      .site-auth-menu {
        left: 0;
        right: 0;
      }
    }

/* Customer rider home */
body {
  background: #f4f7fb;
}

.site-header--showcase {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.97);
  box-shadow: 0 10px 30px rgba(15, 42, 86, 0.09);
  backdrop-filter: blur(18px);
}

.site-header--showcase .site-brand img {
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #002147;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(0, 33, 71, 0.2);
}

.site-header--showcase .site-nav-list a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #334155;
  font-weight: 700;
}

.site-header--showcase .site-nav-list a:hover,
.site-header--showcase .site-nav-list a:focus-visible {
  color: #002147;
  background: #eff6ff;
}

.site-header--showcase .site-nav-list a.is-active {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.2);
}

.site-header--showcase .site-auth-trigger {
  background: #2563eb;
  color: #ffffff;
}

.page-header {
  align-items: end;
  margin: 18px 0 20px;
}

.home-dashboard-active .page-header {
  display: none;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.05em;
}

.rider-home {
  color: #0f172a;
  scroll-margin-top: 112px;
}

.home-dashboard.active-dashboard {
  display: grid;
  gap: 40px;
}

.rider-home button,
.rider-home a {
  -webkit-tap-highlight-color: transparent;
}

.rider-promo-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 16px;
  color: #f8fafc;
  background: linear-gradient(100deg, #002147, #2563eb 58%, #0369a1);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.rider-promo-strip p {
  flex: 1;
  margin: 0;
}

.rider-promo-strip a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.rider-promo-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.rider-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
}

.rider-booking-hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 530px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border-radius: 32px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 33, 71, 0.96) 0%, rgba(15, 55, 100, 0.83) 49%, rgba(15, 55, 100, 0.2) 100%),
    url("ims/pexels-cottonbro-4606402.jpg") center 45% / cover;
  box-shadow: 0 26px 60px rgba(15, 42, 86, 0.2);
}

.rider-booking-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -140px auto;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.22);
  filter: blur(4px);
}

.rider-hero-copy,
.rider-search-card,
.rider-trust-row {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
}

.rider-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.rider-live-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #74eb9a;
  box-shadow: 0 0 0 5px rgba(116, 235, 154, 0.14);
}

.rider-greeting {
  margin: 28px 0 4px;
  color: #7dd3fc;
  font-weight: 800;
}

.rider-hero-copy h2 {
  max-width: 580px;
  margin: 0;
  font: 700 clamp(2.45rem, 5vw, 5rem)/0.98 "Space Grotesk", sans-serif;
  letter-spacing: -0.065em;
}

.rider-hero-copy > p:last-child {
  max-width: 520px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.rider-search-card {
  padding: 10px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.rider-location-row,
.rider-destination-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.rider-location-row {
  padding: 8px 10px 12px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  background: transparent;
  text-align: left;
}

.rider-location-row small,
.rider-location-row strong {
  display: block;
}

.rider-location-row small {
  color: #64748b;
}

.rider-location-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.rider-location-dot--pickup {
  border: 3px solid #2563eb;
  box-shadow: 0 0 0 5px #dbeafe;
}

.rider-location-dot--destination {
  border-radius: 3px;
  background: #0284c7;
  box-shadow: 0 0 0 5px #e0f2fe;
}

.rider-chevron {
  color: #64748b;
  font-size: 1.6rem;
}

.rider-destination-field {
  padding: 10px;
}

.rider-destination-field input {
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font-size: 1.04rem;
  font-weight: 700;
}

.rider-destination-field button {
  min-width: 50px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 800;
}

.rider-quick-places {
  display: flex;
  gap: 8px;
  padding: 4px 6px 2px;
  overflow-x: auto;
}

.rider-quick-places button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
}

.rider-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  font-weight: 700;
}

.rider-account-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 20px 50px rgba(15, 42, 86, 0.1);
}

.rider-account-card.hidden {
  display: grid !important;
}

.rider-account-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rider-account-head h3,
.rider-account-head small {
  display: block;
  margin: 0;
}

.rider-account-head small {
  color: #64748b;
}

.rider-account-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: #2563eb;
  font: 800 1.3rem "Space Grotesk", sans-serif;
}

.rider-account-card > p {
  margin: 0;
}

.rider-account-card .profile-mini {
  display: flex;
  padding: 14px;
  border-radius: 20px;
  background: #eff6ff;
}

.rider-account-card .profile-mini.hidden {
  display: none;
}

.rider-account-card .profile-mini img {
  width: 52px;
  height: 52px;
}

.rider-account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.rider-account-stats div {
  min-width: 0;
  text-align: center;
}

.rider-account-stats strong,
.rider-account-stats span {
  display: block;
}

.rider-account-stats strong {
  font: 800 1.22rem "Space Grotesk", sans-serif;
}

.rider-account-stats span {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.7rem;
}

.rider-account-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: #002147;
  font-weight: 800;
}

.rider-market-section,
.rider-activity-card,
.rider-offers-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 42, 86, 0.07);
}

.rider-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.rider-section-head h2 {
  margin: 0;
  font: 700 clamp(1.45rem, 2.8vw, 2.25rem)/1.05 "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.rider-section-head a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.rider-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.rider-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 280px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  color: #0f172a;
  background: linear-gradient(150deg, #f8fafc, #eef2f7);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rider-service-card:hover,
.rider-service-card:focus-visible {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.12);
  outline: none;
}

.rider-service-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.55;
  margin: 8px 0 14px;
  overflow: hidden;
  border-radius: 16px;
}

.rider-service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 14px 12px rgba(15, 23, 42, 0.18));
}

.rider-service-badge {
  position: static;
  align-self: flex-start;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 0.68rem;
  font-weight: 800;
}

.rider-service-badge--dark {
  color: #ffffff;
  background: #002147;
}

.rider-service-badge--gold {
  color: #6d28d9;
  background: #ede9fe;
}

.rider-service-badge--blue {
  color: #0369a1;
  background: #e0f2fe;
}

.rider-service-badge--comfort {
  color: #1e40af;
  background: #dbeafe;
}

.rider-service-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
  margin-top: auto;
}

.rider-service-copy {
  display: grid;
  gap: 3px;
}

.rider-service-copy strong {
  font: 800 1.05rem "Space Grotesk", sans-serif;
}

.rider-service-copy small {
  color: #64748b;
}

.rider-service-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  background: #2563eb;
}

.rider-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 28px;
}

.rider-section-head--compact {
  align-items: center;
}

.rider-section-head--compact h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
}

.rider-active-trip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #eff6ff;
}

.rider-active-trip-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #ffffff;
  background: #2563eb;
  font-size: 1.5rem;
}

.rider-active-trip strong,
.rider-active-trip p {
  display: block;
  margin: 0;
}

.rider-active-trip p {
  margin-top: 3px;
  color: #64748b;
}

.rider-active-trip button {
  padding: 10px 13px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: #002147;
  font-weight: 800;
}

.rider-recent-wrap {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rider-recent-wrap > span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rider-recent-places {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.rider-recent-places button {
  padding: 10px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  font-weight: 700;
}

.rider-offer-list {
  display: grid;
  gap: 10px;
}

.rider-offer-list button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  color: #334155;
  background: #f8fafc;
  text-align: left;
}

.rider-offer-list strong,
.rider-offer-list small {
  display: block;
}

.rider-offer-list small {
  margin-top: 2px;
  color: #64748b;
}

.rider-offer-list b {
  color: #2563eb;
}

.rider-offer-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 900;
}

.rider-offer-icon--orange {
  color: #0369a1;
  background: #e0f2fe;
}

.rider-offer-icon--green {
  color: #4338ca;
  background: #eef2ff;
}

@media (max-width: 1100px) {
  .home-dashboard.active-dashboard {
    gap: 32px;
  }

  .rider-home-hero,
  .rider-home-grid {
    grid-template-columns: 1fr;
  }

  .rider-account-card {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    align-items: center;
  }

  .rider-account-stats,
  .rider-account-action {
    grid-column: 1 / -1;
  }

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

@media (min-width: 1101px) and (max-width: 1199px) {
  .rider-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-dashboard.active-dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-width: 0;
    width: 100%;
  }

  .app-shell {
    width: min(100% - 20px, 1400px);
    padding-top: 10px;
  }

  .site-header--showcase {
    top: 8px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .site-header--showcase .site-brand img {
    width: 44px;
    height: 44px;
    padding: 4px;
  }

  .site-header--showcase .site-nav-toggle {
    display: inline-flex;
    min-width: 82px;
    min-height: 42px;
    color: #ffffff;
    background: #2563eb;
    border: 0;
  }

  .site-header--showcase .site-nav {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: auto;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 42, 86, 0.16);
  }

  .site-header--showcase .site-nav-list {
    align-items: stretch;
    gap: 4px;
  }

  .site-header--showcase .site-nav-list[hidden],
  .site-header--showcase .mobile-nav-login[hidden] {
    display: none;
  }

  .site-header--showcase .site-nav-list li,
  .site-header--showcase .site-nav-list a {
    width: 100%;
  }

  .site-header--showcase .site-nav-list a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 12px 14px;
    color: #334155;
    background: transparent;
    font-size: 0.98rem;
  }

  .site-header--showcase .site-nav-list a:hover,
  .site-header--showcase .site-nav-list a:focus-visible {
    color: #1d4ed8;
    background: #eff6ff;
  }

  .site-header--showcase .site-nav-list a.is-active {
    color: #ffffff;
    background: #2563eb;
  }

  .site-header--showcase .site-nav-user {
    margin: 4px 0 0;
  }

  .site-header--showcase .site-auth-trigger {
    width: 100%;
    border-radius: 10px;
  }

  .site-header--showcase .site-auth-menu {
    top: calc(100% + 6px);
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 42, 86, 0.16);
  }

  .site-header--showcase .site-auth-menu-btn,
  .site-header--showcase .site-auth-menu .ghost-btn {
    color: #334155;
    background: #eff6ff;
    border-color: #e2e8f0;
  }

  .rider-account-card:not(.is-signed-in) .home-google-login-slot {
    display: none;
  }

  .mobile-nav-login {
    display: grid;
    gap: 16px;
    padding: 6px;
    color: #334155;
  }

  .mobile-nav-login-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 800;
  }

  .mobile-nav-login-copy {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-nav-login-copy small,
  .mobile-nav-login-copy strong {
    display: block;
  }

  .mobile-nav-login-copy small {
    margin-bottom: 2px;
    color: #64748b;
  }

  .mobile-nav-login-copy strong {
    color: #0f172a;
    font: 800 1.1rem "Space Grotesk", sans-serif;
  }

  .mobile-nav-login-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #ffffff;
    background: #2563eb;
    font: 800 1.2rem "Space Grotesk", sans-serif;
  }

  .mobile-nav-login > p {
    margin: -4px 0 0;
    color: #64748b;
  }

  .mobile-google-login-slot {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
  }

  .mobile-google-login-slot #googleLoginMount {
    display: block;
    max-width: 100%;
  }

  .page-header {
    margin: 16px 4px;
  }

  .page-header .eyebrow {
    margin-bottom: 4px;
  }

  .rider-promo-strip {
    align-items: flex-start;
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  .rider-promo-strip a {
    display: none;
  }

  .rider-booking-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: min(540px, calc(100svh - 104px));
    padding: 28px 18px;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(0, 33, 71, 0.95) 0%, rgba(15, 55, 100, 0.78) 64%, rgba(15, 55, 100, 0.52) 100%),
      url("ims/pexels-cottonbro-4606402.jpg") 56% center / cover;
  }

  .rider-hero-copy h2 {
    font-size: clamp(2.45rem, 12vw, 3.55rem);
  }

  .rider-hero-copy > p:last-child {
    display: none;
  }

  .rider-search-card {
    margin-top: 4px;
  }

  .rider-hero-copy,
  .rider-search-card,
  .rider-trust-row {
    min-width: 0;
    max-width: 100%;
  }

  .rider-location-row,
  .rider-destination-field {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .rider-trust-row {
    gap: 9px 14px;
  }

  .rider-account-card,
  .rider-market-section,
  .rider-activity-card,
  .rider-offers-card {
    min-width: 0;
    max-width: 100%;
    padding: 20px;
    border-radius: 24px;
  }

  .rider-account-card {
    grid-template-columns: 1fr;
  }

  .rider-account-stats,
  .rider-account-action {
    grid-column: auto;
  }

  .rider-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }

  .rider-home-hero,
  .rider-home-grid {
    gap: 24px;
  }

  .rider-section-head > a {
    font-size: 0.82rem;
    white-space: normal;
  }

  .rider-service-grid {
    display: flex;
    min-width: 0;
    max-width: 100%;
    gap: 12px;
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .rider-service-card {
    flex: 0 0 min(78vw, 280px);
    min-height: 290px;
    scroll-snap-align: start;
  }

  .rider-active-trip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rider-active-trip button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rider-quick-places {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 5px;
  }

  .rider-offer-list button {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .rider-active-trip > div,
  .rider-offer-list button > span:nth-child(2) {
    min-width: 0;
  }

  #requestPanel .request-mobile-shell,
  #requestPanel .request-form,
  #requestPanel .request-form > *,
  #requestPanel .booking-when-grid,
  #requestPanel .booking-extra-grid,
  #requestPanel .booking-card,
  #requestPanel .clone-quote-card,
  #requestPanel .clonecab-vehicle-grid,
  #requestPanel .vehicle-card {
    min-width: 0;
    max-width: 100%;
  }

  #requestPanel .request-mobile-shell,
  #requestPanel .vehicle-card {
    width: 100%;
  }

  #requestPanel .request-form input,
  #requestPanel .request-form select,
  #requestPanel .request-form textarea {
    min-width: 0;
    max-width: 100%;
  }

  #requestPanel .vehicle-card {
    padding: 10px clamp(10px, 3.5vw, 14px);
  }

  #requestPanel .vehicle-visual {
    width: clamp(64px, 20vw, 78px);
    min-width: clamp(64px, 20vw, 78px);
  }

  .ride-card-header,
  .ride-card-footer,
  .notification-item,
  .message-meta {
    min-width: 0;
    flex-wrap: wrap;
  }

  .ride-card .route,
  .notification-item p,
  .message-item p,
  .profile-mini p,
  .selected-trip-copy span,
  .booking-route-meta p,
  .rider-active-trip p,
  .rider-offer-list strong,
  .rider-offer-list small {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
