/* style.css — Blueprint v6.0: Controller Diagnostics Laboratory */
/* =========================================================
   DARK THEME (DEFAULT)
   ========================================================= */
:root {
    /* Surface System — CountVerse Deep Navy Palette */
    --bg-main: #04091f;
    --bg-darker: #020714;
    --bg-surface: #080e2a;
    --bg-card: rgba(8, 15, 50, 0.82);
    --bg-card-solid: #0b1235;
    --border-muted: #1a2560;
    --border-highlight: #00b4ff;
    --glass-border: rgba(0, 180, 255, 0.08);

    /* Primary Palette — Cyan-Blue + Purple */
    --primary: #00b4ff;
    --primary-glow: rgba(0, 180, 255, 0.28);
    --secondary: #7c3aed;
    --secondary-glow: rgba(124, 58, 237, 0.28);

    /* Semantic Colors */
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.25);
    --highlight: #10b981;
    --highlight-glow: rgba(16, 185, 129, 0.25);
    --danger: #ef4444;
    --success: #10b981;

    /* Typography */
    --text-main: #e8f0ff;
    --text-muted: #b8cef0;
    --text-dim: #7090c0;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --font-outfit: 'Outfit', sans-serif;

    /* Spacing & Radii */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --border-glow: 1px solid rgba(0, 180, 255, 0.22);

    /* Shadow System */
    --shadow-depth: 0 4px 24px rgba(0, 0, 30, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0,180,255,0.05);
    --shadow-hover: 0 12px 40px rgba(0, 0, 30, 0.75), 0 0 24px rgba(0,180,255,0.12), inset 0 1px 0 rgba(0,180,255,0.08);

    /* Card Accent Colors */
    --card-accent-trigger:  #ef4444;   /* Triggers → Red */
    --card-accent-stick:    #7c3aed;   /* Sticks   → Purple */
    --card-accent-health:   #10b981;   /* Health   → Green */
    --card-accent-diag:     #00b4ff;   /* Diagnostics → Cyan-Blue */
    --card-accent-perf:     #f59e0b;   /* Performance → Amber */
    --card-accent-vibrate:  #ec4899;   /* Vibration → Pink */

    /* Transitions */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   LIGHT THEME OVERRIDE (toggled by .light-theme on <body>)
   ========================================================= */
body.light-theme {
    --bg-main: #e8f0ff;
    --bg-darker: #dde8ff;
    --bg-surface: #eef3ff;
    --bg-card: #ffffff;
    --bg-card-solid: #ffffff;
    --border-muted: #c2d0f0;
    --border-highlight: #00b4ff;
    --glass-border: #c2d0f0;

    --primary: #0090d4;
    --primary-glow: rgba(0, 144, 212, 0.15);
    --secondary: #6d28d9;
    --secondary-glow: rgba(109, 40, 217, 0.15);

    --text-main: #0a1040;
    --text-muted: #4a5890;
    --text-dim: #8090c0;

    --shadow-depth: 0 4px 20px rgba(0,10,60,0.06), 0 2px 8px rgba(0,0,0,0.03);
    --shadow-hover: 0 10px 30px rgba(0,10,60,0.1), 0 0 12px rgba(0,180,255,0.08);
}

