/* ============================================================
   RideGo — Static Website Styles
   Pure CSS3, no frameworks
   ============================================================ */

/* CSS Variables — Light Theme */
:root {
  --background: hsl(210, 100%, 97%);
  --foreground: hsl(215, 60%, 12%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 55%, 15%);
  --primary: hsl(217, 91%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 60%, 92%);
  --secondary-foreground: hsl(215, 55%, 20%);
  --muted: hsl(210, 50%, 94%);
  --muted-foreground: hsl(215, 25%, 40%);
  --accent: hsl(199, 89%, 55%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 75%, 55%);
  --border: hsl(210, 50%, 88%);
  --input-border: hsl(210, 50%, 88%);
  --ring: hsl(217, 91%, 55%);
  --radius: 0.75rem;
  --success: hsl(145, 65%, 42%);
  --warning: hsl(38, 92%, 50%);
  --info: hsl(199, 89%, 48%);
  --hero-gradient: linear-gradient(135deg, #0A2540 0%, #1E3A8A 50%, #3B82F6 100%);
  --blue-gradient: linear-gradient(135deg, #1E3A8A, #3B82F6);
  --blue-glow: 0 0 30px rgba(59,130,246,0.25);
  --blue-glow-strong: 0 0 50px rgba(59,130,246,0.35);
  --card-shadow: 0 4px 20px -6px rgba(30,58,138,0.15);
  --card-shadow-lg: 0 12px 36px -10px rgba(30,58,138,0.2);
}

/* Dark Theme */
html.dark {
  --background: hsl(215, 60%, 8%);
  --foreground: hsl(215, 25%, 95%);
  --card: hsl(215, 50%, 12%);
  --card-foreground: hsl(215, 25%, 95%);
  --primary: hsl(217, 91%, 60%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(215, 40%, 20%);
  --secondary-foreground: hsl(215, 25%, 95%);
  --muted: hsl(215, 35%, 20%);
  --muted-foreground: hsl(215, 30%, 75%);
  --accent: hsl(199, 89%, 48%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 62%, 40%);
  --border: hsl(215, 30%, 25%);
  --input-border: hsl(215, 30%, 25%);
  --blue-glow: 0 0 40px rgba(59,130,246,0.4);
  --blue-glow-strong: 0 0 60px rgba(59,130,246,0.6);
  --card-shadow: 0 4px 24px -4px rgba(10,37,64,0.6);
  --card-shadow-lg: 0 12px 40px -8px rgba(0,0,0,0.4);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  touch-action: pan-y;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: linear-gradient(135deg, #0A2540 0%, #1E3A8A 35%, #3B82F6 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(56,189,248,0.25), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(30,58,138,0.4), transparent 55%),
    radial-gradient(ellipse 30% 30% at 60% 70%, rgba(59,130,246,0.15), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }
@media (min-width: 640px) { input, select, textarea { font-size: 14px; } }

/* Layout Utilities */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.w-full { width: 100%; }
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Text Sizes */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.font-mono { font-family: monospace; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* =====================
   HERO HEADER
   ===================== */
.hero-header {
  background: var(--hero-gradient);
  padding: 1.25rem 1rem;
}
@media (min-width: 640px) { .hero-header { padding: 1.75rem 2rem; } }
.hero-header .inner { max-width: 72rem; margin: 0 auto; }
.hero-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}
.hero-logo { height: 2.5rem; width: auto; }
@media (min-width: 640px) { .hero-logo { height: 3rem; } }
.hero-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-history {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: none;
  transition: background 0.2s;
}
.btn-history:hover { background: rgba(255,255,255,0.2); }
.btn-theme {
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.btn-theme:hover { background: var(--accent); color: var(--accent-foreground); }
.hero-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
@media (min-width: 640px) { .hero-title { font-size: 1.875rem; } }
.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  max-width: 42rem;
}
@media (min-width: 640px) { .hero-desc { font-size: 1rem; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.badge-success { background: rgba(34,197,94,0.2); color: hsl(145,65%,42%); border-color: rgba(34,197,94,0.3); }
html.dark .badge-success { color: hsl(145,65%,55%); }
.badge-info { background: rgba(14,165,233,0.2); color: hsl(199,89%,48%); border-color: rgba(14,165,233,0.3); }
html.dark .badge-info { color: hsl(199,89%,65%); }
.badge-accent { background: rgba(14,165,233,0.15); color: var(--card-foreground); border-color: rgba(14,165,233,0.3); }
.pulse-dot {
  display: inline-block; width: 0.5rem; height: 0.5rem;
  border-radius: 9999px; background: hsl(145,65%,42%);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
html.dark .pulse-dot { background: hsl(145,65%,55%); }

/* =====================
   MAIN LAYOUT
   ===================== */
main.main-content {
  flex: 1;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
@media (min-width: 640px) { main.main-content { padding: 2rem 1.5rem; } }
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .main-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================
   CARD / SECTION
   ===================== */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: 1rem;
  box-shadow: var(--card-shadow-lg);
}
.card-body { padding: 1.25rem; }
@media (min-width: 640px) { .card-body { padding: 1.5rem; } }
.card-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-header h2 { font-weight: 600; font-size: 0.875rem; color: var(--card-foreground); }
.card-header p { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.125rem; }

/* =====================
   FORM ELEMENTS
   ===================== */
.form-label {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}
.form-label svg { width: 0.75rem; height: 0.75rem; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
@media (min-width: 640px) { .form-input, .form-textarea, .form-select { font-size: 14px; } }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--ring);
  box-shadow: var(--blue-glow-strong), 0 0 0 2px rgba(59,130,246,0.3);
}
.form-textarea { height: auto; padding: 0.5rem 0.75rem; resize: vertical; }

/* =====================
   BOOKING FORM
   ===================== */
.quote-box {
  border-radius: 0.75rem;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}
.quote-icon { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.quote-text { font-size: 0.875rem; font-style: italic; color: var(--card-foreground); }

.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

/* Toggle Buttons (Trip Type, Vehicle, Payment) */
.toggle-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.toggle-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.toggle-btn {
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--card-foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-btn:hover { border-color: rgba(59,130,246,0.4); }
.toggle-btn.selected {
  border-color: var(--primary);
  background: rgba(59,130,246,0.1);
  box-shadow: var(--blue-glow-strong);
}
.toggle-btn .toggle-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.toggle-btn .toggle-label { font-weight: 600; font-size: 0.875rem; }
.toggle-btn .toggle-sub { font-size: 0.75rem; color: var(--muted-foreground); }
.toggle-btn-sm .toggle-icon { font-size: 1.25rem; }

/* Custom Route Box */
.custom-route-box {
  border-radius: 0.75rem;
  border: 2px dashed var(--border);
  padding: 0.75rem;
  transition: all 0.2s;
  background: var(--card);
}
.custom-route-box.active {
  border-color: var(--primary);
  background: rgba(59,130,246,0.1);
  box-shadow: var(--blue-glow-strong);
}

/* Airport Quick Pick */
.airport-quickpick {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  padding: 1rem;
}
html.dark .airport-quickpick { background: rgba(0,0,0,0.2); }
.airport-quickpick-header { margin-bottom: 0.75rem; }
.airport-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .airport-grid { grid-template-columns: repeat(2, 1fr); } }
.airport-btn {
  text-align: left;
  border-radius: 0.5rem;
  padding: 0.625rem;
  border: 2px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s;
}
.airport-btn:hover { border-color: rgba(59,130,246,0.4); }
.airport-btn.selected {
  border-color: var(--primary);
  background: rgba(59,130,246,0.1);
  box-shadow: var(--blue-glow-strong);
}
.airport-btn .ab-from { font-size: 0.6875rem; color: var(--muted-foreground); }
.airport-btn .ab-dest { font-weight: 600; font-size: 0.875rem; color: var(--card-foreground); }
.airport-btn .ab-price { font-size: 0.6875rem; color: var(--primary); font-weight: 500; margin-top: 0.125rem; }

/* Fare Display */
.fare-box {
  border-radius: 0.75rem;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 1rem;
  text-align: center;
}
.fare-label { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.25rem; }
.fare-amount { font-size: 1.875rem; font-weight: 700; color: var(--primary); }
.fare-note { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* Book Button */
.btn-book {
  width: 100%;
  height: 3rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-book:hover:not(:disabled) { opacity: 0.9; }
.btn-book:active:not(:disabled) { transform: scale(0.99); }
.btn-book:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-book-note { font-size: 0.6875rem; text-align: center; color: var(--muted-foreground); }

/* =====================
   BOOKING CONFIRMATION
   ===================== */
.confirmation-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.confirmation-icon {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: rgba(34,197,94,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: hsl(145,65%,42%);
}
.confirmation-details {
  border-radius: 0.75rem;
  background: var(--secondary);
  padding: 1rem;
}
html.dark .confirmation-details { background: rgba(255,255,255,0.05); }
.detail-row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; margin-bottom: 0.5rem; }
.detail-row:last-child { margin-bottom: 0; }
.detail-label { color: var(--muted-foreground); }
.detail-value { font-weight: 500; color: var(--card-foreground); text-align: right; }
.detail-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.5rem; margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.detail-total-fare { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.info-box {
  border-radius: 0.75rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  padding: 0.75rem;
  font-size: 0.75rem;
  color: var(--card-foreground);
}
.btn-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  height: 2.75rem; border-radius: 0.75rem;
  background: #22c55e; color: #fff; font-weight: 500; font-size: 0.875rem;
  transition: opacity 0.2s;
  border: none; cursor: pointer;
}
.btn-wa:hover { opacity: 0.9; }
.btn-call {
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  height: 2.75rem; border-radius: 0.75rem;
  background: var(--primary); color: var(--primary-foreground);
  font-weight: 500; font-size: 0.875rem;
  transition: opacity 0.2s;
  border: none; cursor: pointer;
}
.btn-call:hover { opacity: 0.9; }
.btn-outline {
  height: 2.5rem; border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: transparent; color: var(--card-foreground);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.btn-outline:hover { background: var(--secondary); }
.btn-primary-sm {
  height: 2.5rem; border-radius: 0.75rem;
  border: none;
  background: var(--primary); color: var(--primary-foreground);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-primary-sm:hover { opacity: 0.9; }

/* =====================
   MAP SECTION
   ===================== */
.map-section { overflow: hidden; }
.map-stats {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(59,130,246,0.05);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.map-stat { display: flex; align-items: center; gap: 0.5rem; }
.map-stat-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(59,130,246,0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.map-stat-label { font-size: 0.6875rem; color: var(--muted-foreground); }
.map-stat-value { font-size: 0.875rem; font-weight: 600; color: var(--card-foreground); }
.map-iframe { width: 100%; height: 300px; border: none; display: block; }
@media (min-width: 640px) { .map-iframe { height: 420px; } }
.map-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--secondary);
  display: flex; flex-direction: column; gap: 0.5rem;
}
@media (min-width: 640px) {
  .map-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}
.map-points { font-size: 0.75rem; color: var(--muted-foreground); }
.map-points div { margin-bottom: 0.125rem; }
.btn-navigate {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--card); color: var(--card-foreground);
  cursor: pointer; transition: background 0.2s;
}
.btn-navigate:hover { background: var(--secondary); }
.map-external-link { font-size: 0.6875rem; color: var(--primary); }
.map-external-link:hover { text-decoration: underline; }
.ride-active-badge { font-size: 0.75rem; color: hsl(145,65%,42%); margin-left: 0.5rem; }

/* =====================
   FOOTER
   ===================== */
footer {
  background: #000;
  color: rgba(255,255,255,0.8);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}
.footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); padding: 2rem 1.5rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { height: 2.5rem; width: auto; margin-bottom: 0.75rem; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.75rem; line-height: 1.625; }
.footer-heading { font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.footer-list { list-style: none; }
.footer-list li { color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-bottom: 0.375rem; }
.footer-contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.7); font-size: 0.75rem; margin-bottom: 0.5rem;
}
.footer-contact-item a:hover { color: #fff; }
.footer-contact-item svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.footer-seo {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 72rem; margin: 0 auto;
  padding: 1rem 1rem;
  font-size: 0.6875rem; color: rgba(255,255,255,0.55); line-height: 1.625;
}
@media (min-width: 640px) { .footer-seo { padding: 1rem 1.5rem; } }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 72rem; margin: 0 auto;
  padding: 0.75rem 1rem;
  font-size: 0.6875rem; color: rgba(255,255,255,0.5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
}
@media (min-width: 640px) { .footer-bottom { padding: 0.75rem 1.5rem; } }

/* =====================
   FLOATING ACTIONS
   ===================== */
.floating-actions {
  position: fixed;
  bottom: 1rem; right: 1rem;
  z-index: 40;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.fab {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s;
  border: none;
  text-decoration: none;
}
@media (min-width: 640px) { .fab { width: 3.5rem; height: 3.5rem; } }
.fab:hover { transform: scale(1.1); }
.fab-wa { background: #25D366; color: #fff; }
.fab-phone { background: var(--primary); color: var(--primary-foreground); }
.fab svg { width: 1.5rem; height: 1.5rem; }
.fab-phone svg { width: 1.25rem; height: 1.25rem; }

/* Admin Lock Button */
.admin-lock-area {
  position: fixed;
  bottom: 1rem; left: 1rem;
  z-index: 40;
}
.btn-lock {
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s;
}
.btn-lock:hover { color: var(--card-foreground); }
.btn-lock svg { width: 0.875rem; height: 0.875rem; }
.login-panel {
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--card-shadow-lg);
  padding: 1rem;
  width: 18rem;
}
.login-title { font-weight: 600; font-size: 0.875rem; color: var(--card-foreground); margin-bottom: 0.75rem; }
.login-error { font-size: 0.75rem; color: var(--destructive); margin-top: 0.25rem; }
.login-btn-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.btn-login {
  flex: 1;
  height: 2rem; font-size: 0.875rem; font-weight: 500;
  border: none; border-radius: 0.5rem;
  background: var(--primary); color: var(--primary-foreground);
  cursor: pointer; transition: opacity 0.2s;
}
.btn-login:hover { opacity: 0.9; }
.btn-cancel {
  height: 2rem; padding: 0 0.75rem; font-size: 0.875rem;
  border: 1px solid var(--border); border-radius: 0.5rem;
  background: transparent; color: var(--card-foreground);
  cursor: pointer; transition: background 0.2s;
}
.btn-cancel:hover { background: var(--secondary); }

/* =====================
   PAGE: RIDE HISTORY
   ===================== */
.page-header {
  background: var(--hero-gradient);
  padding: 1rem;
}
@media (min-width: 640px) { .page-header { padding: 1rem 2rem; } }
.page-header-inner {
  max-width: 56rem; margin: 0 auto;
  display: flex; align-items: center; gap: 0.75rem;
}
.btn-back {
  color: rgba(255,255,255,0.8); background: none; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.btn-back:hover { color: #fff; }
.btn-back svg { width: 1.25rem; height: 1.25rem; }
.page-header-title { color: #fff; font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; gap: 0.5rem; }
.page-header-title svg { width: 1.25rem; height: 1.25rem; opacity: 0.7; }
.history-container { max-width: 56rem; margin: 0 auto; padding: 1rem; }
@media (min-width: 640px) { .history-container { padding: 1.5rem; } }
.history-empty { text-align: center; padding: 4rem 0; color: var(--muted-foreground); }
.history-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.history-empty h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.25rem; }
.history-card {
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
  animation: fade-in-up 0.5s ease-out both;
}
.history-card-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.history-card-id { font-family: monospace; font-size: 0.75rem; color: var(--muted-foreground); }
.history-card-title { font-weight: 600; color: var(--card-foreground); margin-top: 0.125rem; }
.history-card-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-align: right; }
.status-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.status-completed { background: rgba(34,197,94,0.2); color: hsl(145,65%,42%); }
.status-started { background: rgba(59,130,246,0.2); color: var(--primary); }
.status-requested { background: rgba(234,179,8,0.2); color: var(--warning); }
.history-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; font-size: 0.875rem; border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .history-grid { grid-template-columns: repeat(2, 1fr); } }
.history-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: var(--muted-foreground); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.75rem; }

/* =====================
   PAGE: ADMIN
   ===================== */
.admin-page { min-height: 100vh; background: var(--background); }
.admin-header {
  background: var(--hero-gradient);
  padding: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .admin-header { padding: 1rem 2rem; } }
.admin-header-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 700; font-size: 1.125rem; }
.btn-logout {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 0.875rem; cursor: pointer; display: flex; align-items: center; gap: 0.25rem;
  transition: color 0.2s;
}
.btn-logout:hover { color: #fff; }
.btn-logout svg { width: 1rem; height: 1rem; }
.admin-container { max-width: 64rem; margin: 0 auto; padding: 1rem; }
@media (min-width: 640px) { .admin-container { padding: 1.5rem; } }
.tab-nav {
  display: flex; gap: 0.25rem;
  background: var(--secondary);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  flex: 1; padding: 0.5rem 0.75rem;
  border: none; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  background: transparent; color: var(--muted-foreground);
}
.tab-btn:hover { color: var(--foreground); }
.tab-btn.active { background: var(--card); color: var(--card-foreground); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.admin-section-title { font-weight: 600; color: var(--foreground); margin-bottom: 0.75rem; }
.admin-form-card { background: var(--card); border-radius: 0.75rem; box-shadow: var(--card-shadow); padding: 1rem; margin-bottom: 1rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .admin-form-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-form-full { grid-column: 1 / -1; }
.btn-add {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.375rem 0.75rem; height: 2rem;
  border: none; border-radius: 0.5rem;
  background: var(--primary); color: var(--primary-foreground);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s;
  margin-top: 0.5rem;
}
.btn-add:hover { opacity: 0.9; }
.btn-add svg { width: 0.75rem; height: 0.75rem; }
.admin-item {
  background: var(--card); border-radius: 0.5rem; box-shadow: var(--card-shadow);
  padding: 0.75rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.875rem;
}
.btn-delete { background: none; border: none; color: var(--destructive); cursor: pointer; transition: opacity 0.2s; }
.btn-delete:hover { opacity: 0.7; }
.btn-delete svg { width: 1rem; height: 1rem; }
.booking-card { background: var(--card); border-radius: 0.75rem; box-shadow: var(--card-shadow); padding: 1rem; }
.booking-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.booking-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; font-size: 0.875rem; }
@media (min-width: 640px) { .booking-grid { grid-template-columns: repeat(2, 1fr); } }
.assign-section { padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.assign-label { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.25rem; }
.assign-drivers { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-assign-driver {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 9999px;
  background: rgba(34,197,94,0.15);
  color: hsl(145,65%,42%);
  font-size: 0.75rem; cursor: pointer;
  transition: background 0.2s;
}
.btn-assign-driver:hover { background: rgba(34,197,94,0.25); }
.btn-assign-driver svg { width: 0.75rem; height: 0.75rem; }
.no-data { text-align: center; padding: 3rem 0; color: var(--muted-foreground); }

/* =====================
   ANIMATIONS
   ===================== */
@keyframes car-move {
  0% { left: 0%; }
  100% { left: calc(100% - 2rem); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes soft-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}
.animate-fade-in-up { animation: fade-in-up 0.5s ease-out both; }
.animate-pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; }

/* =====================
   MISC / UTILITIES
   ===================== */
.hidden { display: none !important; }
.text-muted { color: var(--muted-foreground); }
.text-primary-color { color: var(--primary); }
.text-success-color { color: hsl(145,65%,42%); }
html.dark .text-success-color { color: hsl(145,65%,55%); }
.text-destructive { color: var(--destructive); }
.text-warning { color: var(--warning); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.overflow-hidden { overflow: hidden; }

/* Page sections visibility */
#page-home { display: flex; flex-direction: column; min-height: 100vh; }
#page-history { display: none; }
#page-admin { display: none; }

/* SVG icon base */
.icon { display: inline-block; vertical-align: middle; }
