/* ==========================================================================
   ELITE CYBER-TECHNICAL SHOWROOM - PREMIUM DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

/* Google Fonts Import - Portable Direct Loading */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;600;800;900&family=Syncopate:wght@700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Sophisticated HSL Spaces (Deep Midnight Cyber Room) */
    --bg-base: #060911;
    --bg-surface: rgba(13, 20, 35, 0.65);
    --bg-surface-solid: #0c101c;
    --accent: #d4fc34;          /* Gold-Tinted Tech Chartreuse */
    --accent-glow: rgba(212, 252, 52, 0.18);
    --accent-gradient: linear-gradient(135deg, #d4fc34 0%, #bef264 100%);
    --accent-text: #000000;      /* Contrast High-Tech black text */
    
    /* Curated Secondary Accent (Amber Gold) */
    --accent-secondary: #f59e0b;
    --accent-secondary-glow: rgba(245, 158, 11, 0.2);
    
    /* Typography Palette */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --text-white: #ffffff;
    
    /* Technical Borders & Accents */
    --border-translucent: rgba(255, 255, 255, 0.05);
    --border-active: rgba(212, 252, 52, 0.35);
    
    /* Font Declarations */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. BASE RESET & SCROLLBAR STYLING
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base) !important;
    color: var(--text-primary) !important;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base) !important;
    background: var(--bg-base) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #101726;
    border-radius: 99px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   2. IMMERSIVE GLOW DECORATIONS & UTILITIES
   ========================================================================== */
.deep-space-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    background: radial-gradient(circle at 10% 20%, rgba(173, 255, 47, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(20, 32, 55, 0.4) 0%, transparent 50%);
    background-color: var(--bg-base);
    pointer-events: none;
}

/* Glassmorphism Containers */
.glass-container {
    background: var(--bg-surface);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-translucent);
    border-radius: 2rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    transition: var(--transition-premium);
}
.glass-container:hover {
    border-color: var(--border-active);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 
                0 0 30px var(--accent-glow);
}

/* Standardized Containers & Grids */
.max-w-7xl {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Flexbox Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Display Helpers */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-flex { display: inline-flex; }

/* Spacing Utilities */
.pt-36 { padding-top: 9rem; }
.pb-20 { padding-bottom: 5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-32 { margin-top: 8rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--text-white) !important; }
.text-gray-400 { color: var(--text-secondary) !important; }
.text-gray-500 { color: var(--text-muted) !important; }
.text-brand-yellow { color: var(--accent) !important; }
.text-red-400 { color: #f87171 !important; }
.text-red-500 { color: #ef4444 !important; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }

/* ==========================================================================
   3. PREMIUM HEADER NAVIGATION
   ========================================================================== */
.fixed {
    position: fixed;
}
.top-6 { top: 1.5rem; }
.inset-x-0 { left: 0; right: 0; }
.z-500 { z-index: 500; }

nav.glass-container {
    border-radius: 100px;
    padding: 0.75rem 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.brand-logo-container {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav-brand:hover .brand-logo-container {
    transform: scale(1.1) rotate(5deg);
}
.brand-logo-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #000;
}
.brand-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-white);
    text-transform: uppercase;
}
.brand-title span {
    color: var(--accent);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .nav-menu { display: flex; }
}
.nav-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.cta-btn {
    background: var(--accent);
    color: var(--accent-text) !important;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(173, 255, 47, 0.15);
}
.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(173, 255, 47, 0.3);
}

/* ==========================================================================
   4. IMMERSIVE AUTOMOTIVE HERO & HOTSPOTS
   ========================================================================== */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1.25rem;
    border-radius: 99px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--text-white);
    text-transform: uppercase;
}
.badge-ping {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
}
.badge-ping::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    animation: badge-pulse 1.5s infinite;
}
@keyframes badge-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--text-white);
}
@media (min-width: 640px) {
    .hero-title { font-size: 6rem; }
}
@media (min-width: 1024px) {
    .hero-title { font-size: 7.5rem; }
}
.hero-title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #8be800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

