/* ========================================= */
/* 1. GLOBAL VARIABLES & BASE RESET          */
/* ========================================= */
:root {
    --primary: #E85D24;
    --dark: #0B2E4A;        
    --slate: #5E6F83;       
    --bg: #F4F7FB;          
    --card-bg: #ffffff;     
    --border: #D8E2EC;      
    --nav-shadow: rgba(8, 31, 51, 0.08);
    --accent: #0F766E;
    --danger: #D92D20;
    --container-max: 1280px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --container-pad-inline: var(--space-sm);
}

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

/*  FIX: Global Font Scaling (Sleek Premium Look) */
html { font-size: 16px; }

/*  FIX: Sticky Footer (No White Space at Bottom) */
html, body { 
    height: 100%; 
    background-color: var(--bg); 
    overflow-x: hidden; 
}
body { 
    font-family: 'Sora', sans-serif;
    color: var(--dark);
    line-height: 1.5;
    position: relative;
    display: flex !important; 
    flex-direction: column !important; 
    min-height: 100vh; 
    padding-bottom: 96px;
}
body.home-page {
    background:
        repeating-linear-gradient(135deg, rgba(11, 46, 74, 0.03) 0 1px, transparent 1px 34px),
        radial-gradient(circle at 12% 0%, rgba(232, 93, 36, 0.10), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(15, 118, 110, 0.10), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fc 260px, #edf4fa 100%);
    background-attachment: fixed;
}
.page-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}
#main-content {
    flex: 1 0 auto !important;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ========================================= */
/* 2. TYPOGRAPHY & TEXT UTILITIES            */
/* ========================================= */
h1, h2, h3, h4, h5, h6, strong { color: var(--dark); }
.text-slate { color: var(--slate) !important; }
.text-dark { color: var(--dark) !important; }
.text-orange { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }

.container {
    width: min(var(--container-max), calc(100% - (var(--space-sm) * 2)));
    margin-inline: auto;
    padding-inline: var(--container-pad-inline);
}

.page-section {
    padding-block: var(--space-lg);
}

.page-section--center {
    text-align: center;
}

.page-section--border-top {
    border-top: 1px solid var(--border);
}

.page-section--compact {
    padding-block: var(--space-md);
}

/* ========================================= */
/* SITE-WIDE PAGE / CARD / BUTTON UTILITIES  */
/* ========================================= */
.page-header {
    padding-block: 50px;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
}

.surface-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
}

.badge-sold-out {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--danger);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 999px;
    z-index: 10;
}

.home-shell {
    position: relative;
    margin-top: var(--space-md);
    padding-block: var(--space-lg);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 252, 0.88));
    border: 1px solid rgba(216, 226, 236, 0.72);
    box-shadow: 0 24px 60px rgba(8, 31, 51, 0.06);
}

.home-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(232, 93, 36, 0.06), transparent 28%),
        radial-gradient(circle at 84% 6%, rgba(15, 118, 110, 0.06), transparent 22%),
        repeating-linear-gradient(135deg, rgba(11, 46, 74, 0.02) 0 1px, transparent 1px 30px);
    opacity: 0.9;
    pointer-events: none;
}

.home-shell > * {
    position: relative;
    z-index: 1;
}

.home-shell > .homepage-hero,
.home-shell > .workshop-showcase,
.home-shell > .coverage-section,
.home-shell > .trust-section,
.home-shell > .testimonial-section,
.home-shell > .faq-section,
.home-shell > .page-section {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(216, 226, 236, 0.75);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(8, 31, 51, 0.05);
    padding-inline: var(--space-md);
}

/* ========================================= */
/* 3. NAVBAR & LOGO LOGIC                    */
/* ========================================= */
.navbar {
    min-height: 4.6875rem;
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    box-shadow: 0 0.25rem 0.625rem var(--nav-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-section { cursor: pointer; display: flex; align-items: center; gap: 0.625rem; }
.nav-logo-icon { height: 2.5rem; width: 3.125rem; object-fit: cover; object-position: top center; }
.nav-logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.nav-logo-text .text-top { font-size: 1.1rem; font-weight: 1000; letter-spacing: 0.5px; }
.nav-logo-text .text-bottom { font-size: 1.45rem; font-weight: 1000; letter-spacing: 0.5px; color: var(--primary); }

/* Navbar Menu Links */
.nav-links { display: flex; list-style: none; gap: 1rem; white-space: nowrap; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 700; font-size: 0.86rem; position: relative; padding-bottom: 0.3125rem; transition: 0.3s; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0; background-color: var(--primary); transition: width 0.3s ease-in-out; border-radius: 2px; }
.nav-links a:hover::after, .nav-links a.active-nav::after { width: 100%; }
.nav-links a:hover, .nav-links a.active-nav { color: var(--primary) !important; }

/* Navbar Actions */
.nav-actions { display: flex; align-items: center; gap: 0.875rem; }

/* ========================================= */
/* 4. BUTTONS (THE ULTIMATE FIXES)           */
/* ========================================= */

/*  FIX: NAVBAR BUTTONS (Buy & Sell + Login) */
.nav-actions a.btn-action,
.nav-actions button.btn-action,
.btn-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 2.5rem !important;
    padding: 0 1.25rem !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-actions .btn-buy-sell { background-color: var(--dark) !important; color: #ffffff !important; }
.nav-actions .btn-partner { background-color: var(--accent) !important; color: #ffffff !important; }
.nav-actions .btn-login { background-color: var(--danger) !important; color: #ffffff !important; }
.nav-actions .btn-action:hover { transform: translateY(-2px) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; }
.nav-actions .btn-action i { width: 0.75rem; height: 0.75rem; margin-left: 0.3125rem; flex: 0 0 auto; }
.btn-action-short { display: none; }
.nav-actions { gap: 0.375rem; }
.nav-actions a.btn-action, .nav-actions button.btn-action, .nav-actions .btn-action { font-size: 0.76rem !important; padding: 0 0.5625rem !important; }

/*  FIX: MAIN BUTTONS (Book a Service & View Catalog) */
.btn-primary, .btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}
.btn-primary { 
    background: var(--primary) !important; 
    color: #ffffff !important; 
    border: none !important; 
    box-shadow: 0 8px 20px rgba(232, 93, 36, 0.28) !important; 
}
.btn-ghost { 
    background: transparent !important; 
    color: var(--dark) !important; 
    border: 2px solid var(--border) !important; 
}
.btn-primary:hover { 
    transform: translateY(-3px) !important; 
    box-shadow: 0 10px 20px rgba(232, 93, 36, 0.36) !important; 
}
.btn-primary.btn-sm, .btn-ghost.btn-sm {
    height: 36px !important;
    padding: 0 16px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}
.btn-primary:disabled, .btn-ghost:disabled {
    background: var(--slate) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none;
    opacity: 0.7;
}
.btn-ghost:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px) !important;
}

/*  FIX: SOS EMERGENCY BUTTON */
.btn-sos { 
    background-color: var(--danger) !important; 
    color: #ffffff !important; 
    border: none !important; 
    padding: 0 30px !important; 
    height: 50px !important; 
    border-radius: 12px !important; 
    font-weight: 900 !important; 
    font-size: 1rem !important; 
    cursor: pointer !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 10px !important; 
    animation: pulse-red 2s infinite !important; 
    width: 100% !important; 
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

/*  Hover lift is reserved for buttons and tabs only (see .menu-item, .btn-primary, etc). */
.hover-card {
    transition: all 0.3s ease !important;
}

/* ========================================= */
/* 5. CARDS, GRIDS & BRAND LOGOS             */
/* ========================================= */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 30px; align-items: center; justify-items: center; opacity: 0.7; }
.brand-logo { max-width: 60px; max-height: 45px; object-fit: contain; filter: grayscale(100%); }

.contact-input { width: 100%; padding: 14px 20px; border: 2px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--dark); font-family: inherit; font-size: 0.95rem; outline: none; margin-bottom: 20px; transition: 0.3s; }
.contact-input:focus { border-color: var(--primary); }

.badge-oem { position: absolute; top: 20px; left: 20px; background: var(--accent); color: white; padding: 4px 10px; font-size: 0.65rem; font-weight: 800; border-radius: 20px; z-index: 10; }

.seo-band {
    width: 100%;
    background: transparent;
    border-top: 1px solid rgba(216, 226, 236, 0.7);
    padding: 28px 0 34px;
}

.seo-content {
    max-width: 1160px;
}

.seo-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #F8FBFE 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 12px 26px rgba(8, 31, 51, 0.055);
    position: relative;
    overflow: hidden;
}

