@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Noto+Sans+Malayalam:wght@400;500;600&display=swap');

:root {
  /* Minimalist Dark Theme */
  --primary: #F59E0B; /* Amber Yellow */
  --primary-hover: #D97706;
  --background: #09090b; /* Deep Dark */
  --accent: #F59E0B; /* Deep green replaced with amber for uniform elegance */
  --text: #f8fafc; /* Near white */
  --text-muted: #94a3b8; /* Slate gray */
  --card-bg: rgba(255, 255, 255, 0.03); /* Subtle glass card */
  --badge-available: #10B981;
  --badge-busy: #4B5563;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --radius-md: 1rem; /* Soft rounded pill shape */
  --radius-lg: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Malayalam', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px; /* Refined smaller base font */
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.btn-accent {
  background-color: var(--accent);
  color: #000;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: var(--primary-hover);
}

.btn-call {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  width: 100%;
  font-size: 1.05rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.btn-call:hover {
  background-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  background-color: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

.live-dot {
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  margin-top: 0.25rem;
}

.live-dot::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: #22c55e;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  /* gap: 0 so flexbox doesn't insert a space between "Auto" and the
     <span>Kerala</span> (both are separate flex items). The icon gets its
     own spacing via margin-right below. */
  gap: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo svg {
  stroke: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  margin-right: 0.5rem; /* spacing between icon and brand text */
}

/* Inline auto-icon used in banner & badges (replaces 🛺 emoji) */
.banner-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 3px;
  object-fit: contain;
}

.badge-icon-img {
  display: inline-block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#lang-toggle {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

#lang-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 44px; /* Larger hit target size for mobile/touch accessibility */
  height: 44px; /* Larger hit target size for mobile/touch accessibility */
  padding: 13px 10px; /* Centers the 24px wide by 18px tall visual bars in the 44x44px touch area */
  box-sizing: border-box;
  z-index: 1100;
  touch-action: manipulation; /* Removes touch click latency on mobile browsers */
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

/* Transform hamburger into X when active */
.menu-toggle.active .bar-1 {
  transform: rotate(45deg) translate(1px, -1px);
  background-color: var(--primary);
}

.menu-toggle.active .bar-2 {
  width: 0%;
  opacity: 0;
}

.menu-toggle.active .bar-3 {
  transform: rotate(-45deg) translate(1px, 1px);
  background-color: var(--primary);
}

/* Footer */
footer {
  background-color: #1F2937;
  color: #F9FAFB;
  padding: 4rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-col p {
  color: #D1D5DB;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #D1D5DB;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Contact column in the footer — icon + label per line */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #D1D5DB;
  font-size: 0.92rem;
}

.footer-contact-list svg {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.85;
}

.footer-contact-list a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(9, 9, 11, 0.98); /* Solid dark matching the theme */
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 4.5rem 2rem 2.5rem 2rem; /* Increased top padding for top-right corner toggle */
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
    z-index: 1000; /* Ensure it stays on top of everything */
    
    /* Smooth CSS Animation Properties */
    display: flex !important; /* Force flex but hide with opacity & height */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-25px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; /* Prevents capturing pointer/tap events when hidden on mobile */
  }

  .menu-theme-toggle-container {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    margin-left: 0;
    z-index: 1010;
  }
  
  .nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* Restores clicks when drawer is visible */
  }

  /* Animate individual menu items cascade/staggered */
  .nav-links a {
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    text-align: center;
  }

  .nav-links.show a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.show a:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.show a:nth-child(2) { transition-delay: 0.14s; }
  .nav-links.show a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.show a:nth-child(4) { transition-delay: 0.26s; }
  .nav-links.show a:nth-child(5) { transition-delay: 0.32s; }
  


  .menu-toggle {
    display: flex;
  }

  .premium-hero {
    padding: 3rem 1rem 5rem;
  }
  
  h1 { font-size: 2.25rem; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Specific Section Styles */
/* Premium Minimalist Hero */
.premium-hero {
  min-height: calc(100vh - 80px); /* Full height minus navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    #09090b;
  padding: 4rem 1.5rem 6.5rem; /* extra bottom padding lifts content above the route line */
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.premium-hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}
.premium-hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

/* === Full-width Route inside Hero (auto travels right → left into pin, once) === */
.bottom-route {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  width: 100%;
  height: 60px;
  pointer-events: none;
  z-index: 5;
}

.bottom-route-track {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Dashed line spans full screen width, edge to edge */
.bottom-route-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  border-top: 2px dashed rgba(245, 158, 11, 0.45);
  z-index: 1;
}

/* Pin anchored at far left, tip touching the line */
.bottom-route-pin {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translate(-50%, -100%);
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  z-index: 3;
}

/* Auto starts at the RIGHT edge. Image already faces left in the PNG,
   so no horizontal flip needed — front points naturally toward the pin. */
.bottom-route-auto {
  position: absolute;
  left: calc(100% - 50px);
  top: 50%;
  transform: translate(-50%, -50%) rotate(1deg);
  width: 72px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
  transition: left 4s cubic-bezier(0.45, 0.05, 0.4, 1),
              transform 4s cubic-bezier(0.45, 0.05, 0.4, 1);
  z-index: 2;
}

/* When .play class is added, auto travels LEFT into the pin */
.bottom-route.play .bottom-route-auto {
  left: 62px;
  transform: translate(-50%, -50%) rotate(-1deg);
}

/* Light theme — slightly higher contrast for visibility */
body.light-theme .bottom-route-line {
  border-top-color: rgba(217, 119, 6, 0.5);
}

/* Mobile — hide the decorative route entirely. The hero on phones is
   already content-dense (search form on top), and the cosmetic route
   strip pushes the marketing copy further down. */
@media (max-width: 768px) {
  .bottom-route { display: none; }
}

/* === Decorative route path background === */
.route-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line {
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 9;
  opacity: 0.28;
  animation: route-flow 22s linear infinite;
}

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

/* Marker wrappers do the positioning so inner elements remain free to animate */
.route-marker {
  position: absolute;
  display: block;
  pointer-events: none;
}

/* Anchor the pin so its TIP (bottom-center) sits exactly at the path start.
   Path starts at viewBox (60, 110) in a 1200×600 view → 5%, 18.33% of the hero. */
.route-marker-start {
  top: 18.33%;
  left: 5%;
  transform: translate(-50%, -100%);
}

/* Anchor the auto centered on the path end.
   Path ends at viewBox (1140, 500) → 95%, 83.33% of the hero. */
.route-marker-end {
  top: 83.33%;
  left: 95%;
  transform: translate(-50%, -50%);
}

.route-pin {
  display: block;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  animation: pin-drop 2.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes pin-drop {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.route-auto {
  display: block;
  width: 76px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
  animation: route-auto-bob 2.2s ease-in-out infinite;
}

@keyframes route-auto-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-3px) rotate(1deg); }
}

/* Hide route decoration on small screens to keep mobile clean */
@media (max-width: 768px) {
  .route-bg { display: none; }
}

/* Light theme — slightly higher opacity for visibility on light background */
body.light-theme .route-line {
  opacity: 0.35;
  stroke: #d97706;
}

.glass-card {
  background: rgba(18, 18, 24, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-form-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-form-container h1,
.glass-card h1 {
  font-size: clamp(1.8rem, 7.5vw, 2.75rem) !important;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--text);
  white-space: nowrap;
  padding-bottom: 0.35rem;
}

.btn-location {
  background-color: var(--card-bg);
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 1rem;
  font-size: 1.1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

/* De-emphasised secondary action so the primary "Find Auto" button dominates
   the hero's visual hierarchy. Less weight, smaller padding, link-like feel. */
.btn-location {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-location:hover {
  background-color: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--primary);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before { margin-right: 1rem; }
.divider:not(:empty)::after { margin-left: 1rem; }

.search-connector {
  position: absolute;
  right: 1.5rem;
  bottom: -22px;
  transform: translateY(50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #18181b;
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: all 0.2s ease;
}

.search-connector svg {
  width: 14px;
  height: 14px;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 4px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Inline clear (×) button for search inputs — appears only when value is
   present (via .has-value on the wrap), aligned right inside the input. */
.form-control-wrap {
  position: relative;
}

.form-control-wrap .form-control {
  padding-right: 2.75rem;
}

.form-clear-btn {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 5;
}

/* Only show the × while the input is active (focused). :focus-within stays
   true while the user clicks the button itself, so the click handler still
   fires before the button disappears. */
.form-control-wrap.has-value:focus-within .form-clear-btn {
  display: inline-flex;
}

.form-clear-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  color: var(--primary);
}

.form-clear-btn svg {
  display: block;
}

body.light-theme .form-clear-btn {
  background: rgba(0, 0, 0, 0.06);
  color: #475569;
}

body.light-theme .form-clear-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* How it Works */
.how-it-works {
  background-color: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0;
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: 3rem;
  color: var(--text);
}

.how-it-works .section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.how-it-works .section-header .badge-marketing {
  margin-bottom: 1.25rem;
}

.how-it-works .section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .how-it-works .section-title {
    font-size: 2.75rem;
  }
}

.how-it-works .section-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* === Journey Grid (How It Works redesign) === */
.how-it-works {
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.how-it-works .container {
  position: relative;
  z-index: 1;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .journey-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.journey-step {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.journey-step:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.journey-step:hover::after {
  opacity: 1;
}

.journey-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.journey-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
  line-height: 1;
}

.journey-step-time {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 100px;
}

.journey-preview {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 1.4rem;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* --- Step 1: Search preview --- */
.preview-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.preview-field {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.preview-field-muted {
  color: var(--text-muted);
  font-weight: 400;
}

.preview-typing {
  display: inline-flex;
  align-items: center;
}

.preview-caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--primary);
  margin-left: 2px;
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.preview-cta {
  margin-top: auto;
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  color: #1a1a1a;
  font-weight: 700;
  text-align: center;
  padding: 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(251, 146, 60, 0.25);
}

/* --- Step 2: Drivers list preview --- */
.preview-driver {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.journey-step:hover .preview-driver {
  border-color: rgba(245, 158, 11, 0.18);
  transform: translateX(2px);
}

.journey-step:hover .preview-driver-2 { transition-delay: 0.05s; }
.journey-step:hover .preview-driver-3 { transition-delay: 0.1s; }

.preview-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.preview-driver-1 .preview-avatar { background: linear-gradient(135deg, #fbbf24, #fb923c); color: #1a1a1a; }
.preview-driver-2 .preview-avatar { background: linear-gradient(135deg, #10b981, #059669); }
.preview-driver-3 .preview-avatar { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.preview-driver-info { flex: 1; min-width: 0; }

.preview-driver-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.preview-driver-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.preview-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: status-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes status-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* --- Step 3: Call preview --- */
.journey-preview-call {
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  gap: 0.35rem;
  padding-top: 1.5rem;
}

.preview-call-ring {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  width: 70px;
  height: 70px;
  margin-left: -35px;
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 50%;
  opacity: 0;
  animation: ring-ripple 2s ease-out infinite;
}

.preview-call-ring-2 { animation-delay: 1s; }

@keyframes ring-ripple {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.preview-call-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.5);
  position: relative;
  z-index: 1;
  animation: call-shake 1.4s ease-in-out infinite;
}

@keyframes call-shake {
  0%, 100% { transform: rotate(0); }
  20%      { transform: rotate(-8deg); }
  40%      { transform: rotate(8deg); }
  60%      { transform: rotate(-4deg); }
  80%      { transform: rotate(4deg); }
}

.preview-call-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.preview-call-number {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Menlo', 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.preview-call-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.7rem;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.05em;
}

.preview-call-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: status-pulse 1.4s ease-in-out infinite;
}

/* Step copy */
.journey-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.journey-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Footnote pill */
.journey-footnote {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 3rem auto 0;
  padding: 0.55rem 1.25rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.journey-footnote-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: status-pulse 2s ease-in-out infinite;
}

/* === How It Works v6 — process line (simple & professional) === */
.how-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .how-title { font-size: 2.75rem; }
}

.how-line {
  max-width: 980px;
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  padding-top: 2.5rem;
}

@media (max-width: 720px) {
  .how-line {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 1rem;
  }
}

.how-line-track {
  position: absolute;
  top: 2.5rem;
  left: 16.67%;
  right: 16.67%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color) 12%, var(--border-color) 88%, transparent);
}

@media (max-width: 720px) {
  .how-line-track { display: none; }
}

.how-step {
  text-align: center;
  position: relative;
  padding-top: 1.75rem;
}

.how-step-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
  transform: translate(-50%, -2px);
}

@media (max-width: 720px) {
  .how-step-dot {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    transform: none;
    margin-bottom: 1rem;
  }
}

.how-step-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.85rem;
}

.how-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.55rem;
}

.how-step-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 260px;
}

/* Light theme — dot border picks up section background */
body.light-theme .how-step-dot {
  border-color: #ffffff;
}

body.light-theme .how-line-track {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1) 12%, rgba(0,0,0,0.1) 88%, transparent);
}

/* ============================================================
   Mobile redesign — vertical timeline
   Key design: circle is pinned to row 1 at a FIXED 40px height,
   title sits in row 1 col 2 (vertically centred with circle),
   description sits in row 2 col 2 (below title). Connector line
   runs in col 1 area BELOW each step's circle and through the
   row-gap to ~4px above the next circle — never crosses any
   circle, so no "break behind" trick is needed.
   ============================================================ */
@media (max-width: 720px) {
  .how-line {
    max-width: 440px;
    margin: 2rem auto 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 0.25rem;
    position: relative;
  }

  /* Disable any earlier connector approaches */
  .how-line::before { content: none; }
  .how-line-track { display: none !important; }

  /* Each step: row 1 = circle + title side-by-side; row 2 = description below title */
  .how-step {
    display: grid !important;
    grid-template-columns: 40px 1fr !important;
    grid-template-rows: 40px auto !important;
    column-gap: 1rem !important;
    row-gap: 0.45rem !important;
    text-align: left !important;
    padding: 0 !important;
    position: relative !important;
  }

  /* Connector segment — below this step's circle (y=44),
     down through the 1.5rem (24px) row-gap, stopping 4px
     before the next step's circle begins. */
  .how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: -20px;
    width: 2px;
    background: rgba(245, 158, 11, 0.4);
    z-index: 0;
  }

  /* Original tiny dot is hidden — replaced by the numbered circle below */
  .how-step-dot {
    display: none !important;
  }

  /* Numbered circle (uses .how-step-num as the visible element) */
  .how-step-num {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    justify-self: start !important;
    box-sizing: border-box !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    border-radius: 50% !important;
    background: var(--card-bg) !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* Title sits in row 1 col 2, vertically centred next to the circle */
  .how-step-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* Description sits in row 2 col 2, below the title */
  .how-step-desc {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    text-align: left !important;
    max-width: 100% !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }
}

/* Light-theme variant of the mobile timeline */
@media (max-width: 720px) {
  body.light-theme .how-step-num {
    background: #ffffff !important;
  }
}

/* === Static info pages (About / Contact / Privacy / Terms) === */
.static-page {
  padding: 4rem 1.5rem 5rem;
  max-width: 760px;
  margin: 0 auto;
}

.static-page-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.static-page h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .static-page h1 { font-size: 2.75rem; }
}

.static-page .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 2.5rem;
}

.static-page section {
  margin-bottom: 2rem;
}

.static-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.static-page h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: var(--text);
}

