/* ==========================================================================
   WANDLERLABS - MULTI-VIEW PORTAL STYLESHEET
   Aesthetic: Ultra-Modern Black & Gold Luxury Engineering (Multi-View App)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-base: #070709;
    --bg-surface: #0e0e13;
    --bg-card: #13131a;
    --bg-card-hover: #1b1b24;
    --bg-sidebar: #0a0a0f;
    --bg-glass: rgba(19, 19, 26, 0.85);

    /* Gold Accents */
    --gold-primary: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-light: #fef3c7;
    --gold-dark: #b45309;
    --gold-metallic: linear-gradient(135deg, #ffd700 0%, #d4af37 40%, #b8860b 100%);
    --gold-glow: rgba(245, 158, 11, 0.25);

    /* Neutral & Text */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 158, 11, 0.35);
    --border-gold-strong: rgba(245, 158, 11, 0.8);

    /* Tech Accents */
    --emerald-green: #10b981;
    --cyan-blue: #06b6d4;
    --ruby-red: #ef4444;

    /* Typography */
    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Reset & Base Rules */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    width: 100%;
    background-color: var(--bg-base);
}

body {
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* Ambient Background Elements */
.bg-grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #b45309 0%, transparent 70%);
    bottom: 10%;
    left: -150px;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: 40%;
    right: 10%;
    opacity: 0.15;
}

/* App Structure */
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow-x: clip;
}

/* Header & Tab Navigation */
.site-header {
    background: rgba(10, 10, 14, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled {
    background: rgba(8, 8, 12, 0.98);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(245, 158, 11, 0.25);
    border-bottom-color: rgba(245, 158, 11, 0.3);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-sizing: border-box;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.02);
}

.logo-symbol-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.35));
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.brand-logo:hover .logo-symbol-img {
    filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.7));
}

.logo-text-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-symbol {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--gold-glow);
}

.logo-bracket {
    color: var(--gold-primary);
    font-weight: 400;
}

.logo-w {
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    padding: 0 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.gold-accent {
    color: var(--gold-primary);
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* Header Live Search */
.header-search-wrap {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.search-input-box {
    display: flex;
    align-items: center;
    background: rgba(14, 14, 20, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    transition: var(--transition-fast);
}

.search-input-box:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
    background: #09090d;
}

.search-icon {
    width: 15px;
    height: 15px;
    color: var(--text-dim);
    margin-right: 0.45rem;
    flex-shrink: 0;
}

.search-input-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.8rem;
    width: 100%;
}

.search-input-box input::placeholder {
    color: var(--text-dim);
    font-size: 0.76rem;
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: none;
    padding: 0 2px;
}

.search-clear-btn i {
    width: 13px;
    height: 13px;
}

.search-clear-btn.active {
    display: block;
}

.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(14, 14, 20, 0.98);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
    max-height: 380px;
    overflow-y: auto;
    z-index: 2500;
    padding: 0.5rem;
}

.search-results-dropdown.active {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.search-res-item {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.search-res-item:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--border-gold);
}

.search-res-info {
    display: flex;
    flex-direction: column;
}

.search-res-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
}

.search-res-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.search-res-badge {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
}

/* Nav Tabs */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #09090d;
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.nav-tab i {
    width: 15px;
    height: 15px;
}

.nav-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.nav-counter {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold-bright);
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
}

/* Header Actions & Language Switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Language Selector Combobox Dropdown */
.lang-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(19, 19, 26, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.42rem 0.75rem;
    border-radius: 9px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.lang-dropdown-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.lang-dropdown-wrap.open .lang-dropdown-btn {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
    background: #0d0d14;
}

.lang-globe-icon {
    width: 15px;
    height: 15px;
    color: var(--gold-bright);
}

.current-lang-lbl {
    color: var(--gold-bright);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.lang-chevron-icon {
    width: 13px;
    height: 13px;
    color: var(--text-dim);
    transition: transform var(--transition-fast);
}

.lang-dropdown-wrap.open .lang-chevron-icon {
    transform: rotate(180deg);
    color: var(--gold-bright);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 145px;
    background: rgba(12, 12, 18, 0.98);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
    z-index: 2500;
    padding: 0.4rem;
    animation: fadeInDropdown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-wrap.open .lang-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lang-opt-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    text-align: left;
}

.lang-opt-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--text-main);
}

.lang-opt-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.06) 100%);
    border-color: var(--border-gold);
    color: var(--gold-bright);
    font-weight: 700;
}

.lang-opt-flag {
    font-size: 0.95rem;
    line-height: 1;
}

.lang-opt-name {
    flex: 1;
}

.lang-opt-code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
}

.lang-opt-btn.active .lang-opt-code {
    color: var(--gold-bright);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #070709;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-gold-outline {
    background: rgba(245, 158, 11, 0.05);
    border-color: var(--border-gold);
    color: var(--gold-bright);
}

.btn-gold-outline:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-cyan-outline {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--cyan-light);
}