.seo-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.seo-copy {
    min-width: 0;
}

.seo-eyebrow {
    color: var(--primary) !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
}

.seo-content h2 {
    font-size: 1.28rem;
    line-height: 1.28;
    margin-bottom: 8px;
}

.seo-content p {
    color: var(--slate);
    font-size: 0.92rem;
    line-height: 1.62;
    margin-bottom: 0;
}

.seo-keyword-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.seo-keyword-grid span {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--dark);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    padding: 9px 11px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(8, 31, 51, 0.035);
}

/* ========================================= */
/* 5B. UI/UX POLISH LAYER                    */
/* ========================================= */
body {
    background:
        linear-gradient(180deg, #ffffff 0, var(--bg) 240px),
        var(--bg);
}

.navbar {
    min-height: 5.375rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 0.625rem 1.875rem rgba(15, 23, 42, 0.06);
}

.nav-logo-icon {
    height: 52px;
    width: 72px;
    object-fit: contain;
}

.nav-links a {
    border-radius: 8px;
    padding: 8px 4px 10px;
}

.nav-actions a.btn-action,
.nav-actions button.btn-action,
.btn-action {
    height: 48px !important;
    border-radius: 12px !important;
    padding: 0 24px !important;
}

.hero-text > span:first-child {
    border: 1px solid rgba(232, 93, 36, 0.22);
}

.hero-text h1 {
    letter-spacing: 0;
}

.hero-visual {
    position: relative;
}

.lottie-radar {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
}

.mechanic-map {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.mechanic-map .leaflet-control-attribution {
    display: none;
}

.hero-eyebrow-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    flex: 0 0 auto;
    background: transparent !important;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.page-intro-panel lottie-player,
.lottie-radar {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

.motion-fallback {
    position: relative;
    display: inline-flex;
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, var(--primary) 0 20%, transparent 21%),
        radial-gradient(circle at center, rgba(232, 93, 36, 0.18) 0 46%, transparent 47%),
        var(--dark);
    box-shadow: 0 12px 28px rgba(8, 31, 51, 0.18);
    overflow: hidden;
    animation: motionPulse 1.8s ease-in-out infinite;
}

.motion-fallback::before {
    content: "";
    position: absolute;
    width: 46px;
    height: 12px;
    border-radius: 999px;
    background: #ffffff;
    top: 29px;
    left: 12px;
    transform-origin: center;
    animation: motionSpin 2.2s linear infinite;
}

.motion-fallback::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: inherit;
}

.motion-danger {
    background:
        radial-gradient(circle at center, #ffffff 0 18%, transparent 19%),
        radial-gradient(circle at center, rgba(217, 45, 32, 0.22) 0 48%, transparent 49%),
        var(--danger);
}

.motion-success {
    background:
        radial-gradient(circle at center, #ffffff 0 18%, transparent 19%),
        radial-gradient(circle at center, rgba(15, 118, 110, 0.22) 0 48%, transparent 49%),
        var(--accent);
}

.motion-store {
    background:
        radial-gradient(circle at center, #ffffff 0 18%, transparent 19%),
        radial-gradient(circle at center, rgba(37, 99, 235, 0.22) 0 48%, transparent 49%),
        #2563eb;
}

.page-intro-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 14px 32px rgba(8, 31, 51, 0.06);
}

.page-intro-lottie {
    width: 110px;
    height: 110px;
    flex: 0 0 auto;
}

.page-intro-panel .motion-fallback {
    width: 88px;
    height: 88px;
}

.page-intro-panel .motion-fallback::before {
    width: 58px;
    top: 38px;
    left: 15px;
}

.page-intro-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.workshop-showcase {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(300px, 1.35fr) minmax(220px, 0.85fr);
    align-items: center;
    gap: 36px;
    margin-top: var(--space-md);
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(8, 31, 51, 0.06);
}

.workshop-showcase h2 {
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 8px;
}

.workshop-showcase-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.workshop-showcase-features {
    display: flex;
    flex-direction: column;
}

.workshop-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-block: 14px;
}

.workshop-feature:first-child {
    padding-top: 0;
}

.workshop-feature + .workshop-feature {
    border-top: 1px solid var(--border);
}

.workshop-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(232, 93, 36, 0.1);
    color: var(--primary);
    flex: 0 0 auto;
}

.workshop-feature-icon i {
    width: 18px;
    height: 18px;
}

.workshop-feature-icon--dark {
    background: rgba(11, 46, 74, 0.08);
    color: var(--dark);
}

.workshop-feature-text h4 {
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 3px;
}

.workshop-feature-text p {
    color: var(--slate);
    font-size: 0.8rem;
    line-height: 1.4;
}

.emergency-card {
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(217, 45, 32, 0.08);
}

.prod-card,
.car-card,
.card {
    border-radius: 10px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.prod-card {
    min-height: 360px;
}

.prod-card h4,
.car-card h3 {
    min-height: 2.6em;
}

.product-card-desc {
    color: var(--slate) !important;
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0 0 16px;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-card .btn-primary,
.car-card .btn-primary {
    min-width: 118px;
}

.swipe-container {
    background: #eef2f7;
}

.swipe-item {
    border-radius: 10px;
}

.swipe-badge,
.badge-oem {
    border-radius: 999px !important;
}

.menu-item {
    border-radius: 10px !important;
    transition: all 0.2s ease;
}
.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(8, 31, 51, 0.08);
}

.contact-input,
input,
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(232, 93, 36, 0.12);
}

.profile-summary {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    text-align: left;
}

.profile-summary div {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.profile-summary span,
.profile-note {
    display: block;
    color: var(--slate);
    font-size: 0.76rem;
    font-weight: 800;
}

.profile-summary strong {
    display: block;
    margin-top: 3px;
    font-size: 0.88rem;
    line-height: 1.35;
    word-break: break-word;
}

.profile-note {
    width: fit-content;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    padding: 7px 11px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-full-row {
    grid-column: 1 / -1;
}

.footer {
    background: #ffffff;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.03);
}

.footer-link {
    width: fit-content;
}

.modal-content,
.login-box {
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

#custom-alert-container > div {
    border-radius: 12px !important;
}

/* ========================================= */
/* 6. CHECKOUT SPECIFIC & HSRP PLATE         */
/* ========================================= */
.hsrp-plate { display: flex; align-items: center; border: 3px solid #081F33; border-radius: 8px; background: #ffffff !important; overflow: hidden; height: 48px; }
.hsrp-ind { background: #2563eb; color: white !important; width: 40px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 900; }
.hsrp-plate input { flex: 1; border: none !important; background: transparent !important; color: #000000 !important; font-size: 1.2rem !important; font-weight: 900 !important; letter-spacing: 2px; text-transform: uppercase; padding: 0 15px !important; outline: none; }

/* ========================================= */
/* 7. MODALS, POPUPS & TOAST ALERTS          */
/* ========================================= */
/*  FIX: Custom Alert Container positioned Top Right */
#custom-alert-container { 
    position: fixed; 
    top: 90px; 
    right: 20px; 
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    pointer-events: none; 
    align-items: flex-end; 
}

/* ========================================= */
/* 8. FOOTER STYLING                         */
/* ========================================= */
.footer { flex-shrink: 0 !important; width: 100%; background: var(--card-bg); padding: 60px 20px 20px; border-top: 1px solid var(--border); }
.footer-link { color: var(--slate) !important; text-decoration: none; display: block; margin-bottom: 12px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; cursor: pointer; }
.footer-link:hover { color: var(--primary) !important; transform: translateX(6px); }

/* ========================================= */
/* 9. ANIMATIONS                             */
/* ========================================= */
.fade-page { animation: fadeInPage 0.4s ease-out forwards; width: 100%; }

@keyframes fadeInPage { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDownAlert { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.62); } 70% { box-shadow: 0 0 0 15px rgba(217, 45, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes motionPulse { 0%, 100% { transform: scale(0.96); } 50% { transform: scale(1.04); } }
@keyframes motionSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ========================================= */
/* 10. MOBILE RESPONSIVENESS & PADDING FIX   */
/* ========================================= */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); box-shadow: 0 -4px 20px var(--nav-shadow); z-index: 2000; padding: 12px 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
.mob-nav-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; text-decoration: none; font-size: 0.7rem; font-weight: 800; gap: 4px; transition: 0.3s; width: 60px; color: var(--slate); }
.mob-nav-item i { width: 22px; height: 22px; }
.mob-nav-item.active-nav { color: var(--primary) !important; }
.mob-nav-item.active-nav i { transform: translateY(-4px); }

.fab-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

body.admin-page .fab-stack,
body.footer-in-view .fab-stack {
    display: none;
}

.fab-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(8, 31, 51, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fab-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(8, 31, 51, 0.20);
}

.fab-action i {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.fab-whatsapp {
    background: #25D366;
    color: #ffffff !important;
}

.fab-call {
    background: var(--danger);
    color: #ffffff !important;
}

/* Buy & Sell + Partner With Us + Login no longer fit alongside the full nav-links
   list in this range (confirmed the Login button was being pushed off-screen at
   common laptop widths like 1280/1366px) — fall back to the same hidden-nav-links
   + bottom-nav treatment used on phones, since there's no room to compact further. */

@media (max-width: 900px) {
    .nav-links { display: none; }

    /*  FIX: Buttons ko COMPACT kar diya taaki logo bada lage */
    .nav-actions .btn-action {
        height: 32px !important;       /* Height kam kar di */
        padding: 0 10px !important;    /* Padding kam kar di */
        font-size: 0.75rem !important; /* Font chhota kar diya */
        border-radius: 6px !important;
    }
    .nav-actions { gap: 8px; }
    
    /*  FIX: Logo ka size wapas thoda bada aur bold kiya */
    .nav-logo-icon { height: 38px !important; width: 48px !important; }
    .nav-logo-text .text-top { font-size: 0.85rem !important; }
    .nav-logo-text .text-bottom { font-size: 1.15rem !important; }

    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 140px; }
}
@media (max-width: 768px) {
    /* Fix Horizontal Scroll & Overflows */
    div[style*="min-width"] { min-width: 100% !important; }

    /* Fix Section Paddings */
    :root { --container-pad-inline: var(--space-sm); }
    body.home-page {
        background:
            repeating-linear-gradient(135deg, rgba(11, 46, 74, 0.025) 0 1px, transparent 1px 30px),
            radial-gradient(circle at 12% 0%, rgba(232, 93, 36, 0.08), transparent 26%),
            radial-gradient(circle at 88% 12%, rgba(15, 118, 110, 0.08), transparent 24%),
            linear-gradient(180deg, #ffffff 0%, #f6f9fc 240px, #edf4fa 100%);
        background-attachment: scroll;
    }
    div[style*="padding: 60px 0"], div[style*="padding: 50px 0"], div[style*="padding: 40px 0"], div[style*="padding: 80px 0"] {
        padding: 30px 0 !important;
    }
    
    /* Shrink Card Paddings & Gaps */
    .hover-card, div[style*="padding:30px"], div[style*="padding:25px"], div[style*="padding:20px"] {
        padding: 15px !important;
    }
    .page-header {
        padding-block: 30px !important;
    }
    .surface-card {
        padding: 15px !important;
    }
    div[style*="gap:50px"], div[style*="gap:40px"], div[style*="gap:30px"], div[style*="gap:25px"], div[style*="gap:20px"] {
        gap: 15px !important;
    }

    /* Fix Hero Section Buttons */
    .hero-text h1 { font-size: 2.2rem !important; }
    .hero-text div[style*="display:flex"] { flex-direction: column; width: 100%; }
    .hero-text .btn-primary, .hero-text .btn-ghost { width: 100%; margin-bottom: 0px; }

    /* Fix Tracker for Mobile */
    #trackerResult { overflow-x: auto; padding-bottom: 15px; }

    /* Fix Modals */
    .modal-content { flex-direction: column !important; width: 90% !important; max-height: 85vh !important; overflow-y: auto !important; }

    /* Fix Grids */
    div[style*="grid-template-columns: 2fr 1fr"], div[style*="grid-template-columns:repeat(auto-fit, minmax(200px, 1fr))"], div[style*="grid-template-columns:repeat(auto-fit, minmax(320px, 1fr))"], div[style*="grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer Centering */
    .footer .container { text-align: center; }
    .footer-logo-section { justify-content: center !important; }
    .footer-link { margin: 0 auto 12px auto !important; }
    
    /* Brands Grid */
    .brands-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; }
    .brand-logo { max-width: 50px !important; }
}

@media (max-width: 400px) {
    /* For super small phones */
    .brands-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hero-text h1 { font-size: 1.9rem !important; }
    
    /* Extreme Shrink for super narrow screens */
    .nav-actions .btn-action { padding: 0 8px !important; font-size: 0.75rem !important; }
}

/* ========================================= */
/* 11. FINAL EXPERIENCE OVERRIDES            */
/* ========================================= */
.navbar {
    min-height: 5.375rem !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 0.625rem 1.875rem rgba(15, 23, 42, 0.06) !important;
}

.nav-logo-icon {
    height: 3.25rem !important;
    width: 4.5rem !important;
    object-fit: contain !important;
}

.nav-actions .btn-action {
    height: 3rem !important;
    border-radius: 0.75rem !important;
}

.footer {
    background: #ffffff !important;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.03) !important;
}

.prod-card,
.car-card,
.card,
.emergency-card {
    border-radius: 10px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05) !important;
}


.prod-card {
    min-height: 360px;
}

.prod-card h4,
.car-card h3 {
    min-height: 2.6em;
}

.btn-primary,
.btn-ghost,
.btn-sos,
.btn-action {
    letter-spacing: 0 !important;
}

.swipe-item {
    border-radius: 10px;
}

.swipe-badge,
.badge-oem {
    border-radius: 999px !important;
}

.seo-band {
    box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.8);
}

@media (max-width: 900px) {
    .navbar {
        min-height: 4.5rem !important;
    }

    .nav-logo-icon {
        height: 2.75rem !important;
        width: 3.625rem !important;
    }

    .nav-actions .btn-action {
        height: 2.25rem !important;
        border-radius: 0.5625rem !important;
        padding: 0 12px !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    :root { --container-pad-inline: var(--space-md); }
}

@media (min-width: 1025px) {
    :root { --container-pad-inline: 40px; }
}

@media (max-width: 768px) {
    .prod-card {
        min-height: auto;
    }

    .prod-card h4,
    .car-card h3 {
        min-height: auto;
    }

    .product-card-desc {
        font-size: 0.82rem;
        min-height: auto;
        margin-bottom: 12px;
    }

    .profile-layout {
        gap: 18px !important;
    }

    .profile-card,
    .profile-form-card {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding: 18px !important;
        border-radius: 14px !important;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .seo-content h2 {
        font-size: 1.3rem;
    }

    #custom-alert-container {
        left: 12px;
        right: 12px;
        align-items: stretch;
    }
}

/* ========================================= */
/* 12. MOBILE SPACING & VIEWPORT POLISH      */
/* ========================================= */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .container,
    .container.fade-page,
    .nav-content {
        padding-inline: var(--container-pad-inline) !important;
    }

    .navbar {
        min-height: 4.25rem !important;
    }

    .nav-content {
        gap: 0.625rem !important;
    }

    .logo-section {
        gap: 0.5rem;
        flex: 0 0 auto;
    }

    .nav-logo-icon {
        width: 2.75rem !important;
        height: 2.25rem !important;
        flex: 0 0 auto;
    }

    .nav-logo-text .text-top {
        font-size: 0.72rem !important;
    }

    .nav-logo-text .text-bottom {
        font-size: 0.98rem !important;
    }

    .nav-actions {
        flex: 0 0 auto;
        gap: 0.375rem !important;
    }

    .nav-actions .btn-action {
        height: 2.125rem !important;
        padding: 0 0.625rem !important;
        border-radius: 0.5rem !important;
        font-size: 0.76rem !important;
    }

    #main-content > .fade-page {
        padding-top: 0 !important;
    }

    #main-content > .fade-page > div:first-child {
        padding-top: 22px !important;
        gap: 22px !important;
    }

    .hero-text {
        min-width: 0 !important;
    }

    .hero-visual {
        min-width: 0 !important;
        width: 100% !important;
    }

    .lottie-radar {
        width: 54px;
        height: 54px;
    }

    .page-intro-panel {
        align-items: flex-start;
        padding: 16px !important;
        border-radius: 14px;
    }

    .page-intro-lottie {
        width: 72px;
        height: 72px;
    }

    .page-intro-actions {
        width: 100%;
        justify-content: space-between;
    }

    .workshop-showcase {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 28px;
        padding: 20px !important;
    }

    .hero-text > span:first-child {
        margin-bottom: 14px !important;
        padding: 5px 10px !important;
        font-size: 0.72rem !important;
    }

    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.12 !important;
        margin-bottom: 14px !important;
    }

    .hero-text p {
        margin-bottom: 16px !important;
    }

    .hero-text div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .hero-text div[style*="display:flex"] {
        gap: 10px !important;
    }

    .hero-text .btn-primary,
    .hero-text .btn-ghost,
    .btn-primary,
    .btn-ghost,
    .btn-sos {
        min-height: 42px !important;
        height: auto !important;
        padding: 11px 16px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    .emergency-card,
    .hover-card,
    .card,
    .prod-card,
    .car-card {
        padding: 16px !important;
    }

    div[style*="padding: 60px 0"],
    div[style*="padding: 50px 0"],
    div[style*="padding: 40px 0"],
    div[style*="padding: 80px 0"] {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    div[style*="margin-top:40px"] {
        margin-top: 22px !important;
    }

    div[style*="gap:50px"],
    div[style*="gap:40px"],
    div[style*="gap:30px"],
    div[style*="gap:25px"],
    div[style*="gap:20px"] {
        gap: 16px !important;
    }

    div[style*="grid-template-columns:repeat(3"],
    div[style*="grid-template-columns:repeat(auto-fit, minmax(200px"],
    div[style*="grid-template-columns:repeat(auto-fit, minmax(260px"],
    div[style*="grid-template-columns:repeat(auto-fit, minmax(280px"],
    div[style*="grid-template-columns:repeat(auto-fit, minmax(300px"],
    div[style*="grid-template-columns:repeat(auto-fit, minmax(320px"],
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .prod-card,
    .car-card {
        border-radius: 10px !important;
    }

    .swipe-container,
    .swipe-item {
        min-height: 180px;
        max-height: 220px;
    }

    .badge-oem,
    .swipe-badge {
        top: 12px !important;
    }

    .badge-oem {
        left: 12px !important;
    }

    .swipe-badge {
        right: 12px !important;
    }

    .car-details {
        padding: 16px !important;
    }

    .car-specs {
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .menu-item {
        width: 100%;
        justify-content: center;
        padding: 11px 12px !important;
    }

    #s-list .card > div:last-child,
    .card[style*="justify-content:space-between"] > div:last-child {
        width: 100%;
        text-align: left !important;
    }

    .seo-band {
        padding: 24px 0 28px !important;
    }

    .seo-panel {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 18px 16px !important;
    }

    .seo-content h2 {
        font-size: 1.16rem !important;
        line-height: 1.32 !important;
    }

    .seo-content p {
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
    }

    .seo-keyword-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }

    .seo-keyword-grid span {
        padding: 9px 10px !important;
        font-size: 0.8rem !important;
    }

    .contact-input,
    input,
    select,
    textarea {
        padding: 11px 12px !important;
        font-size: 0.92rem !important;
    }

    .login-box,
    .modal-content {
        width: calc(100% - 28px) !important;
        border-radius: 16px !important;
    }

    .login-box {
        padding: 28px 18px !important;
    }

    .modal-img-box,
    .modal-info {
        min-width: 0 !important;
        width: 100% !important;
        padding: 18px !important;
    }

    #m-name,
    #m-price {
        font-size: 1.45rem !important;
    }

    #m-desc {
        font-size: 0.95rem !important;
    }

    .footer {
        padding: 36px 16px 18px !important;
    }

    .footer .container {
        gap: 24px !important;
    }

    .footer p {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    #custom-alert-container {
        top: 78px;
    }

    .mobile-bottom-nav {
        padding-left: 10px;
        padding-right: 10px;
    }

    .fab-stack {
        left: 0;
        right: 0;
        bottom: calc(70px + env(safe-area-inset-bottom));
        width: 100%;
        padding: 0 12px;
        flex-direction: row;
        gap: 10px;
    }

    .fab-action {
        flex: 1 1 0;
        min-height: 52px;
        justify-content: center;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(8, 31, 51, 0.16);
    }
}

@media (max-width: 449px) {
    .nav-actions a.btn-buy-sell {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .container,
    .container.fade-page,
    .nav-content {
        padding-inline: var(--container-pad-inline) !important;
    }

    .nav-actions .btn-login {
        min-width: 64px;
    }

    .hero-text h1 {
        font-size: 1.76rem !important;
    }

    .seo-panel {
        padding: 16px 14px !important;
    }

    .seo-keyword-grid {
        grid-template-columns: 1fr !important;
    }

    .mobile-bottom-nav {
        padding-left: 6px;
        padding-right: 6px;
    }

    .mob-nav-item {
        width: 54px;
        font-size: 0.64rem;
    }

    .home-shell {
        margin-top: var(--space-sm);
        padding-block: var(--space-md);
        border-radius: 20px;
    }

    .home-shell > .homepage-hero,
    .home-shell > .workshop-showcase,
    .home-shell > .coverage-section,
    .home-shell > .trust-section,
    .home-shell > .testimonial-section,
    .home-shell > .faq-section,
    .home-shell > .page-section {
        border-radius: 16px;
        padding-inline: var(--space-sm);
    }
}

/* ========================================= */
/* 13. MOBILE HEADER FINAL FIXES             */
/* ========================================= */
@media (max-width: 640px) {
    .navbar {
        min-height: 3.875rem !important;
        overflow: hidden;
    }

    .nav-content {
        min-width: 0 !important;
        gap: 0.5rem !important;
        padding: 0.5625rem 0.75rem !important;
    }

    .logo-section {
        flex: 1 1 7.375rem !important;
        max-width: 42vw !important;
        min-width: 5.625rem !important;
        overflow: hidden !important;
        gap: 0.375rem !important;
    }

    .nav-logo-icon {
        width: 2.375rem !important;
        height: 2.125rem !important;
        object-fit: contain !important;
    }

    .nav-logo-text {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .nav-logo-text .text-top,
    .nav-logo-text .text-bottom {
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        letter-spacing: 0 !important;
    }

    .nav-logo-text .text-top {
        font-size: 0.66rem !important;
    }

    .nav-logo-text .text-bottom {
        font-size: 0.9rem !important;
    }

    .nav-actions {
        gap: 6px !important;
        flex: 0 0 auto !important;
    }

.nav-actions .btn-action {
        height: 38px !important;
        min-width: 0 !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: 0.78rem !important;
        line-height: 1 !important;
        box-shadow: none !important;
    }

    .nav-actions .btn-buy-sell {
        width: 104px !important;
    }

    /* Selector matches the specificity of the ".nav-actions a.btn-action"
       desktop rule (style.css ~L435) so this mobile sizing actually wins -
       a plain ".btn-partner" class selector was losing that fight, which
       is why the button stayed at the desktop padding/height and had no
       room left for the arrow icon. */
    .nav-actions a.btn-partner {
        width: auto !important;
        min-width: 106px !important;
        padding: 0 14px !important;
    }

    .nav-actions .btn-login {
        width: 88px !important;
    }

    .btn-action-full {
        display: none !important;
    }

    .btn-action-short {
        display: inline !important;
    }

    #main-content > .fade-page > div:first-child {
        padding-top: 18px !important;
    }

    .hero-text h1,
    .fade-page > h1,
    .fade-page h1 {
        font-size: clamp(1.9rem, 8vw, 2.25rem) !important;
        line-height: 1.12 !important;
    }

    .emergency-card h4 {
        font-size: 0.9rem !important;
        line-height: 1.25 !important;
    }

    .btn-sos {
        font-size: 0.86rem !important;
        min-height: 48px !important;
    }

    .car-card .swipe-container,
    .car-card .swipe-item {
        min-height: 210px !important;
        max-height: 260px !important;
    }

    .mobile-bottom-nav {
        height: 70px;
        padding-top: 8px !important;
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    }

    .fab-stack {
        bottom: calc(70px + env(safe-area-inset-bottom));
        padding: 0 10px;
    }

    .mob-nav-item {
        width: 58px !important;
        gap: 3px !important;
        color: var(--slate) !important;
    }

    .mob-nav-item i {
        transform: none !important;
    }

    .mob-nav-item.active-nav {
        color: var(--dark) !important;
    }

    .mob-nav-item.active-nav i {
        color: var(--primary) !important;
        background: rgba(232, 93, 36, 0.1);
        border-radius: 12px;
        padding: 4px;
        width: 30px !important;
        height: 30px !important;
    }

    body {
        /* The fab-stack hides once the footer scrolls into view (see
           footer-in-view JS), so this only needs to clear the bottom nav. */
        padding-bottom: 100px;
    }
}

@media (max-width: 370px) {
    .logo-section {
        max-width: 36vw !important;
    }

    .nav-actions .btn-action {
        padding: 0 9px !important;
        font-size: 0.72rem !important;
    }

    .nav-actions .btn-buy-sell {
        width: 80px !important;
    }

    .nav-actions .btn-login {
        width: 68px !important;
    }
}

/* ========================================= */
/* 14. PRODUCT DETAIL PAGES                  */
/* ========================================= */
.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 34px;
    align-items: start;
}

.product-detail-media,
.product-detail-info,
.product-trust-grid > div {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(8, 31, 51, 0.06);
}

.product-detail-media {
    padding: 18px;
}

.product-detail-info {
    padding: 30px;
}

.product-detail-tag {
    display: inline-flex;
    width: fit-content;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.product-detail-tag--sold-out {
    background: rgba(217, 45, 32, 0.1);
    color: var(--danger);
    border-color: rgba(217, 45, 32, 0.2);
}

.product-detail-info h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.12;
    margin-bottom: 14px;
}

.product-detail-price {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 1000;
    margin-bottom: 18px;
}

.product-detail-desc {
    color: var(--slate);
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 20px;
}

.product-detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.product-detail-facts span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--dark);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 10px;
}

