:root {
  --color-black: #000000;
  --color-zinc-900: #18181b;
  --color-zinc-800: #27272a;
  --color-zinc-500: #71717a;
  --color-white: #ffffff;
  --color-emerald: #10b981;
  --deep: #0a0b0f;
  --night: #10131a;
  --steel: #b6bcc7;
  --app-teal: #0b6f6b;
  --app-teal-dark: #085a57;
  --app-surface: #ffffff;
  --app-surface-soft: #f7fafb;
  --app-border: #dbe4ea;
  --app-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --app-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at 18% -10%, #262a34 0%, #141821 34%, #090b10 64%, #050608 100%);
  color: #f8fafc;
  min-height: 100vh;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

/* On light pages we want a true light background, not the default gradient. */
body.light-surface {
  background:
    radial-gradient(1100px 360px at 14% -10%, rgba(11, 111, 107, 0.10), transparent 58%),
    radial-gradient(900px 320px at 100% -6%, rgba(16, 185, 129, 0.08), transparent 62%),
    #edf3f5;
  color: #0f172a;
}

.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.client-subnav {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(6, 8, 12, 0.20);
  backdrop-filter: blur(12px);
}
.client-subnav-links {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 10px;
}
.client-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.client-subnav-link:hover {
  border-color: rgba(255, 255, 255, 0.45);
}
.client-subnav-link.active {
  background: linear-gradient(120deg, #d6b36a 0%, #b98d3f 100%);
  border-color: transparent;
  color: #0a0b0f;
}

.light-surface .client-subnav {
  border-top: 1px solid #e2e8f0;
  background: #f8fafb;
  backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.light-surface .client-subnav-link {
  border-color: #e2e8f0;
  color: #475569;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
}
.light-surface .client-subnav-link:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #f1f5f9;
}
.light-surface .client-subnav-link.active {
  background: #0b6f6b;
  border-color: #0b6f6b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 111, 107, 0.25);
}

.client-bottom-nav,
.client-bottom-spacer {
  display: none;
}

.logout-label-short {
  display: none;
}

.pwa-install-btn {
  position: fixed;
  right: 12px;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  border: 1px solid rgba(11, 111, 107, 0.45);
  background: rgba(255, 255, 255, 0.98);
  color: #0b6f6b;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.pwa-install-btn:hover {
  background: #f0fdfa;
  border-color: rgba(11, 111, 107, 0.7);
}

.wizard-ready .js-hidden {
  display: none !important;
}

.hero-title {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 22px 60px rgba(5, 8, 18, 0.2);
}

.input-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  color: #ffffff;
  width: 100%;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-dark:focus {
  outline: none;
  border-color: rgba(52, 211, 153, 0.9);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.input-invalid {
  border-color: rgba(220, 38, 38, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.btn-gold {
  background: #0b6f6b;
  color: #ffffff;
  border: 1px solid #0b6f6b;
  border-radius: 10px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-gold:hover {
  background: #0a615d;
  border-color: #0a615d;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.table-dark {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}

.table-dark th,
.table-dark td {
  padding: 0.78rem 0.68rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.table-dark th {
  text-align: left;
  color: #64748b;
  font-weight: 600;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill {
  padding: 0.3rem 0.68rem;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  background: #ecf2f7;
  color: #334155;
  border: 1px solid #d9e4ed;
}

.card-shadow {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.avatar-circle-light {
  color: #0f172a;
  background: #f3f4f6;
  border-color: #cbd5e1;
}

.wizard-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 12, 0.95);
  backdrop-filter: blur(16px);
}

.light-surface .wizard-nav {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e8ecf0;
  backdrop-filter: blur(12px);
  box-shadow: 0 -1px 4px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  .wizard-nav {
    position: static;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 1rem 0 0;
  }
  .light-surface .wizard-nav {
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
  }
}

.wizard-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 72rem;
  margin: 0 auto;
}

.wizard-nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wizard-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  min-height: 44px;
}

.wizard-nav-btn:active {
  transform: scale(0.97);
}

.wizard-nav-back {
  background: transparent;
  border-color: #cbd5e1;
  color: #475569;
}
.wizard-nav-back:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.wizard-nav-next {
  background: #0b6f6b;
  color: #ffffff;
  border-color: #0b6f6b;
}
.wizard-nav-next:hover {
  background: #085a57;
}

.wizard-nav-quote {
  background: transparent;
  border-color: #cbd5e1;
  color: #475569;
}
.wizard-nav-quote:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.wizard-nav-pay {
  background: #0b6f6b;
  color: #ffffff;
  border-color: #0b6f6b;
  font-weight: 700;
}
.wizard-nav-pay:hover {
  background: #085a57;
}

.btn-muted {
  opacity: 0.6;
  pointer-events: none;
}

.wizard-card {
  background: linear-gradient(180deg, rgba(18, 19, 26, 0.95), rgba(12, 13, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.wizard-card-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.booking-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.booking-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.booking-subtitle {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
}

.booking-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #64748b;
}

.itinerary-block {
  margin-top: 12px;
}

.btn-dashed {
  margin-top: 12px;
  border: 1px dashed #d8e2ea;
  color: #475569;
  border-radius: 10px;
  padding: 10px 14px;
  background: #f8fafb;
  font-weight: 500;
  font-size: 0.88rem;
}

.roundtrip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: #f8fafb;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
  color: #334155;
  font-size: 0.88rem;
}

.date-panel {
  margin-top: 16px;
  background: #f8fafb;
  border: 1px solid #e2e8f0;
  padding: 16px;
  border-radius: 12px;
  color: #0f172a;
}

.date-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.date-panel .input-dark {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.date-panel .helper-note {
  color: #475569;
  margin-top: 8px;
}

.wizard-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.wizard-stepper-light {
  justify-content: center;
  margin-top: 0.5rem;
}

.wizard-card-light .wizard-step {
  color: #94a3b8;
  background: transparent;
  border-color: #e2e8f0;
  font-weight: 500;
  transition: all 0.2s ease;
}

.wizard-step.active {
  color: #0a0b0f;
  background: linear-gradient(120deg, #d6b36a 0%, #b98d3f 100%);
  border-color: transparent;
  font-weight: 600;
}

.wizard-card-light .wizard-step.active {
  color: #ffffff;
  background: #0b6f6b;
  border-color: #0b6f6b;
  font-weight: 600;
}

.wizard-card-light .wizard-step.completed {
  color: #0b6f6b;
  background: rgba(11, 111, 107, 0.06);
  border-color: rgba(11, 111, 107, 0.2);
}
.wizard-card-light .wizard-step.completed::before {
  content: '\2713 ';
}

.wizard-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.input-dark::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.wizard-card-light .input-dark {
  background: #ffffff;
  border: 1px solid #d7e0e7;
  color: #0f172a;
}

.wizard-card-light .input-dark::placeholder {
  color: #94a3b8;
}

.btn-outline {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.btn-outline:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.helper-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
}

.btn-teal {
  background: linear-gradient(135deg, var(--app-teal), var(--app-teal-dark));
  color: #ffffff;
  border-radius: 12px;
  padding: 0.72rem 1.35rem;
  font-weight: 700;
  border: 1px solid var(--app-teal);
  box-shadow: 0 12px 24px rgba(10, 111, 107, 0.20);
}

.btn-teal:disabled {
  opacity: 0.5;
  box-shadow: none;
}

.ride-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .ride-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ride-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.85rem;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.wizard-card-light .ride-card {
  border-color: #e2e8f0;
  background: #f8fafb;
}

.ride-card:hover {
  border-color: rgba(11, 111, 107, 0.4);
  background: #f8fdfb;
}

.ride-card.active {
  border-color: #0b6f6b;
  background: rgba(11, 111, 107, 0.05);
  box-shadow: 0 0 0 1px rgba(11, 111, 107, 0.15);
}

.ride-card-title {
  font-weight: 600;
  color: #0f172a;
}

.wizard-card-light .ride-card-title {
  color: #0f172a;
}

.ride-card-sub {
  font-size: 0.8rem;
  color: #64748b;
}

.wizard-card-light .ride-card-sub {
  color: #64748b;
}

.vehicle-select-fallback {
  display: block;
}

/* Only show card UX when the booking JS loaded (wizard-ready is set on <html>). */
.vehicle-cards {
  display: none;
}

.wizard-ready .vehicle-select-fallback {
  display: none;
}

.wizard-ready .vehicle-cards {
  display: grid;
}

.vehicle-cards {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .vehicle-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vehicle-card {
  text-align: center;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  position: relative;
  cursor: pointer;
}

.vehicle-card:hover {
  border-color: rgba(11, 111, 107, 0.5);
  background: #f8fdfb;
}

.vehicle-card.active {
  border-color: #0b6f6b;
  background: rgba(11, 111, 107, 0.04);
  box-shadow: 0 0 0 1px rgba(11, 111, 107, 0.15);
}

.vehicle-card.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.vehicle-card-img {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.vehicle-card-img img {
  max-height: 96px;
  max-width: 100%;
  object-fit: contain;
}

.vehicle-card-emoji {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #f4f7f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto;
}

.vehicle-card-name {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.vehicle-card-meta {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: #475569;
}

.vehicle-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  display: none;
}

.vehicle-card.is-disabled .vehicle-card-badge {
  display: inline-flex;
}

.pac-container {
  z-index: 9999 !important;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.wizard-card-light .text-white\/70,
.wizard-card-light .text-white\/60,
.wizard-card-light .text-white\/50 {
  color: #64748b !important;
}

.wizard-card-light label.text-sm.text-white\/70 {
  color: #334155 !important;
}

.wizard-card-light .text-red-200 {
  color: #b91c1c !important;
}

.wizard-card-light .bg-red-500\/20 {
  background: #fef2f2 !important;
}

.wizard-card-light .bg-white\/5 {
  background: #f8fafc !important;
}

.wizard-card-light .border-white\/30,
.wizard-card-light .border-white\/20 {
  border-color: #cbd5e1 !important;
}

.mdp-card {
  background: #ffffff;
  border: 1px solid #dbe4ea;
  border-radius: 24px;
  box-shadow: var(--app-shadow);
}

.mdp-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.mdp-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 18px 0;
}

.mdp-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .mdp-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mdp-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mdp-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.booking-disclosure {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
}

.booking-disclosure > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.booking-disclosure > summary::-webkit-details-marker {
  display: none;
}

.booking-disclosure > summary::after {
  content: '\203A';
  float: right;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.booking-disclosure[open] > summary::after {
  content: '\2039';
  transform: rotate(90deg);
}

.btn-ghost {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  color: #0f172a;
  background: #ffffff;
}

.btn-ghost:hover {
  border-color: #94a3b8;
}

.pickup-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pickup-input-row .input-dark {
  min-width: 0;
}

.pickup-input-row .btn-ghost {
  width: 100%;
  justify-content: center;
}

.roundtrip {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  header .max-w-6xl.mx-auto.px-4.py-4 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    min-height: 48px;
  }

  header nav.flex.items-center.gap-4 {
    gap: 6px !important;
  }

  .logout-link {
    padding: 0.34rem 0.62rem !important;
    border-radius: 9px !important;
    font-size: 0.76rem;
    line-height: 1.1;
    min-height: 32px;
  }

  .logout-link .logout-label-full {
    display: none;
  }

  .logout-label-short {
    display: inline;
  }

  body[data-role="client"] {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  /* Extra bottom space on booking page for wizard-nav + bottom-nav stack */
  body.client-book-page {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .client-subnav {
    display: none;
  }

  .client-bottom-nav {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
    padding: 6px;
  }

  .client-bottom-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    border-radius: 10px;
    text-decoration: none;
    color: #64748b;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .client-bottom-link .client-bottom-icon {
    font-size: 15px;
    line-height: 1;
  }

  .client-bottom-link .client-bottom-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .client-bottom-link.active {
    color: #0f766e;
    background: #e8f5f4;
    border-color: #b8d8d5;
  }

  .client-bottom-spacer {
    display: none !important;
    height: 0 !important;
  }

  .booking-section {
    padding: 10px;
    border-radius: 12px;
    box-shadow: none;
  }

  .booking-section .input-dark,
  .booking-section select.input-dark,
  .booking-section textarea.input-dark {
    font-size: 16px; /* iOS: prevent zoom + improve readability */
  }

  .date-panel {
    padding: 10px;
    border-radius: 12px;
  }

  .date-panel .input-dark {
    font-size: 16px; /* Avoid iOS zoom on focus */
  }

  .booking-label {
    font-size: 0.95rem;
    color: #334155;
  }

  .date-panel .helper-note {
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .roundtrip {
    font-size: 0.95rem;
  }

  /* Mobile UX: fixed bottom bar above the bottom nav. */
  .wizard-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    padding: 10px 12px;
    margin-top: 0;
    border-top: 1px solid #e8ecf0;
    border-radius: 14px 14px 0 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 -1px 4px rgba(15, 23, 42, 0.06);
  }

  .wizard-nav-inner {
    gap: 8px;
  }

  .wizard-nav-actions {
    flex: 1;
    justify-content: flex-end;
  }

  .wizard-nav-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .summary-panel {
    padding: 10px !important;
  }

  .mdp-grid {
    gap: 10px;
  }

  main.max-w-6xl {
    padding-top: 8px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .wizard-shell {
    margin-top: 2px;
    border-radius: 12px;
  }

  .wizard-card-light.wizard-shell {
    padding: 10px !important;
  }

  header a.text-2xl.font-bold.tracking-tight.text-teal-900 {
    font-size: 1.52rem !important;
    line-height: 1.05;
  }

  header .avatar-circle.avatar-circle-light {
    width: 28px;
    height: 28px;
    font-size: 0.74rem;
  }

  .wizard-card-light .hero-title {
    font-size: 1.05rem !important;
    line-height: 1.2;
  }

  .wizard-card-light .wizard-stepper {
    margin-top: 4px;
    gap: 4px;
  }

  .wizard-card-light .wizard-step {
    padding: 7px 6px;
    font-size: 0.74rem;
    justify-content: center;
    text-align: center;
  }

  .ride-cards {
    gap: 6px;
  }

  .ride-card {
    padding: 8px 6px;
    border-radius: 10px;
    box-shadow: none;
  }

  .ride-card-title {
    font-size: 0.76rem;
    line-height: 1.1;
    text-align: center;
  }

  .ride-card-sub {
    display: none;
  }
}

@media (min-width: 768px) {
  .client-bottom-nav,
  .client-bottom-spacer {
    display: none !important;
  }

  .pwa-install-btn {
    bottom: 20px;
  }

  .pickup-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pickup-input-row .btn-ghost {
    width: 100%;
  }

  .roundtrip {
    width: auto;
    justify-content: flex-start;
  }
}

.advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  font-size: 13px;
}

.advanced-toggle:hover {
  border-color: #94a3b8;
}

.booking-chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe4ea;
  background: rgba(255, 255, 255, 0.75);
  color: #516173;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.detail-mini-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafb;
}

.detail-mini-card strong {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-mini-card span {
  color: #64748b;
  font-size: 0.77rem;
}

.date-subtitle {
  margin-top: 2px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.78rem;
}

.quick-toggle {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.quick-toggle:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.quick-toggle.is-active {
  border-color: #0b6f6b;
  background: rgba(11, 111, 107, 0.06);
  color: #0b6f6b;
}

.compact-panel {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafb;
  padding: 12px;
}

.compact-panel-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

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

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

.compact-counter-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.advanced-section {
  margin-top: 14px;
  background: #f8fafb;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.option-cards {
  display: grid;
  gap: 10px;
}

@media (min-width: 768px) {
  .option-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.option-card {
  position: relative;
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px 12px 11px 42px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option-card input[type='checkbox'] {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  accent-color: #0b6f6b;
}

.option-card-title {
  display: block;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.option-card-meta {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 4px;
  line-height: 1.3;
}

.option-card:has(input[type='checkbox']:checked) {
  border-color: rgba(11, 111, 107, 0.65);
  background: #f0f9f8;
  box-shadow: 0 8px 20px rgba(11, 111, 107, 0.08);
}

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

.summary-compact-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.6);
  background: rgba(255, 255, 255, 0.55);
}

.summary-compact-grid > div strong {
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.summary-compact-wide {
  grid-column: 1 / -1;
}

.js .advanced-section {
  display: none;
}

.js .advanced-section.is-open {
  display: block;
}

.light-surface .booking-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.light-surface .booking-label {
  color: #475569;
}

.light-surface .btn-outline {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #ffffff;
}

.light-surface .btn-outline:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.light-surface .glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

/* Quote page inspired accents on client booking only. */
.client-book-page .booking-section {
  border-radius: 16px;
  border-color: #e2e8f0;
}

.client-book-page .summary-panel {
  background: #f5faf9;
  border-color: rgba(11, 111, 107, 0.18);
}

.client-book-page .fav-route {
  border-color: rgba(148, 163, 184, 0.45) !important;
  background: #ffffff;
  color: #0f172a;
}

.client-book-page .fav-route:hover {
  border-color: rgba(52, 211, 153, 0.9) !important;
  background: rgba(52, 211, 153, 0.07);
  color: #0b6f6b;
}

.light-surface .input-dark {
  background: #f8fafb;
  color: #0f172a;
  border: 1px solid #d8e2ea;
}

.light-surface .input-dark::placeholder {
  color: #94a3b8;
}

.light-surface .input-dark:focus {
  outline: none;
  background: #ffffff;
  border-color: #0b6f6b;
  box-shadow: 0 0 0 3px rgba(11, 111, 107, 0.10);
}

.light-surface .text-white\/70,
.light-surface .text-white\/60,
.light-surface .text-white\/50 {
  color: #64748b !important;
}

.light-surface .text-white\/90 {
  color: #0f172a !important;
}

.light-surface .text-white\/80 {
  color: #334155 !important;
}

.light-surface .text-white\/70 {
  color: #475569 !important;
}

.light-surface .text-white\/50 {
  color: #94a3b8 !important;
}

.light-surface .border-white\/10 {
  border-color: #e2e8f0 !important;
}

.light-surface .border-white\/20,
.light-surface .border-white\/30 {
  border-color: #cbd5e1 !important;
}

.light-surface .bg-white\/5,
.light-surface .bg-white\/10 {
  background: #f8fafc !important;
}

.light-surface .bg-red-500\/20 {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.light-surface .bg-green-500\/20 {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}

.light-surface .text-red-200 {
  color: #b91c1c !important;
}

.light-surface .text-green-200 {
  color: #166534 !important;
}

.light-surface .text-amber-100,
.light-surface .text-amber-200 {
  color: #92400e !important;
}

.light-surface .table-dark th,
.light-surface .table-dark td {
  border-bottom-color: #e2e8f0;
  color: #475569;
}

.light-surface .table-dark tbody tr {
  transition: background 0.18s ease;
}

.light-surface .table-dark tbody tr:hover {
  background: #f8fafc;
}

.light-surface .table-dark td a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.light-surface .table-dark td a:hover {
  color: #115e59;
  text-decoration: underline;
}

.light-surface .status-pill {
  background: #eaf0f5;
  color: #334155;
  border: 1px solid #d3dee8;
  font-weight: 600;
}

/* Status pill semantic variants */
.light-surface .status-pill-success {
  background: #ecfdf5; color: #065f46; border-color: #a7f3d0;
}
.light-surface .status-pill-warning {
  background: #fffbeb; color: #92400e; border-color: #fcd34d;
}
.light-surface .status-pill-danger {
  background: #fef2f2; color: #991b1b; border-color: #fecaca;
}
.light-surface .status-pill-active {
  background: #eff6ff; color: #1e40af; border-color: #93c5fd;
  animation: pulse-soft 2s infinite;
}
.light-surface .status-pill-info {
  background: #f0f9ff; color: #0c4a6e; border-color: #bae6fd;
}
.light-surface .status-pill-neutral {
  background: #f1f5f9; color: #475569; border-color: #cbd5e1;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}

/* Star rating component */
.star-rating { display: inline-flex; gap: 2px; direction: rtl; }
.star-rating input { display: none; }
.star-rating label {
  cursor: pointer; font-size: 1.75rem; color: #cbd5e1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #d6b36a;
}
.star-rating label:hover { transform: scale(1.15); }

/* Delete zone styling */
.delete-zone {
  margin-top: 2rem; padding: 1.25rem; border-radius: 12px;
  border: 1px dashed #fca5a5; background: #fef2f2;
}
.delete-zone summary {
  cursor: pointer; font-weight: 600; color: #991b1b; font-size: 0.875rem;
}
.delete-zone summary::-webkit-details-marker { color: #991b1b; }

.light-surface footer.border-white\/10 {
  border-top-color: #e2e8f0 !important;
}

.metric-card {
  border-radius: 14px;
  border: 1px solid #d6e0e8;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.metric-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #bcd0de;
}

.cta-banner {
  border-radius: 14px;
  border: 1px solid #f2d9a9;
  background: #fff8eb;
  box-shadow: 0 8px 18px rgba(146, 64, 14, 0.06);
}

.table-shell {
  border-radius: 20px;
  border: 1px solid #dbe4ea;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.notice-card {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.wizard-shell {
  border-radius: 16px;
  border: 1px solid #d6e0e8;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.booking-hero-banner {
  border-radius: 14px;
  border: 1px solid #d7e4ea;
  background: #f7fbfc;
  color: #0f172a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.app-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #d7e2ea;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

.app-page-head-compact {
  padding: 14px;
}

.app-page-copy {
  min-width: 0;
}

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

.booking-intro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-intro-chip {
  border: 1px solid #d9e4ec;
  background: #f7fbff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.summary-panel {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafb;
}

.map-shell {
  border-radius: 14px;
  border: 1px solid #d6e0e8;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.tracking-toolbar {
  border-radius: 12px;
  border: 1px solid #dbe4ea;
  background: #f8fbfd;
  padding: 10px 12px;
}

.section-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 20px;
}

.soft-panel {
  border-radius: 12px;
  border: 1px solid #dde6ee;
  background: #fbfdff;
  padding: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.section-sub {
  color: #64748b;
  font-size: 0.95rem;
}

.list-item-card {
  border-radius: 12px;
  border: 1px solid #dde6ee;
  background: #fbfdff;
  padding: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.list-item-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #d4dee8;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 11px;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.action-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  text-decoration: none;
}

.action-chip-primary {
  border-color: rgba(11, 111, 107, 0.4);
  background: rgba(11, 111, 107, 0.12);
  color: #0f766e;
}

.action-chip-primary:hover {
  border-color: rgba(11, 111, 107, 0.56);
  background: rgba(11, 111, 107, 0.14);
  color: #115e59;
}

.action-chip-soft {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.action-chip-soft:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}

.action-chip-warn {
  border-color: rgba(217, 119, 6, 0.45);
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

.action-chip-warn:hover {
  border-color: rgba(180, 83, 9, 0.55);
  background: rgba(251, 191, 36, 0.24);
}

.table-dark td .action-chip:hover {
  text-decoration: none !important;
}

.danger-btn {
  border: 1px solid #fca5a5;
  color: #b91c1c;
  background: #fff1f2;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.danger-btn:hover {
  border-color: #ef4444;
  background: #ffe4e6;
}

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

.light-surface main > * {
  animation: riseFade 0.4s ease both;
}

.light-surface main > *:nth-child(2) {
  animation-delay: 0.05s;
}

.light-surface main > *:nth-child(3) {
  animation-delay: 0.1s;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(1.9rem, 7.6vw, 2.45rem) !important;
    line-height: 1.1;
  }

  .app-page-head {
    border-radius: 14px;
    padding: 12px;
    gap: 10px;
  }

  .wizard-shell {
    margin-top: 6px;
  }

  .app-page-actions {
    width: 100%;
  }

  .app-page-actions .btn-outline,
  .app-page-actions .btn-gold {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .btn-gold,
  .btn-outline,
  .btn-teal {
    min-height: 44px;
  }

  .table-shell {
    border-radius: 14px;
  }

  .section-card {
    border-radius: 16px;
    padding: 16px;
  }

  .soft-panel {
    border-radius: 14px;
    padding: 12px;
  }

  .wizard-shell,
  .booking-hero-banner,
  .map-shell {
    border-radius: 16px;
  }

  .booking-hero-banner {
    padding: 12px !important;
  }

  .wizard-stepper {
    gap: 6px;
  }

  .wizard-step {
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
}

/* Client app refinement - luxe, sobre, epure */
.app-client-header {
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.app-client-header-inner {
  min-height: 60px;
}

.app-client-logo {
  letter-spacing: -0.02em;
}

.app-client-nav {
  gap: 10px;
}

.app-client-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.app-client-logout {
  min-height: 40px;
  border-radius: 14px;
  font-weight: 600;
}

.app-client-subnav-link {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.3;
}

.app-client-bottom-link {
  border-radius: 12px;
}

.client-app-shell {
  padding-top: 18px;
}

.wizard-card-light,
.wizard-shell,
.section-card,
.metric-card,
.soft-panel,
.list-item-card,
.summary-panel,
.map-shell,
.tracking-toolbar,
.cta-banner {
  border-radius: 20px;
}

.wizard-shell,
.section-card,
.metric-card {
  border-color: #d9e4ea;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
}

.app-page-head {
  padding: 14px 16px;
  border-radius: 20px;
}

.app-page-head-luxe {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe5ea;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff, #f7fbfb);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.app-page-head-luxe::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 161, 74, 0.4), transparent);
}

.app-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(191, 161, 74, 0.24);
  background: rgba(191, 161, 74, 0.08);
  color: #7c5d14;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-page-copy .hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.app-page-copy p {
  font-size: 0.95rem;
  color: #64748b;
}

.app-page-actions {
  gap: 8px;
}

.luxe-inline-band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.luxe-inline-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafb;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.app-page-actions .btn-outline,
.app-page-actions .btn-gold {
  min-height: 42px;
  border-radius: 14px;
  padding: 0.72rem 1rem;
}

.metric-card {
  padding: 16px;
}

.metric-card .text-3xl {
  font-size: 2rem;
  line-height: 1;
}

.section-card {
  padding: 18px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: -2px 0 14px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-sub {
  font-size: 0.82rem;
}

.booking-section {
  padding: 16px;
  border-radius: 16px;
}

.booking-title,
.mdp-section-title {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.booking-label {
  margin: 8px 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.input-dark,
.light-surface .input-dark {
  min-height: 46px;
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
}

textarea.input-dark {
  min-height: 110px;
}

.wizard-card-light .wizard-stepper {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.wizard-card-light .wizard-step {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.ride-cards {
  gap: 8px;
}

.ride-card {
  border-radius: 12px;
  padding: 12px;
}

.ride-card-title {
  font-size: 0.88rem;
}

.ride-card-sub {
  margin-top: 2px;
  font-size: 0.72rem;
}

.advanced-toggle,
.quick-toggle,
.btn-ghost,
.btn-dashed,
.btn-outline,
.btn-gold,
.btn-teal {
  min-height: 40px;
  border-radius: 10px;
}

.advanced-toggle {
  padding: 8px 12px;
  font-size: 12px;
}

.quick-toggle {
  padding: 8px 11px;
  font-size: 12px;
}

.compact-panel,
.advanced-section,
.booking-disclosure,
.date-panel {
  border-radius: 12px;
}

.date-panel {
  padding: 14px;
}

.summary-panel {
  padding: 14px !important;
  background: #f8fafb;
  border-color: #e2e8f0;
}

.summary-panel .text-2xl,
#estimate-price {
  letter-spacing: -0.03em;
}

.action-row {
  gap: 6px;
}

.action-chip {
  min-height: 36px;
  border-radius: 12px;
  font-size: 0.76rem;
  padding: 8px 10px;
}

.list-item-card {
  padding: 13px;
}

.tracking-toolbar {
  padding: 10px 12px;
}

.detail-grid {
  display: grid;
  gap: 10px;
}

.detail-kv {
  border-radius: 14px;
  border: 1px solid #dde6ee;
  background: #fbfdff;
  padding: 12px 14px;
}

.detail-kv-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.detail-kv-value {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #0f172a;
}

.hero-confirm-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.wizard-flash-host {
  position: fixed;
  top: calc(72px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  z-index: 1300;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.wizard-flash-toast {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.wizard-flash-toast.is-error {
  border-color: #fecaca;
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.98);
}

.wizard-flash-toast.is-info {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.98);
}

.wizard-flash-toast.out {
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 767px) {
  .app-client-header {
    top: 0;
  }

  .app-client-header-inner {
    min-height: 52px;
    padding-top: calc(4px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 4px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .app-client-logo {
    font-size: 1.22rem !important;
    line-height: 1;
  }

  .app-client-nav {
    gap: 8px !important;
  }

  .app-client-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .app-client-logout {
    min-height: 34px;
    padding: 0.35rem 0.72rem !important;
    border-radius: 11px !important;
    font-size: 0.78rem;
  }

  .app-client-user {
    display: none !important;
  }

  .client-app-shell {
    padding-top: 8px;
  }

  .client-bottom-nav {
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .client-bottom-link {
    min-height: 48px;
    border-radius: 12px;
  }

  .client-bottom-link .client-bottom-icon {
    font-size: 14px;
  }

  .client-bottom-link .client-bottom-label {
    font-size: 9px;
  }

  .client-bottom-link.active {
    color: #0b6f6b;
    background: #edf8f7;
    border-color: #cde7e3;
  }

  .wizard-shell {
    border-radius: 18px;
  }

  .wizard-card-light.wizard-shell {
    padding: 12px !important;
  }

  .wizard-card-light .hero-title {
    font-size: 1.12rem !important;
  }

  .wizard-card-light .wizard-step {
    padding: 8px 8px;
    font-size: 0.72rem;
  }

  .booking-section {
    padding: 12px;
    border-radius: 18px;
  }

  .booking-disclosure > summary {
    min-height: 38px;
    font-size: 0.85rem;
    padding: 0;
  }

  .date-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .date-panel .helper-note,
  .booking-disclosure .text-xs,
  .booking-disclosure .mdp-hint,
  .section-lead {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .ride-card {
    padding: 10px 8px;
    border-radius: 14px;
  }

  .ride-card-title {
    font-size: 0.8rem;
  }

  .summary-panel {
    padding: 12px !important;
  }

  .booking-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .detail-mini-grid,
  .compact-counter-grid,
  .compact-counter-grid-animals,
  .summary-compact-grid {
    grid-template-columns: 1fr;
  }

  .app-page-head {
    border-radius: 18px;
    padding: 12px;
  }

  .app-page-head-luxe::after {
    left: 12px;
    right: 12px;
  }

  .app-eyebrow {
    min-height: 22px;
    padding: 0 8px;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .metric-card {
    border-radius: 18px;
    padding: 14px;
  }

  .section-card {
    border-radius: 18px;
    padding: 14px;
  }

  .soft-panel {
    border-radius: 16px;
    padding: 12px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .list-item-card {
    border-radius: 16px;
    padding: 12px;
  }

  .action-chip {
    flex: 1 1 calc(50% - 6px);
  }

  .app-page-actions,
  .action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .app-page-actions .btn-outline,
  .app-page-actions .btn-gold,
  .action-row .action-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .luxe-inline-band {
    gap: 6px;
  }

  .luxe-inline-pill {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.69rem;
  }

  .luxe-inline-band .luxe-inline-pill:nth-child(n + 3) {
    display: none;
  }

  .section-lead {
    margin-bottom: 12px;
    font-size: 0.84rem;
  }

  .vehicle-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vehicle-card {
    min-height: 164px;
    padding: 10px;
    border-radius: 14px;
  }

  .vehicle-card-name {
    font-size: 0.82rem;
  }

  .vehicle-card-meta {
    gap: 4px;
    font-size: 0.68rem;
  }
}

@media (max-width: 560px) {
  .metric-card .text-3xl {
    font-size: 1.7rem;
  }

  .app-page-actions,
  .action-row {
    grid-template-columns: 1fr;
  }

  .wizard-card-light .wizard-step {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 0.69rem;
  }
}

/* ── Loading state for form submissions ── */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin-btn 0.6s linear infinite;
}
@keyframes spin-btn {
  to { transform: rotate(360deg); }
}

/* ── Focus-visible improvements for interactive elements ── */
.btn-gold:focus-visible {
  outline: 2px solid #0b6f6b;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(11, 111, 107, 0.18);
}
.btn-outline:focus-visible {
  outline: 2px solid #0b6f6b;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(11, 111, 107, 0.12);
}
.action-chip:focus-visible {
  outline: 2px solid #0b6f6b;
  outline-offset: 2px;
}
.danger-btn:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* ── Contrast improvements ── */
.light-surface .metric-card .text-xs {
  color: #475569;
}
.light-surface .metric-card .text-sm {
  color: #475569;
}

/* ── Styled confirmation modal ── */
.drivygo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.drivygo-modal {
  background: #ffffff;
  border: 1px solid #d6e0e8;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  max-width: 420px;
  width: 100%;
  padding: 24px;
  animation: modalSlideUp 0.25s ease;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.drivygo-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.drivygo-modal-body {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}
.drivygo-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.drivygo-modal-danger .drivygo-modal-title {
  color: #991b1b;
}

/* ── Google Maps skeleton loader ── */
.map-skeleton {
  width: 100%;
  height: 24rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Mobile address truncation ── */
.address-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}
@media (max-width: 767px) {
  .list-item-card .text-sm.text-slate-700 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .table-dark td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── Password toggle button ── */
.password-wrapper {
  position: relative;
}
.password-wrapper .input-dark {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  font-size: 0.85rem;
  line-height: 1;
}
.password-toggle:hover {
  color: #0f172a;
}

/* ── Inline field validation ── */
.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}
.field-error.visible {
  display: block;
}

/* ── Wizard step transition ── */
.wizard-panel {
  animation: wizardSlide 0.3s ease;
}
@keyframes wizardSlide {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── CTA banner entrance animation ── */
.cta-banner {
  animation: riseFade 0.5s ease 0.15s both;
}

/* ── Toast notification for save feedback ── */
.save-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9998;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid #a7f3d0;
  background: rgba(236, 253, 245, 0.98);
  color: #065f46;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  animation: toastIn 0.3s ease;
}
.save-toast.toast-out {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}
