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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #1a1a24;
  --bg-card: #16161f;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE SYSTEM
═══════════════════════════════════════════════════════════════════════════ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }
#page-map.active, #page-dashboard.active, #page-admin.active { display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: 14px;
  font-weight: 600; border: 1.5px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: white; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.4); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-light); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.08); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-white { background: white; color: #1e1b4b; border-color: white; }
.btn-white:hover { background: #f1f5f9; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }
.btn-social { background: var(--bg-3); color: var(--text); border-color: var(--border); flex: 1; justify-content: center; gap: 8px; }
.btn-social:hover { border-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled { background: rgba(10,10,15,0.98); }
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: white;
}
.logo-lg { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all var(--transition); }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 24px 60px; position: relative; overflow: hidden;
  max-width: 1280px; margin: 0 auto; gap: 60px;
}
.hero-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -100px; right: 100px; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 50%; right: -50px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3);
  color: var(--primary-light); padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px; background: var(--primary-light);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.hero-title { font-size: clamp(36px, 5vw, 64px); font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 18px; color: var(--text-2); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.stat-label { font-size: 13px; color: var(--text-3); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Phone Mockup */
.hero-visual { flex: 0 0 auto; }
.phone-mockup {
  width: 280px; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: 32px;
  padding: 16px; box-shadow: var(--shadow-lg), 0 0 60px rgba(99,102,241,0.15);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.phone-screen { background: var(--bg-2); border-radius: 20px; overflow: hidden; }
.app-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600;
}
.app-logo-sm {
  width: 24px; height: 24px; background: var(--primary); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: white;
}
.notif-dot { width: 8px; height: 8px; background: var(--secondary); border-radius: 50%; margin-left: auto; }
.mini-map {
  height: 160px; background: linear-gradient(135deg, #1a1a2e, #16213e);
  position: relative; overflow: hidden;
}
.map-pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pin-1 { top: 30px; left: 40px; }
.pin-2 { top: 60px; right: 50px; }
.pin-3 { bottom: 30px; left: 80px; }
.pin-4 { top: 20px; right: 80px; }
.pin-icon {
  width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: white;
}
.pin-icon.available { background: var(--secondary); }
.pin-icon.busy { background: var(--danger); }
.pin-icon.ev { background: var(--accent); }
.pin-icon > * { transform: rotate(45deg); }
.pin-label { font-size: 9px; color: var(--text-2); background: var(--bg-card); padding: 1px 4px; border-radius: 4px; }
.user-location { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); }
.user-dot { width: 12px; height: 12px; background: #3b82f6; border-radius: 50%; border: 2px solid white; position: relative; z-index: 1; }
.user-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 32px; height: 32px; border: 2px solid rgba(59,130,246,0.4);
  border-radius: 50%; animation: ripple 2s infinite;
}
@keyframes ripple { 0%{transform:translate(-50%,-50%) scale(0.5);opacity:1} 100%{transform:translate(-50%,-50%) scale(2);opacity:0} }
.slot-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-top: 1px solid var(--border);
}
.slot-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.slot-meta { display: flex; gap: 8px; font-size: 10px; color: var(--text-3); }
.slot-avail { color: var(--secondary); }
.slot-book-btn {
  background: var(--primary); color: white; border: none;
  padding: 6px 14px; border-radius: 8px; font-size: 11px; font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════════════════════ */
.trusted {
  padding: 40px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2); text-align: center;
}
.trusted-label { font-size: 13px; color: var(--text-3); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.trusted-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-logo { font-size: 15px; font-weight: 700; color: var(--text-3); letter-spacing: 0.5px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; background: rgba(99,102,241,0.12); color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.25); padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-2); max-width: 560px; margin: 0 auto; }