.product-detail-facts i {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex: 0 0 auto;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-detail-actions .btn-primary,
.product-detail-actions .btn-ghost {
    flex: 1 1 180px;
}

.product-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.product-trust-grid > div {
    padding: 18px;
}

.product-trust-grid strong,
.product-trust-grid span {
    display: block;
}

.product-trust-grid strong {
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.product-trust-grid span {
    color: var(--slate);
    font-size: 0.86rem;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .product-detail-page {
        padding-top: 22px !important;
        padding-bottom: 28px !important;
    }

    .product-detail-layout,
    .product-trust-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-detail-media,
    .product-detail-info,
    .product-trust-grid > div {
        padding: 14px !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 24px rgba(8, 31, 51, 0.05) !important;
    }

    .product-detail-media {
        padding: 8px !important;
    }

    .product-detail-media .swipe-container {
        aspect-ratio: 4 / 3;
        min-height: 0 !important;
        max-height: none !important;
        background: #ffffff;
    }

    .product-detail-media .swipe-gallery {
        height: 100%;
    }

    .product-detail-media .swipe-item {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        background: #ffffff !important;
    }

    .product-detail-info h1 {
        font-size: 1.55rem !important;
        line-height: 1.18 !important;
        margin-bottom: 10px !important;
    }

    .product-detail-price {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .product-detail-tag {
        padding: 6px 10px;
        font-size: 0.72rem;
        margin-bottom: 12px;
    }

    .product-detail-desc {
        font-size: 0.9rem;
        line-height: 1.62;
        margin-bottom: 14px;
    }

    .product-detail-facts {
        grid-template-columns: 1fr;
        margin: 14px 0;
        gap: 8px;
    }

    .product-detail-facts span {
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    .product-detail-actions {
        gap: 10px;
    }

    .product-detail-actions .btn-primary,
    .product-detail-actions .btn-ghost {
        flex-basis: 100%;
        min-height: 42px !important;
    }

    .product-trust-grid {
        margin-top: 14px;
    }

    .product-trust-grid > div {
        padding: 14px !important;
    }

    .product-trust-grid strong {
        font-size: 0.9rem;
    }

    .product-trust-grid span {
        font-size: 0.8rem;
    }
}

@media (max-width: 430px) {
    .product-detail-page {
        padding-top: 18px !important;
    }

    .product-detail-media .swipe-container {
        aspect-ratio: 1 / 1;
    }

    .product-detail-info h1 {
        font-size: 1.38rem !important;
    }
}

/* ========================================= */
/* 15. MOBILE COMMERCE FLOW FINAL FIX        */
/* ========================================= */
.store-layout,
.cars-grid {
    width: 100%;
}

@media (max-width: 768px) {
    .store-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 18px !important;
    }

    .store-filter-panel {
        width: 100% !important;
        flex: none !important;
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .store-filter-panel h3 {
        margin-bottom: 10px !important;
    }

    .product-grid,
    #prod-grid,
    .cars-grid,
    #cars-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        flex: none !important;
    }

    .prod-card,
    .car-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .prod-card .swipe-container,
    .prod-card .swipe-item {
        height: auto !important;
        min-height: 190px !important;
        max-height: 240px !important;
    }

    .prod-card .swipe-item {
        object-fit: contain !important;
        background: #ffffff !important;
    }

    .prod-card h4 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }

    .prod-card > div:last-child {
        gap: 10px !important;
    }

    .prod-card > div:last-child .btn-primary {
        min-width: 132px !important;
        height: 40px !important;
    }

    .product-detail-page {
        width: 100% !important;
        padding: 18px 0 96px !important;
        overflow: visible !important;
    }

    .product-detail-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .product-detail-media,
    .product-detail-info {
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .product-detail-media {
        order: 1;
    }

    .product-detail-info {
        order: 2;
    }

    .product-detail-media .swipe-container {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important;
        max-height: 320px !important;
    }

    .product-detail-media .swipe-gallery,
    .product-detail-media .swipe-item {
        width: 100% !important;
        height: 100% !important;
    }

    .product-detail-media .swipe-item {
        object-fit: contain !important;
    }

    .product-detail-actions {
        position: sticky;
        bottom: calc(74px + env(safe-area-inset-bottom));
        z-index: 50;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 -10px 30px rgba(8, 31, 51, 0.12);
        backdrop-filter: blur(10px);
    }

    .product-detail-actions .btn-primary,
    .product-detail-actions .btn-ghost {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-height: 44px !important;
    }

    .car-card .swipe-container,
    .car-card .swipe-item {
        height: auto !important;
        min-height: 220px !important;
        max-height: 280px !important;
    }

    .car-card .swipe-item {
        object-fit: cover !important;
    }

    .car-details {
        padding: 16px !important;
    }

    .car-specs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 12px 0 14px !important;
    }

    .car-specs span {
        min-width: 0 !important;
        justify-content: flex-start !important;
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
    }

    .car-details > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .car-details > div:last-child h2 {
        font-size: 1.35rem !important;
    }

    .car-details > div:last-child .btn-primary {
        width: 100% !important;
        min-height: 44px !important;
    }
}

@media (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }

    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    }
}

