:root {
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Theme Colors (HSL based for rich blending) */
    --bg-dark: #050811;
    --bg-dark-rgb: 5, 8, 17;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    
    /* Neon Accents */
    --cyan: #00f0ff;
    --cyan-rgb: 0, 240, 255;
    --pink: #ff007f;
    --pink-rgb: 255, 0, 127;
    --green: #00ff66;
    --green-rgb: 0, 255, 102;
    --gold: #ffc800;
    --gold-rgb: 255, 200, 0;
    
    --purple-glow: rgba(138, 43, 226, 0.4);
    --yellow-glow: #ffe600;

    /* Glassmorphism Constants */
    --glass-bg: rgba(10, 16, 32, 0.6);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Color Blueprint Overrides for Theme Changes */
body.theme-cyber {
    --cyan: #ff007f;
    --cyan-rgb: 255, 0, 127;
    --pink: #00f0ff;
    --pink-rgb: 0, 240, 255;
}

body.theme-aurora {
    --cyan: #00ff66;
    --cyan-rgb: 0, 255, 102;
    --pink: #d400ff;
    --pink-rgb: 212, 0, 255;
}

body.theme-monochrome {
    --cyan: #ffd700;
    --cyan-rgb: 255, 215, 0;
    --pink: #ffffff;
    --pink-rgb: 255, 255, 255;
}

/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Interactive 3D Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
}

#app-wrapper {
    position: relative;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to Three.js canvas unless hitting UI elements */
}

/* Force pointer events on interactive UI components */
.navbar, .container, .btn, .glass-panel, input, button, footer, a, .mobile-toggle {
    pointer-events: auto;
}

/* Google Fonts & Custom Classes */
.font-orbitron {
    font-family: var(--font-heading);
}

.text-cyan { color: var(--cyan); text-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.5); }
.text-pink { color: var(--pink); text-shadow: 0 0 10px rgba(var(--pink-rgb), 0.5); }
.text-purple { color: #8a2be2; text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); }
.text-green { color: var(--green); text-shadow: 0 0 8px rgba(var(--green-rgb), 0.4); }
.text-muted { color: var(--text-muted); }

/* Grid Line Background Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(var(--cyan-rgb), 0.25);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
}

.section-padding {
    padding: 120px 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(var(--cyan-rgb), 0.4);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    color: #000;
    box-shadow: 0 4px 20px rgba(var(--cyan-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--cyan-rgb), 0.5), 0 0 15px rgba(var(--pink-rgb), 0.4);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(var(--cyan-rgb), 0.2);
    transform: translateY(-2px);
}

.glow-btn {
    position: relative;
    overflow: hidden;
}

/* UI Loader Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    text-align: center;
    width: 320px;
}

.loader-logo {
    margin-bottom: 30px;
}

.brain-svg {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    display: block;
}

.brain-svg .node {
    fill: var(--pink);
    filter: drop-shadow(0 0 4px var(--pink));
}

.brain-svg .core-node {
    fill: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan));
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 8px var(--cyan)); }
}

.pulse-node {
    transform-origin: center;
    animation: pulse-scale 2s infinite ease-in-out;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: 6px;
    font-weight: 900;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

.loader-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--cyan), var(--pink));
    box-shadow: 0 0 10px var(--cyan);
    transition: width 0.1s linear;
}

.loader-percentage {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--cyan);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(var(--bg-dark-rgb), 0.65);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 100;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    border-radius: 4px;
    transform: rotate(45deg);
    position: relative;
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.5);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 2px;
}

.logo-text .dot {
    color: var(--pink);
    text-shadow: 0 0 8px var(--pink);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--cyan), var(--pink));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-console-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge-container {
    margin-bottom: 24px;
}

.neon-badge {
    background: rgba(var(--cyan-rgb), 0.08);
    border: 1px solid rgba(var(--cyan-rgb), 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(var(--cyan-rgb), 0.08);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.6); }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px 2px rgba(var(--cyan-rgb), 0.6); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 20%, var(--pink) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(var(--cyan-rgb), 0.15));
}

.hero-description {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Glass HUD panel */
.hud-panel {
    width: 100%;
    padding: 24px;
    position: relative;
    animation: float-panel 6s ease-in-out infinite;
}

@keyframes float-panel {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.pulse-dot.green {
    background-color: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse-dot-green 1.5s infinite alternate;
}

@keyframes pulse-dot-green {
    0% { opacity: 0.5; }
    100% { opacity: 1; box-shadow: 0 0 8px 3px var(--green); }
}

.hud-status-text {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
}

.hud-version {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
}

.metric-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 14px;
}

.metric-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
}

.metric-unit {
    font-size: 14px;
    margin-left: 2px;
}

/* Scanner Area Graphic */
.hud-scan-area {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--cyan-rgb), 0.15);
    border-radius: 8px;
    height: 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--cyan), transparent);
    box-shadow: 0 0 8px var(--cyan);
    top: 0;
    left: 0;
    animation: scan-vertical 3s linear infinite;
}