.btn-cyan-outline:hover {
    background: rgba(6, 182, 212, 0.18);
    border-color: var(--cyan-light);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Page View System */
.content-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-view {
    display: none;
    flex: 1;
    padding: 3rem 0 4.5rem 0;
    animation: fadeInView 0.35s ease;
}

.page-view.active {
    display: block;
}

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

.view-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.view-heading-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.view-heading-wrap h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.view-heading-wrap p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* View 1: Home Styles */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--border-gold);
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.hero-status-pill {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(19, 19, 26, 0.7) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--gold-bright);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--gold-bright);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.35); }
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-bright);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.badge-meta {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--emerald-green);
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.gold-gradient-text {
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(245, 158, 11, 0.3));
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* Hero Prominent Search Bar */
.hero-search-container {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: rgba(14, 14, 22, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 0.65rem 1.15rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-search-box:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: #0b0b10;
}

.hero-search-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-bright);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.hero-search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
}

.hero-search-box input::placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.hero-search-clear-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: none;
    padding: 0.2rem;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.hero-search-clear-btn:hover {
    color: var(--text-main);
}

.hero-search-clear-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-search-clear-btn i {
    width: 16px;
    height: 16px;
}

.hero-search-shortcut {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.hero-search-shortcut kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.hero-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(12, 12, 18, 0.98);
    border: 1px solid var(--border-gold-strong);
    border-radius: 14px;
    backdrop-filter: blur(24px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
    max-height: 400px;
    overflow-y: auto;
    z-index: 2500;
    padding: 0.6rem;
}

.hero-search-dropdown.active {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* ECU Quick Launch Pills */
.ecu-quick-pills {
    margin-bottom: 1.75rem;
    background: rgba(14, 14, 19, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    backdrop-filter: blur(10px);
}

.pills-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--gold-bright);
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.pills-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.ecu-pill-btn {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.ecu-pill-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.18);
}

.ecu-pill-btn:active {
    transform: scale(0.97);
}

.pill-vehicle-badge {
    width: 34px;
    height: 26px;
    background: #08080d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.pill-vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1px;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pill-dot.gold { background: var(--gold-primary); box-shadow: 0 0 8px var(--gold-primary); }
.pill-dot.cyan { background: var(--cyan-blue); box-shadow: 0 0 8px var(--cyan-blue); }
.pill-dot.emerald { background: var(--emerald-green); box-shadow: 0 0 8px var(--emerald-green); }

.pill-title {
    font-size: 0.82rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.pill-sub {
    font-size: 0.68rem;
    color: var(--text-dim);
    display: block;
}

.pill-icon {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: var(--text-dim);
    transition: var(--transition-fast);
}

.ecu-pill-btn:hover .pill-icon {
    color: var(--gold-bright);
    transform: translate(2px, -2px);
}

/* Hero Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.75rem 0;
}

.stat-item {
    background: rgba(19, 19, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition-fast);
}

.stat-item:hover {
    border-color: var(--border-gold);
    background: rgba(19, 19, 26, 0.9);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    width: 18px;
    height: 18px;
}

.stat-icon.gold { color: var(--gold-bright); }
.stat-icon.emerald { color: var(--emerald-green); }
.stat-icon.cyan { color: var(--cyan-blue); }

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-glow {
    position: relative;
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.4), 0 0 10px rgba(245, 158, 11, 0.2);
}

.btn-glow:hover {
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.6), 0 0 20px rgba(245, 158, 11, 0.4);
}

.badge-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--emerald-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald-green);
    animation: pulse 1.5s infinite;
}

/* Terminal Showcase */
.tech-card-showcase {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-card), 0 0 30px rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--gold-primary);
    filter: blur(60px);
    opacity: 0.12;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.badge-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.terminal-body {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: #08080a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 170px;
}

.log-line {
    line-height: 1.4;
    word-break: break-all;
}

.text-gold { color: var(--gold-bright); }
.text-emerald { color: var(--emerald-green); }
.text-blue { color: var(--cyan-blue); }
.text-muted { color: var(--text-dim); }

.ecu-chip-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--gold-light);
}

.ecu-chip-badge i {
    color: var(--gold-primary);
    width: 15px;
    height: 15px;
}

/* Quick Nav Cards */
.quick-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.q-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.q-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.q-thumb-box {
    width: 64px;
    height: 52px;
    background: #08080d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.q-vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 3px;
    transition: var(--transition-fast);
}

.q-card:hover .q-vehicle-img {
    transform: scale(1.08);
}

.q-icon-fallback {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-portfolio-box .q-icon {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    border: none;
}

.q-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.q-icon.gold {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--border-gold);
}

.q-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.q-icon.cyan i {
    color: var(--cyan-light);
}

.q-icon i {
    width: 22px;
    height: 22px;
    color: var(--gold-bright);
}

.q-content {
    flex: 1;
}

.q-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.q-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.1rem 0;
}

.q-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.q-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    transition: var(--transition-fast);
}

.q-card:hover .q-arrow {
    color: var(--gold-bright);
    transform: translateX(3px);
}

/* ============================================================== */
/* VIEW 2: PRODUCT & ECU CATALOG */
/* ============================================================== */
.catalog-filters {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.25rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: rgba(245, 158, 11, 0.4);
    background: var(--bg-card-hover);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: var(--gold-primary);
    color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Catalog Slider & Carousel */
.catalog-slider-wrapper {
    position: relative;
    width: 100%;
}

.catalog-slider-header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.catalog-arrow-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(19, 19, 26, 0.95);
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.catalog-arrow-btn:hover {
    background: var(--gold-primary);
    color: #000;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.catalog-arrow-btn i {
    width: 20px;
    height: 20px;
}

.catalog-slider-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem 1.25rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-gold) transparent;
}

.catalog-slider-track::-webkit-scrollbar {
    height: 6px;
}