/* ========================================= */
/*  HOMEPAGE HERO REDESIGN                   */
/* ========================================= */
.homepage-hero {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.homepage-hero .hero-text {
    min-width: 0 !important;
    order: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 14px;
    margin-bottom: 16px !important;
    border-radius: 999px;
    background: rgba(232, 93, 36, 0.10);
    border: 1px solid rgba(232, 93, 36, 0.22);
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase;
}

.homepage-hero h1 {
    max-width: 660px;
    margin: 0 0 18px !important;
    color: var(--dark);
    font-size: clamp(2.7rem, 5.2vw, 5.4rem) !important;
    line-height: 1.02 !important;
    font-weight: 900;
    letter-spacing: -0.01em !important;
}

.hero-subheadline {
    max-width: 640px;
    margin: 0 0 24px !important;
    color: var(--slate);
    font-size: clamp(1.1rem, 1.9vw, 1.35rem) !important;
    line-height: 1.65 !important;
    font-weight: 600;
}

.hero-benefits,
.hero-actions,
.hero-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-benefits {
    max-width: 620px;
    margin-bottom: 22px;
}

.hero-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--dark);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(8, 31, 51, 0.05);
}

.hero-benefits i,
.hero-trust-bar i,
.hero-rescue-btn i,
.hero-emergency-card h4 i {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.hero-benefits i,
.hero-trust-bar i {
    color: var(--accent);
}

.hero-actions {
    margin-bottom: 18px;
    align-items: center;
}

.hero-actions .btn-primary,
.hero-actions .btn-ghost {
    min-width: 164px;
    height: 50px !important;
    border-radius: 10px !important;
}

.hero-rescue-btn {
    gap: 8px;
    border-color: var(--danger) !important;
    color: #ffffff !important;
    background: var(--danger) !important;
}

.hero-rescue-btn:hover {
    background: #b8241a !important;
    border-color: #b8241a !important;
    color: #ffffff !important;
}

.hero-actions--rescue {
    margin-bottom: 6px !important;
}

.hero-emergency-card {
    max-width: 620px;
    margin: 0 0 18px;
    padding: 0 0 0 15px !important;
    border: none !important;
    border-left: 3px solid rgba(217, 45, 32, 0.35) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-emergency-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--danger);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.hero-emergency-card h4 i { width: 15px; height: 15px; flex: 0 0 auto; }

.hero-emergency-card .radar-box {
    display: none;
    text-align: center;
    margin-top: 14px;
    padding: 18px;
    border: 2px solid var(--danger);
    border-radius: 8px;
    background: var(--card-bg);
}

.hero-emergency-card .radar-box h4 {
    display: block;
    margin: 8px 0 5px;
    color: var(--dark);
    font-size: 0.95rem;
}

.hero-emergency-card .radar-box p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-trust-bar {
    max-width: 700px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-trust-bar div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(8, 31, 51, 0.06);
}

.hero-trust-bar span {
    min-width: 0;
    color: var(--dark);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.2;
}

.homepage-hero .hero-visual {
    min-width: 0 !important;
    width: 100%;
    order: 2;
    padding: 20px;
}

.hero-visual-frame {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 0 30px;
}

.hero-tool-orbit-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-tool-orbit {
    position: absolute;
    inset: 0;
    animation: brandOrbitSpin 46s linear infinite;
}

.hero-tool-badge {
    position: absolute;
    width: 15%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
}

.hero-tool-badge-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 18px rgba(8, 31, 51, 0.08);
    animation: brandOrbitSpin 46s linear infinite reverse;
}