.static-page p,
.static-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.static-page strong {
  color: var(--text);
  font-weight: 600;
}

.static-page ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.static-page a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease;
}

.static-page a:hover {
  border-bottom-color: var(--primary);
}

.static-page-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

@media (min-width: 600px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-content {
  flex: 1;
  min-width: 0;
}

.contact-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}

.contact-card-value a {
  color: var(--text);
  border-bottom: none;
}

.contact-card-value a:hover {
  color: var(--primary);
}

/* === Trust Section — answers "why should I trust this?" === */
.trust-section {
  padding: 5rem 1.5rem 4rem;
  position: relative;
}

.trust-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.trust-section-header .badge-marketing {
  margin-bottom: 1.25rem;
}

.trust-section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .trust-section-title { font-size: 2.5rem; }
}

.trust-section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.trust-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.trust-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

.trust-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.trust-promise {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 146, 60, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  text-align: center;
}

.trust-promise strong {
  color: var(--primary);
  font-weight: 700;
}

/* Light theme */
body.light-theme .trust-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

body.light-theme .trust-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.1);
}

body.light-theme .trust-promise {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(251, 146, 60, 0.02));
}

/* === Type. Tap. Talk. (How It Works v5 — simple & catchy) === */
.ttt-headline {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .ttt-headline { font-size: 4rem; }
}