/* Features */
.features { padding: 100px 24px; max-width: 1280px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-large { grid-column: span 2; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.feature-visual { margin-top: 20px; }
.availability-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; max-width: 120px; }
.av-slot { height: 28px; border-radius: 6px; }
.av-slot.free { background: rgba(16,185,129,0.3); border: 1px solid rgba(16,185,129,0.5); }
.av-slot.taken { background: rgba(239,68,68,0.3); border: 1px solid rgba(239,68,68,0.5); }
.av-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-2); align-items: center; }
.av-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 4px; }
.av-dot.free { background: var(--secondary); }
.av-dot.taken { background: var(--danger); }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: 20px; }
.chart-bar { flex: 1; background: linear-gradient(to top, var(--primary), var(--primary-light)); border-radius: 4px 4px 0 0; opacity: 0.7; }

/* How It Works */
.how-it-works { padding: 100px 24px; background: var(--bg-2); }
.how-it-works .section-header { max-width: 1280px; margin: 0 auto 60px; }
.steps-container {
  max-width: 900px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.step-line {
  position: absolute; top: 32px; left: 50%; transform: translateX(-50%);
  width: 2px; height: calc(100% - 64px); background: linear-gradient(to bottom, var(--primary), transparent);
  display: none;
}
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-number {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white; font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Pricing */
.pricing { padding: 100px 24px; max-width: 1280px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary); background: linear-gradient(135deg, rgba(99,102,241,0.1), var(--bg-card));
  box-shadow: 0 0 40px rgba(99,102,241,0.2);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.plan-price { font-size: 40px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.plan-price span { font-size: 16px; color: var(--text-2); font-weight: 400; }
.plan-desc { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.plan-features li.muted { color: var(--text-3); }
.check { color: var(--secondary); font-weight: 700; }

/* Testimonials */
.testimonials { padding: 100px 24px; background: var(--bg-2); }
.testimonials .section-header { max-width: 1280px; margin: 0 auto 60px; }
.testimonials-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }
.stars { color: var(--accent); font-size: 16px; margin-bottom: 14px; }
.testimonial-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: white; flex: 0 0 auto;
}
.reviewer strong { display: block; font-size: 14px; }
.reviewer span { font-size: 12px; color: var(--text-3); }

/* CTA */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(16,185,129,0.08));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-content { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-content h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 17px; color: var(--text-2); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { padding: 60px 24px 32px; background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-grid {
  max-width: 1280px; margin: 0 auto 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { font-size: 14px; color: var(--text-3); margin: 12px 0 20px; line-height: 1.6; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-2); transition: all var(--transition);
}
.social-link:hover { border-color: var(--primary); color: var(--primary); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-3); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid var(--border); display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAP PAGE
═══════════════════════════════════════════════════════════════════════════ */
#page-map { padding-top: 64px; }
.map-layout { display: flex; height: calc(100vh - 64px); }
.map-sidebar {
  width: 380px; flex: 0 0 380px; background: var(--bg-2);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  overflow: hidden; transition: all var(--transition);
}
.map-sidebar.hidden { width: 0; flex: 0 0 0; overflow: hidden; }
.sidebar-header {
  padding: 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-header h2 { font-size: 18px; font-weight: 700; }
.sidebar-close { background: none; border: none; color: var(--text-2); font-size: 18px; display: none; }
.search-box {
  margin: 16px; position: relative;
}
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search-box input {
  width: 100%; padding: 10px 12px 10px 40px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; outline: none;
}
.search-box input:focus { border-color: var(--primary); }
.filter-row { display: flex; gap: 8px; padding: 0 16px 16px; flex-wrap: wrap; }
.filter-chip {
  padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text-2);
  transition: all var(--transition);
}
.filter-chip.active, .filter-chip:hover { background: var(--primary); border-color: var(--primary); color: white; }
.parking-list { flex: 1; overflow-y: auto; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.parking-list::-webkit-scrollbar { width: 4px; }
.parking-list::-webkit-scrollbar-track { background: transparent; }
.parking-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.parking-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: all var(--transition);
}
.parking-item:hover { border-color: var(--primary); transform: translateX(2px); }
.parking-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.parking-item-name { font-size: 14px; font-weight: 700; }
.parking-item-price { font-size: 13px; font-weight: 700; color: var(--primary-light); }
.parking-item-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.parking-item-slots { display: flex; gap: 6px; }
.slot-badge {
  padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
}
.slot-badge.available { background: rgba(16,185,129,0.15); color: var(--secondary); }
.slot-badge.limited { background: rgba(245,158,11,0.15); color: var(--accent); }
.slot-badge.full { background: rgba(239,68,68,0.15); color: var(--danger); }

.map-container { flex: 1; position: relative; }
.sidebar-toggle-btn {
  position: absolute; top: 16px; left: 16px; z-index: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; color: var(--text);
  box-shadow: var(--shadow);
}
.sidebar-toggle-btn:hover { border-color: var(--primary); }

/* Leaflet overrides */
.leaflet-container { background: #1a1a2e !important; }
.leaflet-tile { filter: brightness(0.7) saturate(0.8); }
.custom-marker {
  background: var(--primary); color: white; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.custom-marker.available { background: var(--secondary); }
.custom-marker.full { background: var(--danger); }
.custom-marker.ev { background: var(--accent); }
.custom-marker > span { transform: rotate(45deg); }

/* ═══════════════════════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}
.modal-sm { max-width: 400px; }
@keyframes modalIn { from{opacity:0;transform:scale(0.95) translateY(10px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-2); font-size: 18px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; gap: 12px; justify-content: flex-end;
}
.modal-info-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.slot-type-selector { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.slot-type {
  background: var(--bg-3); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 8px; text-align: center; cursor: pointer; transition: all var(--transition);
  font-size: 12px; font-weight: 600;
}
.slot-type.active { border-color: var(--primary); background: rgba(99,102,241,0.1); }
.slot-type:hover { border-color: var(--primary-light); }
.slot-type-icon { font-size: 22px; margin-bottom: 4px; }
.slot-type-price { font-size: 11px; color: var(--primary-light); margin-top: 4px; }
.price-summary {
  background: var(--bg-3); border-radius: 10px; padding: 16px; margin-top: 16px;
}
.price-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--text-2); }
.price-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 16px; color: var(--text); }
.payment-amount { text-align: center; padding: 20px 0; }
.pay-label { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.pay-amount { font-size: 40px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; color: var(--primary-light); }
.payment-methods { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 16px; }
.pay-method {
  background: var(--bg-3); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pay-method.active { border-color: var(--primary); background: rgba(99,102,241,0.1); }
.pay-method:hover { border-color: var(--primary-light); }
.upi-input { margin-top: 8px; }
.text-center { text-align: center; }
.success-icon {
  width: 72px; height: 72px; background: linear-gradient(135deg, var(--secondary), #059669);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: white; margin: 0 auto 16px; font-weight: 700;
}
.qr-code {
  width: 160px; height: 160px; margin: 16px auto;
  background: white; border-radius: 12px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.qr-hint { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.booking-ref { font-size: 13px; color: var(--text-2); background: var(--bg-3); padding: 8px 16px; border-radius: 8px; display: inline-block; }

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════════════════════════════ */
#page-login, #page-register { padding-top: 64px; }
.auth-layout { display: flex; min-height: calc(100vh - 64px); }
.auth-visual {
  flex: 0 0 420px; background: linear-gradient(135deg, #1e1b4b, #312e81, #1e1b4b);
  padding: 60px 48px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.2;
}
.auth-orb-1 { width: 300px; height: 300px; background: var(--primary); top: -100px; right: -100px; }
.auth-orb-2 { width: 200px; height: 200px; background: var(--secondary); bottom: -50px; left: -50px; }
.auth-brand { margin-bottom: 48px; position: relative; }
.auth-brand h2 { font-size: 28px; font-weight: 800; margin: 12px 0 4px; }
.auth-brand p { font-size: 14px; color: rgba(255,255,255,0.6); }
.auth-features { display: flex; flex-direction: column; gap: 14px; position: relative; }
.auth-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.8);
}
.auth-feat span { color: var(--secondary); font-weight: 700; }
.auth-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form-container { width: 100%; max-width: 440px; }
.auth-form-container h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }
.auth-divider {
  text-align: center; position: relative; margin: 20px 0;
  color: var(--text-3); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 60px);
  height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.social-auth { display: flex; gap: 10px; margin-bottom: 20px; }
.auth-switch { font-size: 14px; color: var(--text-2); text-align: center; margin-top: 20px; }
.link { color: var(--primary-light); font-weight: 600; }
.link:hover { text-decoration: underline; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-right: 44px; }
.input-icon-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-3); font-size: 16px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 10px 14px; background: var(--bg-3);
  border: 1.5px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; outline: none; transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════════════════════════ */
#page-dashboard, #page-admin { padding-top: 0; }
.dashboard-layout { display: flex; height: 100vh; overflow: hidden; }
.dash-sidebar {
  width: 240px; flex: 0 0 240px; background: var(--bg-2);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  padding: 20px 0; overflow-y: auto;
}
.admin-sidebar { border-right-color: rgba(239,68,68,0.2); }
.dash-logo {
  display: flex; align-items: center; gap: 10px; padding: 0 20px 20px;
  font-size: 16px; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
  border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.dash-nav { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all var(--transition);
}
.dash-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.dash-nav-item.active { background: rgba(99,102,241,0.15); color: var(--primary-light); }
.dash-sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); margin-top: auto; }
.dash-main { flex: 1; overflow-y: auto; background: var(--bg); }
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px; border-bottom: 1px solid var(--border);
  background: var(--bg-2); position: sticky; top: 0; z-index: 100;
}
.dash-title { font-size: 22px; font-weight: 800; }
.dash-subtitle { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.dash-topbar-actions { display: flex; gap: 10px; }
.dash-tab { display: none; padding: 28px 32px; }
.dash-tab.active { display: block; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.stat-card-info { flex: 1; }
.stat-card-value { font-size: 24px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.stat-card-label { font-size: 12px; color: var(--text-3); }
.stat-card-trend { font-size: 11px; color: var(--text-3); width: 100%; }
.stat-card-trend.up { color: var(--secondary); }

/* Dashboard Sections */
.dash-section { margin-bottom: 28px; }
.dash-section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.section-row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Active Booking Card */
.active-booking-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), var(--bg-card));
  border: 1px solid rgba(99,102,241,0.3); border-radius: var(--radius-lg);
  padding: 24px; display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.active-badge { font-size: 11px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.active-booking-info { flex: 1; }
.active-booking-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.active-booking-info p { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.booking-timer { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.booking-timer strong { color: var(--accent); font-size: 18px; font-family: 'Space Grotesk', sans-serif; }
.active-booking-qr { text-align: center; }
.active-booking-qr p { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.qr-mini { width: 80px; height: 80px; background: white; border-radius: 8px; padding: 4px; }
.active-booking-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

/* Bookings Table */
.bookings-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-header {
  display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
  padding: 12px 16px; background: var(--bg-3); font-size: 12px;
  font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px;
}
.table-row {
  display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
  padding: 14px 16px; border-top: 1px solid var(--border);
  font-size: 13px; align-items: center; transition: background var(--transition);
}
.table-row:hover { background: rgba(255,255,255,0.02); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 100px; font-size: 11px; font-weight: 700;
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--secondary); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--accent); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-primary { background: rgba(99,102,241,0.15); color: var(--primary-light); }
.badge-info { background: rgba(6,182,212,0.15); color: #22d3ee; }

/* Bookings List */
.bookings-list { display: flex; flex-direction: column; gap: 12px; }
.booking-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; gap: 16px; align-items: center;
}
.booking-card-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(99,102,241,0.15); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 20px; }
.booking-card-info { flex: 1; }
.booking-card-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.booking-card-meta { font-size: 12px; color: var(--text-3); }
.booking-card-amount { font-size: 16px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

/* Vehicles */
.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; margin-bottom: 16px; }
.vehicle-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.vehicle-icon { font-size: 36px; margin-bottom: 10px; }
.vehicle-number { font-size: 16px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.vehicle-type { font-size: 12px; color: var(--text-3); }
.add-vehicle-btn { margin-top: 8px; }

/* Payments */
.payments-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.pay-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.pay-stat-value { font-size: 28px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.pay-stat-label { font-size: 12px; color: var(--text-3); }
.payments-list { display: flex; flex-direction: column; gap: 10px; }
.payment-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
}
.payment-item-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.payment-item-info { flex: 1; }
.payment-item-name { font-size: 13px; font-weight: 600; }
.payment-item-date { font-size: 11px; color: var(--text-3); }
.payment-item-amount { font-size: 15px; font-weight: 700; }

/* Profile */
.profile-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; gap: 24px; align-items: center; margin-bottom: 24px;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: white; flex: 0 0 auto;
}
.profile-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-info p { font-size: 13px; color: var(--text-2); margin-bottom: 2px; }
.profile-badges { display: flex; gap: 8px; margin-top: 10px; }
.profile-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }

/* Tab Filters */
.tab-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN CHARTS
═══════════════════════════════════════════════════════════════════════════ */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.chart-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.chart-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-2); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bar-chart-bar {
  flex: 1; border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  transition: all var(--transition); cursor: pointer; position: relative;
}
.bar-chart-bar:hover { opacity: 0.8; }
.bar-chart-label { font-size: 10px; color: var(--text-3); text-align: center; margin-top: 6px; }
.bar-chart-wrap { display: flex; flex-direction: column; flex: 1; }
.donut-chart-wrap { display: flex; align-items: center; gap: 24px; }
.donut-chart { position: relative; }
.donut-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center;
}
.donut-total { font-size: 16px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.donut-label { font-size: 10px; color: var(--text-3); }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.legend-item span { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.occ-bar { display: inline-flex; width: 80px; height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; margin-right: 6px; vertical-align: middle; }
.occ-bar div { background: var(--primary); border-radius: 3px; }

/* Admin Parkings Grid */
.admin-parkings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.admin-parking-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all var(--transition);
}
.admin-parking-card:hover { border-color: rgba(99,102,241,0.3); }
.admin-parking-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.admin-parking-addr { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.admin-parking-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.admin-stat { background: var(--bg-3); border-radius: 8px; padding: 8px; text-align: center; }
.admin-stat-val { font-size: 16px; font-weight: 700; }
.admin-stat-lbl { font-size: 10px; color: var(--text-3); }
.admin-parking-actions { display: flex; gap: 8px; }

/* Users Table */
.users-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.user-row {
  display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
  padding: 14px 16px; border-top: 1px solid var(--border);
  font-size: 13px; align-items: center;
}
.user-row:first-child { border-top: none; background: var(--bg-3); font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.user-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  color: white; margin-right: 8px;
}

/* QR Scanner */
.scanner-container { max-width: 480px; margin: 0 auto; text-align: center; }
.scanner-frame {
  width: 280px; height: 280px; border-radius: 20px; background: var(--bg-card);
  border: 1px solid var(--border); margin: 0 auto 24px; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.scanner-corner {
  position: absolute; width: 24px; height: 24px;
  border-color: var(--primary); border-style: solid;
}
.scanner-corner.tl { top: 12px; left: 12px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.scanner-corner.tr { top: 12px; right: 12px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.scanner-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.scanner-corner.br { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }
.scanner-line {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 2s ease-in-out infinite;
}
@keyframes scan { 0%{top:12px} 100%{top:calc(100% - 12px)} }
.scanner-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scanner-placeholder p { font-size: 12px; color: var(--text-3); }
.scanner-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.manual-entry { display: flex; gap: 8px; width: 100%; }
.manual-entry .form-input { flex: 1; }
.scan-result {
  margin-top: 20px; padding: 16px; border-radius: var(--radius);
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 14px 20px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease; max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(16,185,129,0.4); color: var(--secondary); }
.toast.error { border-color: rgba(239,68,68,0.4); color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-large { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-visual { flex: 0 0 340px; padding: 40px 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--border); padding: 16px;
  }
  .nav-links.open + .nav-actions { display: flex; padding: 0 16px 16px; }
  .hero { flex-direction: column; padding: 100px 24px 40px; text-align: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-container { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .auth-visual { display: none; }
  .auth-form-wrap { padding: 24px 16px; }
  .map-sidebar { position: absolute; z-index: 400; height: 100%; }
  .map-sidebar.hidden { display: none; }
  .sidebar-close { display: block; }
  .dash-sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .table-header, .table-row { grid-template-columns: 2fr 1fr 1fr; }
  .table-header span:nth-child(2), .table-row span:nth-child(2),
  .table-header span:nth-child(3), .table-row span:nth-child(3) { display: none; }
  .active-booking-card { flex-direction: column; }
  .payments-summary { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .slot-type-selector { grid-template-columns: 1fr 1fr 1fr; }
  .payment-methods { grid-template-columns: 1fr 1fr; }
  .dash-topbar { padding: 16px; }
  .dash-tab { padding: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADDITIONAL STYLES — v2 Fixes
═══════════════════════════════════════════════════════════════════════════ */

/* ── Alert / Error Box ─────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }

/* ── Surface variable alias ────────────────────────────────────────────── */
:root { --surface-2: #1a1a24; }

/* ── No Active Booking placeholder ────────────────────────────────────── */
#noActiveBooking .dash-section-title { margin-bottom: 12px; }

/* ── Active Booking Card — Extend / End buttons ────────────────────────── */
.active-booking-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.active-booking-actions .btn { justify-content: center; }

/* ── Extend Modal ──────────────────────────────────────────────────────── */
#extendModal .modal-body { padding: 24px; }
#extendModal select.form-input { margin-top: 6px; }

/* ── Success Modal — Navigation Map ───────────────────────────────────── */
#successMapContainer { text-align: left; }
#successMapContainer .btn-outline { display: flex; align-items: center; justify-content: center; gap: 8px; }
#successLeafletMap { z-index: 1; }

/* ── Modal scroll for tall modals ─────────────────────────────────────── */
.modal { max-height: 90vh; overflow-y: auto; }
.modal-sm { max-height: 90vh; overflow-y: auto; }

/* ── Profile Avatar dynamic color ─────────────────────────────────────── */
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── User Avatar Small ─────────────────────────────────────────────────── */
.user-avatar-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: 12px; font-weight: 700;
  margin-right: 8px; flex-shrink: 0;
}

/* ── User Row (admin users table) ──────────────────────────────────────── */
.user-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 14px;
}
.user-row:first-child {
  font-weight: 600; color: var(--text-3); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-3); border-radius: 8px 8px 0 0;
}
.user-row span { display: flex; align-items: center; }

/* ── Vehicle Card ──────────────────────────────────────────────────────── */
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: border-color var(--transition);
}
.vehicle-card:hover { border-color: var(--primary); }
.vehicle-icon { font-size: 40px; margin-bottom: 12px; }
.vehicle-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.vehicle-type { color: var(--text-3); font-size: 13px; }

/* ── Vehicles Grid ─────────────────────────────────────────────────────── */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* ── Add Vehicle Button ────────────────────────────────────────────────── */
.add-vehicle-btn {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}

/* ── Booking Card ──────────────────────────────────────────────────────── */
.booking-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; transition: border-color var(--transition);
}
.booking-card:hover { border-color: var(--border-light); }
.booking-card-icon { font-size: 28px; flex-shrink: 0; }
.booking-card-info { flex: 1; min-width: 0; }
.booking-card-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-card-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.booking-card-amount { font-weight: 700; font-size: 15px; color: var(--text); flex-shrink: 0; }

/* ── Payment Item ──────────────────────────────────────────────────────── */
.payment-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.payment-item:last-child { border-bottom: none; }
.payment-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.payment-item-info { flex: 1; }
.payment-item-name { font-weight: 600; font-size: 14px; }
.payment-item-date { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.payment-item-amount { font-weight: 700; font-size: 15px; flex-shrink: 0; }

/* ── Payments Summary ──────────────────────────────────────────────────── */
.payments-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.pay-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; text-align: center;
}
.pay-stat-value { font-size: 24px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.pay-stat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ── Bookings List ─────────────────────────────────────────────────────── */
.bookings-list { display: flex; flex-direction: column; gap: 0; }

/* ── Tab Filters ───────────────────────────────────────────────────────── */
.tab-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

/* ── Profile Form ──────────────────────────────────────────────────────── */
.profile-form { margin-top: 24px; }
.profile-form .btn { margin-top: 8px; }

/* ── Profile Card ──────────────────────────────────────────────────────── */
.profile-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 24px;
}
.profile-info h3 { font-size: 20px; margin-bottom: 4px; }
.profile-info p { color: var(--text-3); font-size: 14px; margin-bottom: 2px; }
.profile-badges { display: flex; gap: 8px; margin-top: 10px; }

/* ── Badge variants ────────────────────────────────────────────────────── */
.badge-danger { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-info { background: rgba(6,182,212,0.15); color: #67e8f9; }

/* ── Navbar auth buttons ───────────────────────────────────────────────── */
#navDashBtn, #navLogoutBtn { transition: all var(--transition); }

/* ── Section row header ────────────────────────────────────────────────── */
.section-row-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-row-header .dash-section-title { margin-bottom: 0; }

/* ── Admin parking card actions ────────────────────────────────────────── */
.admin-parking-actions { display: flex; gap: 8px; margin-top: 16px; }

/* ── Scan result ───────────────────────────────────────────────────────── */
.scan-result {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; margin-top: 20px;
}

/* ── Occ bar ───────────────────────────────────────────────────────────── */
.occ-bar {
  display: inline-block; width: 60px; height: 6px;
  background: var(--bg-3); border-radius: 3px;
  overflow: hidden; margin-right: 6px; vertical-align: middle;
}
.occ-bar div { height: 100%; background: var(--primary); border-radius: 3px; }

/* ── Input with icon ───────────────────────────────────────────────────── */
.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-right: 44px; }
.input-icon-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-3);
  font-size: 16px; padding: 4px; cursor: pointer;
}
.input-icon-btn:hover { color: var(--text); }

/* ── Form row between ──────────────────────────────────────────────────── */
.form-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; font-size: 14px;
}
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.checkbox-label input { accent-color: var(--primary); }

/* ── Auth switch ───────────────────────────────────────────────────────── */
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-3); }
.link { color: var(--primary); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ── Auth divider ──────────────────────────────────────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-3); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Social auth ───────────────────────────────────────────────────────── */
.social-auth { display: flex; gap: 12px; margin-bottom: 16px; }

/* ── Responsive additions ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .active-booking-actions { flex-direction: row; }
  .user-row { grid-template-columns: 2fr 1fr 1fr; }
  .user-row span:nth-child(2) { display: none; }
  .payments-summary { grid-template-columns: 1fr 1fr; }
  .vehicles-grid { grid-template-columns: 1fr 1fr; }
  .profile-card { flex-direction: column; text-align: center; }
  .profile-badges { justify-content: center; }
  #successLeafletMap { height: 150px !important; }
}
@media (max-width: 480px) {
  .vehicles-grid { grid-template-columns: 1fr; }
  .payments-summary { grid-template-columns: 1fr; }
  .booking-card { flex-wrap: wrap; }
  .user-row { grid-template-columns: 1fr 1fr; }
  .user-row span:nth-child(3) { display: none; }
}