/* =========================================================
   THEME TOGGLE BUTTON
   ========================================================= */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.theme-toggle-track {
    display: flex;
    align-items: center;
    width: 52px;
    height: 28px;
    background: linear-gradient(135deg, #0f1a50 0%, #080e2a 100%);
    border-radius: 100px;
    border: 1px solid var(--border-muted);
    padding: 3px;
    transition: background 0.35s var(--ease-premium), border-color 0.35s ease;
    position: relative;
}

body.light-theme .theme-toggle-track {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.theme-toggle-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4ff, #7c3aed);
    box-shadow: 0 2px 8px rgba(0, 180, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease-premium), background 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

body.light-theme .theme-toggle-thumb {
    transform: translateX(24px);
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.theme-icon-moon,
.theme-icon-sun {
    font-size: 10px;
    position: absolute;
    transition: opacity 0.25s ease;
}

.theme-icon-moon { color: #ffffff; opacity: 1; }
.theme-icon-sun  { color: #ffffff; opacity: 0; }

body.light-theme .theme-icon-moon { opacity: 0; }
body.light-theme .theme-icon-sun  { opacity: 1; }



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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
}

/* === GLOBAL H3 — Bright & Vivid across entire site === */
h3 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Any h3 inside a section gets the cyan-blue primary glow */
.seo-section h3,
.seo-block h3,
.feature-card h3,
.timeline-step h3,
.article-content h3,
.article-section h3,
.tool-article h3,
.content-section h3,
.guide-section h3,
.diagnostic-article h3,
.article-body h3,
.blog-section h3,
.page-content h3 {
    color: #00b4ff;
    text-shadow: 0 0 18px rgba(0, 180, 255, 0.35);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.glow-text {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.text-blue {
    color: var(--primary);
}

.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow {
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 10px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #070a14;
    font-weight: 700;
    box-shadow: 0 0 20px var(--secondary-glow);
}

.btn-secondary:hover {
    background-color: #22d3ee;
    box-shadow: 0 0 30px var(--secondary-glow);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-accent:hover {
    background-color: #fb923c;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--secondary);
    color: #070a14;
    box-shadow: 0 0 20px var(--secondary-glow);
}

.btn-outline:disabled {
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.2);
    cursor: not-allowed;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: all 0.4s var(--ease-premium);
}

.glass-panel:hover {
    border-color: rgba(20, 184, 166, 0.12);
    box-shadow: 0 24px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(20, 184, 166, 0.05);
}

/* Header */
.header {
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00b4ff 0%, #7c3aed 50%, rgba(0,180,255,0) 100%);
    opacity: 0.75;
}

.header-content {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 24px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: auto;
}

.logo i {
    color: var(--primary);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--text-main);
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.2);
}

.nav-links a.active,
.nav-links a.nav-tab.active {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Hero Section Styles */
.hero-premium {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 180, 255, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(0, 100, 200, 0.06) 0%, transparent 50%);
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2327272a' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-premium {
        padding: 8rem 0 3rem;
    }
}

.hero-content h1 {
    font-size: 3.6rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #c8d8ff 50%, #00b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h1 .glow-text {
    -webkit-text-fill-color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 520px;
}

@media (max-width: 992px) {
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

.trust-badges {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .trust-badges {
        justify-content: center;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 180, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(0, 180, 255, 0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s var(--ease-premium);
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.trust-badge:hover {
    border-color: var(--primary);
    background: rgba(0, 180, 255, 0.10);
    color: var(--text-main);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 180, 255, 0.15);
}

.trust-badge i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Quick Status Cards */
.quick-status-section {
    padding-top: 120px;
    padding-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.status-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.status-card {
    background: rgba(8, 15, 50, 0.80);
    border: 1px solid rgba(0, 180, 255, 0.18);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.06);
}

.status-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow), 0 0 15px rgba(124, 58, 237, 0.1);
    background: rgba(0, 20, 80, 0.85);
}

.status-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.status-card:hover .status-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.status-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.status-text.disconnected {
    color: var(--text-muted);
}

.status-text.connected {
    color: var(--success);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* Hero Section */
.hero {
    padding-top: 4rem;
    padding-bottom: 5rem;
    position: relative;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

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

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.controller-mockup {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(8, 15, 50, 0.9), rgba(0, 180, 255, 0.08));
    border-radius: 50%;
    border: 1px solid rgba(0, 180, 255, 0.25);
    box-shadow: 0 0 60px rgba(0, 180, 255, 0.15), 0 0 30px rgba(124, 58, 237, 0.10);
}

.controller-icon {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 20px var(--primary-glow));
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2.5s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 2rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .status-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .status-cards-row {
        grid-template-columns: 1fr;
    }
}

/* Tester Section */
.tester-status {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tester-status.connected .status-icon {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.status-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.status-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.disconnected {
    color: var(--danger);
}

.connected-text {
    color: var(--success);
}

.tester-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.test-module {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.test-module:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 180, 255, 0.30);
    box-shadow: 0 10px 30px rgba(0, 0, 30, 0.5), 0 0 20px rgba(0, 180, 255, 0.08);
}

.test-module h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.button-display, .drift-status {
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 40px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.sticks-display, .triggers-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stick-box, .trigger-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stick-box span, .trigger-box span {
    font-weight: 700;
    width: 30px;
    color: var(--text-muted);
}

.stick-val {
    background: #000;
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    flex-grow: 1;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    letter-spacing: 1px;
}

.trigger-bar {
    background: #000;
    height: 14px;
    border-radius: 7px;
    flex-grow: 1;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.trigger-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px var(--primary-glow);
    border-radius: 7px;
}

/* Article Section */
/* === Article Page Images === */
.featured-image-container {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.12);
    position: relative;
    background: transparent;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px !important;
    transition: transform 0.5s ease;
    object-fit: contain;
}

.featured-image-container:hover img {
    transform: scale(1.02);
}

.article-image {
    margin: 28px 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.1);
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.article-image img:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.22);
}

.article-image figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.5;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

/* All images inside article content — global size control */
.article-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.article-content img:hover {
    transform: scale(1.012);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.article-content h1 {
    font-size: 2.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    padding-bottom: 10px;
    border-bottom: 2px solid #00b4ff;
    display: inline-block;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    padding-left: 14px;
    border-left: 3px solid #00b4ff;
    text-shadow: none;
}

.article-content h4 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child,
.article-content h4:first-child {
    margin-top: 0;
}

.article-content p {
    color: #dce9ff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.85;
    font-weight: 400;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Internal links inside article text */
.article-content a,
.internal-link {
    color: #00b4ff;
    text-decoration: underline;
    text-decoration-color: rgba(0, 180, 255, 0.35);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover,
.internal-link:hover {
    color: #38cfff;
    text-decoration-color: #38cfff;
}

/* Blockquote — CountVerse left-border style */
.article-content blockquote {
    border-left: 3px solid #00b4ff;
    margin: 28px 0;
    padding: 16px 24px;
    background: rgba(0, 180, 255, 0.04);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    color: #dce9ff;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.85;
    margin: 0;
}

.article-content blockquote a {
    color: #00b4ff;
    text-decoration: underline;
    text-decoration-color: rgba(0,180,255,0.4);
    text-underline-offset: 3px;
}

.article-content blockquote a:hover {
    color: #38cfff;
    text-decoration-color: #00b4ff;
}

.article-content ul,
.article-content ol {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.article-content ul li,
.article-content ol li {
    color: #c8daf5;
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 8px 0 8px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}

.article-content ul li:last-child,
.article-content ol li:last-child {
    border-bottom: none;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary-glow);
}

.article-content ol {
    counter-reset: article-counter;
}

.article-content ol li {
    counter-increment: article-counter;
}

.article-content ol li::before {
    content: counter(article-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: #04091f;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.02);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links.active {
        display: flex;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 12px auto 0;
    }

    .glass-panel {
        padding: 25px;
    }
}

/* Global Footer Styles */
.global-footer {
    background-color: #08111F;
    color: var(--text-main);
    padding: 80px 0 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.global-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col.brand-col .logo {
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-col.brand-col .logo span {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 350px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--primary);
    transform: translateX(5px);
    text-shadow: 0 0 8px var(--primary-glow);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Global Footer Responsive */
@media (max-width: 992px) {
    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col {
        grid-column: span 2;
    }
    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-wrapper {
        grid-template-columns: 1fr;
    }
    .brand-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Blog Section Layout Fix --- */
.blog-section {
  padding: 80px 20px;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.blog-card {
  background: rgba(18, 24, 38, 0.6);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-depth);
  transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  background-color: rgba(22, 30, 49, 0.7);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 189, 248, 0.35);
}

.blog-card img,
.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.blog-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-content h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card-content h3 a {
  color: var(--text-heading, #ffffff);
  transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
  color: var(--primary, #00d9ff);
}

.blog-card-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted, #8b949e);
  margin-bottom: 18px;
}

.blog-card-content a.read-more,
.blog-btn {
  margin-top: auto;
}

/* Tablet */
@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .blog-section {
    padding: 50px 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .blog-card img,
  .blog-card-image {
    height: 200px;
  }
}

/* --- Blog Search & Filters Layout Fix --- */
.blog-controls,
.search-container,
.filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-controls {
  flex-direction: column;
  gap: 14px;
  margin: 35px auto 35px;
  width: 100%;
}

.search-container {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  pointer-events: none;
}

.search-container input,
.search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  outline: none;
}

.search-container input::placeholder,
.search-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn,
.filter-container button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.35);
  background: rgba(0, 217, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active,
.filter-container button:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.blog-grid {
  margin-top: 25px;
}

@media (max-width: 600px) {
  .search-container {
    max-width: 100%;
  }
}

/* --- Utilities & Empty State --- */
.hidden {
  display: none !important;
}

.no-articles,
.empty-state {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  padding: 45px 25px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,217,255,0.18);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.no-articles i,
.empty-state i {
  font-size: 56px;
  color: #00d9ff;
  margin-bottom: 18px;
}

.no-articles h3,
.empty-state h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 10px;
}

.no-articles p,
.empty-state p {
  color: #9fb4d0;
  font-size: 16px;
}

/* Reusable hover animation for cards */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
}

/* --- Old Professional Dashboard Layout --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.visualizer-panel, .metrics-panel {
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.visualizer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}
.status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}
.status-dot.disconnected {
    background: var(--danger, #ff3366);
}

.joystick-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.stick-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stick-bound {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(6, 182, 212, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stick-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.45);
    border: 2px solid var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.metrics-section {
    margin-bottom: 2rem;
}
.metrics-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

.trigger-container {
    margin-bottom: 15px;
}
.trigger-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 5px;
}
.trigger-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.active-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}
.active-btn {
    padding: 5px 12px;
    background: var(--primary);
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* --- Premium Redesign Additions --- */

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px var(--primary-glow); }
    50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.7); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-reverse {
    animation: float-reverse 7s ease-in-out infinite;
}

/* Hero Visual Layout */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual .glow-circle-purple {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    z-index: 1;
}

.hero-visual .glow-circle-cyan {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: 1;
    top: 20%;
    left: 20%;
}

.hero-controller-img {
    max-width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 35px rgba(124, 58, 237, 0.5));
    animation: float 5s ease-in-out infinite;
}

.floating-icon {
    position: absolute;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.15);
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.floating-icon-1 { top: 10%; left: 10%; color: var(--secondary); animation: float 4s ease-in-out infinite; }
.floating-icon-2 { bottom: 15%; right: 10%; color: var(--primary); animation: float-reverse 5s ease-in-out infinite; }
.floating-icon-3 { top: 40%; right: 5%; color: var(--accent); animation: float 6s ease-in-out infinite; }
.floating-icon-4 { bottom: 20%; left: 5%; color: var(--highlight); animation: float-reverse 4.5s ease-in-out infinite; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(18, 24, 38, 0.6);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: var(--shadow-depth);
    transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    background-color: rgba(22, 30, 49, 0.7);
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon-box {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 180, 255, 0.15);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Supported Controllers Section */
.supported-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
    overflow: hidden;
}

.supported-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 992px) {
    .supported-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .supported-image-wrapper {
        order: -1;
    }
}

.supported-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.supported-lineup-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.25));
}

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

