:root {
    --primary: #ffffff;
    --primary-dark: #e5e5e5;
    --primary-light: rgba(255,255,255,0.12);
    --accent: #f59e0b;
    --accent-light: rgba(245, 158, 11, 0.15);
    --neon: #ffffff;
    --pink: #ffffff;
    --bg: #000000;
    --bg-card: #0a0a0a;
    --bg-soft: #141414;
    --bg-hover: #1f1f1f;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 12px 40px rgba(0,0,0,0.45);
    --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
}
h1, h2, .logo, .section-title {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 18px; }

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none !important;
}
.logo span.accent { color: var(--accent); }
.logo-icon { font-size: 1.5rem; }

.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-link {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s;
    text-decoration: none !important;
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-link.btn-solid {
    background: var(--primary);
    color: #fff !important;
}
.nav-link.btn-solid:hover { background: var(--primary-dark); }
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-soft);
    border-radius: 999px;
    font-size: 0.85rem;
}
.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; color: #fff;
}
.mobile-toggle {
    display: none;
    background: none; border: none; color: var(--text);
    font-size: 1.5rem; cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    padding: 70px 0 50px;
    background: radial-gradient(ellipse at 30% 0%, rgba(168,85,247,0.22) 0%, transparent 55%),
                radial-gradient(ellipse at 70% 20%, rgba(236,72,153,0.12) 0%, transparent 50%);
    text-align: center;
}
.hero-genz { padding: 80px 0 60px; }
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, rgba(168,85,247,0.25), rgba(236,72,153,0.25));
    border: 1px solid rgba(168,85,247,0.35);
    color: #e9d5ff;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}
.hero h1 .gold { color: var(--accent); }
.hero h1 .neon { color: var(--neon); text-shadow: 0 0 24px rgba(34,211,238,0.45); }
.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 28px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-glow {
    box-shadow: 0 0 20px rgba(168,85,247,0.45), 0 4px 14px rgba(0,0,0,0.3);
}
.btn-glow:hover {
    box-shadow: 0 0 32px rgba(168,85,247,0.6), 0 6px 20px rgba(0,0,0,0.35);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none !important;
    font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-soft); color: var(--text); border: 1px solid rgba(255,255,255,0.08); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { filter: brightness(1.1); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ========== CARDS & LAYOUT ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 24px;
    box-shadow: var(--shadow);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.page-header { padding: 32px 0 16px; }
.page-header h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 4px; }
.page-header p { color: var(--text-muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ========== FEATURES ========== */
.features { padding: 50px 0; }
.section-title {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 36px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13,148,136,0.3);
}
.feature-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-soft);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

/* ========== VEHICLE SELECTOR ========== */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.vehicle-option {
    background: var(--bg);
    border: 2px solid var(--bg-soft);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s;
    position: relative;
}
.vehicle-option:hover { border-color: var(--primary); }
.vehicle-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.vehicle-option .v-icon { font-size: 1.7rem; }
.vehicle-option .v-name { font-weight: 600; font-size: 0.9rem; margin: 4px 0 2px; }
.vehicle-option .v-price { color: var(--accent); font-size: 0.82rem; font-weight: 600; }
.vehicle-option .v-eta { color: var(--text-dim); font-size: 0.75rem; }