.ttt-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 3rem auto 0;
  text-align: center;
}

.ttt-step {
  flex: 1 1 200px;
  padding: 1rem;
  min-width: 180px;
}

.ttt-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.ttt-verb {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 0 0 0.6rem;
  line-height: 1;
  padding-bottom: 0.1em;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .ttt-verb { font-size: 4.5rem; }
}

.ttt-step:hover .ttt-verb {
  transform: translateY(-4px) scale(1.05);
}

.ttt-line {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

@media (min-width: 768px) {
  .ttt-line { font-size: 1.1rem; }
}

.ttt-arrow {
  font-size: 2.25rem;
  color: var(--text-muted);
  opacity: 0.4;
  font-weight: 200;
  line-height: 1;
  transform: translateY(8px);
}

@media (max-width: 720px) {
  .ttt-flow {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ttt-arrow {
    transform: rotate(90deg);
    font-size: 1.75rem;
    margin: 0.25rem 0;
  }
}

/* === Story Layout (How It Works v4 — no-card editorial narrative) === */
.story {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.story-beat {
  padding: 2.5rem 0;
  text-align: left;
}

.story-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.story-meta-tick { font-size: 0.95rem; }

.story-meta-time {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
}

.story-headline {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1.1rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .story-headline { font-size: 3.25rem; }
}

.story-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
  max-width: 640px;
}

.story-body strong {
  color: var(--text);
  font-weight: 700;
}

.story-body em {
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
}

.story-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color) 18%, var(--border-color) 82%, transparent);
  margin: 0;
  position: relative;
}