@media (max-width: 576px) {
    .controller-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.logo-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.logo-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
}

.logo-card i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.logo-card.ps i { color: #003087; }
.logo-card.xbox i { color: #107c10; }
.logo-card.switch i { color: #e60012; }
.logo-card.generic i { color: var(--secondary); }

.logo-card h4 {
    font-size: 1rem;
    margin-top: 8px;
}

/* Timeline/How it works */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.timeline-step {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.timeline-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.15);
}

.timeline-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.timeline-step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #00b4ff;
    text-shadow: 0 0 14px rgba(0, 180, 255, 0.30);
    font-weight: 700;
}

.timeline-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s;
}

.why-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.12);
}

.why-card-icon {
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.why-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.12);
}

.stars {
    color: #eab308;
    margin-bottom: 20px;
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    background-size: 300% 100%;
}

.avatar-1 {
    background-image: url('images/testimonial_avatars.png');
    background-position: 0% 0%;
}

.avatar-2 {
    background-image: url('images/testimonial_avatars.png');
    background-position: 50% 0%;
}

.avatar-3 {
    background-image: url('images/testimonial_avatars.png');
    background-position: 100% 0%;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* FAQ accordion restyling */
.accordion {
    max-width: 850px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--secondary);
}

.faq-question {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.faq-question i {
    transition: transform 0.3s, color 0.3s;
    color: var(--text-muted);
}

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.1);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    padding: 0 28px 24px;
    max-height: 200px;
    opacity: 1;
}

/* SEO Content Section */
.seo-section {
    padding: 80px 0;
    background: #070a14;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

@media (max-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.seo-block h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00b4ff;
    text-shadow: 0 0 16px rgba(0, 180, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.seo-block h3 i {
    color: var(--secondary);
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.5));
}

.seo-block p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Visual Section Dividers (Esports RGB style) */
.section-divider-rgb {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 33%, var(--accent) 66%, var(--highlight) 100%);
    opacity: 0.6;
}

/* Connection status banner redesign */
.tester-wrapper {
    margin-top: -80px;
}

.tool-showcase {
    background: rgba(11, 16, 32, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 50px rgba(124, 58, 237, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.dashboard-header h2 {
    font-weight: 800;
    letter-spacing: 0.5px;
}

.connection-status-bar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.btn-badge {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(124, 58, 237, 0.3) 100%);
    border: 1px solid var(--primary);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 0 10px var(--primary-glow);
    text-transform: uppercase;
}

/* Active buttons placeholder fix */
.active-buttons-grid .no-input {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

/* Motor vibrate rumble status message styling */
#vibration-msg {
    font-weight: 500;
    font-family: monospace;
}

/* --- Premium Gamepad Tester Overhaul --- */

/* Tabs Menu */
.tester-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Tab contents */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

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

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

/* Controller SVG Elements */
.controller-part {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2px;
    transition: fill 0.1s ease, stroke 0.1s ease, filter 0.1s ease;
}

.controller-part.active {
    fill: var(--secondary); /* Neon Cyan */
    stroke: var(--secondary);
    filter: drop-shadow(0 0 10px var(--secondary-glow));
}

.controller-trigger-fill {
    fill: var(--primary); /* Electric Purple */
    stroke: var(--primary);
    opacity: 0.15;
    transition: opacity 0.05s ease;
}

.dpad-part {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2px;
    transition: fill 0.1s ease, stroke 0.1s ease, filter 0.1s ease;
}

.dpad-part.active {
    fill: var(--accent); /* Gaming Orange */
    stroke: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

/* Heatmaps and canvas panels */
.heatmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .heatmap-grid {
        grid-template-columns: 1fr;
    }
}

.heatmap-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.heatmap-canvas {
    background: #04060b;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* Polling & Latency display */
.live-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.stat-card h5 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 0;
}

.stat-card span {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
}

/* Health Dials and Indicators */
.health-score-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 24px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 24px;
}

.health-dial {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-dial svg {
    transform: rotate(-90deg);
}

.health-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8px;
}

.health-circle-fill {
    fill: none;
    stroke: var(--highlight);
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.5));
}

.health-dial-text {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 240px;
    flex-grow: 1;
}

.health-metrics-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 6px;
}

.health-metrics-row span:first-child {
    color: var(--text-muted);
}

.health-metrics-row span:last-child {
    font-weight: 700;
}

.score-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.score-badge.perfect { background: rgba(34, 197, 94, 0.15); color: var(--highlight); border: 1px solid var(--highlight); }
.score-badge.normal { background: rgba(249, 115, 22, 0.15); color: var(--accent); border: 1px solid var(--accent); }
.score-badge.poor { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid var(--danger); }

.health-grade-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--font-outfit);
    text-align: center;
    min-width: 28px;
    display: inline-block;
    letter-spacing: 0.02em;
}

.health-grade-badge.grade-a-plus { background: rgba(16, 185, 129, 0.15); color: var(--highlight); border: 1px solid var(--highlight); }
.health-grade-badge.grade-a { background: rgba(16, 185, 129, 0.15); color: var(--highlight); border: 1px solid var(--highlight); }
.health-grade-badge.grade-b { background: rgba(6, 182, 212, 0.15); color: var(--secondary); border: 1px solid var(--secondary); }
.health-grade-badge.grade-c { background: rgba(245, 158, 11, 0.15); color: var(--accent); border: 1px solid var(--accent); }
.health-grade-badge.grade-d { background: rgba(244, 63, 94, 0.15); color: var(--danger); border: 1px solid var(--danger); }


/* Control calibration sliders */
.cal-group {
    margin-bottom: 15px;
    text-align: left;
}

.cal-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cal-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.cal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: transform 0.1s;
}

.cal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.vibrate-lab-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 576px) {
    .vibrate-lab-row {
        grid-template-columns: 1fr;
    }
}

/* --- Missing Utility Classes & SVG Gradient Compatibility --- */
.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center !important;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.stop-primary {
    stop-color: var(--primary);
}

.stop-secondary {
    stop-color: var(--secondary);
}

/* --- Responsive Canvas Scaling --- */
.heatmap-canvas {
    max-width: 100%;
    height: auto;
}

/* --- Drift Shake Animation --- */
@keyframes drift-shake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-3px, -1px); }
    20% { transform: translate(2px, 1px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(1px, -2px); }
    50% { transform: translate(-1px, 1px); }
    60% { transform: translate(2px, -1px); }
    70% { transform: translate(-2px, 1px); }
    80% { transform: translate(1px, 2px); }
    90% { transform: translate(-1px, -1px); }
    100% { transform: translate(0, 0); }
}

.drift-shake {
    animation: drift-shake 0.35s cubic-bezier(.36,.07,.19,.97) both infinite;
}

/* =============================================
   FEATURE 1: Drift Severity Diagnostic Card
   ============================================= */
.drift-severity-card {
    margin-top: 2rem;
    background: rgba(11, 16, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.drift-severity-card[data-severity="none"] {
    border-color: rgba(34, 197, 94, 0.2);
}
.drift-severity-card[data-severity="mild"] {
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.05);
}
.drift-severity-card[data-severity="moderate"] {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.08);
}
.drift-severity-card[data-severity="severe"] {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.drift-severity-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.drift-severity-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--highlight);
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}

.drift-severity-card[data-severity="mild"] .drift-severity-icon {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
}
.drift-severity-card[data-severity="moderate"] .drift-severity-icon {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
}
.drift-severity-card[data-severity="severe"] .drift-severity-icon {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.drift-severity-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.drift-severity-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.drift-severity-label-wrap {
    margin-left: auto;
}

.drift-severity-label {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--highlight);
    border: 1px solid rgba(34, 197, 94, 0.25);
    transition: all 0.3s ease;
}