/* ========== MAP ========== */
#map, .map-box {
    height: 280px;
    border-radius: var(--radius);
    margin: 16px 0;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.04);
}
.stat-card .value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}
.stat-card .label {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: rgba(16,185,129,0.18); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.18); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,0.18); color: var(--danger); }
.badge-info    { background: rgba(59,130,246,0.18); color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* ========== TABLES ========== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
th { color: var(--text-dim); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ========== TRACKING ========== */
.tracking-box {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-top: 16px;
}
.progress-track {
    height: 6px;
    background: var(--bg-soft);
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}
.progress-track .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 3px;
}

/* ========== AUTH ========== */
.auth-wrap {
    min-height: calc(100vh - var(--nav-h) - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }

/* ========== ALERTS ========== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: var(--success); }
.alert-error   { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: var(--danger); }
.alert-info    { background: rgba(13,148,136,0.12); border: 1px solid rgba(13,148,136,0.25); color: var(--primary); }
.alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); color: var(--warning); }

/* ========== FOOTER ========== */
.footer {
    background: #070d18;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 48px 0 28px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer h4, .footer h5 { margin-bottom: 12px; font-size: 0.95rem; }
.footer a {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 7px;
    text-decoration: none;
}
.footer a:hover { color: var(--primary); }
.footer p { color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
}
.footer-bottom .disclaimer { margin-top: 6px; opacity: 0.7; }

/* ========== WALLET / PROFILE ========== */
.wallet-balance {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.profile-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; color: #fff;
}

/* ========== RIDE CARD ========== */
.ride-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}
.ride-card .route { font-weight: 600; margin-bottom: 4px; }
.ride-card .meta { color: var(--text-muted); font-size: 0.85rem; }

/* ========== TOGGLE SWITCH ========== */
.switch {
    position: relative;
    width: 52px; height: 28px;
    display: inline-block;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-soft);
    border-radius: 28px;
    transition: 0.25s;
}
.slider:before {
    content: "";
    position: absolute;
    height: 22px; width: 22px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }

/* ========== NOTIFICATION DOT ========== */
.notif-dot {
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        right: 12px;
        background: var(--bg-card);
        padding: 14px;
        border-radius: var(--radius);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: var(--shadow);
        min-width: 200px;
        z-index: 999;
    }
    .mobile-toggle { display: block; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero { padding: 48px 0 36px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }

/* ========== FLEET SHOWCASE (GenZ) ========== */
.fleet-showcase {
    padding: 48px 0 64px;
}
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) {
    .fleet-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .fleet-grid { grid-template-columns: 1fr; }
}
.fleet-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fleet-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(168,85,247,0.25);
}
.fleet-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.fleet-card:hover img {
    transform: scale(1.08);
}
.fleet-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,18,0.92) 0%, rgba(10,10,18,0.35) 45%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}
.fleet-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(245,158,11,0.9);
    color: #111;
    margin-bottom: 8px;
}
.fleet-tag.tag-art { background: linear-gradient(90deg, #ec4899, #a855f7); color: #fff; }
.fleet-tag.tag-new { background: #22d3ee; color: #0a0a12; }
.fleet-tag.tag-vibe { background: #10b981; color: #fff; }
.fleet-overlay h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.fleet-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vibe-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #12121f 100%);
    border: 1px solid rgba(168,85,247,0.25);
}
.promo-hint {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.promo-hint code {
    background: var(--bg-soft);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--neon);
}

/* Vehicle cards in booking get extra pop */
.vehicle-option.active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(168,85,247,0.35);
}

/* ========== UBER/BOLT COMPETITIVE BOOKING LAYOUT ========== */
.book-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h));
    position: relative;
    overflow: hidden;
}
.map-book {
    flex: 1;
    min-height: 38vh;
    z-index: 1;
}
.book-panel {
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    padding: 8px 18px 28px;
    max-height: 62vh;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin: 6px auto 14px;
}
.book-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.location-inputs { margin-bottom: 12px; }
.loc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.loc-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.loc-dot.green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.loc-dot.purple { background: #fff; border: 2px solid #000; box-shadow: none; }
.loc-dot.orange { background: #f59e0b; }
.loc-input {
    flex: 1;
    background: var(--bg-soft) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
}
.add-stop-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0 8px 22px;
}
.when-row { margin-bottom: 14px; }
.when-select { border-radius: 12px !important; }

.section-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

/* Vehicle list – competitive rows */
.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.vehicle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}
.vehicle-row:hover { background: var(--bg-hover); }
.vehicle-row.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.3);
}
.v-icon-lg { font-size: 1.8rem; width: 42px; text-align: center; }
.v-info { flex: 1; min-width: 0; }
.v-name { font-weight: 600; font-size: 0.95rem; }
.v-desc { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.v-price-col { text-align: right; }
.v-price { font-weight: 700; font-size: 0.95rem; }
.v-eta { font-size: 0.75rem; color: var(--text-muted); }

.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.promo-wrap input { border-radius: 10px !important; }
.payment-select { border-radius: 10px !important; }
.notes-group { margin-bottom: 12px; }

.fare-preview {
    background: var(--bg);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.05);
}
.fare-total { font-size: 1.2rem; font-weight: 700; }
.btn-request {
    padding: 16px !important;
    font-size: 1.05rem !important;
    border-radius: 14px !important;
    font-weight: 700;
}