.story-divider::before {
  content: '';
  position: absolute;
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.65);
  animation: status-pulse 2.4s ease-in-out infinite;
}

/* Story stats row */
.story-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 4.5rem auto 0;
  padding: 2.25rem 1rem 0;
  border-top: 1px solid var(--border-color);
  max-width: 720px;
}

.story-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 130px;
}

.story-stat-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .story-stat-num { font-size: 3.5rem; }
}

.story-stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

.story-stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border-color);
}

@media (max-width: 600px) {
  .story-stat-divider { display: none; }
  .story-stats { gap: 1.75rem; }
}

/* Light theme overrides */
body.light-theme .story-meta {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .story-meta-time { color: #b45309; }

body.light-theme .story-divider {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08) 18%, rgba(0,0,0,0.08) 82%, transparent);
}

body.light-theme .story-body em { color: #b45309; }

/* === Acts Layout (How It Works v3 — magazine split) === */
.acts-stack {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .acts-stack {
    gap: 6.5rem;
  }
}

.act {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .act {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .act-row-2 .act-content { order: 1; }
  .act-row-2 .act-visual  { order: 2; }
}

.act-content {
  text-align: left;
}

.act-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
  text-transform: uppercase;
}

.act-number {
  font-size: 6rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.15em;
}

@media (min-width: 900px) {
  .act-number { font-size: 9rem; }
}

.act-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--text);
}

@media (min-width: 900px) {
  .act-title { font-size: 2.25rem; }
}

.act-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 460px;
}

.act-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.act-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.act-tag:hover {
  color: var(--text);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}

/* Visual canvas */
.act-canvas {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.act-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.09), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.act-canvas > * {
  position: relative;
  z-index: 1;
}

.map-corner-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  z-index: 2;
}

/* Act 1: Map */
.act-canvas-search { padding: 2.5rem; }

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  z-index: 0 !important;
}

.map-pin {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin-pulse {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pin-ripple 2.4s ease-out infinite;
}

@keyframes pin-ripple {
  0%   { transform: scale(0.3); opacity: 0.85; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-pin-icon {
  font-size: 2.75rem;
  animation: pin-bounce 1.6s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(245, 158, 11, 0.5));
}

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.map-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.5rem;
}

.map-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
  animation: status-pulse 1.8s ease-in-out infinite;
}