.hero-tool-badge-inner i {
    width: 46%;
    height: 46%;
    color: var(--accent);
    opacity: 0.7;
}

.hero-dial-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-dial-ticks {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(15, 118, 110, 0.4) 0deg 1deg, transparent 1deg 7.5deg);
    -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%, #000 67%, transparent 68%);
    mask: radial-gradient(circle, transparent 61%, #000 62%, #000 67%, transparent 68%);
    animation: brandOrbitSpin 160s linear infinite;
}

.hero-dial-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(15, 118, 110, 0.5), transparent 30%, transparent 100%);
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 98%, transparent 100%);
    mask: radial-gradient(circle, transparent 60%, #000 62%, #000 98%, transparent 100%);
    animation: brandOrbitSpin 7s linear infinite;
    opacity: 0.8;
}

.hero-dial-pulse {
    position: absolute;
    top: 8%;
    left: 82%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.55);
    animation: heroDialPulse 2.4s ease-out infinite;
}

@keyframes heroDialPulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.55); }
    70% { box-shadow: 0 0 0 14px rgba(15, 118, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

.hero-visual .hero-image-card { position: relative; z-index: 1; }

.hero-image-card {
    position: relative;
    margin: 0 auto;
    width: 58%;
    overflow: visible;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hero-image-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 1710;
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(8, 31, 51, 0.22));
}

.hero-image-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: min(80%, 320px);
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(8, 31, 51, 0.82), rgba(8, 31, 51, 0.94));
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(8, 31, 51, 0.24);
    backdrop-filter: blur(8px);
}