/* ========== ACTIVE RIDE VIEW ========== */
.ride-active-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h));
    position: relative;
}
.map-full {
    flex: 1;
    min-height: 40vh;
}
.ride-bottom-sheet {
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    padding: 8px 20px 24px;
    z-index: 10;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.45);
}
.matching-panel {
    text-align: center;
    padding: 12px 0 8px;
    position: relative;
}
.matching-panel.compact { padding: 4px 0; }
.matching-panel.compact .matching-pulse { display: none; }
.matching-pulse {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    margin: 0 auto 12px;
    position: relative;
    animation: pulse 1.4s ease-out infinite;
}
.matching-pulse::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.45); }
    70% { box-shadow: 0 0 0 18px rgba(168,85,247,0); }
    100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); }
}
.matching-panel h2 { font-size: 1.25rem; margin-bottom: 4px; }

.driver-card {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
}
.driver-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.driver-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.driver-meta { flex: 1; }
.driver-meta .stars { font-size: 0.85rem; color: var(--accent); }
.car-plate { font-size: 0.8rem; color: var(--text-muted); }
.driver-actions { display: flex; gap: 8px; }
.action-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}
.eta-banner {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--primary-light);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e9d5ff;
}

.trip-summary {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    padding: 8px 0;
}
.route-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}
.route-line .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.route-line .dot.pickup { background: #10b981; }
.route-line .dot.drop { background: #a855f7; }
.route-line .line {
    width: 2px;
    flex: 1;
    min-height: 28px;
    background: linear-gradient(#10b981, #a855f7);
    margin: 4px 0;
}
.route-text { flex: 1; font-size: 0.95rem; }
.fare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 1.05rem;
}
.ride-actions-bar {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.ride-actions-bar .btn { flex: 1; }

/* Progress bar */
.progress-track {
    height: 6px;
    background: var(--bg-soft);
    border-radius: 4px;
    overflow: hidden;
}
.progress-track .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--pink));
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Driver page improvements */
.ride-card {
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
.ride-card .route { font-weight: 600; margin-bottom: 4px; }
.ride-card .meta { font-size: 0.85rem; color: var(--text-muted); }

/* Form controls polish */
.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-soft);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.2);
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px; height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    inset: 0; background: var(--bg-soft);
    border-radius: 26px; transition: 0.2s;
}
.slider:before {
    content: '';
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
input:checked + .slider { background: var(--success); }
input:checked + .slider:before { transform: translateX(22px); }

/* Responsive */
@media (min-width: 900px) {
    .book-layout {
        flex-direction: row;
        height: calc(100vh - var(--nav-h));
    }
    .map-book { flex: 1.4; min-height: auto; }
    .book-panel {
        width: 420px;
        max-height: none;
        height: 100%;
        border-radius: 0;
        border-left: 1px solid rgba(255,255,255,0.06);
    }
    .ride-active-view { flex-direction: row; }
    .map-full { flex: 1.5; }
    .ride-bottom-sheet {
        width: 400px;
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
    }
}
@media (max-width: 560px) {
    .options-row { grid-template-columns: 1fr; }
    .vehicle-row { padding: 10px 12px; }
    .v-desc { display: none; }
}

/* ========== PRODUCTION LAYOUT FIXES ========== */
.logo-img { display: block; height: 32px; width: auto; }
.logo { gap: 0; }
body.app-shell main { min-height: calc(100vh - var(--nav-h)); }
body.app-shell .footer { display: none; }

/* Vehicle icon badges (no emoji) */
.v-icon-badge {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
    color: #fff;
}
.v-icon-badge.bike { background: linear-gradient(135deg, #f59e0b, #d97706); }
.v-icon-badge.classic { background: linear-gradient(135deg, #f97316, #ea580c); }
.v-icon-badge.art { background: linear-gradient(135deg, #ec4899, #a855f7); }
.v-icon-badge.styled { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.v-icon-badge.xl { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.v-icon-badge.premium { background: linear-gradient(135deg, #eab308, #ca8a04); color: #111; }

/* Book layout: prevent footer bleed / full height */
.book-layout, .ride-active-view {
    height: calc(100vh - var(--nav-h));
    max-height: calc(100vh - var(--nav-h));
}
.map-book, .map-full {
    background: #e8e8e8;
    min-height: 280px;
}
.leaflet-container {
    background: #d4d4d4 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}
.leaflet-tile-pane { opacity: 1 !important; }
.map-book {
    position: relative;
    min-height: 42vh;
}
@media (min-width: 900px) {
    .map-book { min-height: 100%; height: 100%; }
}


/* Navbar polish */
.navbar {
    background: rgba(10, 10, 18, 0.95);
}
.nav-link.btn-solid {
    background: var(--primary);
    color: #fff !important;
}

/* Reduce footer noise on app pages handled above */
.map-pin { background: transparent !important; border: none !important; }
.pin-dot {
    display: block;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.pin-dot.pickup { background: #10b981; }
.pin-dot.drop { background: #a855f7; }
.matching-pulse::after { content: ''; }
.matching-pulse {
    background: linear-gradient(135deg, #a855f7, #ec4899) !important;
}

/* Location autocomplete */
.loc-suggest {
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 50;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    display: none;
}
.loc-suggest-item {
    padding: 12px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.loc-suggest-item:hover { background: var(--bg-hover); }
.loc-suggest-item.muted { color: var(--text-muted); cursor: default; }
.loc-suggest-item:last-child { border-bottom: none; }

/* Light form for white card on landing already handled */

/* Page shell matching dark index */
.page-dark {
    background: #000;
    min-height: calc(100vh - var(--nav-h));
    color: #fff;
}
.page-dark .page-header h1 { color: #fff; }
.page-dark .card {
    background: #12121f;
    border: 1px solid rgba(255,255,255,0.06);
}
.profile-hero { padding: 28px; }
.info-rows { display: flex; flex-direction: column; gap: 0; }
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.wallet-balance {
    text-align: center;
    padding: 36px 24px;
    background: linear-gradient(145deg, #1a1a2e, #12121f);
}
.balance-amount {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}
.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.trip-list { display: flex; flex-direction: column; gap: 12px; }
.trip-card { padding: 18px; }
.trip-route { display: flex; flex-direction: column; gap: 8px; }
.trip-point { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.trip-point .dot {
    width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
}
.trip-point .dot.green { background: #10b981; }
.trip-point .dot.purple { background: #a855f7; }

/* Book location tools */
.loc-tools { margin-bottom: 14px; }
.map-mode-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.map-mode-btn {
    background: var(--bg-soft);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.map-mode-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: #e9d5ff;
}
.map-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.link-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
}
.link-target { width: auto; min-width: 110px; padding: 8px 10px !important; font-size: 0.85rem !important; }
@media (max-width: 560px) {
    .link-row { grid-template-columns: 1fr; }
}

/* ========== AFROEATS ========== */
.eats-page { background: #000; color: #fff; min-height: calc(100vh - var(--nav-h)); }
.eats-hero {
    padding: 40px 0 28px;
    background: radial-gradient(ellipse at 30% 0%, rgba(168,85,247,0.2), transparent 55%);
}
.eats-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.eats-sub { color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.eats-search {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin-bottom: 18px;
}
.eats-search input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 999px;
    border: none;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
}
.eats-search input:focus { outline: 2px solid #a855f7; }
.eats-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.eats-cat {
    padding: 8px 14px;
    border-radius: 999px;
    background: #1a1a1a;
    color: rgba(255,255,255,0.8);
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
}
.eats-cat:hover, .eats-cat.active {
    background: #fff;
    color: #000;
}
.eats-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 18px;
}
.eats-toolbar h2 { font-size: 1.35rem; margin: 0; }
.eats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.eats-card {
    background: #12121f;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.15s, box-shadow 0.15s;
}
.eats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(168,85,247,0.2);
}
.eats-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.eats-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eats-eta {
    position: absolute;
    bottom: 10px; left: 10px;
    background: rgba(0,0,0,0.75);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.eats-card-body { padding: 14px 16px 18px; }
.eats-card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.eats-meta { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 8px; }
.eats-stats { font-size: 0.85rem; color: rgba(255,255,255,0.75); display: flex; flex-wrap: wrap; gap: 6px; }
.eats-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.eats-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(168,85,247,0.2);
    color: #e9d5ff;
}

.eats-rest-hero {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.eats-rest-hero img {
    width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55);
}
.eats-rest-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-bottom: 24px;
}
.eats-back { color: #fff; text-decoration: none; font-size: 0.9rem; margin-bottom: 8px; }
.eats-rest-overlay h1 { font-size: 1.8rem; margin-bottom: 6px; }
.eats-rest-overlay p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.eats-rest-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px 60px;
}
@media (min-width: 900px) {
    .eats-rest-layout { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.menu-item h3 { font-size: 1rem; margin-bottom: 4px; }
.eats-cart { position: sticky; top: 80px; }
.eats-cart h3 { margin-bottom: 4px; }

/* Bootstrap coexistence on dark app */
body { background: var(--bg); }
.navbar .container { max-width: 1140px; }
a.eats-card-bs:hover { text-decoration: none; }
.btn-outline-light:hover { color: #000; }