/* Act 2: Drivers canvas — stretch to fill width */
.act-canvas-drivers {
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
}

.act-canvas-drivers .preview-driver { width: 100%; }

/* Act 3: Call canvas */
.act-canvas-call {
  gap: 0.45rem;
}

/* === Light theme overrides for acts === */
body.light-theme .act-canvas {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
}

body.light-theme .act-eyebrow {
  color: #b45309;
}

body.light-theme .act-tag {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #475569;
}

body.light-theme .act-tag:hover {
  color: #0f172a;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

body.light-theme .map-label {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-theme .map-corner-tag {
  color: #b45309;
}

/* === Light theme overrides for journey === */
body.light-theme .journey-step {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

body.light-theme .journey-step:hover {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.12);
}

body.light-theme .journey-step-num {
  color: #b45309;
}

body.light-theme .journey-step-time {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
  color: #64748b;
}

body.light-theme .journey-preview {
  background: #fafaf9;
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .preview-field {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

body.light-theme .preview-driver {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

body.light-theme .preview-call-name {
  color: #0f172a;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.step-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 100px;
  line-height: 1;
  user-select: none;
  transition: all 0.3s ease;
}

.step-card:hover .step-badge {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  letter-spacing: 0.22em;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: all 0.3s ease;
}

.step-card:hover .step-icon {
  background: var(--primary);
  color: #000;
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.step-card:hover h3 {
  color: var(--primary);
}

/* Drivers Page — side padding scales up on larger screens so cards/text
   never hug the edge of the viewport. */
.drivers-page {
  padding: 2.5rem 1.25rem 3rem;
}

@media (min-width: 640px) {
  .drivers-page {
    padding: 3rem 2rem;
  }
}

@media (min-width: 1024px) {
  .drivers-page {
    padding: 3rem 2.5rem;
  }
}

.page-header {
  margin-bottom: 2rem;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.filter-btn {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
}

.filter-btn:hover:not(.active) {
  background-color: #F3F4F6;
}

/* === Empty state (no drivers within near radius) === */
.drivers-empty-state {
  grid-column: 1 / -1;           /* span the full grid width */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 3rem 1.25rem;
  border: 1px dashed var(--border-color);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.drivers-empty-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.drivers-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
  max-width: 28ch;
}

.drivers-empty-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 44ch;
  line-height: 1.55;
}

.drivers-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.drivers-empty-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  filter: brightness(1.05);
}

.drivers-empty-count {
  font-weight: 600;
  opacity: 0.8;
}

body.light-theme .drivers-empty-state {
  background: rgba(0, 0, 0, 0.02);
}

/* === Driver Result Cards (refined, compact) === */
.drivers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .drivers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .drivers-grid { grid-template-columns: repeat(3, 1fr); }
}

.driver-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.15rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.driver-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

/* Status pill — top-right */
.driver-status-pill {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  text-transform: uppercase;
  z-index: 1;
}

.driver-status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.driver-card[data-status="available"] .driver-status-pill {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.driver-card[data-status="available"] .driver-status-pill::before {
  animation: status-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.driver-card[data-status="busy"] .driver-status-pill {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
}

/* Header: avatar + name + plate */
.driver-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  padding-right: 4.5rem; /* leave room for status pill */
}

.driver-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 52px;
  height: 52px;
}

.driver-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: block;
}

/* Verified badge — sits at bottom-right of avatar. Standalone shield
   graphic (verified.png), already includes its own colour + shadow. */
.driver-verified {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  display: block;
  pointer-events: none;
  z-index: 2;
}

.driver-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.driver-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.driver-plate {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary);
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.08em;
  width: fit-content;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Details with thin top divider */
.driver-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.83rem;
}

.detail-icon {
  font-size: 0.92rem;
  width: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.detail-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.detail-text {
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-text strong {
  color: var(--text);
  font-weight: 700;
}

/* Distance pill — appears on the location row after Haversine sort completes.
   Empty by default so nothing shows until distance is known. */
.driver-distance {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.driver-distance:empty {
  display: none;
}

body.light-theme .driver-distance {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
}

/* Call button — full width, gradient, with icon */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  /* never let text wrap and stretch the button height — truncate instead */
  white-space: nowrap;
  overflow: hidden;
}

.btn-call > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.4);
  filter: brightness(1.05);
}

.btn-call:active {
  transform: translateY(0);
}

.btn-call svg {
  flex-shrink: 0;
}

/* Disabled state for busy drivers */
.driver-card[data-status="busy"] .btn-call {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  pointer-events: none;
  box-shadow: none;
}

/* === Malayalam adjustments ===
   Malayalam glyphs are visually wider than Latin characters at the same
   font-size, so we trim a few sizes / paddings when body.lang-ml is active
   to keep the card width identical and prevent the layout from breaking. */
body.lang-ml .driver-name {
  font-size: 0.92rem;
}

body.lang-ml .detail-row {
  font-size: 0.78rem;
}

body.lang-ml .btn-call {
  font-size: 0.82rem;
  padding: 0.68rem 0.85rem;
  gap: 0.4rem;
  letter-spacing: 0;
}

body.lang-ml .driver-status-pill {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
}

body.lang-ml .driver-distance {
  font-size: 0.62rem;
  padding: 0.16rem 0.45rem;
  letter-spacing: 0;
}

body.lang-ml .driver-header {
  padding-right: 4rem; /* status pill still slightly narrower in ml */
}

/* Autocomplete suggestions: same-district badge can read long in ML */
body.lang-ml .autocomplete-list li .district-match-badge {
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
}

/* Light theme overrides */
body.light-theme .driver-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

body.light-theme .driver-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.1);
}