.drift-severity-card[data-severity="mild"] .drift-severity-label {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
}
.drift-severity-card[data-severity="moderate"] .drift-severity-label {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
    border-color: rgba(249, 115, 22, 0.3);
}
.drift-severity-card[data-severity="severe"] .drift-severity-label {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.drift-severity-meters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 22px;
}

@media (max-width: 576px) {
    .drift-severity-meters {
        grid-template-columns: 1fr;
    }
}

.drift-meter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drift-meter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 110px;
    white-space: nowrap;
}

.drift-meter-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.drift-meter-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: var(--highlight);
    transition: width 0.2s ease, background 0.3s ease;
}

.drift-meter-val {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    min-width: 50px;
    text-align: right;
}

.drift-severity-explain {
    margin: 18px 0 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    line-height: 1.5;
}

/* =============================================
   FEATURE 2: Health Grade Badge
   ============================================= */
.health-grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--highlight) 0%, rgba(34, 197, 94, 0.4) 100%);
    border: 2px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.health-grade-badge.grade-a-plus,
.health-grade-badge.grade-a {
    background: linear-gradient(135deg, var(--highlight) 0%, rgba(34, 197, 94, 0.4) 100%);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.health-grade-badge.grade-b {
    background: linear-gradient(135deg, #eab308 0%, rgba(234, 179, 8, 0.4) 100%);
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.2);
}

.health-grade-badge.grade-c {
    background: linear-gradient(135deg, var(--accent) 0%, rgba(249, 115, 22, 0.4) 100%);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.health-grade-badge.grade-d {
    background: linear-gradient(135deg, var(--danger) 0%, rgba(239, 68, 68, 0.4) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* =============================================
   FEATURE 3: Download Report Bar
   ============================================= */
.report-download-bar {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.report-download-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    padding: 22px 28px;
    flex-wrap: wrap;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.report-download-inner:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
}

.report-download-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.report-download-icon {
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.report-download-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.report-download-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.report-download-btn {
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.report-download-btn:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .report-download-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .report-download-info {
        flex-direction: column;
    }
    .report-download-btn {
        width: 100%;
    }
}

/* =============================================
   BLUEPRINT v4.0: MISSING COMPONENT STYLES
   ============================================= */

/* --- Hero Preview Card --- */
.hero-preview-card {
    background: rgba(18, 18, 22, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.03),
        inset 0 1px 0 rgba(255,255,255,0.05);
    z-index: 5;
    position: relative;
    animation: float 6s ease-in-out infinite;
    max-width: 480px;
    width: 100%;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.2);
}

.hero-card-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    animation: hero-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--primary-glow);
}

.hero-card-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-telemetry-grade {
    background: linear-gradient(135deg, var(--highlight), rgba(34, 197, 94, 0.3));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.hero-telemetry-hz {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border-radius: 6px;
}

.hero-svg-wrapper {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg-gamepad {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(20, 184, 166, 0.15));
}

@media (max-width: 992px) {
    .hero-preview-card {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* --- Dashboard Header --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title-area h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title-area h2 i {
    color: var(--primary);
}

.dashboard-title-area p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.dashboard-action-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dropdown-control {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.dropdown-control:hover,
.dropdown-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.connection-status-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.connection-status-chip h3 {
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Visualizer Card & Stage --- */
.visualizer-card {
    padding: 0 !important;
    overflow: hidden;
}

.visualizer-stage {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.workspace-svg-gamepad {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(20, 184, 166, 0.1));
}

.drift-warning-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--danger);
}

.drift-warning-card i {
    font-size: 1.1rem;
}

/* --- Diagnostics Panel (Right Column) --- */
.diagnostics-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

/* --- Premium Health Card --- */
.premium-health-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s var(--ease-premium);
}

.premium-health-card:hover {
    border-color: rgba(20, 184, 166, 0.25);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.06);
}

.health-card-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.health-dial-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.health-dial-wrapper svg {
    transform: rotate(-90deg);
}

.health-dial-text {
    position: absolute;
    font-family: var(--font-outfit);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.health-card-status {
    flex: 1;
}

.health-card-status h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.health-badges-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.condition-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Smart Diagnostic Summary Card --- */
.smart-summary-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s var(--ease-premium);
}

.smart-summary-card:hover {
    border-color: rgba(20, 184, 166, 0.15);
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.card-title-row h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.summary-icon {
    font-size: 1.2rem;
}

.summary-body .summary-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.recommendation-box {
    background: rgba(20, 184, 166, 0.04);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: var(--radius-md);
    padding: 14px;
}

.rec-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.rec-title i {
    font-size: 0.75rem;
}

.rec-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Telemetry Compact Card --- */
.telemetry-compact-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.telemetry-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.telemetry-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tel-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tel-value {
    font-size: 1rem;
    font-weight: 700;
}

.font-mono {
    font-family: var(--font-mono);
}

.text-teal {
    color: var(--primary);
}

/* Trigger Meters */
.trigger-meters-group {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.compact-trigger-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trigger-row-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Button Logger */
.button-logger-group {
    margin-top: 0.5rem;
}

.button-log-output {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 36px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.button-log-output .no-input {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-style: italic;
}

/* --- Analytics Stats Grid --- */
.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .analytics-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.06);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}

/* --- Chart Card --- */
.chart-card {
    margin-bottom: 2rem;
}

.chart-header {
    margin-bottom: 1.5rem;
}

.chart-header h5 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}

.chart-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.chart-stage {
    width: 100%;
    height: 200px;
    position: relative;
}

.chart-stage canvas {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Workspace Two-Column Grid --- */
.workspace-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 991px) {
    .workspace-grid-two {
        grid-template-columns: 1fr;
    }
}

/* --- Heatmaps Card --- */
.heatmaps-card {
    padding: 2rem !important;
}

.heatmaps-card h5 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}

.heatmaps-card .card-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.heatmaps-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .heatmaps-row {
        grid-template-columns: 1fr;
    }
}

.heatmap-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heatmap-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.canvas-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

.canvas-wrap canvas {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.heatmap-meta {
    margin-top: 10px;
    display: flex;
    gap: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.heatmap-action {
    margin-top: 1.5rem;
    text-align: center;
}

/* --- Calibration Controls Card --- */
.calibration-controls-card h5,
.vibration-lab-card h5 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}

.calibration-controls-card .card-subtitle,
.vibration-lab-card .card-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.slider-group {
    margin-bottom: 0;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.slider-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 6px;
    line-height: 1.5;
}

.custom-range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid rgba(255,255,255,0.15);
}

.custom-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 16px var(--primary-glow);
}

.custom-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    border: 2px solid rgba(255,255,255,0.15);
}

