/**
 * Wima Cabs — Design System
 * Taxi-yellow primary, charcoal + white premium interface
 */

:root {
    /* Brand */
    --wima-yellow: #F5C400;
    --wima-yellow-hover: #E0B200;
    --wima-yellow-soft: #FFF8E0;
    --wima-charcoal: #202124;
    --wima-black: #111111;
    --wima-white: #FFFFFF;
    --wima-bg: #F7F8FA;
    --wima-muted: #70757D;
    --wima-border: #E6E8EB;
    --wima-success: #198754;
    --wima-error: #DC3545;
    --wima-warning: #FFC107;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.5;

    /* Spacing & radius */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

    /* Layout */
    --header-height: 64px;
    --container: 1140px;
    --transition: 0.2s ease;
}

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

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--wima-bg);
    color: var(--wima-charcoal);
    line-height: var(--line-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--wima-charcoal);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--wima-yellow-hover); }

img { max-width: 100%; display: block; }

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--wima-black);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

.text-muted { color: var(--wima-muted); }
.text-center { text-align: center; }
.text-yellow { color: var(--wima-yellow); }

/* ========== Layout ========== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.main-content {
    flex: 1;
    padding: var(--space-8) 0;
}

/* ========== Header ========== */
.site-header {
    background: var(--wima-white);
    border-bottom: 1px solid var(--wima-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-4);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--wima-black);
}
.brand:hover { color: var(--wima-black); }
.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--wima-yellow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-icon svg { width: 22px; height: 22px; }

.nav-desktop {
    display: none;
    gap: var(--space-6);
    list-style: none;
}
.nav-desktop a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--wima-charcoal);
}
.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--wima-black);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wima-charcoal);
    margin: 4px 0;
    transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--wima-white);
    z-index: 99;
    padding: var(--space-6);
    flex-direction: column;
    gap: var(--space-4);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--wima-border);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--wima-yellow);
    color: var(--wima-black);
    border-color: var(--wima-yellow);
}
.btn-primary:hover {
    background: var(--wima-yellow-hover);
    border-color: var(--wima-yellow-hover);
    color: var(--wima-black);
}

.btn-secondary {
    background: transparent;
    color: var(--wima-charcoal);
    border-color: var(--wima-border);
}
.btn-secondary:hover {
    border-color: var(--wima-charcoal);
    color: var(--wima-black);
}

.btn-outline-yellow {
    background: transparent;
    color: var(--wima-black);
    border-color: var(--wima-yellow);
}
.btn-outline-yellow:hover {
    background: var(--wima-yellow);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }

/* ========== Forms ========== */
.form-group {
    margin-bottom: var(--space-4);
}
.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border: 1px solid var(--wima-border);
    border-radius: var(--radius);
    background: var(--wima-white);
    color: var(--wima-charcoal);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--wima-yellow);
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.25);
}
.form-control.is-invalid {
    border-color: var(--wima-error);
}
.invalid-feedback {
    color: var(--wima-error);
    font-size: 0.85rem;
    margin-top: var(--space-1);
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}
.form-check input { margin-top: 0.25rem; }

/* ========== Cards ========== */
.card {
    background: var(--wima-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--wima-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-body { padding: var(--space-6); }
.card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--wima-border);
    font-weight: 600;
}

/* ========== Alerts ========== */
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
}
.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}
.alert-error, .alert-danger {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}
.alert-info {
    background: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
}

/* ========== Hero (placeholder for Phase 1) ========== */
.hero {
    background: linear-gradient(135deg, var(--wima-white) 0%, var(--wima-yellow-soft) 100%);
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--wima-border);
}
.hero-grid {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}
.hero h1 {
    font-size: 2.25rem;
    margin-bottom: var(--space-4);
}
.hero p {
    font-size: 1.1rem;
    color: var(--wima-muted);
    margin-bottom: var(--space-6);
    max-width: 520px;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-6);
    font-size: 0.9rem;
    color: var(--wima-muted);
}
.hero-trust span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.hero-visual {
    background: var(--wima-charcoal);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wima-yellow);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--wima-charcoal);
    color: #c5c7ca;
    padding: var(--space-10) 0 var(--space-6);
    margin-top: auto;
}
.site-footer a { color: #e0e0e0; }
.site-footer a:hover { color: var(--wima-yellow); }
.footer-grid {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}
.footer-brand p {
    margin-top: var(--space-3);
    font-size: 0.9rem;
    max-width: 260px;
}
.footer-col h4 {
    color: var(--wima-white);
    font-size: 0.95rem;
    margin-bottom: var(--space-3);
}
.footer-col ul {
    list-style: none;
}
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-4);
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);
}

