/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e02020;
  --red-dark: #b91c1c;
  --red-light: #fef2f2;
  --orange: #f97316;
  --green: #16a34a;
  --blue: #2563eb;
  --dark: #0f0f0f;
  --dark2: #1a1a1a;
  --dark3: #242424;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}
.logo-icon { font-size: 1.6rem; }
.logo-text strong { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.nav-links a:hover { color: white; }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.2s !important;
}
.btn-outline:hover { border-color: white; color: white !important; }

/* ===== BUTTONS ===== */
.btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red), #ff4444);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(224,32,32,0.4);
  text-decoration: none;
}
.btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(224,32,32,0.55);
}
.btn-emergency.large { padding: 20px 48px; font-size: 1.1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.shape-1 { width: 600px; height: 600px; background: var(--red); top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: #ff6b35; bottom: -100px; left: 200px; }
.shape-3 { width: 300px; height: 300px; background: var(--red-dark); top: 50%; left: -100px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(224,32,32,0.12);
  border: 1px solid rgba(224,32,32,0.3);
  color: #ff6b6b;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ff4444, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: white; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.12); }

/* ===== MAP MOCKUP ===== */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.map-mockup {
  width: 420px;
  height: 400px;
  background: linear-gradient(135deg, #1a2a1a 0%, #1a1a2a 50%, #2a1a1a 100%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.map-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.04) 40px);
}

.map-pin {
  position: absolute;
  font-size: 1.5rem;
}
.patient-pin {
  bottom: 120px; left: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--red);
  font-size: 2rem;
}
.patient-pin span {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--red);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 2px;
}

.amb-pin { animation: float 3s ease-in-out infinite; }
.amb-pin-1 { top: 60px; right: 80px; animation-delay: 0s; }
.amb-pin-2 { top: 140px; left: 60px; animation-delay: 1s; }
.amb-pin-3 { bottom: 80px; right: 60px; animation-delay: 2s; }

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

.route-line {
  position: absolute;
  bottom: 150px; left: 112px;
  width: 180px; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: rotate(-30deg);
  transform-origin: left center;
}
.route-line::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: inherit;
  animation: dash 1.5s linear infinite;
}

.eta-card {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 14px 24px;
  text-align: center;
  white-space: nowrap;
}
.eta-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }
.eta-time { font-size: 1.4rem; font-weight: 800; color: #4ade80; margin: 2px 0; }
.eta-unit { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* ===== SECTIONS ===== */
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  margin-bottom: 56px;
}

/* ===== EMERGENCY TYPES ===== */
.emergency-types {
  padding: 100px 0;
  background: var(--dark2);
}
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.emergency-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
  cursor: pointer;
}
.emergency-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224,32,32,0.3);
  box-shadow: 0 8px 32px rgba(224,32,32,0.1);
}
.emergency-icon { font-size: 2.4rem; margin-bottom: 16px; }
.emergency-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.emergency-card p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 100px 0; }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 32px 16px;
}
.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step-icon {
  width: 64px; height: 64px;
  background: rgba(224,32,32,0.1);
  border: 1.5px solid rgba(224,32,32,0.25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--red);
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.83rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.step-arrow {
  padding-top: 56px;
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
}

/* ===== FEATURES ===== */
.features-section { padding: 100px 0; background: var(--dark2); }
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-tag {
  display: inline-block;
  background: rgba(224,32,32,0.1);
  border: 1px solid rgba(224,32,32,0.25);
  color: #ff6b6b;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.feature-highlight h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.25; }
.feature-highlight p { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.feature-list li i { color: var(--green); font-size: 0.9rem; }

.feature-cards-col { display: flex; flex-direction: column; gap: 16px; }
.feature-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.feature-mini-card:hover { border-color: rgba(224,32,32,0.25); }
.feature-mini-card > i {
  font-size: 1.3rem;
  color: var(--red);
  margin-top: 2px;
  flex-shrink: 0;
}
.feature-mini-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.feature-mini-card p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ===== CTA ===== */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  background: linear-gradient(135deg, #1a0505, #0f0f0f 60%, #05101a);
}
.cta-section h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.55); font-size: 1rem; margin-bottom: 36px; }

/* ===== FOOTER ===== */
.footer {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-top: 12px; max-width: 240px; }
.footer-links { display: flex; gap: 60px; }
.footer-links div { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ===== PATIENT PAGE ===== */
.app-page {
  min-height: 100vh;
  background: var(--dark);
  padding-top: 70px;
}

.app-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - 70px);
}

