/* ============================================================
   VINSTA LED — Comprehensive Mobile Optimization
   ============================================================
   Centralized mobile fixes and enhancements.
   Loaded AFTER all other stylesheets.
   
   Sections:
    1. Global Mobile Resets
    2. Mobile Menu Body Lock
    3. Navbar Safe Area
    4. Improved Grid Layouts (Tablet)
    5. Comparison Matrix Mobile
    6. CTA Section Mobile Polish
    7. Contact Page Mobile
    8. Footer Safe Area
    9. Scroll-to-Top Button
   10. Touch Optimizations
   11. Products Page Mobile
   12. Visualizer Page Mobile
   13. Small Phone Tweaks (≤ 380px)
   14. Landscape Phone Mode
   15. Print Query
   ============================================================ */


/* ─── 1. GLOBAL MOBILE RESETS ─────────────────────────────── */

/* Prevent horizontal overflow on ALL pages */
html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Safe area support for notched phones (iPhone X+, modern Android) */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}


/* ─── 2. MOBILE MENU BODY LOCK ────────────────────────────── */
/* Toggled via body.classList in js/sections/mobile.js          */

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


/* ─── 3. NAVBAR SAFE AREA ─────────────────────────────────── */

@media (max-width: 768px) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    /* Hide floating nav indicator on mobile — it's desktop-only */
    .nav-indicator {
        display: none !important;
    }

    /* Mobile menu overlay backdrop */
    .nav-links {
        background: rgba(8, 8, 12, 0.98) !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    body.light-theme .nav-links {
        background: rgba(248, 249, 251, 0.98) !important;
    }

    /* Keep hamburger above the overlay */
    .mobile-menu-btn {
        position: relative;
        z-index: 1002;
    }
}


/* ─── 4. IMPROVED GRID LAYOUTS ────────────────────────────── */

/* Tablet: 2-column grids instead of jumping straight to 1 column */
@media (min-width: 481px) and (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-3);
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-3);
    }

    .showcase-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-3);
    }
}


/* ─── 5. COMPARISON MATRIX MOBILE ─────────────────────────── */

@media (max-width: 768px) {
    .comparison-matrix {
        grid-template-columns: 1fr !important;
        gap: var(--space-4);
    }

    /* Show Vinsta card first on mobile for maximum impact */
    .vinsta-capsule {
        transform: none;
        order: -1;
    }

    .vinsta-capsule:hover {
        transform: translateY(-4px);
    }

    .matrix-card {
        padding: var(--space-4) var(--space-3);
    }

    .legacy-card {
        opacity: 0.7;
    }

    .badge-premium {
        font-size: 0.6rem;
        padding: 3px 10px;
    }

    .matrix-header h3 {
        font-size: 1.15rem;
    }

    .matrix-row {
        font-size: 0.82rem;
    }

    .matrix-row .value.highlight {
        font-size: 0.8rem;
    }
}


/* ─── 6. CTA SECTION MOBILE POLISH ───────────────────────── */

@media (max-width: 768px) {
    .cta-deluxe-container {
        gap: var(--space-5);
    }

    .cta-pitch h2 {
        font-size: 1.75rem;
    }

    .cta-pitch p {
        font-size: 0.92rem;
    }

    .cta-configurator {
        max-width: 100% !important;
        border-radius: var(--radius-xl);
    }

    .config-display {
        padding: var(--space-3);
    }

    .display-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 0.78rem;
    }

    .disp-value {
        text-align: left;
        font-size: 0.85rem;
    }
}


/* ─── 7. CONTACT PAGE MOBILE ─────────────────────────────── */

@media (max-width: 768px) {
    .contact-section {
        padding: 6rem 0 3rem;
    }

    .contact-info h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .info-item {
        gap: 1rem;
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .map-container {
        height: 220px;
    }
}


/* ─── 8. FOOTER SAFE AREA ─────────────────────────────────── */

@supports (padding: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
    }
}


/* ─── 9. SCROLL-TO-TOP BUTTON ─────────────────────────────── */
/* Requires a <button class="scroll-to-top"> element in the DOM.
   Visibility is toggled via the .visible class from JS.          */

.scroll-to-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-neon);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--primary-neon-glow);
}

.scroll-to-top:active {
    transform: scale(0.92);
}

.scroll-to-top svg,
.scroll-to-top i {
    width: 20px;
    height: 20px;
}