/* ========== Auth pages ========== */
.auth-wrapper {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-4);
}
.auth-card {
    width: 100%;
    max-width: 420px;
}
.auth-card .card-body { padding: var(--space-8); }
.auth-logo {
    text-align: center;
    margin-bottom: var(--space-6);
}
.auth-logo .brand { justify-content: center; font-size: 1.4rem; }
.auth-title {
    text-align: center;
    margin-bottom: var(--space-6);
}
.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: 0.9rem;
    color: var(--wima-muted);
}

/* ========== Install page ========== */
.install-page {
    min-height: 100vh;
    background: var(--wima-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}
.install-card {
    width: 100%;
    max-width: 560px;
}
.install-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

/* ========== Offline indicator (PWA) ========== */
.offline-banner {
    display: none;
    background: var(--wima-charcoal);
    color: var(--wima-yellow);
    text-align: center;
    padding: var(--space-2);
    font-size: 0.85rem;
    font-weight: 500;
}
.offline-banner.show { display: block; }

/* ========== Utilities ========== */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.gap-2 { gap: var(--space-2); }

/* ========== Responsive ========== */
@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .menu-toggle { display: none; }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 { font-size: 2.75rem; }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    h1 { font-size: 2.5rem; }
}

/* ========== Phase 1 — Landing & pages ========== */

.main-home {
    padding-top: 0;
}