body.light-theme .driver-photo {
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-theme .driver-card[data-status="busy"] .driver-status-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .driver-card[data-status="busy"] .btn-call {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

/* === Registration Page (redesigned) === */
.reg-hero {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.reg-hero .badge-marketing {
  margin-bottom: 1.5rem;
}

.reg-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .reg-hero-title { font-size: 3.5rem; }
}

.reg-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 560px;
  line-height: 1.6;
}

.reg-stats {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.1rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 100px;
}

.reg-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  min-width: 90px;
}

.reg-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.reg-stat-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.reg-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

@media (max-width: 600px) {
  .reg-stat-divider { display: none; }
  .reg-stats { gap: 1.25rem; padding: 1rem 1.5rem; border-radius: 24px; }
}

/* Grid layout */
.registration-page {
  padding: 2rem 0 5rem;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .reg-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Form card */
.reg-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .reg-form-card { padding: 1.75rem 1.25rem; }
}

.reg-form-header {
  margin-bottom: 1rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.reg-form-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.reg-form-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.reg-form-hint {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* Form sections */
.form-section {
  padding: 1.5rem 0;
}

.form-section + .form-section {
  border-top: 1px solid var(--border-color);
}

.form-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.5;
}

/* Short explainer between a form-section heading and the upload widget */
.form-section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.9rem;
}

.form-section-desc strong {
  color: var(--text);
  font-weight: 700;
}

/* File upload */
.file-upload {
  border: 2px dashed var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.file-upload:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.04);
}

/* Submit button */
.reg-submit-btn {
  margin-top: 1.75rem !important;
  font-size: 1.05rem !important;
  padding: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

.reg-submit-btn svg {
  transition: transform 0.25s ease;
}

.reg-submit-btn:hover svg {
  transform: translateX(3px);
}

.reg-form-foot {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 1.25rem 0 0;
  text-align: center;
}

.reg-form-edit-link {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reg-form-edit-link a {
  color: var(--primary);
  font-weight: 600;
  margin-left: 0.3rem;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease;
}

.reg-form-edit-link a:hover {
  border-bottom-color: var(--primary);
}

/* === Floating WhatsApp action button (always-on-screen trust signal) === */
.whatsapp-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;          /* official WhatsApp green */
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45),
              0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9000;
}

.whatsapp-fab::before {
  /* gentle pulsing ring */
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  opacity: 0;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55),
              0 3px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  display: block;
}

.whatsapp-fab .whatsapp-fab-label {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-fab:hover .whatsapp-fab-label {
  opacity: 1;
}

@media (max-width: 600px) {
  .whatsapp-fab {
    width: 52px;
    height: 52px;
    bottom: 1rem;
    right: 1rem;
  }
  .whatsapp-fab .whatsapp-fab-label { display: none; } /* no tooltips on touch */
}

/* Inline error message shown on the edit-profile form when verify or save fails */
.form-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin: 1rem 0 0;
  line-height: 1.4;
}

body.light-theme .form-error {
  background: rgba(239, 68, 68, 0.06);
  color: #b91c1c;
}

/* Sidebar */
.reg-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .reg-side {
    position: sticky;
    top: 2rem;
  }
}

.reg-side-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: 20px;
}

.reg-side-card h3 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 0;
  align-items: flex-start;
}

.benefit-list li + li {
  border-top: 1px solid var(--border-color);
}

.benefit-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.benefit-icon svg,
.benefit-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.benefit-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.benefit-list p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Testimonial card */
.reg-side-testimonial {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 146, 60, 0.04));
  border-color: rgba(245, 158, 11, 0.25);
  position: relative;
}

.reg-quote-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 28px;
  height: 28px;
  opacity: 0.18;
  color: var(--primary);
}

.reg-testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.reg-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reg-testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.reg-testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.reg-testimonial-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Light theme overrides */
body.light-theme .reg-form-card,
body.light-theme .reg-side-card,
body.light-theme .reg-stats {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.light-theme .file-upload {
  background: #fafaf9;
}

body.light-theme .file-upload:hover {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.4);
}

body.light-theme .reg-side-testimonial {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(251, 146, 60, 0.02));
  border-color: rgba(245, 158, 11, 0.25);
}