/* Cybernetic Wireframe Fallback for Interactive Showroom */
.showroom-frame {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 2.5rem;
    border: 1px solid var(--border-translucent);
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
    
    /* Elegant futuristic wireframe grid fallback */
    background: #040810 radial-gradient(rgba(173, 255, 47, 0.12) 1.5px, transparent 1.5px) 0 0 / 24px 24px;
    aspect-ratio: 16/9;
}
.showroom-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.5s ease;
    display: block;
}
.showroom-frame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 4, 8, 0.85) 0%, transparent 60%, rgba(2, 4, 8, 0.3) 100%);
    pointer-events: none;
}

/* Immersive Hotspots System */
.hotspot-pin {
    position: absolute;
    z-index: 50;
    transform: translate(-50%, -50%);
    cursor: pointer;
}
.hotspot-trigger {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px var(--accent);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.hotspot-trigger::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    animation: hotspot-pulse 2s infinite;
}
.hotspot-pin:hover .hotspot-trigger {
    transform: scale(1.25);
    background-color: var(--text-white);
}

.hotspot-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(5, 9, 18, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--accent);
    padding: 1.25rem;
    border-radius: 1.25rem;
    width: 240px;
    color: var(--text-white);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow);
    text-align: left;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hotspot-pin:hover .hotspot-tooltip,
.hotspot-pin.active .hotspot-tooltip {
    display: block !important;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.hotspot-tooltip h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}
.hotspot-tooltip p {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@keyframes hotspot-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   5. DUAL-PANE SHOWROOM WORKSPACE
   ========================================================================== */
.showroom-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .showroom-workspace {
        grid-template-columns: 360px minmax(0, 1fr);
    }
    .sticky-sidebar {
        position: sticky;
        top: 8rem;
        max-height: calc(100vh - 10rem);
        overflow-y: auto;
        padding-right: 0.5rem;
    }
}

.sticky-sidebar.glass-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Widescreen Control Deck Components */
.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.search-box {
    position: relative;
    width: 100%;
}
.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-translucent);
    border-radius: 1.25rem;
    padding: 1.1rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    outline: none;
    transition: var(--transition-premium);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.search-input:focus {
    border-color: var(--accent);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 15px rgba(173, 255, 47, 0.15);
}
.search-input::placeholder {
    color: var(--text-muted);
}

.search-results-panel {
    position: absolute;
    width: 100%;
    background: rgba(5, 9, 18, 0.98);
    border: 1px solid var(--border-translucent);
    margin-top: 0.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    overflow: hidden;
    z-index: 500;
    max-height: 320px;
    overflow-y: auto;
}
.search-result-item {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-translucent);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.search-result-title {
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.search-result-item:hover .search-result-title {
    color: var(--accent);
}
.search-result-excerpt {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.control-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.sidebar-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Active Comparison Item Panel */
.active-compare-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-translucent);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}
.active-compare-name {
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}
.active-compare-remove {
    background: none;
    border: none;
    color: #f87171;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}
.active-compare-remove:hover {
    color: #ef4444;
}

/* Authority Badge */
.authority-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.authority-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-translucent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.authority-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}
.authority-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
}
.authority-subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Category Filter Pills */
.filter-pills-wrapper {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.75rem;
    padding: 0.25rem 0;
    margin-bottom: 2rem;
}
.filter-pills-wrapper::-webkit-scrollbar {
    display: none;
}
.filter-pill {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-translucent);
    padding: 0.8rem 1.6rem;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-premium);
}
.filter-pill:hover, .filter-pill.active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Showroom Technical Grid & Cards */
.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.showroom-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-translucent);
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-premium);
}
.showroom-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--border-translucent), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.showroom-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-active);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 25px var(--accent-glow);
}
.showroom-card:hover::after {
    background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
}

.card-image-link {
    display: block;
    overflow: hidden;
    border-radius: 1.75rem;
    margin: 0.5rem;
    position: relative;
    aspect-ratio: 16/10;
}
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.showroom-card:hover .card-image {
    transform: scale(1.05);
    filter: grayscale(0);
}
.card-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.35rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