/* Hero refinements */
.hero {
    background: linear-gradient(145deg, #FFFFFF 0%, #FFF8E0 55%, #F7F8FA 100%);
    padding: var(--space-10) 0 var(--space-12);
    border-bottom: 1px solid var(--wima-border);
}
.hero-grid {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}
.hero h1 {
    font-size: 2.35rem;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}
.hero-lead {
    font-size: 1.1rem;
    color: var(--wima-muted);
    margin-bottom: var(--space-6);
    max-width: 520px;
    line-height: 1.6;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-6);
    font-size: 0.9rem;
    color: var(--wima-muted);
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.hero-trust svg {
    color: var(--wima-success);
    flex-shrink: 0;
}
.hero-visual {
    background: var(--wima-charcoal);
    border-radius: var(--radius-lg);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}
.hero-visual-inner {
    text-align: center;
    padding: var(--space-6);
    width: 100%;
}
.hero-taxi {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
}
.hero-visual-label {
    margin-top: var(--space-4);
    color: var(--wima-yellow);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Sections */
.section {
    padding: var(--space-12) 0;
}
.section-alt {
    background: var(--wima-white);
    border-top: 1px solid var(--wima-border);
    border-bottom: 1px solid var(--wima-border);
}
.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}
.section-header h2 {
    margin-bottom: var(--space-2);
}
.section-sub {
    color: var(--wima-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

/* Service cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
.service-card {
    background: var(--wima-white);
    border: 1px solid var(--wima-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    color: inherit;
}
.service-card:hover {
    border-color: var(--wima-yellow);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: inherit;
}
.service-icon {
    width: 48px;
    height: 48px;
    background: var(--wima-yellow-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--wima-charcoal);
}
.service-icon svg {
    width: 26px;
    height: 26px;
}
.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
}
.service-card p {
    color: var(--wima-muted);
    font-size: 0.92rem;
    flex: 1;
    margin-bottom: var(--space-4);
    line-height: 1.5;
}
.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--wima-charcoal);
}
.service-card:hover .service-link {
    color: var(--wima-yellow-hover);
}

/* Steps */
.steps-grid {
    display: grid;
    gap: var(--space-6);
}
.step-card {
    text-align: center;
    padding: var(--space-4);
}
.step-number {
    width: 48px;
    height: 48px;
    background: var(--wima-yellow);
    color: var(--wima-black);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}
.step-card h3 {
    margin-bottom: var(--space-2);
}
.step-card p {
    color: var(--wima-muted);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* Split sections */
.split-section {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}
.split-content h2 {
    margin-bottom: var(--space-4);
}
.split-content > p {
    color: var(--wima-muted);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}
.feature-list {
    list-style: none;
    margin-bottom: var(--space-6);
}
.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--space-2);
    color: var(--wima-charcoal);
    font-size: 0.95rem;
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--wima-success);
    font-weight: 700;
}
.info-card {
    background: var(--wima-charcoal);
    color: #e8e8e8;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}
.info-card h4 {
    color: var(--wima-yellow);
    margin-bottom: var(--space-4);
    font-size: 1.05rem;
}
.info-card ul {
    list-style: none;
}
.info-card li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
}
.info-card li:last-child {
    border-bottom: none;
}

/* Trust grid */
.trust-grid {
    display: grid;
    gap: var(--space-4);
}
.trust-card {
    background: var(--wima-white);
    border: 1px solid var(--wima-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
}
.trust-icon {
    width: 52px;
    height: 52px;
    background: var(--wima-yellow-soft);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--wima-charcoal);
}
.trust-icon svg {
    width: 26px;
    height: 26px;
}
.trust-card h3 {
    font-size: 1.05rem;
    margin-bottom: var(--space-2);
}
.trust-card p {
    color: var(--wima-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Final CTA */
.cta-section {
    background: linear-gradient(135deg, var(--wima-charcoal) 0%, #2d2e32 100%);
    color: #fff;
    border: none;
}
.cta-section h2 {
    color: #fff;
}
.cta-section .section-sub {
    color: #c5c7ca;
}
.cta-section .btn-outline-yellow {
    color: #fff;
    border-color: var(--wima-yellow);
}
.cta-section .btn-outline-yellow:hover {
    background: var(--wima-yellow);
    color: var(--wima-black);
}

/* Static pages */
.page-hero {
    background: var(--wima-white);
    border-bottom: 1px solid var(--wima-border);
    padding: var(--space-10) 0 var(--space-8);
}
.page-hero h1 {
    margin-bottom: var(--space-2);
}
.page-lead {
    color: var(--wima-muted);
    font-size: 1.1rem;
}
.prose {
    max-width: 720px;
}
.prose h2 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    font-size: 1.25rem;
}
.prose h3 {
    margin-top: var(--space-5);
    margin-bottom: var(--space-2);
    font-size: 1.05rem;
}
.prose p, .prose li {
    color: var(--wima-charcoal);
    line-height: 1.65;
    margin-bottom: var(--space-3);
}
.prose ul {
    margin: 0 0 var(--space-4) 1.25rem;
}
.prose a {
    color: var(--wima-charcoal);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover {
    color: var(--wima-yellow-hover);
}
.contact-grid {
    display: grid;
    gap: var(--space-4);
}

/* Responsive Phase 1 */
@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-12) 0;
    }
    .hero h1 {
        font-size: 2.85rem;
    }
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .split-section {
        grid-template-columns: 1.2fr 0.8fr;
    }
    .split-section.reverse {
        direction: rtl;
    }
    .split-section.reverse > * {
        direction: ltr;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero h1 {
        font-size: 3.1rem;
    }
}

/* ========== Phase 2 — Dashboard ========== */

.dashboard-body {
    background: var(--wima-bg);
}

.dash-shell {
    display: flex;
    flex-direction: column; /* mobile: stack topbar + main (fixes empty left column) */
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 var(--space-4);
    background: var(--wima-white);
    border-bottom: 1px solid var(--wima-border);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    flex-shrink: 0;
}
.dash-topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.dash-icon-btn {
    position: relative;
    display: flex;
    padding: 0.35rem;
    color: var(--wima-charcoal);
}
.dash-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--wima-error);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.dash-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
}
.dash-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--wima-charcoal);
    margin: 4px 0;
}

.dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--wima-white);
    border-right: 1px solid var(--wima-border);
    z-index: 60;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}
.dash-sidebar.open {
    transform: translateX(0);
}
.dash-sidebar-brand {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    border-bottom: 1px solid var(--wima-border);
}
.dash-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}
.dash-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--wima-charcoal);
    margin-bottom: 2px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.dash-nav-link:hover {
    background: var(--wima-bg);
    color: var(--wima-black);
}
.dash-nav-link.active {
    background: var(--wima-yellow-soft);
    color: var(--wima-black);
    font-weight: 600;
}
.dash-nav-badge {
    margin-left: auto;
    background: var(--wima-error);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.dash-sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--wima-border);
}
.dash-logout {
    color: var(--wima-error) !important;
}

.dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 55;
}
.dash-overlay.show {
    display: block;
}