.catalog-slider-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.catalog-slider-track::-webkit-scrollbar-thumb {
    background: var(--border-gold);
    border-radius: 999px;
}

.catalog-slider-track .product-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 320px;
    max-width: 420px;
    scroll-snap-align: start;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 158, 11, 0.15);
}

.prod-header-vehicle {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.prod-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.prod-badge.gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
}

.prod-badge.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.prod-badge-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prod-vehicle-thumb {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prod-vehicle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .prod-vehicle-thumb img {
    transform: scale(1.05);
}

.product-title-wrap {
    margin: 1.25rem 0 1.5rem 0;
    flex: 1;
}

.product-title-wrap h3,
.product-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.product-compat {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: block;
}

.product-actions {
    display: flex;
    margin-top: 1rem;
}

.product-actions .btn {
    width: 100%;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
}

@media (max-width: 1024px) {
    .catalog-slider-track .product-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 300px;
    }
}

@media (max-width: 680px) {
    .catalog-slider-track .product-card {
        flex: 0 0 90%;
        min-width: 270px;
    }
    
    .product-title-wrap h3,
    .product-card h3 {
        font-size: 1.1rem;
    }
}

.catalog-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.catalog-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.catalog-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.catalog-dot.active {
    width: 28px;
    background: var(--gold-bright);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.btn-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #03141a;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.btn-cyan:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
    color: #000;
}

.schematic-print-bar {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

/* ============================================================== */
/* VIEW 3: DOCUMENTATION PORTAL (SIDEBAR + CONTENT) */
/* ============================================================== */
.docs-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* Docs Sidebar */
.docs-sidebar {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    position: sticky;
    top: 95px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-bright);
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header i {
    width: 18px;
    height: 18px;
}

.sidebar-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.group-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.doc-menu-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
    width: 100%;
}

.doc-menu-btn:hover {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.05);
}

.doc-menu-btn.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.18) 0%, rgba(19, 19, 26, 0.9) 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.doc-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.doc-text {
    display: flex;
    flex-direction: column;
}

.doc-text strong {
    font-size: 0.88rem;
    color: var(--text-main);
}

.doc-text small {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.coming-soon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.badge-mini {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
}

/* Docs Content */
.docs-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    min-height: 500px;
}

.doc-pane {
    display: none;
    animation: fadeInView 0.3s ease;
}

.doc-pane.active {
    display: block;
}

.doc-header-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
}

.doc-meta-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-pill.gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
    font-weight: 600;
}

.badge-pill i {
    width: 13px;
    height: 13px;
}

.doc-header-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
}

.doc-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Step Boxes */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.doc-step-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition-fast);
}

.doc-step-box:hover {
    border-color: var(--border-gold);
}

.step-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.doc-step-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.doc-step-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.step-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.step-bullets li {
    font-size: 0.85rem;
    color: #e5e7eb;
    position: relative;
    padding-left: 1.1rem;
}

.step-bullets li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-size: 0.65rem;
    top: 2px;
}

/* Bridge Box */
.bridge-arch-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.25rem;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 1.75rem;
}

.bridge-col {
    background: #08080c;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.bridge-col h4 {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.bridge-col p {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tag-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.35rem;
    background: #121218;
    border-radius: 4px;
}

.tag-item.warn { color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-item.ok { color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.bridge-center {
    text-align: center;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(19, 19, 26, 0.9) 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.bridge-center i {
    width: 28px;
    height: 28px;
    color: var(--gold-bright);
}

.bridge-center strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gold-bright);
}

.bridge-center small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================== */
/* VIEW 3: PINOUTS & SCHEMATICS */
/* ============================================================== */
.pinout-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.schematic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.schematic-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.schematic-badge.gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
}

.schematic-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.circuit-visual {
    background: #08080c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.circuit-line-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.node-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.45rem;
    border-radius: 8px;
    font-size: 0.72rem;
    text-align: center;
    font-weight: 600;
    min-width: 95px;
}

.node-box.car-side {
    border-color: var(--border-gold);
}

.wire-split {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.wire-leg {
    height: 2px;
    background: var(--gold-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wire-leg span {
    position: absolute;
    top: -15px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

.resistor-node {
    background: #181820;
    border: 1px solid var(--gold-bright);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-glow);
}

.voltage-calc {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.08);
    padding: 0.45rem;
    border-radius: 6px;
    margin-bottom: 0.85rem;
    text-align: center;
}

.circuit-divider-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-family: var(--font-mono);
}

.div-node.source { color: #f87171; font-weight: 700; }
.div-resistor { color: var(--text-muted); }

.div-junction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.15);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    border: 1px dashed var(--gold-primary);
}

.junction-point {
    width: 6px;
    height: 6px;
    background: var(--gold-bright);
    border-radius: 50%;
}

.div-node.gnd { color: var(--cyan-blue); font-weight: 600; }

.spdt-wiring-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Color-Coded Wire Badges & Schematic Tables */
.wire-color-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid;
    vertical-align: middle;
}