/* Technical Metrics Micro Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.68rem;
}
.spec-label {
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 500;
}
.spec-value {
    color: var(--text-white);
    font-weight: 700;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 1rem;
}

.read-btn {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.2s ease;
}
.read-btn:hover {
    transform: translateX(3px);
}

.compare-btn {
    background: none;
    border: 1px solid var(--border-translucent);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-premium);
}
.compare-btn:hover, .compare-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}
.compare-btn-svg {
    width: 0.85rem;
    height: 0.85rem;
}

/* Secondary Actions button */
.view-catalog-btn {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-translucent);
    padding: 1.1rem 3rem;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-premium);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.view-catalog-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(173, 255, 47, 0.05);
}

/* ==========================================================================
   6. PREMIUM NEWSLETTER SUBSCRIBE
   ========================================================================== */
.subscribe-section {
    margin-top: 8rem;
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
@media (min-width: 640px) {
    .subscribe-section {
        padding: 6rem 4rem;
    }
}
.subscribe-glow {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background: radial-gradient(circle at 50% 50%, var(--accent), transparent 60%);
    pointer-events: none;
}

.subscribe-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}
.subscribe-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
@media (min-width: 640px) {
    .subscribe-title { font-size: 3.5rem; }
}

.subscribe-desc {
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 28rem;
    margin: 1rem auto 2.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 32rem;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-translucent);
    padding: 0.5rem;
    border-radius: 1.5rem;
}
@media (min-width: 640px) {
    .subscribe-form {
        flex-direction: row;
    }
}

.subscribe-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 1.25rem;
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.85rem;
}
.subscribe-input::placeholder {
    color: var(--text-muted);
}

.subscribe-btn {
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 15px var(--accent-glow);
}
.subscribe-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(173, 255, 47, 0.35);
}

/* ==========================================================================
   7. PERSISTENT SPEC COMPARISON DRAWER & MODAL OVERLAY
   ========================================================================== */
.compare-tray {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: rgba(10, 16, 28, 0.95);
    backdrop-filter: blur(24px);
    border: 1.5px solid var(--accent);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 35px var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: max-content;
    max-width: 90vw;
}
.compare-tray.active {
    transform: translateX(-50%) translateY(0);
}

.compare-badge {
    background: var(--accent);
    color: var(--accent-text);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

.compare-count-text {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-white);
    text-transform: uppercase;
}

.compare-action-link {
    background: none;
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}
.compare-action-link:hover {
    color: var(--text-white);
}

.compare-submit-btn {
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.compare-submit-btn:hover {
    transform: scale(1.05);
}

/* Fullscreen Compare Matrix Overlay */
.compare-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 10, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}
.compare-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.compare-modal {
    width: 100%;
    max-width: 1000px;
    background: rgba(9, 14, 25, 0.98);
    border: 1px solid var(--accent);
    border-radius: 2.5rem;
    box-shadow: 0 50px 120px rgba(0,0,0,0.9), 0 0 50px var(--accent-glow);
    overflow: hidden;
    transform: scale(0.95) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.compare-overlay.active .compare-modal {
    transform: scale(1) translateY(0);
}

.compare-modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-translucent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.compare-modal-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.compare-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.compare-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border-translucent);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-premium);
}
.compare-close-btn:hover {
    border-color: var(--accent);
}
.compare-close-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-white);
    transition: color 0.2s ease;
}
.compare-close-btn:hover .compare-close-svg {
    color: var(--accent);
}

.compare-modal-body {
    padding: 2rem;
    overflow-x: auto;
}

/* Compare Matrix Specs Table */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.compare-table th, .compare-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-translucent);
    text-align: left;
}
.compare-table th {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.02);
}
.compare-table td {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-white);
}
.compare-table tr:hover td {
    background: rgba(173, 255, 47, 0.02);
}

/* ==========================================================================
   8. FOOTER SECTION
   ========================================================================== */