.sidebar {
  background: var(--dark2);
  border-right: 1px solid rgba(255,255,255,0.08);
  overflow-y: auto;
  padding: 28px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-title i { color: var(--red); }

/* ===== FORM STYLES ===== */
.form-section { margin-bottom: 28px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.emergency-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.etype-btn {
  background: var(--dark3);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  color: white;
  font-family: inherit;
}
.etype-btn:hover, .etype-btn.active {
  border-color: var(--red);
  background: rgba(224,32,32,0.1);
}
.etype-btn .etype-icon { font-size: 1.4rem; margin-bottom: 4px; }
.etype-btn .etype-label { font-size: 0.72rem; font-weight: 600; }

.input-field {
  width: 100%;
  background: var(--dark3);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.input-field:focus { border-color: var(--red); }
.input-field::placeholder { color: rgba(255,255,255,0.25); }

textarea.input-field { resize: vertical; min-height: 80px; }
select.input-field option { background: var(--dark3); }

.location-row {
  display: flex;
  gap: 8px;
}
.location-row .input-field { flex: 1; }
.locate-btn {
  background: rgba(224,32,32,0.1);
  border: 1.5px solid rgba(224,32,32,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--red);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.locate-btn:hover { background: rgba(224,32,32,0.2); }

.severity-slider-wrap { padding: 8px 0; }
.severity-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #16a34a, #f97316, #e02020);
  outline: none;
  margin-bottom: 8px;
}
.severity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.severity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.request-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--red), #ff4444);
  border: none;
  border-radius: 50px;
  padding: 16px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(224,32,32,0.35);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.request-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(224,32,32,0.5); }
.request-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== MAP CONTAINER ===== */
#map { width: 100%; height: 100%; }

/* ===== STATUS PANEL ===== */
.status-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.status-panel.visible { display: flex; }

.status-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.status-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.status-badge.searching { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.status-badge.accepted { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
.status-badge.arriving { background: rgba(37,99,235,0.15); color: #60a5fa; border: 1px solid rgba(37,99,235,0.3); }

.driver-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.driver-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff8c00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.driver-name { font-weight: 700; font-size: 0.95rem; }
.driver-details { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.driver-rating { display: flex; align-items: center; gap: 4px; color: #fbbf24; font-size: 0.82rem; margin-top: 2px; }

.eta-bar {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eta-bar-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.eta-bar-time { font-size: 1.4rem; font-weight: 800; color: #4ade80; }

.cancel-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
}
.cancel-btn:hover { border-color: var(--red); color: var(--red); }

/* ===== DRIVER PAGE ===== */
.driver-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 70px);
}

.driver-sidebar {
  background: var(--dark2);
  border-right: 1px solid rgba(255,255,255,0.08);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.driver-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.driver-status-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.toggle-label { font-size: 0.85rem; font-weight: 600; }
.toggle-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.toggle-switch {
  position: relative;
  width: 52px; height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-track { background: var(--green); border-color: var(--green); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(24px); }

.requests-list {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.requests-list-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.request-card {
  background: var(--dark3);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.2s;
  cursor: pointer;
}
.request-card:hover { border-color: rgba(224,32,32,0.3); }
.request-card.urgent { border-color: rgba(224,32,32,0.4); background: rgba(224,32,32,0.05); }

.request-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.request-type-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.urgency-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.urgency-badge.critical { background: rgba(224,32,32,0.2); color: #ff6b6b; border: 1px solid rgba(224,32,32,0.3); }
.urgency-badge.high { background: rgba(249,115,22,0.2); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
.urgency-badge.medium { background: rgba(234,179,8,0.2); color: #facc15; border: 1px solid rgba(234,179,8,0.3); }

.request-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.request-meta span { display: flex; align-items: center; gap: 5px; }

.request-notes {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.request-actions { display: flex; gap: 8px; }
.accept-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--green), #15803d);
  border: none;
  border-radius: 50px;
  padding: 10px;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.accept-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.decline-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.decline-btn:hover { border-color: var(--red); color: var(--red); }

/* ===== DRIVER STATS ===== */
.driver-stats {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dstat {
  background: var(--dark3);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.dstat-val { font-size: 1.2rem; font-weight: 800; color: white; }
.dstat-lbl { font-size: 0.68rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ===== ACTIVE TRIP ===== */
.active-trip {
  display: none;
  padding: 20px;
  background: rgba(22,163,74,0.05);
  border-bottom: 1px solid rgba(22,163,74,0.2);
}
.active-trip.visible { display: block; }
.active-trip-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.active-trip-card {
  background: var(--dark3);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.complete-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green), #15803d);
  border: none;
  border-radius: 50px;
  padding: 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 12px;
}
.complete-btn:hover { opacity: 0.9; }

/* ===== NOTIFICATION TOAST ===== */
.toast {
  position: fixed;
  top: 90px;
  right: 24px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  max-width: 320px;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-title { font-size: 0.88rem; font-weight: 700; }
.toast-msg { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ===== SPINNER ===== */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: rgba(255,255,255,0.3);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 0.88rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 120px 24px 60px; text-align: center; }
  .hero-visual { display: none; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .emergency-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .app-layout, .driver-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar, .driver-sidebar { height: auto; max-height: 55vh; }
  #map { height: 45vh; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .navbar { padding: 16px 24px; }
}