@keyframes scan-vertical {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.hud-chart {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 60px;
}

.chart-path-1 {
    animation: draw-chart 10s infinite linear;
}

.chart-path-2 {
    animation: draw-chart 15s infinite linear;
}

@keyframes draw-chart {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

.hud-coordinates {
    font-size: 9px;
    color: rgba(var(--cyan-rgb), 0.7);
    letter-spacing: 0.5px;
    z-index: 2;
}

.hud-system-log {
    font-family: monospace;
    font-size: 10px;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scroll mouse indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 2px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 1px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.5s infinite;
}

@keyframes scroll-wheel-anim {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================
   Interactive Neuro-AI Sandbox Styling
   ========================================== */
.edu-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.edu-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.01);
    flex-wrap: wrap;
    gap: 16px;
}

.edu-tabs {
    display: flex;
    gap: 8px;
}

.edu-tab {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.edu-tab:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
}

.edu-tab.active {
    color: #000;
    background: var(--cyan);
    box-shadow: 0 0 15px rgba(var(--cyan-rgb), 0.4);
    border-color: var(--cyan);
}

.edu-settings {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-icon:hover, .btn-icon[aria-pressed="true"] {
    color: var(--text-light);
    border-color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.05);
}

.btn-icon[aria-pressed="true"] {
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.2);
}

.edu-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 11px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edu-select:hover, .edu-select:focus {
    color: var(--text-light);
    border-color: var(--cyan);
}

.edu-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 520px;
}

/* Viewport panel container */
.edu-viewport-container {
    position: relative;
    border-right: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

#edu-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Fallback visible states */
.hidden-fallback {
    display: none;
    z-index: 2;
    position: relative;
    width: 100%;
    height: 100%;
    background: #050811;
}

.webgl-failed .hidden-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
}

.webgl-failed #edu-canvas-container {
    display: none;
}

.fallback-content {
    text-align: center;
    max-width: 320px;
    padding: 24px;
}

.fallback-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 16px;
}

#fallback-svg {
    width: 100%;
    max-height: 180px;
    margin: 20px 0;
}

.fallback-region {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.fallback-region:hover {
    opacity: 0.8;
}

.fallback-legend {
    font-size: 10px;
    color: var(--text-muted);
}

/* Overlay HUD info card */
.viewport-hud-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 5;
    pointer-events: none;
}

.hud-card {
    background: rgba(8, 12, 24, 0.85);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--cyan);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 16px;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hud-card h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    margin-bottom: 6px;
}

.hud-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.hud-card div {
    font-size: 10px;
    letter-spacing: 1px;
}

/* Control Panel Section */
.edu-control-panel {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
}

.edu-panel-section {
    display: none;
    animation: fade-in 0.4s ease forwards;
}

.edu-panel-section.active {
    display: block;
}

.panel-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--cyan);
}

.panel-section-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.edu-note-box {
    margin-top: 30px;
    background: rgba(var(--cyan-rgb), 0.03);
    border: 1px dashed rgba(var(--cyan-rgb), 0.2);
    border-radius: 8px;
    padding: 14px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.edu-note-box strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Lobe selectors */
.lobe-selector-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lobe-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 14px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

.color-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--lobe-col);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    transition: width 0.2s ease;
}

.lobe-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lobe-col);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
}

.lobe-btn.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--lobe-col);
}

.lobe-btn.active .color-indicator {
    width: 8px;
}

.lobe-role {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

/* ANN Settings Adjusters */
.ann-controls-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ann-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 16px;
}

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

.lbl-main {
    font-weight: 600;
    font-size: 14px;
}

.lbl-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.control-value-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-step {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-step:hover {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.3);
}