footer {
    padding: 5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-nav-link {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-nav-link:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.social-icon-link {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icon-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}
.social-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   9. MOBILE & RESPONSIVE LAYOUT OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1023px) {
    .compare-tray {
        width: calc(100% - 2rem);
        border-radius: 1.5rem;
        bottom: 1rem;
        padding: 0.75rem 1.25rem;
        justify-content: space-between;
    }
}
@media (max-width: 640px) {
    nav.glass-container {
        padding: 0.75rem 1.25rem;
    }
    nav.glass-container .cta-btn {
        display: none !important;
    }
    .cta-btn {
        padding: 0.6rem 1.2rem;
    }
    .showroom-frame {
        border-radius: 1.5rem;
    }
    .showroom-card {
        border-radius: 1.5rem;
    }
    .compare-modal {
        border-radius: 1.5rem;
    }
    .subscribe-form {
        background: transparent;
        border: none;
        padding: 0;
    }
    .subscribe-input {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid var(--border-translucent);
        border-radius: 1.25rem;
        margin-bottom: 0.5rem;
        padding: 1.1rem 1.5rem;
    }
    .subscribe-btn {
        border-radius: 1.25rem;
        padding: 1.1rem;
    }
}

/* Premium Glassmorphic Bottom Floating Navigation Dock */
.mobile-dock {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 440px;
    background: rgba(13, 20, 35, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Hidden by default on desktop viewports */
@media (min-width: 768px) {
    .mobile-dock {
        display: none !important;
    }
}

html.light-mode .mobile-dock {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(28, 25, 23, 0.08);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 25px rgba(15, 23, 42, 0.03);
}

.mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 0.4rem;
    border-radius: 14px;
    transition: var(--transition-premium);
    flex: 1;
    text-align: center;
}

.mobile-dock-icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 2.2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-dock-item:hover,
.mobile-dock-item.active {
    color: var(--accent);
}

.mobile-dock-item.active .mobile-dock-icon {
    transform: scale(1.15) translateY(-2px);
    stroke-width: 2.5;
}

/* Add padding at the bottom of the page on mobile so content isn't covered by the dock */
@media (max-width: 767px) {
    body {
        padding-bottom: 7.5rem !important;
    }
    
    /* Ensure glass containers never overflow on narrow viewports due to massive padding */
    .glass-container {
        border-radius: 1.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .sticky-sidebar.glass-container {
        padding: 1.25rem !important;
        gap: 1.5rem !important;
    }
    
    /* Responsive overrides for large editorial padding layouts */
    .p-8 {
        padding: 1.25rem !important;
    }
    .p-12, .p-16, .sm-p-12 {
        padding: 1.5rem !important;
    }
}

/* Premium Sticky Category Filters on Mobile to Clear Dock and Float Below Header */
@media (max-width: 1023px) {
    .filter-pills-wrapper {
        position: sticky !important;
        top: 5.5rem !important;
        z-index: 450 !important;
        background: rgba(6, 9, 17, 0.92) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        padding: 0.8rem 1.25rem !important;
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        border-bottom: 1px solid var(--border-translucent) !important;
        border-top: 1px solid var(--border-translucent) !important;
        margin-top: 0.5rem !important;
        margin-bottom: 2.5rem !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    }
    
    html.light-mode .filter-pills-wrapper {
        background: rgba(253, 251, 247, 0.92) !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    }
}

/* ==========================================================================
   10. GENERIC UTILITY HELPERS FOR SUBPAGES
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.grid-5 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 1024px) {
    .grid-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .col-span-2 { grid-column: span 2; }
    .col-span-3 { grid-column: span 3; }
}

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.pl-6 { padding-left: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.border-l-4 { border-left: 4px solid var(--accent); }

.border-white-10 { border: 1px solid var(--border-translucent); }
.bg-white-5 { background-color: rgba(255, 255, 255, 0.03); }
.rounded-xl { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }
.sm-p-12 { padding: 3rem; }

@media (max-width: 640px) {
    .sm-p-12 { padding: 2rem; }
}

/* ==========================================================================
   11. HUMAN & HAND-CRAFTED KINETIC ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Active Navbar slide underline on hover */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Staggered loading keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.12s; }
.stagger-3 { animation-delay: 0.19s; }
.stagger-4 { animation-delay: 0.26s; }
.stagger-5 { animation-delay: 0.33s; }
.stagger-6 { animation-delay: 0.40s; }

/* Enhanced hover tilt elevation for showroom cards */
.showroom-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.showroom-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--accent) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 25px rgba(173, 255, 47, 0.12) !important;
}