.wire-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.wire-badge-black {
    background: #111116;
    color: #e2e8f0;
    border-color: #334155;
}
.wire-badge-black .wire-dot { background: #000000; border: 1px solid #64748b; }

.wire-badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}
.wire-badge-red .wire-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.wire-badge-yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
    border-color: rgba(234, 179, 8, 0.4);
}
.wire-badge-yellow .wire-dot { background: #eab308; box-shadow: 0 0 6px #eab308; }

.wire-badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.4);
}
.wire-badge-green .wire-dot { background: #22c55e; box-shadow: 0 0 6px #22c55e; }

.wire-badge-white {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}
.wire-badge-white .wire-dot { background: #ffffff; box-shadow: 0 0 6px #ffffff; }

.wire-badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}
.wire-badge-blue .wire-dot { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }

.wire-badge-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.4);
}
.wire-badge-purple .wire-dot { background: #a855f7; box-shadow: 0 0 6px #a855f7; }

.wire-badge-orange {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.4);
}
.wire-badge-orange .wire-dot { background: #f97316; box-shadow: 0 0 6px #f97316; }

.wire-badge-pink {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.4);
}
.wire-badge-pink .wire-dot { background: #ec4899; box-shadow: 0 0 6px #ec4899; }

.wiring-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wiring-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.wiring-table th {
    text-align: left;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    border-bottom: 1px solid var(--border-color);
}

.wiring-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    vertical-align: middle;
}

.wiring-table tr:hover td {
    background: rgba(245, 158, 11, 0.05);
}

.sensor-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.sensor-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
}

.sensor-box.disconnected {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.06);
}

.sensor-box.resistor {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
}

.sensor-title {
    font-size: 0.76rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

.sensor-action {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Sensor Image Gallery & Placeholders */
.sensor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.sensor-photo-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.sensor-photo-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.photo-placeholder-box {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(14, 14, 20, 0.9) 0%, rgba(24, 24, 32, 0.6) 100%);
    border: 2px dashed rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--text-dim);
    position: relative;
    transition: var(--transition-fast);
    overflow: hidden;
}

.photo-placeholder-box:hover {
    border-color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.05);
    color: var(--gold-bright);
}

.photo-placeholder-box i {
    width: 28px;
    height: 28px;
    color: var(--gold-primary);
    opacity: 0.85;
}

.photo-placeholder-box span {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    text-align: center;
    padding: 0 0.5rem;
}

.photo-placeholder-box .photo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10, 10, 16, 0.94) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--gold-primary);
    color: var(--gold-bright);
    font-size: 0.65rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.photo-placeholder-box .photo-badge.cyan {
    border: 1px solid rgba(6, 182, 212, 0.85);
    color: #67e8f9 !important;
    background: rgba(8, 18, 28, 0.94) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 10px rgba(6, 182, 212, 0.3);
}

.photo-placeholder-box .photo-badge.purple {
    border: 1px solid rgba(168, 85, 247, 0.85);
    color: #e9d5ff !important;
    background: rgba(22, 10, 32, 0.94) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 10px rgba(168, 85, 247, 0.3);
}

.photo-placeholder-box .photo-badge.gold {
    border: 1px solid rgba(245, 158, 11, 0.85);
    color: var(--gold-bright) !important;
    background: rgba(24, 18, 10, 0.94) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 10px rgba(245, 158, 11, 0.3);
}

.photo-placeholder-box .photo-badge.emerald {
    border: 1px solid rgba(16, 185, 129, 0.85);
    color: #6ee7b7 !important;
    background: rgba(6, 24, 18, 0.94) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 10px rgba(16, 185, 129, 0.3);
}

.photo-placeholder-box .photo-badge.red {
    border: 1px solid rgba(239, 68, 68, 0.85);
    color: #fca5a5 !important;
    background: rgba(28, 10, 10, 0.94) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 10px rgba(239, 68, 68, 0.3);
}

.sensor-card-title .photo-badge.cyan {
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.18);
    font-weight: 700;
}

.sensor-card-title .photo-badge.purple {
    border-color: rgba(168, 85, 247, 0.5);
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.18);
    font-weight: 700;
}

.sensor-card-title .photo-badge.gold {
    border-color: rgba(245, 158, 11, 0.5);
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.18);
    font-weight: 700;
}

.photo-placeholder-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #08080d;
    padding: 3px;
}

.sensor-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sensor-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sensor-card-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ============================================================== */
/* IMAGE LIGHTBOX ZOOM MODAL */
/* ============================================================== */
.image-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: zoom-out;
}

.image-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-dialog {
    background: #0d0d12;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px var(--gold-glow);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: default;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-lightbox-modal.active .lightbox-dialog {
    transform: scale(1);
}

.lightbox-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: #181822;
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-close-btn:hover {
    background: var(--gold-primary);
    color: #070709;
    transform: scale(1.1);
}

.lightbox-close-btn i {
    width: 18px;
    height: 18px;
}

.lightbox-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    max-height: 72vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1rem;
}

.lightbox-caption {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gold-bright);
    font-family: var(--font-body);
}

.lightbox-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lightbox-hint i {
    width: 14px;
    height: 14px;
}

.sensor-photo-card {
    cursor: pointer;
}

.photo-placeholder-box {
    cursor: zoom-in;
}

.switch-leg {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.65rem;
    background: var(--bg-surface);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.switch-leg.active-leg {
    border-color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.08);
}

.schematic-note {
    display: flex;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.schematic-note i {
    width: 15px;
    height: 15px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.schematic-note.gold-note {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
}

/* Resistor Summary Box */
.resistor-summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 1.5rem;
}

.resistor-summary-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resistor-summary-box h3 i {
    width: 18px;
    height: 18px;
    color: var(--gold-primary);
}

.resistor-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.resistor-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
}

.chip-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-bright);
    margin-bottom: 0.2rem;
}