.dash-main {
    flex: 1;
    padding: var(--space-4);
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.dash-page-header {
    margin-bottom: var(--space-6);
}
.dash-page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.dash-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.dash-action-card {
    background: var(--wima-white);
    border: 1px solid var(--wima-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--wima-charcoal);
}
.dash-action-card:hover {
    border-color: var(--wima-yellow);
    box-shadow: var(--shadow-sm);
    color: var(--wima-black);
}
.dash-action-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.dash-grid {
    display: grid;
    gap: var(--space-4);
}

.dash-list {
    list-style: none;
}
.dash-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--wima-border);
}
.dash-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.dash-list li.unread strong {
    color: var(--wima-black);
}
.badge-soft {
    display: inline-block;
    background: var(--wima-yellow-soft);
    color: var(--wima-charcoal);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    margin-left: 0.35rem;
    vertical-align: middle;
}

.notif-list {
    list-style: none;
}
.notif-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--wima-border);
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item.unread {
    background: var(--wima-yellow-soft);
}
.notif-body p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--wima-muted);
}
.notif-body time {
    font-size: 0.75rem;
    color: var(--wima-muted);
}

@media (min-width: 768px) {
    .dash-topbar {
        display: none;
    }
    .dash-sidebar {
        transform: none;
        position: sticky;
        top: 0;
        flex-shrink: 0;
        height: 100vh;
    }
    .dash-shell {
        display: grid;
        grid-template-columns: 260px 1fr;
        flex-direction: unset;
    }
    .dash-main {
        padding: var(--space-6) var(--space-8);
        grid-column: 2;
    }
    .dash-actions {
        grid-template-columns: repeat(4, 1fr);
    }
    .dash-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dash-overlay {
        display: none !important;
    }
}

/* ========== Phase 3 — Driver KYC & dashboard ========== */