/* Focus Input Glow transition */
.search-input, textarea, input[type="text"], input[type="email"] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.search-input:focus, textarea:focus, input[type="text"]:focus, input[type="email"]:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(173, 255, 47, 0.15), inset 0 2px 4px rgba(0,0,0,0.6) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

/* ==========================================================================
   12. LIGHT MODE OVERRIDES & SYSTEM SUPPORT
   ========================================================================== */
html.light-mode body,
html.light-mode {
    --bg-base: #fdfbf7;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-surface-solid: #ffffff;
    --accent: #047857;          /* Premium High-Fidelity Emerald Coast */
    --accent-glow: rgba(4, 120, 87, 0.15);
    --accent-gradient: linear-gradient(135deg, #047857 0%, #10b981 100%);
    --accent-text: #ffffff;      /* Contrast white text for active elements */
    
    /* Curated Amber Secondary for Light Mode */
    --accent-secondary: #d97706;
    --accent-secondary-glow: rgba(217, 119, 6, 0.15);
    
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --text-white: #1c1917;
    --border-translucent: rgba(28, 25, 23, 0.06);
    --border-active: rgba(4, 120, 87, 0.4);
}

html.light-mode ::-webkit-scrollbar-track {
    background: #f1f5f9;
}
html.light-mode ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-color: #f1f5f9;
}
html.light-mode .deep-space-glow {
    background: radial-gradient(circle at 10% 20%, rgba(5, 150, 105, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(203, 213, 225, 0.4) 0%, transparent 50%);
    background-color: var(--bg-base);
}
html.light-mode .brand-logo-container {
    color: #ffffff;
    box-shadow: 0 0 15px var(--accent-glow);
}
html.light-mode .brand-logo-svg {
    color: #ffffff;
}
html.light-mode .cta-btn,
html.light-mode .subscribe-btn,
html.light-mode .compare-submit-btn {
    color: #ffffff !important;
}
html.light-mode .cta-btn svg,
html.light-mode .subscribe-btn svg,
html.light-mode .compare-submit-btn svg {
    color: #ffffff !important;
}
html.light-mode .compare-modal,
html.light-mode .search-results-panel {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.15), 0 0 35px var(--accent-glow);
}
html.light-mode .active-compare-item {
    background: rgba(15, 23, 42, 0.02);
}
html.light-mode .compare-table th {
    background: rgba(15, 23, 42, 0.02);
}
html.light-mode .showroom-frame {
    background: #f5f2eb radial-gradient(rgba(15, 118, 110, 0.12) 1.5px, transparent 1.5px) 0 0 / 24px 24px;
    box-shadow: 0 50px 100px rgba(28, 25, 23, 0.08);
}
html.light-mode .showroom-frame-overlay {
    background: linear-gradient(to top, rgba(253, 251, 247, 0.85) 0%, transparent 60%, rgba(253, 251, 247, 0.3) 100%);
}
html.light-mode .hotspot-tooltip {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15), 0 0 20px var(--accent-glow);
}
html.light-mode .compare-overlay {
    background: rgba(248, 250, 252, 0.9);
}
html.light-mode .social-links .social-icon-link {
    color: var(--text-secondary);
}
html.light-mode .social-links .social-icon-link:hover {
    color: var(--accent);
}
html.light-mode .search-input,
html.light-mode textarea,
html.light-mode input[type="text"],
html.light-mode input[type="email"] {
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a;
}
html.light-mode .search-input:focus,
html.light-mode textarea:focus,
html.light-mode input[type="text"]:focus,
html.light-mode input[type="email"]:focus {
    background-color: #ffffff !important;
}

/* ==========================================================================
   13. THEME TOGGLE BUTTON STYLING
   ========================================================================== */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-translucent);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-premium);
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}
.theme-icon {
    width: 1.2rem;
    height: 1.2rem;
}
html.light-mode .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}