.chip-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================== */
/* VIEW 4: DIAGNOSTIC WIZARD */
/* ============================================================== */
.wizard-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 1.5rem;
}

.wizard-questions h4 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
}

.trouble-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.trouble-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.trouble-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(245, 158, 11, 0.4);
}

.trouble-btn.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(19, 19, 26, 0.9) 100%);
    border-color: var(--gold-primary);
    color: var(--gold-bright);
    box-shadow: 0 0 15px var(--gold-glow);
}

.trouble-btn i {
    width: 18px;
    height: 18px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.wizard-solution-display {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.solution-card {
    display: none;
    animation: fadeInView 0.3s ease;
}

.solution-card.active {
    display: block;
}

.solution-header {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.85rem;
}

.solution-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.solution-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sol-step strong {
    color: var(--gold-bright);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.2rem;
}

.sol-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================================== */
/* VIEW 5: SUPPORT & CONTACT */
/* ============================================================== */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    box-shadow: var(--shadow-card);
}

.contact-left h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.75rem 0;
    line-height: 1.25;
}

.contact-left p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.c-feat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
}

.c-feat i {
    width: 18px;
    height: 18px;
    color: var(--gold-primary);
}

.quick-contact-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.quick-contact-box h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.quick-contact-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.custom-select, .contact-form input, .contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #09090d;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-fast);
}

.custom-select:focus, .contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Footer */
.app-footer {
    background: #040406;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
}

.f-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-right: 0.75rem;
}

.f-copy {
    color: var(--text-dim);
}

.f-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.f-legal {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-legal-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.74rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.footer-legal-btn:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}

.f-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

.footer-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-link-btn:hover {
    color: var(--gold-bright);
}

/* ============================================================== */
/* INTERACTIVE LEGAL MODAL */
/* ============================================================== */
.legal-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.legal-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.legal-modal-dialog {
    background: #0e0e14;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px var(--gold-glow);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.legal-modal-backdrop.active .legal-modal-dialog {
    transform: scale(1);
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 20, 28, 0.6);
    gap: 0.75rem;
}

.legal-modal-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.legal-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.legal-tab-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--border-gold);
    color: var(--gold-bright);
}

.legal-close-btn {
    background: #181822;
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.legal-close-btn:hover {
    background: var(--gold-primary);
    color: #050508;
    transform: scale(1.08);
}

.legal-close-btn i {
    width: 16px;
    height: 16px;
}

.legal-modal-body {
    padding: 1.5rem 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 130px);
}

.legal-tab-content {
    display: none;
    animation: fadeInView 0.25s ease;
}

.legal-tab-content.active {
    display: block;
}

.legal-tab-content h3 {
    font-size: 1.15rem;
    color: var(--gold-bright);
    margin-bottom: 0.65rem;
}

.legal-tab-content h4 {
    font-size: 0.92rem;
    color: var(--text-main);
    margin: 1.1rem 0 0.35rem 0;
}

.legal-tab-content p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.legal-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 14, 20, 0.9);
    gap: 1rem;
}

.legal-footer-links {
    display: flex;
    gap: 0.85rem;
}

.legal-footer-links a {
    color: var(--text-dim);
    font-size: 0.74rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
}

.legal-footer-links a:hover {
    color: var(--gold-bright);
}

/* ============================================================== */
/* MOBILE FLOATING BOTTOM DOCK */
/* ============================================================== */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 15, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px)) 0.5rem;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.75), 0 -2px 10px rgba(245, 158, 11, 0.1);
}