/* Utility */
.mb-4 { margin-bottom: 1rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* Autocomplete Styles */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #18181b; /* Solid dark background to prevent overlap */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  padding: 0;
}
.autocomplete-list li {
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-list li span:first-child {
  font-weight: 500;
  white-space: nowrap;
}
.autocomplete-list li span:last-child {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-list li:last-child {
  border-bottom: none;
}
.autocomplete-list li:hover, .autocomplete-list li.selected {
  background-color: rgba(245, 158, 11, 0.15); /* Amber highlight */
  color: var(--primary);
}

/* Green "same district" badge — shown on drop-off suggestions that match the
   pickup's district. Autos can't operate across district lines, so this
   surfaces same-district results first. */
.autocomplete-list li .district-match-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  margin-left: auto;  /* pushes badge to the right end of the flex row */
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  text-transform: uppercase;
}

.autocomplete-list li:hover .district-match-badge,
.autocomplete-list li.selected .district-match-badge {
  color: #10b981;
}

/* Light theme — slightly stronger contrast */
body.light-theme .autocomplete-list li .district-match-badge {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(5, 150, 105, 0.4);
}

body.light-theme .autocomplete-list li:hover .district-match-badge,
body.light-theme .autocomplete-list li.selected .district-match-badge {
  color: #047857;
}

/* Theme Toggle Button Styles */
.theme-toggle-container {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  z-index: 20;
}

.theme-toggle-btn {
  background: rgba(18, 18, 24, 0.6);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 2rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: scale(1.05);
}

.theme-toggle-track {
  width: 72px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.theme-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
}

.theme-toggle-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  z-index: 1;
}

/* Active Icons state based on theme */
body:not(.light-theme) .moon-icon {
  color: #000000 !important;
  transform: scale(1.1);
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.2));
}

body:not(.light-theme) .sun-icon {
  color: var(--text-muted);
}

body.light-theme .sun-icon {
  color: #000000 !important;
  transform: scale(1.1);
}

body.light-theme .moon-icon {
  color: var(--text-muted);
}

/* --- LIGHT MODE STYLE OVERRIDES --- */
body.light-theme {
  --background: #f8fafc; /* Light slate background */
  --text: #0f172a; /* Dark slate text */
  --text-muted: #475569; /* Slate gray */
  --card-bg: #ffffff; /* Crisp white card */
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -2px rgba(0,0,0,0.04);
}

body.light-theme .premium-hero {
  background: 
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
    #f8fafc;
}

body.light-theme .theme-toggle-thumb {
  transform: translateX(40px);
  background-color: #f59e0b; /* Maintain warm amber sun */
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

body.light-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-theme .form-control {
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2), 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-theme .form-control::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

body.light-theme .btn-location {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.light-theme .btn-location:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(245, 158, 11, 0.3);
}

body.light-theme .step-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

body.light-theme .step-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.08);
}

body.light-theme .step-badge {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

body.light-theme .step-card:hover .step-badge {
  color: #b45309;
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.55);
}

body.light-theme .autocomplete-list {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .autocomplete-list li {
  color: #0f172a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .autocomplete-list li span:last-child {
  color: #64748b;
}

body.light-theme .autocomplete-list li:hover,
body.light-theme .autocomplete-list li.selected {
  background-color: rgba(245, 158, 11, 0.08);
}

body.light-theme .navbar {
  background-color: rgba(248, 250, 252, 0.8) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .navbar .logo {
  color: #0f172a;
}

body.light-theme .mobile-menu-btn {
  color: #0f172a;
}

body.light-theme .nav-links a {
  color: #475569;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
  color: var(--primary);
}

@media (max-width: 768px) {
  body.light-theme .nav-links {
    background: rgba(248, 250, 252, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* Responsive Theme Switcher and Language Toggle Layout */
.menu-theme-toggle-container {
  display: flex;
  align-items: center;
  z-index: 1010;
}

@media (min-width: 769px) {
  .menu-theme-toggle-container {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    margin: 0;
  }

  .nav-actions {
    position: absolute;
    top: 50%;
    right: 8rem;
    transform: translateY(-50%);
    margin: 0;
  }

  .nav-links {
    margin-left: auto;
    margin-right: 15.5rem; /* Safe space to prevent overlapping with theme and lang toggles */
  }
}

@media (max-width: 768px) {
  .menu-theme-toggle-container {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    transform: none;
    margin: 0;
  }
}

/* Announcement Banner */
.announcement-banner {
  display: block;
  background: transparent; /* Seamless transparent background as requested */
  color: var(--text-muted); /* Respects theme colors dynamically */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.72rem; /* Very small text size */
  overflow: hidden;
  height: 20px; /* Extremely compact single-line height */
  line-height: 20px;
  position: absolute; /* Absolute float directly over hero's radial gradients */
  top: 80px; /* Sits perfectly right below the 80px custom toolbar */
  left: 0;
  width: 100%;
  z-index: 10;
  border: none; /* Completely transparent with zero backgrounds, borders, or lines */
  margin: 4px 0; /* Near bottom margins */
  transition: all 0.3s ease;
}

.announcement-banner:hover {
  color: var(--primary); /* Vibrant transition on hover */
}

.banner-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.banner-text {
  padding-right: 6rem;
  white-space: nowrap;
  display: inline-block;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Split Column Desktop Hero Layout & Marketing Elements
   ========================================================================== */

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr; /* 2 Column Split Layout on Desktop! */
    gap: 4rem;
  }
}

.hero-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--text);
  max-width: 620px;
}

/* On mobile, center the left content text AND swap order so the search form appears first */
@media (max-width: 991px) {
  .hero-left-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
    margin-bottom: 0;
    margin-top: 2rem;
    order: 2;
  }
  .hero-right-content {
    order: 1;
  }
}

/* Premium Badge */
.badge-marketing {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.badge-marketing .badge-icon {
  font-size: 0.9rem;
}

.badge-marketing .badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Heading Typography */
.hero-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-main-title {
    font-size: 3.5rem;
  }
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* Metrics Grid Row */
.hero-metrics-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 991px) {
  .hero-metrics-row {
    justify-content: center;
    gap: 2rem;
  }
}

.metric-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 991px) {
  .metric-col {
    align-items: center;
  }
}