.hero-image-caption__eyebrow {
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.hero-image-caption strong {
    color: #ffffff;
    font-size: clamp(1rem, 1.35vw, 1.35rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 14px;
    margin-bottom: 18px !important;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.22);
    color: var(--accent);
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
}

.hero-hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    font-size: 1rem;
    font-weight: 700;
}

.hero-hours i { width: 18px; height: 18px; color: var(--accent); }

.hero-visual-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,118,110,0.10) 0%, rgba(15,118,110,0.03) 60%, transparent 72%);
    z-index: 0;
    pointer-events: none;
}

.hero-floating-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(8, 31, 51, 0.16);
}

.hero-floating-badge--top { top: -8px; right: 6px; }
.hero-floating-badge--bottom { left: 6px; bottom: 8px; }

.hero-floating-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--accent);
}

.hero-floating-badge-icon i { width: 18px; height: 18px; }

.hero-floating-badge small {
    display: block;
    color: var(--slate);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-floating-badge strong {
    display: block;
    color: var(--dark) !important;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.hero-picker-card {
    position: relative;
    z-index: 3;
    max-width: 1160px;
    margin: -34px auto 40px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(8, 31, 51, 0.14);
}

.hero-picker-eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-picker-label strong {
    display: block;
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 900;
}

.hero-picker-options {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-picker-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: none;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.08);
    cursor: pointer;
    transition: 0.2s;
    min-width: 230px;
}

.hero-picker-option:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(8,31,51,0.08); }

.hero-picker-option--dark { background: var(--dark); }

.hero-picker-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
}

.hero-picker-option-icon i { width: 18px; height: 18px; }

.hero-picker-option-text {
    flex: 1;
    text-align: left;
}

.hero-picker-option-text strong {
    display: block;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 900;
}