.mob-dock-tab {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.2rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mob-dock-tab .dock-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 28px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.mob-dock-tab .dock-icon-wrap i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.mob-dock-tab span {
    font-size: 0.68rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.mob-badge {
    position: absolute;
    top: -2px;
    right: -1px;
    background: var(--gold-primary);
    color: #050508;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 999px;
    line-height: 1;
}

.mob-dock-tab:active {
    transform: scale(0.92);
}

.mob-dock-tab.active {
    color: var(--gold-bright);
}

.mob-dock-tab.active .dock-icon-wrap {
    background: rgba(245, 158, 11, 0.16);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.mob-dock-tab.active .dock-icon-wrap i {
    color: var(--gold-bright);
    transform: scale(1.12) translateY(-1px);
}

.mob-dock-tab.active span {
    color: var(--gold-bright);
    font-weight: 700;
}

/* ============================================================== */
/* RESPONSIVE BREAKPOINTS */
/* ============================================================== */
@media (max-width: 1024px) {
    .view-container {
        padding: 0 2rem !important;
    }
    .header-container {
        padding: 0 2rem !important;
    }
    .docs-layout {
        grid-template-columns: 1fr;
        padding: 0 2rem !important;
    }
    .footer-container {
        padding: 0 2rem !important;
    }
    .docs-sidebar {
        position: static;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-card {
        grid-template-columns: 1fr;
    }
    .wizard-grid {
        grid-template-columns: 1fr;
    }
    .bridge-arch-box {
        grid-template-columns: 1fr;
    }
    .brand-sub {
        display: none;
    }
    .header-search-wrap {
        max-width: 200px;
    }
    .main-nav {
        gap: 0.2rem;
        padding: 0.2rem;
    }
    .nav-tab {
        padding: 0.4rem 0.6rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    .mobile-bottom-dock {
        display: flex;
    }
    .app-layout {
        padding-bottom: 4.8rem;
    }
}

@media (max-width: 768px) {
    /* Full Page & App Layout Mobile Reset - Zero Overflow & Premium Breathing Room */
    *, *::before, *::after {
        box-sizing: border-box;
    }

    html, body {
        overflow-x: clip !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }

    /* Hide ambient glow orbs on mobile to avoid horizontal stretch and improve performance */
    .glow-orb {
        display: none !important;
    }

    .app-layout {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: clip !important;
        padding-bottom: 4.8rem !important;
    }

    /* Compact Header - Perfect Mobile Fit */
    .site-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: rgba(7, 7, 10, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        width: 100% !important;
        max-width: 100vw !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .header-container {
        height: 60px;
        padding: 0 1.5rem !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Hide header search on mobile to prevent header overcrowding */
    .header-search-wrap {
        display: none !important;
    }

    /* Brand Logo Compact */
    .brand-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 1;
        max-width: calc(100% - 75px);
        overflow: hidden;
    }

    .logo-symbol-img {
        height: 34px;
        width: auto;
        flex-shrink: 0;
    }

    .logo-text-img {
        height: 30px;
        width: auto;
        max-width: 135px;
        object-fit: contain;
    }

    /* Header Actions */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .header-actions .btn {
        display: none; /* Handled in bottom dock */
    }

    .lang-dropdown-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.74rem;
        border-radius: 8px;
        gap: 0.35rem;
    }

    .lang-globe-icon {
        width: 14px;
        height: 14px;
    }

    .lang-chevron-icon {
        width: 12px;
        height: 12px;
    }

    /* Catalog Mobile */
    .catalog-filters {
        gap: 0.45rem;
        margin-bottom: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0 0.25rem;
    }

    .filter-btn {
        padding: 0.45rem 0.95rem;
        font-size: 0.78rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 100%;
    }

    .catalog-slider-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .catalog-slider-track {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 0.25rem 1rem 0.25rem;
    }

    .catalog-slider-track .product-card {
        flex: 0 0 90%;
        min-width: 260px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-card {
        padding: 1.35rem 1.2rem !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 16px;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Top nav hidden on mobile */
    .main-nav {
        display: none;
    }

    /* Mobile Bottom Dock Enabled */
    .mobile-bottom-dock {
        display: flex;
    }

    /* Hero Section Mobile Polish with Generous Gutters */
    .page-view {
        padding: 1.5rem 0 5rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .view-container {
        padding: 0 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .view-heading-wrap {
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
    }

    .view-heading-wrap h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .view-heading-wrap p {
        font-size: 0.88rem;
        word-break: break-word;
    }

    .hero-grid {
        margin-bottom: 2rem;
        gap: 1.75rem;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .badge-tag {
        margin-bottom: 0.95rem;
        padding: 0.35rem 0.85rem;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .badge-text {
        font-size: 0.74rem;
    }

    .badge-meta {
        font-size: 0.70rem;
    }

    .hero-title {
        font-size: 1.95rem;
        line-height: 1.22;
        margin-bottom: 0.95rem;
        letter-spacing: -0.3px;
        word-break: break-word;
    }

    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 1.35rem;
        word-break: break-word;
    }

    .hero-search-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 1.5rem;
    }

    .hero-search-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 1rem;
        border-radius: 12px;
    }

    .hero-search-shortcut {
        display: none;
    }

    .hero-search-dropdown {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ECU Quick Launch on Mobile */
    .ecu-quick-pills {
        padding: 1.1rem 1.15rem !important;
        margin-bottom: 1.5rem;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pills-label {
        font-size: 0.68rem;
        margin-bottom: 0.6rem;
    }

    .pills-row {
        flex-direction: column;
        gap: 0.55rem;
        width: 100%;
    }

    .ecu-pill-btn {
        width: 100%;
        min-width: 0;
        padding: 0.75rem 0.95rem;
        box-sizing: border-box;
        border-radius: 10px;
    }

    /* Hero Stats in 3 Compact Mobile Columns */
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.55rem;
        margin-bottom: 1.5rem;
        padding: 0.25rem 0;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-item {
        padding: 0.65rem 0.4rem;
        border-radius: 10px;
        align-items: center;
        text-align: center;
        min-width: 0;
        overflow: hidden;
    }

    .stat-header {
        gap: 0.3rem;
        justify-content: center;
    }

    .stat-icon {
        width: 15px;
        height: 15px;
    }

    .stat-val {
        font-size: 1.05rem;
        white-space: nowrap;
    }

    .stat-lbl {
        font-size: 0.62rem;
        line-height: 1.2;
        word-break: break-word;
    }

    /* Action Buttons Mobile Stacking */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .btn-lg {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.92rem;
    }

    /* Terminal Showcase on Mobile */
    .tech-card-showcase {
        padding: 1.25rem 1.15rem !important;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .terminal-body {
        font-size: 0.74rem;
        min-height: 140px;
        padding: 0.85rem 0.95rem !important;
        gap: 0.4rem;
        word-break: break-all;
        overflow-x: hidden;
    }

    .ecu-chip-badge {
        font-size: 0.72rem;
        padding: 0.5rem 0.75rem;
        word-break: break-word;
    }

    /* Quick Cards Mobile */
    .quick-nav-cards {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        width: 100%;
    }

    .q-card {
        padding: 1.15rem 1rem !important;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .q-thumb {
        max-width: 75px;
        height: 55px;
    }

    .q-card:active {
        transform: scale(0.98);
        border-color: var(--gold-primary);
    }

    /* Documentation & Guides Mobile Redesign */
    #view-guides.page-view {
        padding-top: 1rem !important;
        padding-bottom: 5rem !important;
    }

    .docs-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Mobile Clean ECU Switcher Tab Bar */
    .docs-sidebar {
        position: relative !important;
        top: 0 !important;
        z-index: 10;
        background: rgba(14, 14, 20, 0.98);
        border: 1px solid rgba(245, 158, 11, 0.35);
        border-radius: 14px;
        padding: 0.45rem;
        margin-bottom: 0.85rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-header {
        display: none !important;
    }

    .sidebar-group {
        margin-bottom: 0;
        display: flex !important;
        flex-direction: row !important;
        gap: 0.4rem !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .group-title {
        display: none !important;
    }

    .coming-soon-item {
        display: none !important;
    }

    .doc-menu-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0.60rem 0.5rem !important;
        border-radius: 10px;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.4rem;
        background: rgba(255, 255, 255, 0.03);
    }

    .doc-menu-btn.active {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.1) 100%);
        border-color: var(--gold-primary);
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
    }

    .doc-badge {
        font-size: 0.58rem;
        padding: 0.12rem 0.35rem;
        border-radius: 4px;
    }

    .doc-text {
        align-items: center;
        min-width: 0;
        overflow: hidden;
    }

    .doc-text strong {
        font-size: 0.76rem !important;
        font-weight: 700;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .doc-text small {
        display: none !important;
    }

    /* Documentation Content Card Mobile with Generous Interior Padding */
    .docs-layout,
    .docs-content,
    .doc-pane,
    .doc-step-boxes,
    .doc-step-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .docs-content {
        padding: 1.4rem 1.25rem !important;
        border-radius: 16px;
        min-height: auto;
        background: rgba(14, 14, 20, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .doc-header-card {
        padding-bottom: 0.95rem;
        margin-bottom: 1.15rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .doc-meta-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        width: 100% !important;
    }

    .doc-pdf-btn {
        font-size: 0.74rem !important;
        padding: 0.35rem 0.75rem !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .badge-pill {
        font-size: 0.70rem;
        padding: 0.18rem 0.55rem;
        word-break: break-word;
    }

    .doc-header-card h2 {
        font-size: 1.15rem;
        line-height: 1.35;
        margin-bottom: 0.5rem;
        letter-spacing: -0.2px;
        word-break: break-word;
    }

    .doc-intro {
        font-size: 0.84rem;
        line-height: 1.5;
        color: var(--text-muted);
        word-break: break-word;
    }

    /* Step Boxes Mobile with Spacious Interior */
    .doc-step-boxes {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100% !important;
    }

    .doc-step-box {
        padding: 1.25rem 1.15rem !important;
        border-radius: 14px;
        background: rgba(20, 20, 28, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.06);
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .step-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
        margin-bottom: 0.4rem;
    }

    .doc-step-box h3 {
        font-size: 0.98rem;
        line-height: 1.35;
        margin-bottom: 0.45rem;
        word-break: break-word;
    }

    .doc-step-box p {
        font-size: 0.82rem;
        line-height: 1.48;
        margin-bottom: 0.65rem;
        word-break: break-word;
    }

    .step-bullets {
        gap: 0.45rem;
    }

    .step-bullets li {
        font-size: 0.80rem;
        line-height: 1.45;
        padding-left: 1rem;
        word-break: break-word;
    }

    .step-bullets li::before {
        font-size: 0.58rem;
        top: 3px;
    }

    /* Wiring Tables Mobile Optimization */
    .wiring-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0.6rem 0 0.85rem 0;
        border-radius: 10px;
        box-sizing: border-box !important;
        display: block !important;
    }

    .wiring-table {
        font-size: 0.74rem;
        width: 100% !important;
        min-width: 250px;
        border-collapse: collapse;
        box-sizing: border-box;
    }

    .wiring-table th {
        padding: 0.50rem 0.55rem;
        font-size: 0.66rem;
        white-space: nowrap;
    }

    .wiring-table td {
        padding: 0.50rem 0.55rem;
        font-size: 0.72rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .wire-color-badge {
        font-size: 0.62rem;
        padding: 0.15rem 0.35rem;
        gap: 0.25rem;
        white-space: nowrap;
    }

    .wire-dot {
        width: 6px;
        height: 6px;
    }

    /* Sensor & ECU Photo Placeholders on Mobile */
    .sensor-photos-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
        margin-top: 0.85rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .sensor-photo-card {
        padding: 0.65rem;
        border-radius: 12px;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
        box-sizing: border-box !important;
    }

    .photo-placeholder-box {
        height: 175px;
        border-radius: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .photo-placeholder-box i {
        width: 24px;
        height: 24px;
    }

    .photo-placeholder-box span {
        font-size: 0.68rem;
        padding: 0 0.3rem;
        text-align: center;
        line-height: 1.25;
    }

    .photo-placeholder-box small {
        font-size: 0.58rem !important;
    }

    .sensor-card-title {
        font-size: 0.78rem;
    }

    .sensor-card-title small {
        font-size: 0.65rem;
    }

    .photo-badge {
        font-size: 0.60rem;
        padding: 0.15rem 0.4rem;
    }

    /* Diagnostic Wizard View Mobile */
    .wizard-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .trouble-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.86rem;
        padding: 0.90rem 1rem !important;
        word-break: break-word;
        border-radius: 12px;
    }

    .wizard-solution-display {
        padding: 1.35rem 1.2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 16px;
    }

    .solution-header h3 {
        font-size: 1.10rem;
        word-break: break-word;
    }

    /* Support & Contact Page Mobile Optimization */
    #view-support.page-view {
        padding-top: 1rem !important;
        padding-bottom: 5rem !important;
    }

    .contact-card {
        padding: 1.5rem 1.25rem !important;
        gap: 1.5rem;
        border-radius: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        grid-template-columns: 1fr !important;
    }

    .contact-left h2 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin: 0.5rem 0;
        word-break: break-word;
    }

    .contact-left p {
        font-size: 0.86rem;
        line-height: 1.5;
        margin-bottom: 1.15rem;
        word-break: break-word;
    }

    .contact-features {
        gap: 0.65rem;
        margin-bottom: 0.65rem;
    }

    .c-feat {
        font-size: 0.82rem;
        gap: 0.55rem;
        line-height: 1.35;
    }

    .c-feat i {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }

    .quick-contact-box {
        padding: 1.25rem 1.15rem !important;
        border-radius: 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .quick-contact-box h3 {
        font-size: 1.10rem;
        margin-bottom: 0.25rem;
    }

    .quick-contact-box p {
        font-size: 0.82rem;
        margin-bottom: 1rem;
        line-height: 1.45;
    }

    .contact-form {
        gap: 0.85rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group label {
        font-size: 0.76rem;
    }

    .custom-select, .contact-form input, .contact-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .contact-form .btn {
        padding: 0.75rem 1.15rem;
        font-size: 0.88rem;
        width: 100%;
        border-radius: 8px;
    }

    .footer-container {
        flex-direction: column;
        gap: 0.85rem;
        text-align: center;
        padding: 0 1.25rem;
        width: 100% !important;
        box-sizing: border-box;
    }

    .f-nav, .f-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1.25rem !important;
    }

    .view-container {
        padding: 0 1.25rem !important;
    }

    .docs-layout {
        padding: 0 1.25rem !important;
    }

    .footer-container {
        padding: 0 1.25rem !important;
    }

    .logo-text-img {
        max-width: 115px;
    }

    .hero-title {
        font-size: 1.70rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.35rem !important;
    }

    .stat-item {
        padding: 0.55rem 0.25rem !important;
    }

    .stat-val {
        font-size: 0.95rem !important;
    }

    .stat-lbl {
        font-size: 0.56rem !important;
        line-height: 1.15 !important;
    }

    .docs-content {
        padding: 1.35rem 1.15rem !important;
    }

    .doc-step-box {
        padding: 1.2rem 1.05rem !important;
    }

    .contact-card {
        padding: 1.45rem 1.15rem !important;
    }

    .quick-contact-box {
        padding: 1.25rem 1.05rem !important;
    }

    .wizard-solution-display {
        padding: 1.35rem 1.15rem !important;
    }

    .product-card {
        padding: 1.35rem 1.15rem !important;
    }

    .wiring-table th, .wiring-table td {
        padding: 0.45rem 0.45rem;
        font-size: 0.68rem;
    }

    .doc-menu-btn {
        padding: 0.50rem 0.35rem !important;
    }

    .doc-text strong {
        font-size: 0.70rem !important;
    }
}

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

    .header-container {
        padding: 0 1rem !important;
    }

    .docs-layout {
        padding: 0 1rem !important;
    }

    .footer-container {
        padding: 0 1rem !important;
    }

    .docs-content {
        padding: 1.2rem 0.95rem !important;
    }

    .doc-step-box {
        padding: 1.1rem 0.95rem !important;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .logo-text-img {
        max-width: 100px;
    }

    .current-lang-lbl {
        display: none;
    }

    .lang-dropdown-btn {
        padding: 0.3rem 0.50rem;
    }

    .stat-val {
        font-size: 0.88rem !important;
    }

    .stat-lbl {
        font-size: 0.52rem !important;
    }
}

/* ============================================================== */
/* PRINT / PDF EXPORT STYLESHEET */
/* ============================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #111827 !important;
        font-size: 11pt;
    }

    .bg-grid-pattern, .glow-orb, .site-header, .mobile-bottom-dock, .app-footer, .hero-buttons, .catalog-filters, .header-search-wrap, .schematic-print-bar, .terminal-dots, .badge-pulse, .card-glow, .quick-nav-cards, .hero-visual {
        display: none !important;
    }

    .page-view:not(.active) {
        display: none !important;
    }

    .page-view.active {
        display: block !important;
        padding: 0 !important;
    }

    .schematic-card, .resistor-summary-box, .product-card, .doc-step-box, .doc-header-card {
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #111827 !important;
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        box-shadow: none !important;
    }

    .node-box, .wire-leg, .resistor-chip, .sensor-box {
        border: 1px solid #94a3b8 !important;
        background: #f8fafc !important;
        color: #0f172a !important;
    }

    .wiring-table th, .wiring-table td {
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        padding: 6px 8px !important;
    }

    .gold-gradient-text {
        -webkit-text-fill-color: #d97706 !important;
        color: #d97706 !important;
    }

    h1, h2, h3, h4, strong, b {
        color: #0f172a !important;
    }

    p, span, li, small {
        color: #334155 !important;
    }
}