/* Light-theme variant */
body.light-theme .scroll-to-top {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(17, 24, 39, 0.08);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

body.light-theme .scroll-to-top:hover {
    background: linear-gradient(135deg, #7470ee, #5d5ad8);
    color: #fff;
    box-shadow: 0 8px 24px rgba(93, 90, 216, 0.2);
}

/* Position away from chatbot toggler on mobile */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}


/* ─── 10. TOUCH OPTIMIZATIONS ─────────────────────────────── */

@media (hover: none) and (pointer: coarse) {
    /* Disable hover transforms that stick on touch devices */
    .benefit-item:hover,
    .app-card:hover {
        transform: none;
    }

    /* Tap-friendly hit targets (≥ 44 px per WCAG / Apple HIG) */
    .tab-btn {
        min-height: 44px;
    }

    .config-tab {
        min-height: 44px;
    }

    /* Smooth momentum scrolling on scrollable regions */
    .compare-items,
    .related-grid,
    .pb-product-grid,
    .pb-zones,
    .chatbox {
        -webkit-overflow-scrolling: touch;
    }
}


/* ─── 11. PRODUCTS PAGE MOBILE ────────────────────────────── */

@media (max-width: 768px) {
    /* Product page hero spacing */
    .products-preview,
    .product-showcase {
        padding: var(--space-8) 0 !important;
    }

    /* Cap premium-card image height on mobile */
    .premium-card-image {
        height: 200px;
    }

    /* Bottom-sheet style product modal on mobile */
    .product-modal {
        padding: 0;
        align-items: flex-end;
    }

    .product-modal .modal-content {
        max-height: 92vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}


/* ─── 12. VISUALIZER PAGE MOBILE ENHANCEMENTS ─────────────── */

@media (max-width: 600px) {
    .visualizer-hero {
        padding: 7rem 1rem 1.5rem;
    }

    .visualizer-hero h1 {
        font-size: 1.6rem;
    }

    .visualizer-hero p {
        font-size: 0.88rem;
    }

    .scene-image-container {
        height: 45vh;
        min-height: 280px;
    }

    /* Larger split-slider handle for touch accuracy */
    .split-slider-handle {
        width: 48px;
        height: 48px;
    }
}


/* ─── 13. SMALL PHONE TWEAKS (≤ 380px) ───────────────────── */

@media (max-width: 380px) {
    .container {
        padding: 0 1rem;
    }

    .hero-actions {
        padding: 0 0.5rem !important;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .comparison-text h2 {
        font-size: 1.5rem;
    }

    .cta-pitch h2 {
        font-size: 1.4rem;
    }

    .display-row {
        font-size: 0.72rem;
    }

    .benefit-item h3 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.82rem;
    }

    .logo {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
}


/* ─── 14. LANDSCAPE PHONE MODE ────────────────────────────── */

@media (max-height: 500px) and (orientation: landscape) {
    .cinematic-hero {
        min-height: 100vh;
        min-height: 100dvh; /* modern dynamic viewport height */
    }

    .cinematic-hero .hero-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }

    /* Hide description & scroll indicator — limited vertical space */
    .cinematic-hero .hero-desc {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    /* Tighten mobile menu links spacing */
    .nav-links {
        gap: 1rem !important;
    }

    .nav-links li a {
        font-size: 1.1rem !important;
    }
}


/* ─── 15. PRINT QUERY — hide mobile-only interactive UI ──── */

@media print {
    .scroll-to-top,
    .chatbot-toggler,
    .chatbot-sidebar,
    .mobile-menu-btn {
        display: none !important;
    }
}


/* Final mobile hardening overrides */

body.nav-open {
    top: var(--nav-lock-top, 0);
    left: 0;
    right: 0;
}

@media (max-width: 768px) {
    :root {
        --container-padding: clamp(1rem, 4vw, 1.5rem);
    }

    .container {
        width: 100%;
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }

    .navbar {
        height: var(--header-height);
        padding-top: 0;
        padding-bottom: 0;
    }

    .nav-container {
        min-height: var(--header-height);
        padding-left: 0;
        padding-right: 0;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        inset: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: calc(var(--vh, 1vh) * 100) !important;
        min-height: calc(var(--vh, 1vh) * 100);
        padding: calc(var(--header-height) + 1rem) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
        overflow-y: auto;
        background: rgba(8, 8, 12, 0.98) !important;
        transform: translateX(100%) !important;
        transition: transform 0.35s var(--ease-premium) !important;
        z-index: 1000;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .nav-links.nav-active {
        transform: translateX(0) !important;
    }

    .nav-links li {
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .nav-links li a {
        display: flex;
        min-height: 46px;
        align-items: center;
        justify-content: flex-start;
        padding: 0.7rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.035);
        text-align: left;
        font-size: clamp(1rem, 4.5vw, 1.12rem) !important;
        font-weight: 650 !important;
        line-height: 1.2;
    }

    .nav-links li a.active {
        background: rgba(0, 243, 255, 0.12);
        border-color: rgba(0, 243, 255, 0.34);
    }

    body.light-theme .nav-links li a {
        background: rgba(255, 255, 255, 0.62);
        border-color: rgba(17, 24, 39, 0.08);
    }

    body.light-theme .nav-links li a.active {
        background: rgba(111, 107, 232, 0.12);
        border-color: rgba(111, 107, 232, 0.24);
    }

    body.nav-navigating .nav-links {
        transform: translateX(0) scale(0.99) !important;
        opacity: 0.92;
        pointer-events: none;
        transition: opacity 0.12s ease, transform 0.12s ease !important;
    }

    .mobile-menu-btn {
        flex: 0 0 44px;
    }

    .theme-toggle {
        flex: 0 0 60px;
    }

    .cinematic-hero,
    .hero-carousel {
        height: calc(var(--vh, 1vh) * 100);
        min-height: 560px;
    }

    .cinematic-hero .hero-content {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .cinematic-hero .hero-desc {
        max-width: 32rem;
        margin-left: auto;
        margin-right: auto;
    }

    .cinematic-hero .hero-actions {
        justify-content: center;
    }

    .page-header {
        padding: 6.5rem 0 2.5rem !important;
    }

    .page-header h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 1.1;
    }

    .page-header p {
        max-width: 32rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
    }

    .filters,
    .category-tabs-container,
    .pb-filters,
    .roi-presets-grid-buttons {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar,
    .category-tabs-container::-webkit-scrollbar,
    .pb-filters::-webkit-scrollbar {
        display: none;
    }

    .filters {
        justify-content: flex-start !important;
        gap: 0.65rem !important;
        margin: 0 calc(-1 * var(--container-padding)) 2rem !important;
        padding: 0 var(--container-padding) 0.4rem;
        overflow-x: auto;
    }

    .filter-btn {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0.55rem 1rem !important;
        white-space: nowrap;
    }

    .contact-section {
        padding-top: calc(var(--header-height) + var(--space-4)) !important;
    }

    .contact-info,
    .contact-form {
        min-width: 0;
    }

    .contact-info .contact-intro {
        font-size: 0.95rem;
        margin-bottom: var(--space-4);
    }

    .contact-info .contact-intro br {
        display: none;
    }

    .contact-form {
        border-radius: var(--radius-lg);
    }

    .project-attachment-group {
        overflow-wrap: anywhere;
    }

    .chatbot-sidebar {
        height: calc(var(--vh, 1vh) * 100) !important;
        max-height: calc(var(--vh, 1vh) * 100) !important;
    }

    .chat-input {
        padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 600px) {
    .roi-calculator,
    .pb-section {
        padding-top: calc(var(--header-height) + var(--space-3)) !important;
    }

    .roi-header,
    .pb-header {
        margin-bottom: var(--space-4) !important;
    }

    .roi-header h1,
    .pb-header h1 {
        font-size: clamp(1.55rem, 8vw, 2rem) !important;
    }

    .roi-panel-header,
    .pb-panel-header {
        align-items: flex-start;
    }

    .roi-input-label {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .roi-label-left {
        min-width: 0;
        line-height: 1.25;
    }

    .roi-label-value {
        flex: 0 0 auto;
    }

    .roi-presets-grid-buttons {
        display: flex !important;
        gap: 0.6rem !important;
        margin: 0 calc(-1 * var(--space-3));
        padding: 0 var(--space-3) 0.25rem;
        overflow-x: auto;
    }

    .roi-preset-btn {
        flex: 0 0 auto;
        min-width: 8.5rem;
        min-height: 44px;
    }

    .roi-export-btn,
    .pb-generate-btn,
    .pb-add-zone-btn {
        min-height: 48px;
    }

    .pb-filters {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        margin-right: calc(-1 * var(--space-3));
        padding-bottom: 0.35rem;
    }

    .pb-filter {
        flex: 0 0 auto;
        min-height: 40px;
    }

    .pb-product-item {
        align-items: flex-start !important;
    }

    .pb-product-meta {
        flex-wrap: wrap;
        row-gap: 0.15rem;
    }
}

@media (max-width: 480px) {
    .info-item {
        align-items: flex-start;
    }

    .info-item span,
    .info-item strong {
        overflow-wrap: anywhere;
    }

    .map-container {
        height: 200px !important;
    }
}

@media (max-width: 420px) {
    .pb-product-item {
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px !important;
    }

    .pb-add-btn {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }

    .pb-zone-item {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .pb-zone-item-price {
        min-width: 0 !important;
    }

    .pb-qty-controls,
    .pb-zone-item-remove {
        grid-row: 2;
    }
}

/* Mobile premium polish pass */

@media (max-width: 768px) {
    .navbar {
        background: rgba(8, 8, 12, 0.78) !important;
        border-bottom-color: rgba(255, 255, 255, 0.075);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
    }

    body.light-theme .navbar {
        background: rgba(248, 249, 251, 0.84) !important;
        border-bottom-color: rgba(17, 24, 39, 0.065);
    }

    .nav-actions {
        gap: 0.65rem;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
            rgba(8, 8, 12, 0.62);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    }

    body.light-theme .mobile-menu-btn {
        background: rgba(255, 255, 255, 0.78);
        border-color: rgba(17, 24, 39, 0.08);
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    }

    .nav-links {
        padding: calc(var(--header-height) + 1.25rem) max(1.1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.1rem, env(safe-area-inset-left)) !important;
        background:
            radial-gradient(ellipse at 50% 0%, rgba(0, 243, 255, 0.14) 0%, transparent 42%),
            linear-gradient(180deg, rgba(8, 8, 12, 0.98) 0%, rgba(12, 12, 18, 0.995) 100%) !important;
        backdrop-filter: blur(22px) saturate(145%);
        -webkit-backdrop-filter: blur(22px) saturate(145%);
    }

    .nav-links::before {
        content: 'VINSTA LED';
        display: block;
        width: min(100%, 360px);
        margin: 0 auto 0.75rem;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(0, 243, 255, 0.18);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.045);
        color: var(--primary-neon);
        font-family: var(--font-heading);
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-align: center;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    }

    .nav-links::after {
        content: '';
        display: block;
        width: min(100%, 360px);
        height: 1px;
        margin: 0.5rem auto 0;
        background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.24), transparent);
    }

    .nav-links li {
        width: min(100%, 360px);
    }

    .nav-links li a {
        min-height: 52px;
        padding: 0.85rem 1rem !important;
        border-radius: 16px !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
            rgba(255, 255, 255, 0.02) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
        font-size: clamp(0.98rem, 4.2vw, 1.08rem) !important;
    }

    .nav-links li a.active {
        background:
            linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(123, 47, 247, 0.11)),
            rgba(255, 255, 255, 0.04) !important;
        border-color: rgba(0, 243, 255, 0.34) !important;
        color: var(--primary-neon);
    }

    body.light-theme .nav-links {
        background:
            radial-gradient(ellipse at 50% 0%, rgba(111, 107, 232, 0.14) 0%, transparent 42%),
            linear-gradient(180deg, rgba(248, 249, 251, 0.98) 0%, rgba(238, 242, 248, 0.995) 100%) !important;
    }

    body.light-theme .nav-links::before {
        color: #5551cf;
        background: rgba(255, 255, 255, 0.72);
        border-color: rgba(111, 107, 232, 0.16);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    }

    body.light-theme .nav-links::after {
        background: linear-gradient(90deg, transparent, rgba(111, 107, 232, 0.22), transparent);
    }

    body.light-theme .nav-links li a {
        background: rgba(255, 255, 255, 0.68) !important;
        border-color: rgba(17, 24, 39, 0.075) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
    }

    body.light-theme .nav-links li a.active {
        background: rgba(111, 107, 232, 0.11) !important;
        border-color: rgba(111, 107, 232, 0.22) !important;
        color: #5551cf;
    }

    .why-led,
    .impact-section,
    .applications,
    .product-showcase,
    .cta-section {
        padding-top: clamp(3.25rem, 11vw, 4.5rem) !important;
        padding-bottom: clamp(3.25rem, 11vw, 4.5rem) !important;
    }

    .section-header {
        margin-bottom: clamp(1.8rem, 7vw, 2.5rem) !important;
    }

    .product-showcase {
        padding-bottom: clamp(1rem, 4vw, 1.5rem) !important;
    }

    .showcase-grid {
        min-height: 0 !important;
        margin-bottom: var(--space-4) !important;
    }

    .showcase-actions {
        margin-top: var(--space-3) !important;
    }

    .cta-section {
        padding-top: clamp(1.25rem, 5vw, 2rem) !important;
        border-top-color: rgba(0, 243, 255, 0.065);
    }

    .product-showcase + .cta-section {
        margin-top: 0 !important;
        padding-top: clamp(0.75rem, 3.5vw, 1.25rem) !important;
    }

    .product-showcase:has(+ .cta-section) {
        padding-bottom: clamp(0.75rem, 3.5vw, 1.25rem) !important;
    }

    .cta-deluxe-container {
        gap: clamp(1.5rem, 7vw, 2.5rem) !important;
    }

    .cta-pitch p {
        margin-bottom: var(--space-4) !important;
    }

    .category-tabs-container {
        width: auto !important;
        margin: 0 calc(-1 * var(--container-padding)) clamp(1.5rem, 6vw, 2rem) !important;
        padding: 0 var(--container-padding) 0.35rem !important;
        justify-content: flex-start !important;
        scroll-snap-type: x proximity;
    }

    .category-tabs {
        flex-wrap: nowrap !important;
        gap: 0 !important;
        min-width: max-content;
        margin: 0 !important;
        padding: 4px !important;
        border-radius: 16px !important;
    }

    .tab-btn {
        flex: 0 0 auto;
        min-height: 42px !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0.65rem 0.95rem !important;
        border-radius: 12px !important;
        font-size: 0.78rem !important;
        letter-spacing: 0 !important;
        scroll-snap-align: start;
    }

    .product-interface {
        min-width: 0;
    }

    .product-grid,
    .showcase-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
    }

    .premium-card {
        border-radius: 14px !important;
    }

    .premium-card-image {
        height: clamp(170px, 52vw, 210px) !important;
        padding: var(--space-3) !important;
    }

    .premium-card-content {
        padding: 1rem !important;
    }

    .premium-card h3 {
        font-size: 1rem !important;
        line-height: 1.25;
    }

    .premium-card p {
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1rem !important;
    }

    .premium-action {
        gap: 0.6rem;
    }

    .btn-card,
    .compare-toggle {
        min-height: 44px;
        border-radius: 12px !important;
    }
}

@media (max-width: 600px) {
    .applications .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .app-card {
        min-height: 132px;
        padding: 1rem 0.75rem !important;
        border-radius: 14px !important;
    }

    .app-icon {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 0.7rem !important;
    }

    .app-card h3 {
        font-size: 0.98rem !important;
        margin-bottom: 0.2rem !important;
    }

    .app-card p {
        font-size: 0.74rem !important;
        line-height: 1.3 !important;
    }

    .cta-metrics {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }

    .metric-card-mini {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: baseline;
        column-gap: 0.4rem;
        text-align: left !important;
        padding: 0.8rem 0.95rem !important;
    }

    .metric-label {
        grid-column: 1 / -1;
        font-size: 0.68rem !important;
    }

    .cta-configurator {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .config-header h3 {
        font-size: 1rem !important;
    }

    .config-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .config-tab {
        min-height: 44px;
        border-radius: 12px !important;
    }

    .btn-cta-deluxe span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .roi-calculator {
        padding-bottom: var(--space-4) !important;
    }

    .roi-layout {
        gap: 1rem !important;
    }

    .roi-panel {
        border-radius: 16px !important;
        padding: 1rem !important;
    }

    .roi-panel-header {
        align-items: center !important;
    }

    .roi-panel-subtitle {
        display: none;
    }

    .roi-presets-group {
        margin-bottom: 1rem !important;
        padding-top: 0 !important;
    }

    .roi-input-label {
        margin-bottom: 0.35rem !important;
    }

    .roi-slider-labels {
        margin-top: 22px !important;
    }

    .roi-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    .roi-stat-card {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-areas:
            "icon value"
            "icon label"
            "icon subtext";
        align-items: center;
        text-align: left !important;
        column-gap: 0.75rem;
        padding: 0.85rem !important;
    }

    .roi-stat-icon {
        grid-area: icon;
        margin: 0 !important;
    }

    .roi-stat-value {
        grid-area: value;
        font-size: 1.15rem !important;
        margin: 0 !important;
        word-break: break-word;
    }

    .roi-stat-label {
        grid-area: label;
        font-size: 0.66rem !important;
    }

    .roi-stat-subtext {
        grid-area: subtext;
    }

    .roi-hero-savings-value {
        font-size: clamp(1.7rem, 10vw, 2.15rem) !important;
        overflow-wrap: anywhere;
    }

    .roi-comparison {
        gap: 0.55rem !important;
    }

    .roi-cost-block {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        column-gap: 0.7rem;
        text-align: left !important;
        align-items: center;
    }

    .roi-cost-icon {
        grid-row: 1 / 3;
        margin: 0 !important;
    }

    .roi-cost-title {
        margin: 0 0 0.15rem !important;
    }

    .roi-cost-amount {
        font-size: 1rem !important;
        overflow-wrap: anywhere;
    }

    .roi-chart-wrapper {
        height: 220px !important;
        margin-left: -0.35rem;
        margin-right: -0.35rem;
    }

    .roi-five-year-summary {
        grid-template-columns: 1fr !important;
    }

    .roi-five-year-total {
        grid-column: auto !important;
    }

    .roi-export-btn {
        min-height: 48px;
        border-radius: 12px !important;
        padding: 0.85rem 0.75rem !important;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 1.22rem !important;
        letter-spacing: 1.6px !important;
    }

    .applications .app-grid {
        gap: 0.6rem !important;
    }

    .app-card {
        min-height: 124px;
        padding: 0.85rem 0.55rem !important;
    }

    .category-tabs-container {
        margin-bottom: 1.25rem !important;
    }

    .product-showcase + .cta-section {
        padding-top: 0.5rem !important;
    }

    .product-showcase:has(+ .cta-section) {
        padding-bottom: 0.5rem !important;
    }

    .tab-btn {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.74rem !important;
    }

    .premium-card-image {
        height: 165px !important;
    }

    .roi-chart-wrapper {
        height: 190px !important;
    }
}

/* Final navigation and product menu refinement */

@media (min-width: 769px) {
    .navbar {
        background:
            linear-gradient(180deg, rgba(8, 8, 12, 0.88), rgba(8, 8, 12, 0.72)) !important;
        border-bottom-color: rgba(0, 243, 255, 0.09);
    }

    body.light-theme .navbar {
        background: rgba(248, 249, 251, 0.86) !important;
        border-bottom-color: rgba(111, 107, 232, 0.11);
    }

    .nav-container {
        gap: clamp(0.9rem, 2vw, 1.6rem);
    }

    .nav-links {
        flex: 1 1 auto;
        justify-content: center;
        align-items: center;
        gap: clamp(0.85rem, 1.55vw, 1.7rem);
        min-width: 0;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0.35rem 0.15rem;
        white-space: nowrap;
        font-size: clamp(0.74rem, 0.82vw, 0.9rem);
        letter-spacing: 0.035em;
    }

    .nav-links a::before {
        content: '';
        width: 5px;
        height: 5px;
        margin-right: 0.45rem;
        border-radius: var(--radius-full);
        background: currentColor;
        opacity: 0;
        box-shadow: 0 0 10px currentColor;
        transform: scale(0.65);
        transition: opacity 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
    }

    .nav-links a:hover::before,
    .nav-links a.active::before {
        opacity: 0.85;
        transform: scale(1);
    }

    .nav-indicator {
        bottom: -8px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    }

    .nav-actions {
        flex: 0 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {
    .logo {
        font-size: 1.45rem;
        letter-spacing: 2px;
    }

    .theme-toggle {
        width: 54px;
        height: 28px;
    }

    body.light-theme .toggle-thumb {
        transform: translateX(26px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 0.55rem !important;
        padding-top: calc(var(--header-height) + 0.85rem) !important;
        background:
            linear-gradient(180deg, rgba(8, 8, 12, 0.98) 0%, rgba(9, 10, 17, 0.995) 100%),
            repeating-linear-gradient(90deg, rgba(0, 243, 255, 0.045) 0 1px, transparent 1px 54px) !important;
    }

    .nav-links::before {
        content: 'VINSTA LED  /  PREMIUM MENU';
        border-color: rgba(0, 243, 255, 0.34);
        background:
            linear-gradient(135deg, rgba(0, 243, 255, 0.16), rgba(123, 47, 247, 0.09)),
            rgba(255, 255, 255, 0.04);
        color: #f7fdff;
        text-shadow: 0 0 16px rgba(0, 243, 255, 0.5);
        box-shadow:
            0 0 0 1px rgba(0, 243, 255, 0.06) inset,
            0 16px 42px rgba(0, 0, 0, 0.28),
            0 0 34px rgba(0, 243, 255, 0.11);
    }

    .nav-links li a {
        position: relative;
        overflow: hidden;
        min-height: 50px;
        padding-left: 3.05rem !important;
        color: rgba(240, 240, 245, 0.86);
        background:
            linear-gradient(110deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
            rgba(7, 10, 18, 0.78) !important;
        border-color: rgba(0, 243, 255, 0.14) !important;
    }

    .nav-links li a::before {
        content: '';
        position: absolute;
        left: 1rem;
        top: 50%;
        width: 0.82rem;
        height: 0.82rem;
        border-radius: 4px;
        border: 1px solid rgba(0, 243, 255, 0.54);
        background: rgba(0, 243, 255, 0.08);
        box-shadow:
            0 0 12px rgba(0, 243, 255, 0.22),
            inset 0 0 8px rgba(0, 243, 255, 0.1);
        transform: translateY(-50%) rotate(45deg);
    }

    .nav-links li a::after {
        content: '';
        position: absolute;
        inset: 0;
        display: block !important;
        width: auto !important;
        height: auto !important;
        border-radius: inherit;
        background: linear-gradient(90deg, rgba(0, 243, 255, 0.16), transparent 42%);
        opacity: 0;
        transform: translateX(-24%);
        transition: opacity 0.28s var(--ease-premium), transform 0.28s var(--ease-premium);
        pointer-events: none;
    }

    .nav-links li a.active,
    .nav-links li a:hover {
        color: #ffffff;
        border-color: rgba(0, 243, 255, 0.42) !important;
        box-shadow:
            0 0 0 1px rgba(0, 243, 255, 0.07) inset,
            0 12px 32px rgba(0, 0, 0, 0.2),
            0 0 28px rgba(0, 243, 255, 0.12);
    }

    .nav-links li a.active::after,
    .nav-links li a:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-menu-btn {
        color: var(--primary-neon);
        border-color: rgba(0, 243, 255, 0.28);
        box-shadow:
            0 10px 26px rgba(0, 0, 0, 0.24),
            0 0 22px rgba(0, 243, 255, 0.08);
    }

    body.light-theme .nav-links {
        background:
            linear-gradient(180deg, rgba(248, 249, 251, 0.98) 0%, rgba(239, 243, 250, 0.995) 100%),
            repeating-linear-gradient(90deg, rgba(111, 107, 232, 0.04) 0 1px, transparent 1px 54px) !important;
    }

    body.light-theme .nav-links::before {
        color: #4f46c9;
        text-shadow: none;
        background: rgba(255, 255, 255, 0.82);
        border-color: rgba(111, 107, 232, 0.24);
    }

    body.light-theme .nav-links li a {
        color: #394150;
        background: rgba(255, 255, 255, 0.74) !important;
        border-color: rgba(111, 107, 232, 0.13) !important;
    }

    body.light-theme .nav-links li a::before {
        border-color: rgba(111, 107, 232, 0.42);
        background: rgba(111, 107, 232, 0.08);
        box-shadow: 0 0 12px rgba(111, 107, 232, 0.14);
    }

    body.light-theme .nav-links li a::after {
        background: linear-gradient(90deg, rgba(111, 107, 232, 0.13), transparent 42%);
    }

    body.light-theme .nav-links li a.active,
    body.light-theme .nav-links li a:hover {
        color: #4f46c9;
        border-color: rgba(111, 107, 232, 0.26) !important;
        box-shadow:
            0 0 0 1px rgba(111, 107, 232, 0.05) inset,
            0 12px 30px rgba(15, 23, 42, 0.07);
    }

    .category-tabs-container {
        padding-top: 0.2rem !important;
        padding-bottom: 0.6rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        width: auto !important;
        margin: 0 calc(-1 * var(--container-padding)) clamp(1.5rem, 6vw, 2rem) !important;
        padding: 0 var(--container-padding) 0.35rem !important;
        justify-content: center !important;
    }

    .category-tabs {
        width: max-content !important;
        min-width: max-content !important;
        flex-shrink: 0 !important;
        background: rgba(8, 8, 12, 0.42) !important;
        backdrop-filter: blur(20px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: 
            0 12px 30px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(0, 243, 255, 0.04) !important;
        padding: 4px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        position: relative !important;
        isolation: isolate !important;
    }

    .tab-indicator {
        top: 4px !important;
        bottom: 4px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        z-index: 0 !important;
    }

    .tab-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        min-width: 4.8rem !important;
        min-height: 2.1rem !important;
        padding: 0 0.65rem !important;
        color: rgba(240, 240, 245, 0.5) !important;
        opacity: 1 !important;
        font-family: var(--font-heading) !important;
        font-size: 0.62rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        border-radius: 999px !important;
        transition: all 0.3s ease !important;
        z-index: 1 !important;
    }

    /* Active/Hover Neon Glowing Tab dot bullet indicator */
    .tab-btn::before {
        content: '';
        display: inline-block !important;
        width: 4px !important;
        height: 4px !important;
        border-radius: 50% !important;
        background: currentColor !important;
        opacity: 0 !important;
        transform: scale(0) !important;
        box-shadow: 0 0 6px currentColor !important;
        transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        margin-right: 0 !important;
    }

    .tab-btn.active {
        color: #00f3ff !important;
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.3) !important;
    }

    .tab-btn.active::before {
        opacity: 1 !important;
        transform: scale(1) !important;
        margin-right: 6px !important;
    }

    .tab-btn[data-category="office"].active {
        color: #a78bfa !important;
        text-shadow: 0 0 10px rgba(167, 139, 250, 0.3) !important;
    }

    .tab-btn[data-category="outdoor"].active {
        color: #34d399 !important;
        text-shadow: 0 0 10px rgba(52, 211, 153, 0.28) !important;
    }

    body.light-theme .category-tabs {
        background: rgba(255, 255, 255, 0.65) !important;
        border-color: rgba(111, 107, 232, 0.08) !important;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    body.light-theme .tab-indicator {
        background: rgba(111, 107, 232, 0.07) !important;
        border-color: rgba(111, 107, 232, 0.18) !important;
        box-shadow: none !important;
    }

    body.light-theme .tab-btn {
        color: rgba(55, 65, 81, 0.55) !important;
    }

    body.light-theme .tab-btn.active {
        color: #5551cf !important;
        text-shadow: none !important;
    }
}

@media (max-width: 390px) {
    .nav-links li a {
        min-height: 48px;
        padding-left: 2.75rem !important;
        font-size: 0.94rem !important;
    }

    .tab-btn {
        min-width: 5.5rem;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }
}

/* Elegant mobile nav refinement */

@media (max-width: 768px) {
    .nav-links {
        gap: 0.42rem !important;
        padding-top: calc(var(--header-height) + 1rem) !important;
        background:
            radial-gradient(ellipse at 50% -8%, rgba(0, 243, 255, 0.11) 0%, transparent 42%),
            linear-gradient(180deg, rgba(8, 8, 12, 0.975) 0%, rgba(10, 11, 17, 0.992) 100%) !important;
    }

    .nav-links::before {
        content: 'VINSTA LED';
        width: min(100%, 340px);
        margin-bottom: 1.05rem;
        padding: 0.6rem 0.9rem;
        border-radius: 999px;
        border-color: rgba(0, 243, 255, 0.18);
        background: rgba(255, 255, 255, 0.035);
        color: var(--primary-neon);
        font-size: 0.72rem;
        letter-spacing: 0.24em;
        text-shadow: 0 0 14px rgba(0, 243, 255, 0.25);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 12px 34px rgba(0, 0, 0, 0.18);
    }

    .nav-links::after {
        width: min(72%, 260px);
        margin-top: 0.75rem;
        background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.16), transparent);
    }

    .nav-links li {
        width: min(100%, 340px);
    }

    .nav-links li a {
        min-height: 48px;
        padding: 0.74rem 1rem 0.74rem 2.55rem !important;
        border-radius: 14px !important;
        border-color: rgba(255, 255, 255, 0.075) !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
            rgba(255, 255, 255, 0.012) !important;
        color: rgba(240, 240, 245, 0.78);
        box-shadow: none;
        font-size: clamp(0.93rem, 3.9vw, 1.02rem) !important;
        font-weight: 620 !important;
        letter-spacing: 0.012em !important;
    }

    .nav-links li a::before {
        left: 1rem;
        width: 0.46rem;
        height: 0.46rem;
        border-radius: 999px;
        border: 0;
        background: var(--primary-neon);
        opacity: 0.34;
        box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
        transform: translateY(-50%);
    }

    .nav-links li a::after {
        background: linear-gradient(90deg, rgba(0, 243, 255, 0.08), transparent 48%);
    }

    .nav-links li a.active,
    .nav-links li a:hover {
        color: #f9feff;
        border-color: rgba(0, 243, 255, 0.22) !important;
        background:
            linear-gradient(180deg, rgba(0, 243, 255, 0.08), rgba(255, 255, 255, 0.018)),
            rgba(255, 255, 255, 0.018) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 10px 28px rgba(0, 0, 0, 0.16);
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.14);
    }

    .nav-links li a.active::before,
    .nav-links li a:hover::before {
        opacity: 0.78;
    }

    .mobile-menu-btn {
        border-radius: 999px;
        border-color: rgba(0, 243, 255, 0.18);
        background: rgba(255, 255, 255, 0.035);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 8px 22px rgba(0, 0, 0, 0.16);
    }

    body.light-theme .nav-links {
        background:
            radial-gradient(ellipse at 50% -8%, rgba(111, 107, 232, 0.095) 0%, transparent 42%),
            linear-gradient(180deg, rgba(249, 250, 252, 0.98) 0%, rgba(241, 244, 249, 0.992) 100%) !important;
    }

    body.light-theme .nav-links::before {
        color: #5551cf;
        background: rgba(255, 255, 255, 0.58);
        border-color: rgba(111, 107, 232, 0.16);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
    }

    body.light-theme .nav-links li a {
        color: rgba(31, 41, 55, 0.72);
        background: rgba(255, 255, 255, 0.48) !important;
        border-color: rgba(17, 24, 39, 0.055) !important;
        box-shadow: none;
    }

    body.light-theme .nav-links li a::before {
        background: #6f6be8;
        opacity: 0.32;
        box-shadow: 0 0 10px rgba(111, 107, 232, 0.18);
    }

    body.light-theme .nav-links li a.active,
    body.light-theme .nav-links li a:hover {
        color: #4f46c9;
        background: rgba(111, 107, 232, 0.075) !important;
        border-color: rgba(111, 107, 232, 0.17) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
        text-shadow: none;
    }
}

/* Lumina-style minimal mobile menu composition */

@media (max-width: 768px) {
    .navbar {
        background: rgba(2, 6, 8, 0.78) !important;
        border-bottom-color: rgba(0, 243, 255, 0.045);
        box-shadow: none !important;
    }

    .nav-container {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 58px;
        align-items: center;
        gap: 0;
    }

    .logo {
        grid-column: 2;
        justify-self: center;
        font-size: 1.05rem !important;
        letter-spacing: 0.02em !important;
        color: var(--primary-neon);
        text-shadow: 0 0 14px rgba(0, 243, 255, 0.34);
        z-index: 1002;
    }

    .logo .neon-text {
        color: inherit;
    }

    .nav-actions {
        display: contents;
    }

    .mobile-menu-btn {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        width: 36px;
        height: 36px;
        border: 0;
        background: transparent;
        color: rgba(238, 252, 255, 0.88);
        box-shadow: none;
        z-index: 1002;
    }

    .theme-toggle {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        transform: scale(0.8);
        transform-origin: right center;
        z-index: 1002;
    }

    .nav-links {
        display: grid !important;
        grid-template-columns: minmax(1rem, 1fr) minmax(120px, 172px) minmax(1rem, 1fr) !important;
        grid-template-rows: 1fr auto auto auto auto auto 1fr !important;
        align-items: center !important;
        justify-items: center !important;
        gap: 0 !important;
        padding: calc(var(--header-height) + 0.5rem) 1.2rem max(1.5rem, env(safe-area-inset-bottom)) !important;
        background:
            radial-gradient(circle at 50% 53%, rgba(0, 243, 255, 0.14) 0%, rgba(0, 243, 255, 0.055) 18%, transparent 38%),
            radial-gradient(ellipse at 50% 20%, rgba(0, 170, 150, 0.18) 0%, transparent 44%),
            linear-gradient(180deg, #020506 0%, #041011 54%, #020303 100%) !important;
    }

    .nav-links::before {
        content: 'CORE';
        grid-column: 2;
        grid-row: 3 / 5;
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(132px, 44vw, 172px);
        aspect-ratio: 1;
        margin: 0;
        padding: 0;
        border-radius: 999px;
        border: 1px solid rgba(0, 243, 255, 0.08);
        background:
            radial-gradient(circle at 50% 12%, rgba(0, 243, 255, 0.17) 0 3px, transparent 4px),
            radial-gradient(circle at 50% 48%, rgba(0, 243, 255, 0.055), transparent 62%),
            rgba(0, 0, 0, 0.18);
        color: rgba(240, 249, 250, 0.72);
        font-family: var(--font-heading);
        font-size: 0.92rem;
        font-weight: 500;
        letter-spacing: 0.42em;
        text-indent: 0.42em;
        text-shadow: none;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.018) inset,
            0 24px 54px rgba(0, 0, 0, 0.52),
            0 0 32px rgba(0, 243, 255, 0.055);
        z-index: -1;
    }

    .nav-links::after {
        content: '';
        grid-column: 1 / -1;
        grid-row: 1 / -1;
        align-self: stretch;
        justify-self: stretch;
        width: auto;
        height: auto;
        margin: 0;
        background:
            linear-gradient(90deg, transparent 0 14%, rgba(0, 243, 255, 0.045) 14% 14.5%, transparent 14.5% 85.5%, rgba(0, 243, 255, 0.035) 85.5% 86%, transparent 86%),
            linear-gradient(180deg, transparent 0 32%, rgba(0, 243, 255, 0.04) 32% 32.35%, transparent 32.35% 78%, rgba(0, 243, 255, 0.032) 78% 78.35%, transparent 78.35%);
        opacity: 0.42;
        pointer-events: none;
        z-index: -2;
    }

    .nav-links li {
        width: auto;
        max-width: 7.5rem;
    }

    .nav-links li:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: start;
        margin-left: 0.15rem;
    }

    .nav-links li:nth-child(2) {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: end;
        margin-right: 0.15rem;
    }

    .nav-links li:nth-child(3) {
        grid-column: 1 / 3;
        grid-row: 5;
        justify-self: start;
    }

    .nav-links li:nth-child(4) {
        grid-column: 2 / 4;
        grid-row: 5;
        justify-self: end;
    }

    .nav-links li:nth-child(5) {
        grid-column: 1 / 3;
        grid-row: 6;
        justify-self: start;
        align-self: start;
        margin-top: 0.65rem;
    }

    .nav-links li:nth-child(6) {
        grid-column: 2 / 4;
        grid-row: 6;
        justify-self: end;
        align-self: start;
        margin-top: 0.65rem;
    }

    .nav-links li a {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-height: auto;
        padding: 0.45rem 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: rgba(224, 238, 241, 0.54);
        font-family: var(--font-heading);
        font-size: clamp(0.54rem, 2.4vw, 0.64rem) !important;
        font-weight: 700 !important;
        line-height: 1.45;
        letter-spacing: 0.28em !important;
        text-transform: uppercase;
        text-shadow: none;
    }

    .nav-links li:nth-child(even) a {
        align-items: flex-end;
        text-align: right;
    }

    .nav-links li a::before {
        position: static;
        display: block;
        width: 0.58rem;
        height: 0.58rem;
        margin: 0 0 0.42rem;
        border-radius: 999px;
        background: transparent;
        border: 1px solid rgba(224, 238, 241, 0.58);
        opacity: 0.9;
        box-shadow: none;
        transform: none;
    }

    .nav-links li a::after {
        position: static;
        display: block !important;
        width: 2.25rem !important;
        height: 1px !important;
        margin-top: 0.52rem;
        border-radius: 999px;
        background: rgba(0, 243, 255, 0.18);
        opacity: 0;
        transform: none;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        color: rgba(245, 253, 255, 0.84);
        background: transparent !important;
        border: 0 !important;
        box-shadow: none;
        text-shadow: 0 0 14px rgba(0, 243, 255, 0.22);
    }

    .nav-links li a:hover::before,
    .nav-links li a.active::before {
        background: var(--primary-neon);
        border-color: var(--primary-neon);
        box-shadow: 0 0 12px rgba(0, 243, 255, 0.46);
    }

    .nav-links li a:hover::after,
    .nav-links li a.active::after {
        opacity: 1;
    }

    body.light-theme .navbar {
        background: rgba(248, 250, 252, 0.78) !important;
        border-bottom-color: rgba(111, 107, 232, 0.065);
    }

    body.light-theme .mobile-menu-btn {
        color: #4f46c9;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.light-theme .nav-links {
        background:
            radial-gradient(circle at 50% 53%, rgba(111, 107, 232, 0.12) 0%, rgba(111, 107, 232, 0.05) 18%, transparent 38%),
            radial-gradient(ellipse at 50% 20%, rgba(111, 107, 232, 0.13) 0%, transparent 44%),
            linear-gradient(180deg, #fbfcfe 0%, #edf2f8 54%, #f8fafc 100%) !important;
    }

    body.light-theme .nav-links::before {
        border-color: rgba(111, 107, 232, 0.11);
        background:
            radial-gradient(circle at 50% 12%, rgba(111, 107, 232, 0.22) 0 3px, transparent 4px),
            radial-gradient(circle at 50% 48%, rgba(111, 107, 232, 0.07), transparent 62%),
            rgba(255, 255, 255, 0.26);
        color: rgba(31, 41, 55, 0.62);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.7) inset,
            0 24px 54px rgba(15, 23, 42, 0.1);
    }

    body.light-theme .nav-links::after {
        background:
            linear-gradient(90deg, transparent 0 14%, rgba(111, 107, 232, 0.045) 14% 14.5%, transparent 14.5% 85.5%, rgba(111, 107, 232, 0.035) 85.5% 86%, transparent 86%),
            linear-gradient(180deg, transparent 0 32%, rgba(111, 107, 232, 0.04) 32% 32.35%, transparent 32.35% 78%, rgba(111, 107, 232, 0.032) 78% 78.35%, transparent 78.35%);
    }

    body.light-theme .nav-links li a {
        color: rgba(31, 41, 55, 0.54);
        background: transparent !important;
        border: 0 !important;
        box-shadow: none;
    }

    body.light-theme .nav-links li a::before {
        border-color: rgba(31, 41, 55, 0.42);
        background: transparent;
        box-shadow: none;
    }

    body.light-theme .nav-links li a::after {
        background: rgba(111, 107, 232, 0.22);
    }

    body.light-theme .nav-links li a:hover,
    body.light-theme .nav-links li a.active {
        color: #4f46c9;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none;
        text-shadow: none;
    }

    body.light-theme .nav-links li a:hover::before,
    body.light-theme .nav-links li a.active::before {
        background: #6f6be8;
        border-color: #6f6be8;
        box-shadow: 0 0 10px rgba(111, 107, 232, 0.24);
    }
}

@media (max-width: 390px) {
    .nav-links {
        grid-template-columns: minmax(0.6rem, 1fr) minmax(116px, 150px) minmax(0.6rem, 1fr) !important;
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .nav-links li {
        max-width: 6.7rem;
    }

    .nav-links li a {
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-size: 0.53rem !important;
        letter-spacing: 0.22em !important;
    }

    .nav-links::before {
        width: clamp(118px, 41vw, 150px);
        font-size: 0.8rem;
    }
}

/* Elite status-panel mobile menu - Upgraded to Premium Minimalist Glassmorphism */

@media (max-width: 768px) {
    body.nav-open .navbar {
        background: transparent !important;
        border-bottom-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.nav-open .logo,
    body.nav-open .theme-toggle {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    body.nav-open .mobile-menu-btn {
        position: fixed;
        top: max(1.35rem, env(safe-area-inset-top));
        right: max(1.1rem, env(safe-area-inset-right));
        left: auto;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(0, 243, 255, 0.18) !important;
        border-radius: 50% !important;
        background: rgba(8, 8, 12, 0.25) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        color: rgba(187, 244, 248, 0.9) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.3s var(--ease-premium);
    }

    body.nav-open .mobile-menu-btn:hover {
        border-color: rgba(0, 243, 255, 0.44) !important;
        box-shadow: 0 0 12px rgba(0, 243, 255, 0.22) !important;
        transform: rotate(90deg);
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: calc(var(--vh, 1vh) * 100) !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.4rem !important;
        padding: max(2rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom)) 1.5rem !important;
        background:
            radial-gradient(circle at 80% 10%, rgba(0, 243, 255, 0.05) 0%, transparent 40%),
            rgba(6, 6, 9, 0.72) !important;
        backdrop-filter: blur(28px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
        z-index: 9999 !important;
        transform: translateX(100%) !important;
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important;
    }

    .nav-links.nav-active {
        transform: translateX(0) !important;
    }

    .nav-links::before {
        content: 'VINSTA  LED';
        display: block;
        order: 0;
        width: 100%;
        max-width: 280px;
        margin: 0 0 1rem 0 !important;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: rgba(247, 253, 255, 0.96);
        font-family: var(--font-heading);
        font-size: clamp(1.15rem, 5vw, 1.35rem) !important;
        font-weight: 800;
        letter-spacing: 0.44em !important;
        text-align: center !important;
        text-indent: 0.44em !important;
        text-shadow: 0 0 16px rgba(0, 243, 255, 0.15);
        box-shadow: none;
        opacity: 0.9;
    }

    .nav-links::after {
        display: none;
    }

    .nav-links li {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
        align-self: auto !important;
        order: 2 !important;
        display: block !important;
    }

    .nav-links li:nth-child(n) {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
        align-self: auto !important;
        margin: 0 auto !important;
        order: 2 !important;
    }

    .nav-links li:first-child {
        margin-top: 0.5rem !important;
        position: relative;
    }

    .nav-links li a {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center !important;
        justify-content: center;
        min-height: 2.8rem !important;
        width: 100%;
        padding: 0.2rem 1rem !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: rgba(210, 225, 229, 0.52);
        box-shadow: none !important;
        font-family: var(--font-heading);
        font-size: 0.92rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.2em !important;
        line-height: 1;
        text-align: center !important;
        text-transform: uppercase;
        text-shadow: none;
        opacity: 0.75;
        transition: all 0.3s var(--ease-premium);
    }

    /* Premium Minimalist Neon Dot Indicator on Active/Hover */
    .nav-links li a::before {
        content: '';
        position: absolute;
        left: 1.25rem;
        top: 50%;
        transform: translateY(-50%) scale(0);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--primary-neon);
        box-shadow: 0 0 10px var(--primary-neon);
        opacity: 0;
        transition: all 0.3s var(--ease-premium);
    }

    .nav-links li a::after {
        display: none !important;
    }

    .nav-links li a.active,
    .nav-links li a:hover {
        color: #ffffff;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.35);
        opacity: 1;
    }

    .nav-links li a.active::before,
    .nav-links li a:hover::before {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    /* Light Theme Compatibility */
    body.light-theme .mobile-menu-btn {
        border-color: rgba(111, 107, 232, 0.25) !important;
        background: rgba(255, 255, 255, 0.35) !important;
        color: #4f46c9 !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    }

    body.light-theme .mobile-menu-btn:hover {
        border-color: rgba(111, 107, 232, 0.44) !important;
        box-shadow: 0 0 12px rgba(111, 107, 232, 0.22) !important;
    }

    body.light-theme .nav-links {
        background:
            radial-gradient(circle at 80% 10%, rgba(111, 107, 232, 0.05) 0%, transparent 40%),
            rgba(248, 249, 251, 0.72) !important;
    }

    body.light-theme .nav-links::before {
        color: #111827;
        text-shadow: none;
    }



    body.light-theme .nav-links li a {
        color: rgba(55, 65, 81, 0.55);
    }

    body.light-theme .nav-links li a.active,
    body.light-theme .nav-links li a:hover {
        color: #111827;
        text-shadow: none;
    }

    body.light-theme .nav-links li a::before {
        background: #6f6be8;
        box-shadow: 0 0 8px #6f6be8;
    }
}

/* Landscape orientation adaptions for tight heights */
@media (max-width: 768px) and (max-height: 480px) {
    .nav-links {
        gap: 0.6rem !important;
        padding-top: max(3.5rem, calc(env(safe-area-inset-top) + 2.5rem)) !important;
    }
    .nav-links::before {
        margin-bottom: 0.4rem !important;
    }
    .nav-links li:first-child {
        margin-top: 0.3rem !important;
    }
    .nav-links li a {
        min-height: 2.2rem !important;
    }
}

@media (max-width: 390px) {
    .nav-links {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        gap: 0.65rem !important;
    }

    .nav-links::before {
        font-size: 1.15rem !important;
        letter-spacing: 0.32em !important;
        text-indent: 0.32em !important;
        margin-bottom: 0.8rem !important;
    }

    .nav-links li:first-child {
        margin-top: 0.6rem !important;
    }

    .nav-links li a {
        min-height: 2.85rem !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.14em !important;
        padding: 0 1rem !important;
    }
}