.calibration-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* --- Vibration Lab --- */
.rumble-trigger-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.vibration-status-msg {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.hardware-specs-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hardware-specs-box h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.spec-item .lbl {
    color: var(--text-muted);
}

.spec-item .val {
    color: var(--text-main);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* --- Calibration Summary Bar --- */
.calibration-summary-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(20, 184, 166, 0.04);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.calibration-metrics-summary {
    flex: 1;
}

.calibration-metrics-summary h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cal-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.cal-summary-row .lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Tool Showcase Refinement --- */
.tool-showcase {
    background: rgba(11, 16, 32, 0.85);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 30px 70px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.02),
        inset 0 1px 0 rgba(255,255,255,0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* --- Medium screen: prevent 7-tab nav overflow --- */
@media (max-width: 1180px) {
    .nav-tab {
        font-size: 0.75rem;
        padding: 6px 8px;
        gap: 4px;
    }
    .nav-links {
        gap: 2px;
    }
    .logo {
        font-size: 1.1rem;
    }
}

/* --- Responsive Header Refinement --- */
@media (max-width: 768px) {
    .header-content {
        height: 64px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-action-area {
        width: 100%;
    }

    .dropdown-control {
        width: 100%;
        min-width: unset;
    }

    .analytics-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .calibration-summary-bar {
        flex-direction: column;
        text-align: center;
    }

    .cal-summary-row {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .tool-showcase {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .telemetry-grid-row {
        grid-template-columns: 1fr;
    }

    .health-card-main {
        flex-direction: column;
        text-align: center;
    }

    .health-badges-row {
        justify-content: center;
    }
}

/* ==========================================================================
   BLUEPRINT v5.0: PREMIUM CONTROLLER DIAGNOSTICS WORKSTATION STYLING
   ========================================================================== */

/* Header / Navigation styles */
.header {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-muted);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 24px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: auto;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.nav-tab {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s var(--ease-premium);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-main);
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.2);
}

.nav-tab.active {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Workstation Section & Container */
.workstation-section {
    padding: 28px 0 40px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-main) 100%);
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.workstation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--highlight) 100%);
    opacity: 0.8;
    z-index: 2;
}

.workstation-section::after {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.workstation-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== Hero Control Bar (Single Line) ===== */
.hero-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 20px;
    background: rgba(14, 165, 233, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 12px;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.hero-control-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hero-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.workstation-tabs-inline {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    padding: 3px;
}

.workstation-tabs-inline .tab-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
}

/* ===== Hero SEO Description Box ===== */
.hero-seo-box {
    margin-bottom: 20px;
    padding: 16px 22px;
    background: rgba(14, 165, 233, 0.03);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hero-seo-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-seo-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 6px 0;
    font-family: var(--font-outfit);
    letter-spacing: -0.01em;
    text-shadow: 0 0 12px var(--primary-glow);
}

.hero-seo-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 100%;
}

/* ===== Responsive: Hero Bar ===== */
@media (max-width: 900px) {
    .hero-control-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-bar-right {
        flex-wrap: wrap;
        gap: 8px;
    }
    .hero-bar-left {
        justify-content: center;
    }
    .hero-bar-right {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-seo-title {
        font-size: 0.95rem;
    }
    .hero-seo-desc {
        font-size: 0.75rem;
    }
    .workstation-tabs-inline .tab-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }
}

/* Tool Identity Banner */
.tool-identity-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px 24px;
    background: rgba(14, 165, 233, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 14px;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.tool-identity-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.tool-identity-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tool-live-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

@keyframes live-pulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    50% { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--highlight);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: live-pulse 2s ease-in-out infinite;
    display: block;
}

.live-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--highlight);
    font-family: var(--font-mono);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.tool-name-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
    font-family: var(--font-mono);
    opacity: 0.8;
}

.tool-main-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    font-family: var(--font-outfit);
}

.tool-main-title i {
    color: var(--primary);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.tool-main-title span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.tool-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.tool-identity-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.tool-connect-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 7px 14px;
    border-radius: 100px;
    animation: tool-hint-pulse 3s ease-in-out infinite;
}

@keyframes tool-hint-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tool-connect-hint i {
    animation: beat 1.5s ease-in-out infinite;
    font-size: 0.85rem;
}

.tool-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Old workstation-header kept for backward-compat if referenced elsewhere */
.workstation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-muted);
    padding-bottom: 16px;
}

.workstation-title-area h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 2px;
}

.workstation-title-area h2 span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.status-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.workstation-action-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dropdown-control {
    background: var(--bg-surface);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 220px;
    transition: all 0.2s var(--ease-premium);
}

.dropdown-control:hover, .dropdown-control:focus {
    border-color: var(--border-highlight);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.connection-status-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-muted);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.status-dot.disconnected {
    background-color: var(--danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-dot.connected {
    background-color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* Tab contents and triggers */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Desktop 3-Column Grid */
.workstation-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    align-items: start;
}

.workstation-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards Styles */
.workstation-card {
    background: rgba(18, 24, 38, 0.6);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-depth);
    transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium);
}

.workstation-card:hover {
    background-color: rgba(22, 30, 49, 0.7);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.workstation-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workstation-card .card-header h3 {
    font-size: 0.79rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Trigger depth cards */
.trigger-card {
    height: 110px;
}

.trigger-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.trigger-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    border-radius: 6px;
    transition: width 0.05s linear;
}

.trigger-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 8px;
    text-align: right;
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Stick coordinate cards */
.stick-card {
    height: 270px;
}

.stick-test-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.stick-card .canvas-wrapper {
    width: 150px;
    height: 150px;
    background: #04060c;
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.stick-card:hover .canvas-wrapper {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.1);
}

.stick-card canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.stick-stats-sub {
    width: 150px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stick-coord {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono);
    text-align: center;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    letter-spacing: 0.02em;
}

.stick-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stick-metrics span span {
    color: var(--text-main);
    font-weight: 600;
}

.health-card {
    height: 280px;
    align-items: center;
    background: radial-gradient(circle at bottom, rgba(56, 189, 248, 0.05) 0%, rgba(18, 24, 38, 0.65) 100%) !important;
}

.health-gauge-container {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-circle-svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4));
}

.health-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 9px;
}

.health-circle-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 9px;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s var(--ease-premium);
}

.health-score-value {
    position: absolute;
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.health-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.health-grade-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.score-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.score-badge.perfect {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.score-badge.normal {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}

.score-badge.poor {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.health-detail-metrics {
    width: 100%;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 0;
    border-bottom: 1px solid rgba(32, 45, 66, 0.6);
}

.val-highlight {
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-mono);
}

.visualizer-card {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    align-items: center;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, rgba(18, 24, 38, 0.65) 100%) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    position: relative;
}

.visualizer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
}

.workspace-stage {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
    border-radius: 8px;
    position: relative;
}

.workspace-stage::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    border-radius: 8px;
}

.workspace-svg-gamepad {
    max-width: 500px;
    width: 100%;
    height: auto;
    max-height: 420px;
    filter: drop-shadow(0 12px 40px rgba(56, 189, 248, 0.22));
    transition: filter 0.3s ease;
}

.controller-part.active, .dpad-part.active, .controller-trigger-fill {
    fill: var(--primary) !important;
    stroke: var(--primary) !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8)) drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
}

.active-inputs-bar {
    width: 100%;
    border-top: 1px solid var(--border-muted);
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

.inputs-bar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.active-inputs-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.btn-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    font-family: var(--font-mono);
    text-shadow: 0 0 6px var(--primary-glow);
}

.no-input {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-style: italic;
}

.drift-warning-card {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    margin-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Smart Diagnostics Card */
.smart-diagnostics-card {
    min-height: 130px;
}

.console-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 8px;
}

.drift-severity-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #04060c;
    border: 1px solid rgba(56, 189, 248, 0.12);
    padding: 14px 16px;
    border-radius: 8px;
    position: relative;
}

.drift-severity-inline::before {
    content: '>';
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: -4px;
}

.severity-tag {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #111827;
    color: var(--text-muted);
    white-space: nowrap;
    font-family: var(--font-mono);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drift-severity-inline[data-severity="none"] {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}
.drift-severity-inline[data-severity="none"] .severity-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.drift-severity-inline[data-severity="mild"] {
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.05);
}
.drift-severity-inline[data-severity="mild"] .severity-tag {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.2);
}

.drift-severity-inline[data-severity="moderate"] {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.05);
}
.drift-severity-inline[data-severity="moderate"] .severity-tag {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.drift-severity-inline[data-severity="severe"] {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.08);
}
.drift-severity-inline[data-severity="severe"] .severity-tag {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.explain-text {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-mono);
}

/* Bottom Row Workspace */
.workstation-row-bottom {
    grid-column: span 3;
    width: 100%;
    margin-top: 20px;
}

.bottom-workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Raw Performance Card */
.raw-data-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.raw-data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex: 1;
}