.kyc-progress {
    height: 6px;
    background: var(--wima-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
    max-width: 560px;
}
.kyc-progress-bar {
    height: 100%;
    background: var(--wima-yellow);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.driver-status-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.driver-status-item {
    background: var(--wima-white);
    border: 1px solid var(--wima-border);
    border-radius: var(--radius);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.driver-status-item span {
    font-size: 0.8rem;
}
.badge-draft { color: var(--wima-muted); }
.badge-pending { color: #b45309; }
.badge-approved { color: var(--wima-success); }
.badge-rejected { color: var(--wima-error); }

@media (min-width: 768px) {
    .driver-status-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== Phase 4 — Fleet tables ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--wima-border);
}
.data-table th {
    font-weight: 600;
    color: var(--wima-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--wima-bg);
}
.data-table tr:last-child td {
    border-bottom: none;
}

/* ========== Phase 6 — Maps ========== */
.wima-map {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    border: 1px solid var(--wima-border);
    z-index: 1;
    background: #e8eaed;
}
.wima-map-sm {
    height: 220px;
}
.map-search-results {
    margin-top: 0.35rem;
    border: 1px solid var(--wima-border);
    border-radius: var(--radius);
    background: var(--wima-white);
    max-height: 200px;
    overflow-y: auto;
    display: none;
}
.map-search-results:not(:empty) {
    display: block;
}
.map-search-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.85rem;
    border: none;
    border-bottom: 1px solid var(--wima-border);
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--wima-charcoal);
}
.map-search-item:last-child {
    border-bottom: none;
}
.map-search-item:hover {
    background: var(--wima-yellow-soft);
}

/* ========== Phase 7 — Booking & fare ========== */
.fare-estimate {
    background: var(--wima-yellow-soft, #fff8e1);
    border: 1px solid var(--wima-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.fare-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wima-charcoal);
    line-height: 1.2;
}

/* ========== Phase 8 — Live tracking ========== */
.wima-map-live {
    height: 360px;
}
.live-track-layout {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 900px) {
    .live-track-layout {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
    .wima-map-live {
        height: 420px;
    }
}

/* ========== Phase 10 — Ratings ========== */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}
.rating-stars input { display: none; }
.rating-stars label {
    font-size: 1.75rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
}
.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #F5C400;
}

/* ========== Phase 13 — Admin ========== */
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.admin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.admin-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

/* ========== Phase 17 — Landing redesign + production polish ========== */
.text-yellow { color: var(--wima-yellow); }
.btn-pill { border-radius: var(--radius-full); }
.btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--wima-charcoal);
    color: var(--wima-charcoal);
}
.btn-outline-dark:hover { background: var(--wima-charcoal); color: #fff; }
.btn-outline-light {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--wima-charcoal); }
.btn-dark { background: var(--wima-charcoal); color: #fff; border: none; }
.btn-dark:hover { background: #000; color: #fff; }

.brand-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; }
.brand-pin { display: flex; line-height: 0; }
.brand-name-accent { color: var(--wima-yellow); }
.site-header-v2 { background: #fff; border-bottom: 1px solid var(--wima-border); position: sticky; top: 0; z-index: 100; }
.site-header-v2 .nav-desktop a.active { color: var(--wima-charcoal); border-bottom: 2px solid var(--wima-yellow); padding-bottom: 0.25rem; }
.site-header-v2 .header-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.lp-hero {
    background: linear-gradient(180deg, #fff 0%, #fff 60%, #FFF8E0 100%);
    padding: 2.5rem 0 3rem;
    overflow: hidden;
}
.lp-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .lp-hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.lp-badge {
    display: inline-block;
    background: var(--wima-yellow);
    color: var(--wima-charcoal);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.lp-hero-copy h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.lp-lead { font-size: 1.1rem; color: var(--wima-muted); margin-bottom: 1.5rem; max-width: 28rem; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.lp-trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}
@media (min-width: 600px) {
    .lp-trust-row { grid-template-columns: repeat(4, auto); }
}
.lp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wima-charcoal);
}
.lp-trust-icon { font-size: 1.1rem; }
.lp-hero-art { position: relative; min-height: 260px; }
.lp-hero-circle {
    position: absolute;
    right: -10%;
    top: 10%;
    width: 320px;
    height: 320px;
    background: var(--wima-yellow);
    border-radius: 50%;
    opacity: 0.95;
}
.lp-hero-card {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}
.lp-taxi-block { text-align: center; }
.lp-taxi-svg { width: min(100%, 340px); height: auto; }
.lp-hero-caption { margin-top: 0.5rem; font-weight: 600; color: var(--wima-charcoal); }

.lp-section { padding: 3.5rem 0; background: #fff; }
.lp-section-head { text-align: center; margin-bottom: 2rem; }
.lp-section-label {
    display: block;
    color: var(--wima-yellow);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
}
.lp-section-head h2, .lp-why-copy h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
}
.lp-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
@media (min-width: 768px) {
    .lp-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1100px) {
    .lp-services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.lp-service-card {
    background: #fff;
    border: 1px solid var(--wima-border);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lp-service-icon {
    width: 48px; height: 48px;
    margin: 0 auto 0.75rem;
    background: var(--wima-yellow-soft);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.lp-service-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.lp-service-card p { font-size: 0.8rem; color: var(--wima-muted); line-height: 1.4; }

.lp-why {
    padding: 3.5rem 0;
    background: linear-gradient(105deg, #fff 40%, #FFF8E0 100%);
}
.lp-why-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .lp-why-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.lp-phone {
    width: min(260px, 100%);
    margin: 0 auto;
    background: #111;
    border-radius: 28px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}
.lp-phone-screen {
    background: #f0f2f5;
    border-radius: 20px;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}
.lp-map-fake {
    flex: 1;
    background: linear-gradient(160deg, #c8e6c9, #bbdefb 50%, #fff9c4);
    position: relative;
    min-height: 220px;
}
.lp-route {
    position: absolute;
    left: 20%; top: 25%;
    width: 55%; height: 45%;
    border: 3px solid #1976d2;
    border-radius: 40% 20% 50% 30%;
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-15deg);
}
.lp-pin {
    position: absolute;
    width: 22px; height: 22px;
    border-radius: 50% 50% 50% 0;
    background: #c62828;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(-45deg);
}
.lp-pin span, .lp-pin { transform: rotate(-45deg); }
.lp-pin-a { left: 22%; top: 28%; background: #1976d2; }
.lp-pin-b { right: 22%; bottom: 22%; }
.lp-driver-card {
    background: #fff;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--wima-border);
}
.lp-driver-row { display: flex; gap: 0.65rem; align-items: center; margin-top: 0.5rem; }
.lp-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--wima-yellow); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem;
}
.lp-checklist {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
}
.lp-checklist li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    font-weight: 500;
}
.lp-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 22px; height: 22px;
    background: var(--wima-yellow);
    color: var(--wima-charcoal);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.lp-cta-band {
    background: var(--wima-charcoal);
    color: #fff;
    padding: 2.5rem 0;
}
.lp-cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
}
.lp-cta-inner h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.lp-cta-inner p { color: rgba(255,255,255,0.75); }
.lp-cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.site-footer-v2 { background: #111; color: rgba(255,255,255,0.8); padding-top: 2.5rem; }
.footer-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (min-width: 900px) {
    .footer-grid-v2 { grid-template-columns: 1.2fr 1fr 1fr 1fr 1.1fr; }
}
.footer-tagline { margin-top: 0.5rem; color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-social { display: flex; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.social-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: #fff;
}
.footer-app-label { font-weight: 600; color: var(--wima-yellow); margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-store-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.store-badge {
    background: #000;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

/* Owner stats */
.owner-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.owner-stat-card .card-body { padding: 1rem; }
.owner-stat-value { font-size: 1.35rem; font-weight: 700; }
.owner-period-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

/* Mobile production polish */
@media (max-width: 640px) {
    .site-header-v2 .btn-sm { font-size: 0.75rem; padding: 0.4rem 0.65rem; }
    .header-actions .btn-pill:not(:first-child) { display: none; }
    .lp-hero { padding: 1.5rem 0 2rem; }
    .lp-hero-ctas .btn { width: 100%; justify-content: center; }
    .dash-page-header h1 { font-size: 1.35rem; }
    .data-table { font-size: 0.85rem; }
    .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Touch-friendly dashboard nav */
@media (max-width: 768px) {
    .dash-nav-link { min-height: 44px; }
    .btn { min-height: 44px; }
    .form-control { min-height: 44px; font-size: 16px; }
}

/* ========== Patch: password eye, map pins, hero, responsive ========== */

.password-field {
    position: relative;
    display: block;
}
.password-field .form-control {
    padding-right: 2.75rem;
}
.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: var(--wima-muted, #6b7280);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}
.password-toggle:hover { color: var(--wima-charcoal, #202124); }
.password-toggle .eye-open,
.password-toggle .eye-closed { display: block; pointer-events: none; }

/* Leaflet map pins (from/to) */
.wima-map-pin {
    background: transparent !important;
    border: none !important;
}
.leaflet-div-icon.wima-map-pin {
    background: transparent;
    border: none;
}

/* Sticky public navbar — no extra reg buttons clutter */
.site-header-v2 {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header-login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
}
.mobile-nav-login {
    font-weight: 700;
    color: var(--wima-charcoal);
}

/* Hero background image */
.lp-hero {
    position: relative;
    isolation: isolate;
}
.lp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(105deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 48%, rgba(245,196,0,0.18) 100%),
        url('/assets/images/hero-bg.png') center / cover no-repeat;
    opacity: 1;
}
.lp-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    max-height: 280px;
}
.lp-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(245, 196, 0, 0.2);
    color: var(--wima-charcoal, #202124);
}
.lp-trust-icon svg { display: block; }

/* Dashboard mobile shell — prevent overflow / broken layout */
.dash-main {
    width: 100%;
    min-width: 0;
    flex: 1;
    padding: 1rem;
    box-sizing: border-box;
}
.dash-page-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
}
.card, .stat-card, .admin-stat-card {
    max-width: 100%;
    overflow: hidden;
}
.data-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* Stacked card-style tables on small screens */
@media (max-width: 640px) {
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    .data-table tr {
        border-bottom: 1px solid var(--wima-border);
        padding: 0.75rem 1rem;
    }
    .data-table td {
        border: none;
        padding: 0.25rem 0;
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
    }
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--wima-muted);
        flex-shrink: 0;
    }
    .dash-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .dash-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 767px) {
    .dash-main { padding: 0.75rem; }
    .dash-sidebar { width: min(280px, 86vw); }
    .stat-grid, .admin-stat-grid, .driver-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.6rem;
    }
    .lp-hero-ctas { flex-direction: column; align-items: stretch; }
    .lp-hero-ctas .btn { width: 100%; }
    .header-actions .header-login-btn { display: inline-flex !important; }
    /* Hero less cluttered on mobile */
    .lp-hero-art { display: none; }
    .lp-hero-bg { opacity: 0.55; }
}
@media (min-width: 768px) {
    .dash-topbar { display: none; }
    .auth-wrapper {
        min-height: calc(100vh - 80px);
        padding: 2.5rem 1rem;
    }
    .auth-card {
        max-width: 440px;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-lg);
    }
}
/* Auth never full-bleed on desktop */
.auth-wrapper {
    width: 100%;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.lp-service-icon-svg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff 0%, #fff8d6 100%);
    border: 1px solid rgba(245,196,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #202124;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.lp-service-icon-svg svg { display: block; }