/* ==========================================================================
   14. HIGH-END HUMAN-CRAFTED EDITORIAL LAYOUT DETAILS
   ========================================================================== */

/* Asymmetric Grid Staggering for Desktop */
@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 1.5rem;
    }
    /* Stagger alternating columns for an organic, editorial gallery feel */
    .cards-grid > :nth-child(even) {
        transform: translateY(24px);
        margin-bottom: -24px;
    }
}

/* Blueprint Dot Grid Backdrop */
.blueprint-dot-grid {
    position: fixed;
    inset: 0;
    z-index: -99;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
html.light-mode .blueprint-dot-grid {
    background-image: radial-gradient(rgba(28, 25, 23, 0.015) 1px, transparent 1px);
}

/* Architectural Crosshairs Decoration */
.crosshair-container {
    position: relative;
}
.crosshair-corner {
    position: absolute;
    width: 6px;
    height: 6px;
    color: var(--accent);
    opacity: 0.35;
    pointer-events: none;
    z-index: 10;
}
.crosshair-tl { top: 12px; left: 12px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.crosshair-tr { top: 12px; right: 12px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.crosshair-bl { bottom: 12px; left: 12px; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; }
.crosshair-br { bottom: 12px; right: 12px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; }

/* Refined Small Caps Monospace Telemetry Labels */
.tech-label-mono {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-secondary);
    text-transform: uppercase;
}

/* Custom Highlight badge for Premium items */
.editorial-rating-badge {
    background: var(--accent-secondary-glow);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--accent-secondary) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
}

/* ==========================================================================
   15. FLOATING SEARCH SYSTEM (PERSISTENT & sticky)
   ========================================================================== */
.floating-search-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(13, 20, 35, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 252, 52, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-search-btn:hover {
    transform: scale(1.1) rotate(90deg);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 252, 52, 0.3);
}
.floating-search-svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2.5;
}

html.light-mode .floating-search-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(28, 25, 23, 0.1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 20px rgba(4, 120, 87, 0.15);
}
html.light-mode .floating-search-btn:hover {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12), 0 0 25px rgba(4, 120, 87, 0.3);
}

@media (max-width: 767px) {
    .floating-search-btn {
        bottom: 6.5rem;
        right: 1.5rem;
        width: 3.2rem;
        height: 3.2rem;
    }
}

/* ================================================================
   FULLSCREEN SEARCH OVERLAY — ALWAYS DARK, FULLY OPAQUE
   ================================================================ */

/* The overlay covers the ENTIRE viewport with a solid dark background */
.search-fullscreen-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: #04060e !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
}
.search-fullscreen-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
/* Always dark — override light mode */
html.light-mode .search-fullscreen-overlay {
    background: #04060e !important;
}

/* Optional: subtle top accent line */
.search-fullscreen-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212,252,52,0.6), transparent);
    pointer-events: none;
}

/* ── Modal inner container ── */
.search-modal-container {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem 2rem;
    box-sizing: border-box;
}

/* ── Header row ── */
.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-shrink: 0;
}
.search-header-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(212, 252, 52, 0.65);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.search-header-title::before {
    content: '';
    display: block;
    width: 1.5rem;
    height: 2px;
    background: rgba(212, 252, 52, 0.5);
    border-radius: 99px;
    flex-shrink: 0;
}
html.light-mode .search-header-title,
html.light-mode .search-header-title::before {
    /* keep yellow */
    color: rgba(212, 252, 52, 0.65) !important;
    background: rgba(212, 252, 52, 0.5) !important;
}