.step-value {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

.edu-select-small {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 140px;
}

.edu-select-small:hover {
    border-color: var(--cyan);
}

/* ML Training Settings styling */
.training-grid-params {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.param-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.param-label {
    font-size: 12px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.edu-select-full {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.edu-select-full:hover {
    border-color: var(--cyan);
}

.param-row-split {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.param-split-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neon-slider-thin {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

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

.lr-warning {
    font-size: 10px;
    font-family: var(--font-body);
    margin-top: 4px;
    display: block;
    animation: fade-in 0.3s ease;
}

.training-actions-row {
    display: flex;
    gap: 12px;
}

.training-actions-row .btn {
    flex: 1;
}

.training-diagnostics {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.diag-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

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

.diag-row span:last-child {
    font-weight: 600;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

/* Reduced Motion Override class */
.reduced-motion * {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.course-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Floating custom dynamic back glows */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.course-card[data-theme="cyber"] .card-glow {
    background: radial-gradient(circle, rgba(var(--pink-rgb), 0.15) 0%, transparent 70%);
}

.course-card[data-theme="aurora"] .card-glow {
    background: radial-gradient(circle, rgba(var(--green-rgb), 0.15) 0%, transparent 70%);
}

.course-card[data-theme="monochrome"] .card-glow {
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.15) 0%, transparent 70%);
}

.course-card:hover .card-glow {
    width: 250px;
    height: 250px;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--cyan-rgb), 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--cyan-rgb), 0.1);
}

.course-card[data-theme="cyber"]:hover {
    border-color: rgba(var(--pink-rgb), 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--pink-rgb), 0.1);
}

.course-card[data-theme="aurora"]:hover {
    border-color: rgba(var(--green-rgb), 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--green-rgb), 0.1);
}

.course-card[data-theme="monochrome"]:hover {
    border-color: rgba(var(--gold-rgb), 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--gold-rgb), 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    z-index: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.cyan-bg { background: linear-gradient(135deg, #00c3ff, #00f0ff); box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3); }
.pink-bg { background: linear-gradient(135deg, #ff007f, #ff00ff); box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3); }
.green-bg { background: linear-gradient(135deg, #00b03e, #00ff66); box-shadow: 0 4px 15px rgba(0, 255, 102, 0.3); }
.gold-bg { background: linear-gradient(135deg, #ff9900, #ffc800); box-shadow: 0 4px 15px rgba(255, 200, 0, 0.3); }

.card-duration {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 30px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
    z-index: 1;
}

.card-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
    z-index: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    z-index: 1;
}

.card-difficulty {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--pink);
}

.course-card[data-theme="cyber"] .card-difficulty { color: var(--pink); }
.course-card[data-theme="neon"] .card-difficulty { color: var(--cyan); }
.course-card[data-theme="aurora"] .card-difficulty { color: var(--green); }
.course-card[data-theme="monochrome"] .card-difficulty { color: var(--gold); }

.card-link {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.course-card:hover .card-link svg {
    transform: translateX(4px);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 60px;
    align-items: center;
}

.stats-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.stat-highlight-item {
    border-left: 2px solid var(--cyan);
    padding-left: 20px;
}

.highlight-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.highlight-lbl {
    font-size: 13px;
    color: var(--text-muted);
}

.telemetry-box {
    padding: 24px;
}

.telemetry-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.active-pulse {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
}

.telemetry-chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.main-telemetry-svg {
    width: 100%;
    height: auto;
    display: block;
}

.telemetry-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-chart 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-telemetry-node {
    animation: pulse-node-scale 2s infinite alternate;
    transform-origin: center;
}

@keyframes pulse-node-scale {
    0% { transform: scale(0.8); fill: var(--cyan); }
    100% { transform: scale(1.2); fill: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); }
}

.telemetry-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* Retro Newsletter Console Box */
.console-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.console-titlebar {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.c-dot.red { background-color: #ff5f56; }
.c-dot.yellow { background-color: #ffbd2e; }
.c-dot.green { background-color: #27c93f; }

.console-title-text {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.console-icon svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.console-body {
    background: rgba(0, 0, 0, 0.45);
    padding: 24px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.8;
}

.console-text {
    margin-bottom: 8px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.terminal-prompt {
    color: var(--cyan);
}

.input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.terminal-input {
    background: none;
    border: none;
    color: var(--text-light);
    font-family: monospace;
    font-size: 13px;
    width: 100%;
    outline: none;
}

/* Custom terminal prompt blinking cursor */
.cursor {
    width: 8px;
    height: 15px;
    background-color: var(--cyan);
    display: inline-block;
    animation: blink 1s step-end infinite;
    position: absolute;
    pointer-events: none;
}

@keyframes blink {
    50% { opacity: 0; }
}

.terminal-submit-btn {
    background: none;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-submit-btn:hover {
    background: rgba(var(--cyan-rgb), 0.1);
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.4);
}

.console-response {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: 16px;
    animation: fade-in 0.5s ease forwards;
}

.hidden {
    display: none;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* High-Tech Footer styling */
.footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(var(--bg-dark-rgb), 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.83fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 30px;
}

.status-pulse-container {
    display: flex;
    align-items: center;
}

.footer-status-text {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-list a:hover {
    color: var(--cyan);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    font-size: 12px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.3);
    transform: translateY(-2px);
}

.social-links a svg {
    width: 16px;
    height: 16px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .hud-panel {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .edu-main-grid {
        grid-template-columns: 1fr;
    }

    .edu-viewport-container {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        min-height: 380px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 767px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 42px;
    }

    .navbar {
        padding: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(var(--bg-dark-rgb), 0.95);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }

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

    .edu-top-bar {
        padding: 12px;
        justify-content: center;
    }

    .edu-tabs {
        width: 100%;
        flex-direction: column;
        gap: 6px;
    }

    .edu-tab {
        width: 100%;
        justify-content: center;
    }

    .edu-settings {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}