.hero-picker-option--dark .hero-picker-option-text strong { color: #ffffff; }

.hero-picker-option-text small {
    display: block;
    margin-top: 2px;
    color: var(--slate);
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-picker-option--dark .hero-picker-option-text small { color: rgba(255,255,255,0.7); }

.hero-picker-arrow { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.hero-picker-option--dark .hero-picker-arrow { color: #ffffff; }

@media (max-width: 760px) {
    .hero-picker-card { margin-top: -20px; flex-direction: column; align-items: stretch; }
    .hero-picker-options { flex-direction: column; }
    .hero-picker-option { min-width: 0; }
    .hero-floating-badge strong { white-space: normal; }
    .hero-visual-ring { display: none; }
    .hero-dial-wrap { display: none; }
}

/* ========================================= */
/*  HOME COVERAGE SECTION                    */
/* ========================================= */
.coverage-section {
    padding-block: var(--space-lg);
}

.coverage-head {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
    opacity: 0;
}

.coverage-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.15;
    margin-top: 8px;
}

/* -- network / map visualization -- */
.coverage-network {
    position: relative;
    width: 100%;
    max-width: 1180px;
    aspect-ratio: 713 / 380;
    margin: 0 auto 22px;
    opacity: 0;
}

.coverage-network-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.coverage-line {
    fill: none;
    stroke: var(--dark);
    stroke-width: 1.2;
    stroke-linecap: round;
    opacity: 0.14;
    transition: opacity 0.3s ease, stroke 0.3s ease;
}

.coverage-line.is-active { stroke: var(--primary); opacity: 0.6; }
.coverage-line.is-dimmed { opacity: 0.05; }

.coverage-van {
    opacity: 0.95;
}

.coverage-network-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.coverage-node-label {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
    cursor: pointer;
}

.coverage-node-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(15, 118, 110, 0.35);
    color: var(--accent);
    box-shadow: 0 4px 10px rgba(8, 31, 51, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.coverage-node-pin i { width: 16px; height: 16px; }

.coverage-node-label-text {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.88);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.coverage-node-label:hover .coverage-node-pin,
.coverage-node-label.is-active .coverage-node-pin {
    transform: scale(1.12);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(232, 93, 36, 0.22);
}

.coverage-node-label.is-dimmed { opacity: 0.4; }

.coverage-hub-label {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(8, 31, 51, 0.14);
    pointer-events: auto;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.coverage-hub-label:hover {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 18px 36px rgba(232, 93, 36, 0.2);
}

.coverage-hub-label img {
    width: 58px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 3px;
}

.coverage-hub-label strong {
    font-size: 0.56rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.2;
    white-space: nowrap;
}

.van-body { fill: var(--dark); }
.van-roof { fill: var(--primary); }
.van-window { fill: #eaf4ff; }
.van-wheel { fill: var(--slate); }
.van-hub { fill: #cbd5e1; }
.van-shadow { fill: rgba(11, 46, 74, 0.16); }

/* -- scroll-triggered entrance -- */
@keyframes coverageFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.coverage-section.is-visible .coverage-head {
    animation: coverageFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.coverage-section.is-visible .coverage-network {
    animation: coverageFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .coverage-head, .coverage-network {
        opacity: 1 !important;
        animation: none !important;
    }
    .coverage-van { display: none !important; }
}


/* ========================================= */
/*  HOME TRUST SECTION                       */
/* ========================================= */
.trust-section {
    padding-block: var(--space-xl);
}

.trust-head {
    max-width: 840px;
    margin: 0 auto 24px;
    text-align: center;
}

.trust-head h2 {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin-top: 8px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.trust-badge {
    display: block;
    text-align: left;
    padding: 25px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.trust-icon {
    display: block;
    width: 35px;
    height: 35px;
    color: var(--primary);
    margin-bottom: 15px;
}

.trust-label {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 8px;
}

.trust-desc {
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ========================================= */
/*  HOME HERO VEHICLE SEARCH SELECTOR        */
/* ========================================= */
.hero-vehicle-picker {
    max-width: 620px;
    margin: 0 0 22px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(8, 31, 51, 0.08);
}

.hero-vehicle-picker-label {
    padding: 0 6px;
    color: var(--slate);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 0 0 100%;
}

.hero-vehicle-option {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--dark);
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: 0.2s;
}

.hero-vehicle-option i { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.hero-vehicle-option:hover { border-color: var(--accent); }
.hero-vehicle-option small { display: block; color: var(--slate); font-weight: 700; font-size: 0.72rem; }

/* ========================================= */
/*  HOME TRUST STATS BAR                     */
/* ========================================= */
.stats-bar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stats-bar-item {
    text-align: center;
    padding: 16px 10px;
    background: var(--dark);
    border-radius: 14px;
    color: #ffffff;
}

.stats-bar-item strong {
    display: block;
    color: #ffffff !important;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 900;
}

.stats-bar-item span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 0.76rem;
    font-weight: 700;
}

/* ========================================= */
/*  HOME BRANDS ORBIT                        */
/* ========================================= */
.brands-section {
    padding-block: var(--space-lg);
    padding-inline: var(--space-md);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.brands-copy h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.12;
    margin: 10px 0 14px;
    font-weight: 900;
}

.brands-copy > p.text-slate {
    font-size: 1rem;
    margin-bottom: 22px;
}

.brands-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brands-stats > div {
    padding: 14px 18px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 12px;
    min-width: 100px;
}

.brands-stats strong {
    display: block;
    color: var(--dark) !important;
    font-size: 1.15rem;
    font-weight: 900;
}

.brands-stats span {
    display: block;
    margin-top: 2px;
    color: var(--slate);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.brand-orbit-wrap {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,118,110,0.06) 0%, rgba(15,118,110,0.01) 70%);
}

.brand-orbit-ring {
    position: absolute;
    inset: 0;
    animation: brandOrbitSpin 70s linear infinite;
}

@keyframes brandOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-orbit-badge {
    position: absolute;
    width: 8.5%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
}

.brand-orbit-badge-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(8, 31, 51, 0.08);
    animation: brandOrbitSpin 70s linear infinite reverse;
    text-align: center;
}

.brand-tag {
    position: absolute;
    top: -3px;
    right: -3px;
    padding: 0px 4px;
    border-radius: 5px;
    font-size: 0.44rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.4;
}

.brand-tag.tag-2w { background: var(--accent); }
.brand-tag.tag-4w { background: var(--dark); }

.brand-name {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 0.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-logo-img {
    width: 46%;
    height: 46%;
    object-fit: contain;
    filter: grayscale(15%);
}

.brand-orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: 0 16px 34px rgba(8, 31, 51, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    z-index: 2;
}

.brand-orbit-center img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    margin-bottom: 6px;
    border-radius: 8px;
}

.brand-orbit-center strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.15;
}

.brand-orbit-center small {
    display: block;
    margin-top: 4px;
    color: var(--slate);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 900px) {
    .brands-section { grid-template-columns: 1fr; }
    .brand-orbit-wrap { max-width: 420px; }
}

@media (max-width: 520px) {
    .brand-name { display: none; }
}

/* ========================================= */
/* BRAND MARQUEE (mobile replacement for the  */
/* circular orbit - 30 badges packed onto a   */
/* small circle overlap/collide below ~640px) */
/* ========================================= */
.brand-marquee {
    display: none;
}

.brand-marquee-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.brand-marquee-track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: brandMarqueeScroll 34s linear infinite;
}

.brand-marquee-track-reverse {
    animation-direction: reverse;
    animation-duration: 40s;
}

@keyframes brandMarqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.brand-marquee-card {
    position: relative;
    flex: 0 0 auto;
    width: 82px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(8, 31, 51, 0.07);
}

.brand-marquee-tag {
    position: absolute;
    top: -6px;
    right: -6px;
    padding: 1px 5px;
    border-radius: 6px;
    font-size: 0.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.4;
}

.brand-marquee-tag.tag-2w { background: var(--accent); }
.brand-marquee-tag.tag-4w { background: var(--dark); }

.brand-marquee-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: grayscale(15%);
}

.brand-marquee-name {
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .brand-orbit-wrap { display: none; }
    .brand-marquee {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-marquee-track {
        animation: none;
    }
}

/* ========================================= */
/*  HOME CATEGORY SHOWCASE                   */
/* ========================================= */
.category-section {
    padding-block: var(--space-lg);
    padding-inline: var(--space-md);
}

.category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin: 0 auto 28px;
}

.category-head h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.05;
    margin-top: 8px;
    font-weight: 900;
}

.category-head-sub {
    max-width: 320px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 26px;
    background: linear-gradient(160deg, #0d3654 0%, var(--dark) 60%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.category-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.category-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
}

.category-card-icon i { width: 20px; height: 20px; }

.category-card h3 {
    color: #ffffff !important;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.category-card-head p {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    line-height: 1.4;
}

.category-card-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.category-card-photos figure {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1.05;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.category-card-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card-photos figcaption {
    position: absolute;
    left: 8px;
    bottom: 8px;
    right: 8px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.category-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: var(--dark);
    font-weight: 900;
    font-size: 0.88rem;
    cursor: pointer;
    transition: 0.2s;
}

.category-card-btn i { width: 16px; height: 16px; }
.category-card-btn:hover { background: var(--accent); color: #ffffff; }

/* ========================================= */
/*  HOME "3 STEPS" SECTION                   */
/* ========================================= */
.steps-section {
    padding-block: var(--space-lg);
    padding-inline: var(--space-md);
}

.steps-head {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.steps-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.15;
    margin-top: 8px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step-card {
    position: relative;
    padding: 26px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(8, 31, 51, 0.05);
}

.step-image {
    display: block;
    width: 100%;
    aspect-ratio: 300 / 200;
    margin-bottom: 20px;
    border-radius: 10px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.05rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .category-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ========================================= */
/*  HOME TESTIMONIAL SECTION                 */
/* ========================================= */
.testimonial-section {
    padding-block: var(--space-lg);
}

.testimonial-head {
    max-width: 920px;
    margin: 0 auto 24px;
    text-align: center;
}

.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(66, 133, 244, 0.22);
    background: rgba(66, 133, 244, 0.08);
    color: #1a73e8;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.testimonial-badge i {
    width: 16px;
    height: 16px;
}

.testimonial-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.testimonial-score strong {
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1;
    font-weight: 1000;
}

.testimonial-score span {
    color: var(--slate);
    font-size: 0.95rem;
    font-weight: 800;
}

.testimonial-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.15;
    margin: 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 214px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(8, 31, 51, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.testimonial-top h3 {
    color: var(--dark);
    font-size: 1.02rem;
    line-height: 1.2;
    margin: 0 0 4px;
    font-weight: 900;
}

.testimonial-top p,
.testimonial-meta,
.testimonial-text {
    margin: 0;
}

.testimonial-top p,
.testimonial-meta {
    color: var(--slate);
    font-size: 0.84rem;
    font-weight: 800;
}

.testimonial-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f4b400;
    flex: 0 0 auto;
}

.testimonial-rating i {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.testimonial-rating .muted {
    color: #d5dae3;
    fill: currentColor;
}

.testimonial-meta {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.16);
    color: var(--accent);
}

.testimonial-text {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ========================================= */
/*  HOME FAQ SECTION                         */
/* ========================================= */
.faq-section {
    padding-block: var(--space-lg);
}

.faq-head {
    max-width: 840px;
    margin: 0 auto 24px;
    text-align: center;
}

.faq-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.15;
    margin-top: 8px;
}

.faq-accordion {
    display: grid;
    gap: 24px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(8, 31, 51, 0.05);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: 0;
    padding: 18px 20px;
    cursor: pointer;
    text-align: left;
    color: var(--dark);
    font: inherit;
    font-weight: 900;
    line-height: 1.35;
}

.faq-trigger span {
    min-width: 0;
}

.faq-trigger i {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform 0.25s ease;
    color: var(--primary);
}

.faq-trigger:focus-visible {
    outline: 3px solid rgba(232, 93, 36, 0.22);
    outline-offset: -3px;
}

.faq-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease;
    padding: 0 20px;
}

.faq-panel.is-open {
    visibility: visible;
    opacity: 1;
}

.faq-panel p {
    margin: 0;
    padding: 0 0 18px;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item:hover {
    border-color: rgba(232, 93, 36, 0.18);
}

@media (min-width: 641px) {
    .homepage-hero {
        padding: 48px 24px;
        gap: 36px;
    }

    .hero-trust-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .homepage-hero {
        padding: 80px 40px;
        grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
        gap: 52px;
    }

    .page-section,
    .coverage-section,
    .testimonial-section,
    .faq-section {
        padding-block: var(--space-xl);
    }
}

@media (max-width: 640px) {
    .homepage-hero h1 {
        font-size: clamp(2.3rem, 11vw, 3.1rem) !important;
    }

    .hero-image-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 12px 14px;
    }

    .hero-image-caption strong {
        font-size: 0.98rem;
    }

    .hero-benefits,
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        width: 100% !important;
        min-height: 48px !important;
    }

    .hero-trust-bar {
        gap: 10px;
    }

    .hero-trust-bar div {
        min-height: 56px;
        padding: 10px;
    }

    .hero-trust-bar span {
        font-size: 0.8rem;
    }

    .coverage-network {
        margin-bottom: 16px;
    }

    .coverage-node-pin {
        width: 22px;
        height: 22px;
    }

    .coverage-node-pin i { width: 11px; height: 11px; }

    .coverage-node-label-text {
        font-size: 0.56rem;
        padding: 1px 5px;
    }

    .coverage-hub-label {
        width: 70px;
        height: 70px;
    }

    .coverage-hub-label img { width: 34px; height: 27px; }
    .coverage-hub-label strong { font-size: 0.4rem; }

    .trust-grid {
        gap: var(--space-sm);
    }

    .trust-badge {
        min-height: 78px;
        padding: 14px;
    }

    .testimonial-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .testimonial-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 86%;
        min-width: 86%;
        scroll-snap-align: start;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonial-card {
        min-width: 0;
        flex: 1 1 0;
    }
}

@media (max-width: 640px) {
    .faq-accordion {
        gap: 16px;
    }

    .faq-trigger {
        padding: 16px;
    }

    .faq-panel {
        padding: 0 16px;
    }

    .faq-panel p {
        padding-bottom: 16px;
    }
}

/* ========================================= */
/*  ADMIN DASHBOARD                          */
/* ========================================= */
.admin-shell {
    display: flex;
    min-height: calc(100vh - 86px);
    background: var(--bg);
}

.admin-sidebar {
    width: 240px;
    flex: 0 0 240px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-brand img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.admin-sidebar-brand strong { color: #ffffff; font-size: 0.95rem; font-weight: 900; line-height: 1.2; display: block; }
.admin-sidebar-brand span { color: rgba(255, 255, 255, 0.55); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav-item i { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.admin-nav-item.active { background: var(--primary); color: #ffffff; }

.admin-sidebar-exit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
}

.admin-sidebar-exit:hover { background: rgba(255, 255, 255, 0.12); }
.admin-sidebar-exit i { width: 16px; height: 16px; }

.admin-main { flex: 1; min-width: 0; padding: 32px; }

.admin-panel { display: none; }
.admin-panel.active { display: block; animation: adminPanelFade 0.25s ease; }

@keyframes adminPanelFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.admin-panel-head h1 { font-size: 1.6rem; color: var(--dark); font-weight: 900; }

.admin-add-btn, .admin-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-add-btn { background: var(--primary); color: #ffffff; }
.admin-add-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(232, 93, 36, 0.25); }
.admin-refresh-btn { background: var(--card-bg); color: var(--dark); border: 1px solid var(--border); }
.admin-refresh-btn:hover { border-color: var(--primary); color: var(--primary); }
.admin-add-btn i, .admin-refresh-btn i { width: 16px; height: 16px; }

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(232, 93, 36, 0.1);
    color: var(--primary);
}

.admin-stat-icon i { width: 22px; height: 22px; }
.admin-stat-card strong { display: block; font-size: 1.5rem; color: var(--dark); font-weight: 900; line-height: 1.1; }
.admin-stat-card span { display: block; font-size: 0.78rem; color: var(--slate); font-weight: 700; margin-top: 2px; }

.admin-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.admin-chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}

.admin-chart-card h3 { font-size: 1rem; color: var(--dark); font-weight: 900; margin-bottom: 16px; }

.admin-bar-list { display: flex; flex-direction: column; gap: 10px; }
.admin-bar-row { display: flex; align-items: center; gap: 10px; }
.admin-bar-label { flex: 0 0 74px; font-size: 0.72rem; color: var(--slate); font-weight: 700; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-bar-track { flex: 1; height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.admin-bar-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.4s ease; }
.admin-bar-value { flex: 0 0 auto; font-size: 0.76rem; color: var(--dark); font-weight: 800; min-width: 34px; text-align: right; }

.admin-empty-chart { color: var(--slate); font-size: 0.85rem; padding: 20px 0; text-align: center; }

.admin-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-x: auto;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

.admin-table th {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg);
    color: var(--slate);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 13px 16px;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(232, 93, 36, 0.03); }
.admin-table-empty td { text-align: center; color: var(--slate); padding: 32px 16px; }

.admin-table select {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--dark);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.76rem;
    font-weight: 800;
    font-family: inherit;
    text-transform: capitalize;
}

.admin-row-actions { display: flex; gap: 6px; align-items: center; white-space: nowrap; }

.admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--slate);
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-icon-btn:hover { background: var(--bg); color: var(--dark); }
.admin-icon-btn.danger:hover { background: rgba(217, 45, 32, 0.1); color: var(--danger); }
.admin-icon-btn i { width: 16px; height: 16px; }

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}

.admin-badge-pending { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.admin-badge-confirmed { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.admin-badge-in_progress { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.admin-badge-dispatched { background: rgba(14, 165, 233, 0.12); color: #0369a1; }
.admin-badge-completed { background: rgba(15, 118, 110, 0.12); color: var(--accent); }
.admin-badge-cancelled, .admin-badge-closed { background: rgba(217, 45, 32, 0.1); color: var(--danger); }
.admin-badge-new { background: rgba(232, 93, 36, 0.12); color: var(--primary); }
.admin-badge-contacted { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.admin-badge-converted { background: rgba(15, 118, 110, 0.12); color: var(--accent); }
.admin-badge-available { background: rgba(15, 118, 110, 0.12); color: var(--accent); }
.admin-badge-busy { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.admin-badge-offline { background: rgba(100, 116, 139, 0.12); color: #475569; }

@media (max-width: 900px) {
    .admin-shell { flex-direction: column; min-height: auto; }

    .admin-sidebar {
        width: 100%;
        flex: 0 0 auto;
        height: auto;
        position: static;
        flex-direction: row;
        align-items: center;
        padding: 12px;
        overflow-x: auto;
    }

    .admin-sidebar-brand { display: none; }
    .admin-nav { flex-direction: row; flex: 0 0 auto; }
    .admin-nav-item { white-space: nowrap; }
    .admin-sidebar-exit { margin-top: 0; margin-left: auto; flex: 0 0 auto; }
    .admin-main { padding: 20px 16px; }
}

@media (max-width: 640px) {
    .admin-panel-head h1 { font-size: 1.3rem; }
    .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