/* ── Close button ── */
.search-close-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
    flex-shrink: 0;
    outline: none;
}
.search-close-btn:hover {
    border-color: rgba(212, 252, 52, 0.55);
    color: #d4fc34;
    background: rgba(212, 252, 52, 0.08);
    transform: rotate(90deg);
    box-shadow: 0 0 18px rgba(212, 252, 52, 0.2);
}
html.light-mode .search-close-btn {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
html.light-mode .search-close-btn:hover {
    border-color: rgba(212, 252, 52, 0.55) !important;
    color: #d4fc34 !important;
    background: rgba(212, 252, 52, 0.08) !important;
}

/* ── Search input bar ── */
.search-bar-wrapper {
    position: relative;
    margin-bottom: 1.75rem;
    flex-shrink: 0;
}
/* Glowing border on focus */
.search-bar-wrapper::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: calc(1.5rem + 2px);
    background: linear-gradient(135deg, rgba(212,252,52,0.55), rgba(212,252,52,0.04) 50%, rgba(212,252,52,0.4));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.search-bar-wrapper:focus-within::before {
    opacity: 1;
}
.search-input-field {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    background: rgba(12, 18, 38, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1.5rem;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #f8fafc !important;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-input-field:focus {
    border-color: rgba(212, 252, 52, 0.25) !important;
    box-shadow: 0 0 0 3px rgba(212, 252, 52, 0.07), 0 8px 32px rgba(0,0,0,0.6) !important;
}
.search-input-field::placeholder {
    color: rgba(148, 163, 184, 0.38) !important;
    font-weight: 400;
}
/* Always dark in both modes */
html.light-mode .search-input-field {
    background: rgba(12, 18, 38, 0.95) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html.light-mode .search-input-field:focus {
    border-color: rgba(212, 252, 52, 0.25) !important;
    box-shadow: 0 0 0 3px rgba(212, 252, 52, 0.07) !important;
}
html.light-mode .search-input-field::placeholder {
    color: rgba(148, 163, 184, 0.38) !important;
}
.search-bar-icon {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.3rem;
    height: 1.3rem;
    color: #d4fc34;
    z-index: 2;
    pointer-events: none;
}

/* ── Results panel — scrollable ── */
.search-results-panel {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    /* custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(212,252,52,0.2) transparent;
}
.search-results-panel::-webkit-scrollbar { width: 5px; }
.search-results-panel::-webkit-scrollbar-track { background: transparent; }
.search-results-panel::-webkit-scrollbar-thumb {
    background: rgba(212,252,52,0.2);
    border-radius: 99px;
}
html.light-mode .search-results-panel {
    background: transparent !important;
    box-shadow: none !important;
}

.search-results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
    padding-bottom: 2rem;
}
@media (min-width: 560px) {
    .search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 820px) {
    .search-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Result cards ── */
.search-result-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 1.1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.search-result-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212,252,52,0.04) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.search-result-card:hover {
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(212, 252, 52, 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 22px rgba(212,252,52,0.07) !important;
}
.search-result-card:hover::after { opacity: 1; }

html.light-mode .search-result-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}
html.light-mode .search-result-card:hover {
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(212, 252, 52, 0.3) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 22px rgba(212,252,52,0.07) !important;
}

.search-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.search-card-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.56rem;
    font-weight: 700;
    color: #d4fc34 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(212, 252, 52, 0.09) !important;
    border: 1px solid rgba(212, 252, 52, 0.18) !important;
    border-radius: 0.35rem;
    padding: 0.18rem 0.5rem;
    white-space: nowrap;
}
html.light-mode .search-card-category {
    color: #d4fc34 !important;
    background: rgba(212, 252, 52, 0.09) !important;
    border-color: rgba(212, 252, 52, 0.18) !important;
}
.search-card-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.56rem;
    font-weight: 600;
    color: rgba(100, 116, 139, 0.7) !important;
    white-space: nowrap;
    flex-shrink: 0;
}
html.light-mode .search-card-date { color: rgba(100, 116, 139, 0.7) !important; }

.search-card-title {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #f1f5f9 !important;
    line-height: 1.35;
    margin: 0;
}
html.light-mode .search-card-title { color: #f1f5f9 !important; }

.search-card-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(212, 252, 52, 0.6) !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    transition: color 0.2s ease, gap 0.2s ease;
}
.search-result-card:hover .search-card-cta {
    color: #d4fc34 !important;
    gap: 0.6rem;
}
html.light-mode .search-card-cta { color: rgba(212,252,52,0.6) !important; }
html.light-mode .search-result-card:hover .search-card-cta { color: #d4fc34 !important; }