.metric-tile {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
}

.metric-tile:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background-color: rgba(56, 189, 248, 0.05);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.metric-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.metric-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Vibration Testing Card */
.vibration-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vibration-sliders-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.slider-group {
    display: flex;
    flex-direction: column;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.workstation-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: var(--border-muted);
    outline: none;
    border-radius: 3px;
}

.workstation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px var(--primary-glow);
}

.vibration-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

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

.ws-btn {
    padding: 8px 18px;
    font-size: 0.83rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s var(--ease-premium);
    letter-spacing: 0.01em;
}

.btn-primary-ws {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #0a0e1a;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-primary-ws:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary-ws:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary-ws:disabled {
    background: var(--border-muted);
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline-ws {
    background: transparent;
    border: 1px solid var(--border-muted);
    color: var(--text-main);
}

.btn-outline-ws:hover {
    background: var(--bg-surface);
    border-color: rgba(56, 189, 248, 0.3);
}

.btn-clear-trails {
    height: 38px;
    align-self: center;
}

/* Calibration Tab Specific Styles */
.calibration-buttons-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.slider-hint {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 3px;
}

.specs-card {
    height: 260px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-muted);
    padding-bottom: 8px;
    font-size: 0.78rem;
}

.spec-item .lbl {
    color: var(--text-muted);
}

.spec-item .val {
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-mono);
}

.calibration-footer-status {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.15);
    color: var(--text-muted);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Report Download Bar */
.report-download-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, rgba(20, 184, 166, 0.04) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 16px 24px;
    margin-top: 20px;
}

.report-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.report-info i {
    font-size: 1.6rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.report-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.report-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Guides Section Below Fold */
.guides-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-muted);
    padding: 80px 0;
}



.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-card {
    background: rgba(18, 24, 38, 0.6);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 30px 24px;
    transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium);
    cursor: default;
    box-shadow: var(--shadow-depth);
}

.guide-card:hover {
    background-color: rgba(22, 30, 49, 0.7);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.guide-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.15rem;
    color: var(--primary);
}

.guide-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.guide-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Footer style updates */
.global-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-muted);
    padding: 32px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 16px;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   TABLET LAYOUT RESPONSIVE (600px - 1023px)
   ========================================================================== */
@media (min-width: 600px) and (max-width: 1023px) {
    .workstation-section {
        align-items: flex-start;
        padding: 24px 0;
    }
    .workstation-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .center-col {
        grid-column: span 2;
        order: -1;
    }
    .workstation-row-bottom {
        grid-column: span 2;
    }
    .bottom-workspace-grid {
        grid-template-columns: 1fr 1fr;
    }
    .guides-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .section-title { font-size: 1.6rem; }
}

/* ==========================================================================
   MOBILE LAYOUT RESPONSIVE (Viewport width < 600px)
   ========================================================================== */
@media (max-width: 599px) {
    .workstation-section {
        align-items: flex-start;
        padding: 16px 0;
    }
    .workstation-container { padding: 0 16px; }
    .workstation-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .center-col { order: -1; }
    .workstation-title-area h2 { font-size: 1.15rem; }
    .bottom-workspace-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .raw-data-layout { flex-direction: column; }
    .raw-data-grid { grid-template-columns: 1fr 1fr; }
    .vibration-sliders-row { grid-template-columns: 1fr; }
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .section-title { font-size: 1.4rem; }
    .report-download-bar {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .report-info {
        flex-direction: column;
        gap: 8px;
    }
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }
    .header { height: auto; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 6px; }
}

/* ==========================================================================
   SEO CONTENT SECTION
   ========================================================================== */
.seo-section {
    background: var(--bg-main);
    border-top: 1px solid var(--border-muted);
    padding: 80px 0;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

.seo-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.seo-block h3:first-child {
    margin-top: 0;
}

.seo-block h3 i {
    color: var(--primary);
    font-size: 0.95rem;
    opacity: 0.85;
}

.seo-block p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
}

@media (max-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .seo-section { padding: 56px 0; }
}

/* ==========================================================================
   FAQ ACCORDION SECTION
   ========================================================================== */
.faq-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-muted);
    padding: 100px 0;
}

.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(18, 24, 38, 0.6);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-depth);
    transition: border-color 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(56, 189, 248, 0.25);
    background-color: rgba(22, 30, 49, 0.4);
}

.faq-item.open {
    border-color: rgba(56, 189, 248, 0.35);
    background-color: rgba(22, 30, 49, 0.5);
    box-shadow: var(--shadow-hover);
}

.faq-item.open::before {
    opacity: 1;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    cursor: pointer;
    gap: 20px;
    user-select: none;
}

.faq-num {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.faq-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.faq-item.open .faq-text {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s var(--ease-premium);
}

.faq-item:hover .faq-icon-wrapper {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.faq-item.open .faq-icon-wrapper {
    background: var(--primary);
    color: #0a0e1a;
    border-color: var(--primary);
    transform: rotate(45deg);
    box-shadow: 0 0 12px var(--primary-glow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-premium), padding 0.4s var(--ease-premium);
    padding: 0 32px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 32px 28px;
}

.faq-answer p {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

@media (max-width: 599px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-list {
        gap: 12px;
    }
    
    .faq-question {
        padding: 20px;
        gap: 12px;
    }
    
    .faq-num {
        font-size: 0.85rem;
    }
    
    .faq-text {
        font-size: 0.95rem;
    }
    
    .faq-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .faq-item.open .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-answer p {
        font-size: 0.88rem;
        padding-top: 16px;
    }
}

.text-teal {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

/* ==========================================================================
   LANDING PAGE AD-HOC DIAGNOSTIC SECTIONS
   ========================================================================== */

.stick-drift-section, .calibration-section, .polling-rate-section, .vibration-section, .tools-section {
    position: relative;
    border-top: 1px solid var(--border-muted);
}

/* Radar Visual for Stick Drift */
.drift-showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-muted);
    position: relative;
    overflow: hidden;
}

.radar-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.15);
    position: relative;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.05);
    background: 
        radial-gradient(circle, transparent 30%, rgba(56, 189, 248, 0.03) 30%, rgba(56, 189, 248, 0.03) 31%, transparent 31%, transparent 60%, rgba(56, 189, 248, 0.03) 60%, rgba(56, 189, 248, 0.03) 61%, transparent 61%);
}

.radar-center-cross {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.radar-center-cross::before, .radar-center-cross::after {
    content: '';
    position: absolute;
    background: rgba(56, 189, 248, 0.15);
}

.radar-center-cross::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.radar-center-cross::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.radar-line {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), transparent);
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: radar-sweep 4s linear infinite;
}

.radar-sweep-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    top: 35%;
    left: 65%;
    animation: radar-pulse 2s infinite ease-in-out;
}

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes radar-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Info block details */
.drift-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-block-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-muted);
    padding: 10px 14px;
    border-radius: 8px;
}

.info-block-item h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
    min-width: 100px;
}

.info-block-item p {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.badge {
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Latency Mock Stage */
.latency-mock-stage {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 140px;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-muted);
    padding: 16px;
    gap: 12px;
}

.latency-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    padding: 0 10px;
    gap: 6px;
}

.latency-bar {
    flex: 1;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
    animation: bar-dance 1.5s ease-in-out infinite alternate;
}

.latency-bar:nth-child(2) { animation-delay: 0.2s; }
.latency-bar:nth-child(3) { animation-delay: 0.4s; }
.latency-bar:nth-child(4) { animation-delay: 0.1s; }
.latency-bar:nth-child(5) { animation-delay: 0.3s; }
.latency-bar:nth-child(6) { animation-delay: 0.5s; }
.latency-bar:nth-child(7) { animation-delay: 0.2s; }
.latency-bar:nth-child(8) { animation-delay: 0.4s; }