.metric-val {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.metric-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

@media (max-width: 600px) {
  .metric-divider {
    display: none; /* Stack cards cleanly on mobile */
  }
}

/* Special Gradients with extra bottom padding to prevent Malayalam descender cropping */
.text-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.35em;
  margin-bottom: -0.35em;
}

.text-gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.35em;
  margin-bottom: -0.35em;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.35em;
  margin-bottom: -0.35em;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.35em;
  margin-bottom: -0.35em;
}

/* Premium Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border-top-color: var(--primary, #fbbf24);
  animation: spin 0.8s linear infinite;
  margin-right: 0.65rem;
  vertical-align: middle;
}

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

/* Large Loader Spinner for Drivers Page */
.drivers-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  width: 100%;
  text-align: center;
}

.loader-spinner-large {
  width: 3.5rem;
  height: 3.5rem;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary, #fbbf24);
  animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
  margin-bottom: 1.5rem;
}

/* Animated auto-rickshaw loader (uses auto-icon.png) */
.auto-loader-scene {
  position: relative;
  width: 280px;
  /* Shrunk from 170 → 140 now that the dashed road is gone — keeps a
     tight wrap around the auto image instead of leaving empty space
     below it. */
  height: 140px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.auto-loader-vehicle {
  position: absolute;
  left: 50%;
  /* Measured from the PNG (1024×1024 rendered at 170×170): the wheel
     contact line sits at y=118 in 170-scale → 52px above the box's
     bottom edge. To land the wheels exactly on the road at bottom: 22px
     we push the box bottom down to bottom: -26px (= 22 − (52−6 fudge)).
     The empty padding + drop-shadow below the wheels are clipped by
     overflow:hidden on the scene. */
  bottom: -26px;
  top: auto;
  transform: translateX(-50%);
  animation: auto-bounce 0.45s ease-in-out infinite alternate;
  will-change: transform;
}

.auto-loader-img {
  width: 170px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3));
  animation: auto-rock 0.4s ease-in-out infinite alternate;
  /* Pivot the rock animation around the wheels (~69% from top of img)
     rather than the empty padding below. */
  transform-origin: 50% 70%;
}

.auto-loader-puff {
  position: absolute;
  /* Back-wheel centre is at 40px from the right edge of the 170×170
     vehicle box (measured by detecting black-pixel clusters in the
     lower band of the PNG). Subtract half the puff size so the puff
     centre lands directly on the wheel, then drifts up-and-right
     (auto faces left, so behind = right) per the auto-puff keyframes. */
  right: 34px;
  bottom: 46px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted, #9CA3AF);
  opacity: 0;
  animation: auto-puff 1.2s ease-out infinite;
}

.auto-loader-puff.puff-2 {
  animation-delay: 0.4s;
  width: 9px;
  height: 9px;
}

.auto-loader-puff.puff-3 {
  animation-delay: 0.8s;
  width: 7px;
  height: 7px;
}

@keyframes auto-bounce {
  from { transform: translateX(-50%) translateY(0); }
  to   { transform: translateX(-50%) translateY(-5px); }
}

@keyframes auto-rock {
  from { transform: rotate(-1.5deg); }
  to   { transform: rotate(1.5deg); }
}

@keyframes auto-puff {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0.55; }
  60%  { transform: translate(26px, -16px) scale(1.2); opacity: 0.22; }
  100% { transform: translate(44px, -26px) scale(1.6); opacity: 0; }
}



/* ============================================================================
 * Working-schedule card (driver registration + edit profile)
 * One bordered card grouping day chips + time pickers as a single UI block.
 * ============================================================================ */
.schedule-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

body.light-theme .schedule-card {
  background: rgba(0, 0, 0, 0.015);
}

.schedule-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.schedule-row-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.schedule-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.day-chip {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  min-width: 52px;
  user-select: none;
}

.day-chip:hover {
  border-color: var(--primary);
  color: var(--text);
}

.day-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #1a1a1a;
  box-shadow: 0 1px 6px rgba(245, 158, 11, 0.25);
}

body.light-theme .day-chip.active {
  color: #ffffff;
}

.schedule-time-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.schedule-time-input {
  flex: 1;
  min-width: 130px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}

.schedule-time-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 0.1rem;
}

.schedule-overnight-note {
  font-size: 0.78rem;
  color: var(--primary);
  margin: 0.35rem 0 0;
  font-weight: 500;
}