@keyframes bar-dance {
    0% { transform: scaleY(0.7); }
    100% { transform: scaleY(1.1); }
}

.latency-stage-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Header Links i styles */
.nav-links a i {
    font-size: 0.82rem;
    transition: transform 0.2s ease;
    color: inherit;
}

.nav-links a:hover i {
    transform: scale(1.15);
    color: var(--primary);
}

/* Workstation Tabs Pill Switcher */
.workstation-tabs {
    display: flex !important;
    background: var(--bg-darker);
    border: 1px solid var(--border-muted);
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
    width: fit-content;
    margin-bottom: 24px;
}

.workstation-tabs .tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s var(--ease-premium);
    display: flex;
    align-items: center;
    gap: 6px;
}

.workstation-tabs .tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.workstation-tabs .tab-btn.active {
    color: var(--text-main) !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Calibration Page Layout */
.workspace-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .workspace-grid-two {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PREMIUM HARDWARE-LAB REDESIGN (v6.0)
   ========================================================================== */

/* Double-layered Depth Cards */
.workstation-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-muted) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.03), 
        0 2px 8px rgba(0, 0, 0, 0.02), 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.5) !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium) !important;
}

.workstation-card:hover {
    border-color: var(--border-highlight) !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.06), 
        0 1px 3px rgba(0, 0, 0, 0.02), 
        0 0 15px rgba(14, 165, 233, 0.05) !important;
    transform: translateY(-2px);
}

/* Card Header Status Indicator LEDs */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 4px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.workstation-card:hover .card-led {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    border-color: var(--primary);
}

.card-led.pulse {
    animation: led-pulse 2s infinite alternate;
}

@keyframes led-pulse {
    0% { opacity: 0.4; box-shadow: 0 0 2px var(--primary-glow); }
    100% { opacity: 1; box-shadow: 0 0 10px var(--primary-glow); }
}

/* Overall Health Gauge Tick Marks */
.health-gauge-outer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.health-gauge-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-circle-svg {
    transform: rotate(-90deg);
}

.health-circle-outer-ticks {
    transform-origin: center;
}

.health-circle-bg {
    fill: none;
    stroke: rgba(15, 23, 42, 0.03);
    stroke-width: 6;
}

.health-circle-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.health-score-value {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    text-shadow: none;
}

/* Premium Health Metrics Rows */
.health-detail-metrics {
    margin-top: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-row-premium {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-bar-bg {
    height: 4px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

/* Blueprint Stage Corners and Axes Ticks */
.workspace-stage {
    position: relative;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(56, 189, 248, 0.1) 0%, rgba(99, 50, 180, 0.06) 40%, rgba(5, 8, 17, 0.95) 100%),
        linear-gradient(160deg, rgba(14, 30, 55, 0.98) 0%, rgba(5, 8, 17, 1) 100%) !important;
    border-radius: 12px;
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(56, 189, 248, 0.05),
        0 0 30px rgba(56, 189, 248, 0.08);
}

.stage-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1.5px solid rgba(14, 165, 233, 0.3);
    pointer-events: none;
}

.stage-corner.top-left { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.stage-corner.top-right { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.stage-corner.bottom-left { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.stage-corner.bottom-right { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.stage-axis-tick {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: rgba(14, 165, 233, 0.4);
    pointer-events: none;
}

.stage-x-tick { bottom: 6px; transform: translateX(-50%); }
.stage-y-tick { left: 6px; transform: translateY(-50%); }

/* Blueprint Callout Annotations */
.schematic-callout {
    position: absolute;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.workspace-stage:hover .schematic-callout {
    opacity: 0.95;
}

.callout-line {
    background: rgba(14, 165, 233, 0.25);
}

.callout-text {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.08em;
    background: rgba(5, 10, 25, 0.85);
    backdrop-filter: blur(6px);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-shadow: 0 0 8px var(--primary-glow);
}

.lt-callout {
    top: 50px;
    left: 20%;
    align-items: flex-start;
}

.lt-callout .callout-line {
    width: 1px;
    height: 40px;
    margin-left: 20px;
    transform: rotate(30deg);
    transform-origin: top left;
}

.rt-callout {
    top: 50px;
    right: 20%;
    align-items: flex-end;
}

.rt-callout .callout-line {
    width: 1px;
    height: 40px;
    margin-right: 20px;
    transform: rotate(-30deg);
    transform-origin: top right;
}

.lstick-callout {
    bottom: 80px;
    left: 15%;
    align-items: flex-start;
}

.lstick-callout .callout-line {
    width: 1px;
    height: 35px;
    margin-left: 10px;
    transform: rotate(-45deg);
    transform-origin: bottom left;
}

.rstick-callout {
    bottom: 80px;
    right: 15%;
    align-items: flex-end;
}

.rstick-callout .callout-line {
    width: 1px;
    height: 35px;
    margin-right: 10px;
    transform: rotate(45deg);
    transform-origin: bottom right;
}

/* Smart Diagnostics High-Tech Terminal */
.console-terminal {
    background: rgba(4, 8, 20, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.05);
}

.terminal-header {
    background: rgba(10, 16, 35, 0.98);
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 6px;
    letter-spacing: 0.02em;
}

.terminal-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drift-meters-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drift-meter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.meter-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    width: 65px;
    letter-spacing: 0.02em;
}

.meter-track {
    flex: 1;
    height: 5px;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--primary-glow);
    transition: width 0.15s ease, background 0.15s ease;
}

.meter-val-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-main);
    width: 35px;
    text-align: right;
}

.drift-severity-inline {
    margin-top: 4px;
    background: rgba(14, 165, 233, 0.03) !important;
    border: 1px solid var(--border-muted) !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.drift-severity-inline::before {
    content: '>' !important;
    color: var(--primary) !important;
    font-family: var(--font-mono) !important;
    font-weight: 900 !important;
    font-size: 0.75rem !important;
    margin-top: 1px;
}

.explain-text {
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    color: var(--text-muted) !important;
    line-height: 1.4 !important;
}

/* Raw Performance Metric Tiles Led */
.metric-tile {
    position: relative;
    padding-top: 18px !important;
}

.tile-led {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    border: 0.5px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 2px rgba(14, 165, 233, 0.1);
}

.metric-tile:hover .tile-led {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}

/* Vibration Animated Wave Visualizer */
.vibration-wave-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    margin-left: 10px;
}

.wave-bar {
    width: 2px;
    height: 4px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 1px;
    transition: background 0.3s ease;
}

.vibration-wave-container.active .wave-bar {
    background: var(--primary);
    box-shadow: 0 0 4px var(--primary-glow);
    animation: rumble-wave 0.8s ease-in-out infinite alternate;
}

.vibration-wave-container.active .wave-bar:nth-child(1) { animation-delay: 0.1s; height: 18px; }
.vibration-wave-container.active .wave-bar:nth-child(2) { animation-delay: 0.3s; height: 24px; }
.vibration-wave-container.active .wave-bar:nth-child(3) { animation-delay: 0.2s; height: 12px; }
.vibration-wave-container.active .wave-bar:nth-child(4) { animation-delay: 0.4s; height: 20px; }
.vibration-wave-container.active .wave-bar:nth-child(5) { animation-delay: 0.15s; height: 14px; }
.vibration-wave-container.active .wave-bar:nth-child(6) { animation-delay: 0.35s; height: 22px; }
.vibration-wave-container.active .wave-bar:nth-child(7) { animation-delay: 0.25s; height: 10px; }
.vibration-wave-container.active .wave-bar:nth-child(8) { animation-delay: 0.45s; height: 16px; }

@keyframes rumble-wave {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.3); }
}

/* Premium Tech Footer Widget */
.footer-status-widget {
    background: #ffffff;
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 350px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-led-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: led-glow-green 2s infinite alternate;
}

@keyframes led-glow-green {
    0% { opacity: 0.5; box-shadow: 0 0 4px rgba(16, 185, 129, 0.2); }
    100% { opacity: 1; box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.04em;
}

.telemetry-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.telemetry-title {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.telemetry-val {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: none;
}

/* ==========================================================================
   CARD ACCENT SYSTEM — Each card has its own distinct color identity
   ========================================================================== */

/* Top accent bar per card type */
.trigger-card::before,
.stick-card::before,
.health-card::before,
.diagnostics-card::before,
.perf-card::before,
.vibration-card::before,
.calibration-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.trigger-left::before,
.trigger-right::before  { background: linear-gradient(90deg, var(--card-accent-trigger), rgba(239,68,68,0)); }
.stick-left::before,
.stick-right::before    { background: linear-gradient(90deg, var(--card-accent-stick), rgba(139,92,246,0)); }
.health-card::before    { background: linear-gradient(90deg, var(--card-accent-health), rgba(16,185,129,0)); }
.diagnostics-card::before { background: linear-gradient(90deg, var(--card-accent-diag), rgba(14,165,233,0)); }
.perf-card::before      { background: linear-gradient(90deg, var(--card-accent-perf), rgba(245,158,11,0)); }
.vibration-card::before { background: linear-gradient(90deg, var(--card-accent-vibrate), rgba(236,72,153,0)); }
.calibration-card::before { background: linear-gradient(90deg, var(--secondary), rgba(139,92,246,0)); }

/* Trigger Card — Red accent */
.trigger-card { border-color: rgba(239, 68, 68, 0.20) !important; }
.trigger-card:hover { border-color: rgba(239, 68, 68, 0.45) !important; }
.trigger-bar-fill { background: var(--card-accent-trigger) !important; box-shadow: 0 0 8px rgba(239,68,68,0.4); }

/* Stick Card — Purple accent */
.stick-card { border-color: rgba(139, 92, 246, 0.20) !important; }
.stick-card:hover { border-color: rgba(139, 92, 246, 0.45) !important; }

/* Health Card — Green accent */
.health-card { border-color: rgba(16, 185, 129, 0.20) !important; }
.health-card:hover { border-color: rgba(16, 185, 129, 0.45) !important; }

/* Diagnostics Card — Blue accent */
.diagnostics-card { border-color: rgba(14, 165, 233, 0.20) !important; }
.diagnostics-card:hover { border-color: rgba(14, 165, 233, 0.45) !important; }

/* Performance Card — Amber accent */
.perf-card { border-color: rgba(245, 158, 11, 0.20) !important; }
.perf-card:hover { border-color: rgba(245, 158, 11, 0.45) !important; }

/* Vibration Card — Pink accent */
.vibration-card { border-color: rgba(236, 72, 153, 0.20) !important; }
.vibration-card:hover { border-color: rgba(236, 72, 153, 0.45) !important; }

/* ==========================================================================
   LIGHT THEME OVERRIDES — Component-level
   ========================================================================== */

/* Navbar */
body.light-theme .header {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .header::before {
    opacity: 0.4;
}

body.light-theme .nav-links a {
    color: #475569;
}

body.light-theme .nav-links a:hover {
    color: #0f172a;
    background: rgba(14, 165, 233, 0.06);
}

body.light-theme .logo {
    color: #0f172a;
}

body.light-theme .section-title {
    color: #0f172a;
    text-shadow: none;
}

/* Workstation Header */
body.light-theme .workstation-header {
    border-bottom-color: #e2e8f0;
}

body.light-theme .workstation-title-area h2 {
    color: #0f172a;
}

body.light-theme .status-subtitle {
    color: #64748b;
}

/* Workstation Cards */
body.light-theme .workstation-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.02) !important;
}

body.light-theme .workstation-card .card-header h3 {
    color: #0f172a;
}

body.light-theme .workstation-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.03) !important;
}

/* Controller Visualizer Stage */
body.light-theme .workspace-stage {
    background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%) !important;
    border-color: #e2e8f0 !important;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02) !important;
}

body.light-theme .callout-text {
    background: rgba(255,255,255,0.95);
    border-color: #e2e8f0;
    color: #0ea5e9;
}

/* Health gauge */
body.light-theme .health-score-value {
    color: #0f172a;
    text-shadow: none;
}

body.light-theme .health-circle-bg {
    stroke: rgba(15, 23, 42, 0.06);
}

body.light-theme .metric-bar-bg {
    background: rgba(15, 23, 42, 0.06);
}

/* Smart Diagnostics Terminal */
body.light-theme .console-terminal {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .terminal-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

body.light-theme .meter-track {
    background: rgba(15, 23, 42, 0.06);
}

body.light-theme .meter-val-text {
    color: #0f172a;
}

body.light-theme .drift-severity-inline {
    background: rgba(14, 165, 233, 0.04) !important;
    border-color: #e2e8f0 !important;
}

/* Workstation tabs */
body.light-theme .workstation-tabs {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

body.light-theme .workstation-tabs .tab-btn {
    color: #64748b;
}

body.light-theme .workstation-tabs .tab-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Dropdown */
body.light-theme .dropdown-control {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}

body.light-theme .connection-status-chip {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

/* Footer */
body.light-theme .global-footer {
    background: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
    color: #0f172a;
}

body.light-theme .footer-desc {
    color: #64748b;
}

body.light-theme .footer-status-widget {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .footer-bottom {
    border-top-color: #e2e8f0;
    color: #64748b;
}

body.light-theme .footer-col h4 {
    color: #0f172a;
}

body.light-theme .footer-col a {
    color: #64748b;
}

body.light-theme .footer-col a:hover {
    color: #0ea5e9;
}

/* Sections alternating backgrounds */
body.light-theme .section {
    background-color: #ffffff;
}

body.light-theme .bg-darker,
body.light-theme .seo-section,
body.light-theme .guide-section,
body.light-theme .faq-section {
    background-color: #f8fafc;
}

body.light-theme .section-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.light-theme .section-subtitle {
    color: #64748b;
}

/* FAQ Light */
body.light-theme .faq-item {
    border-color: #e2e8f0;
    background: #ffffff;
}

body.light-theme .faq-question {
    color: #0f172a;
}

body.light-theme .faq-answer {
    color: #64748b;
}

/* Guide cards */
body.light-theme .guide-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .guide-card h3 {
    color: #0f172a;
}

/* Workstation slider */
body.light-theme .workstation-slider {
    background: #e2e8f0;
}

body.light-theme .slider-hint {
    color: #94a3b8;
}

body.light-theme .health-grade-badge {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

/* Tool Identity Banner Light Theme */
body.light-theme .tool-identity-banner {
    background: rgba(14, 165, 233, 0.03);
    border-color: rgba(14, 165, 233, 0.18);
}

body.light-theme .tool-main-title {
    color: #0f172a;
}

body.light-theme .tool-sub {
    color: #64748b;
}

body.light-theme .tool-connect-hint {
    background: rgba(14, 165, 233, 0.07);
    border-color: rgba(14, 165, 233, 0.25);
    color: #0ea5e9;
}

body.light-theme .workstation-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

/* Tool Identity Banner Responsive */
@media (max-width: 900px) {
    .tool-identity-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tool-identity-right {
        align-items: flex-start;
        width: 100%;
    }

    .tool-action-row {
        flex-wrap: wrap;
        width: 100%;
    }

    .dropdown-control {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 600px) {
    .tool-main-title {
        font-size: 1.3rem;
    }

    .tool-identity-left {
        gap: 12px;
    }

    .tool-connect-hint {
        font-size: 0.76rem;
        padding: 6px 12px;
    }
}

