/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Cyberpunk/Astro-Future Theme)
   ========================================================================== */
:root {
    --bg-dark: #05050d;
    --bg-dark-rgb: 5, 5, 13;
    --panel-bg: rgba(10, 8, 28, 0.65);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-hover: rgba(0, 242, 254, 0.3);
    
    /* Neon Colors */
    --color-cyan: #00f2fe;
    --color-cyan-rgb: 0, 242, 254;
    --color-purple: #7f00ff;
    --color-purple-rgb: 127, 0, 255;
    --color-magenta: #ff007f;
    --color-magenta-rgb: 255, 0, 127;
    --color-orange: #ff9f43;
    --color-green: #2ecc71;
    
    /* Typography */
    --font-heading: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Shadows & Glows */
    --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.45);
    --glow-purple: 0 0 15px rgba(127, 0, 255, 0.45);
    --glow-magenta: 0 0 15px rgba(255, 0, 127, 0.45);
    --glow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   GLOBAL STYLES & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* ==========================================================================
   BACKGROUND VISUAL EFFECTS
   ========================================================================== */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.75;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 5s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    opacity: 0.8;
}

/* Scanline visual sweep */
.cyber-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 96%, rgba(0, 242, 254, 0.05) 98%, transparent 100%);
    animation: scanning 12s linear infinite;
}

@keyframes scanning {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ==========================================================================
   BOOT UP SCREEN (Intro animation)
   ========================================================================== */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030308;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.boot-overlay.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.boot-content {
    width: 600px;
    max-width: 90vw;
    background: rgba(10, 8, 20, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--color-cyan);
    text-shadow: var(--glow-cyan);
    margin-bottom: 20px;
    position: relative;
}

.boot-terminal-output {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 15px;
    height: 180px;
    overflow-y: auto;
    text-align: left;
    font-family: var(--font-code);
    color: #a0aec0;
    margin-bottom: 25px;
    font-size: 12px;
}

.boot-terminal-output p {
    margin-bottom: 6px;
    opacity: 0;
    animation: showLog 0.2s forwards;
}

@keyframes showLog {
    to { opacity: 1; }
}

.boot-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.boot-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
    box-shadow: var(--glow-cyan);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   APP STRUCTURE (Grid Dashboard)
   ========================================================================== */
.dashboard-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 60px calc(100vh - 60px);
    width: 100vw;
    height: 100vh;
    animation: screenReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes screenReveal {
    0% { opacity: 0; filter: blur(10px); }
    100% { opacity: 1; filter: blur(0); }
}

.col-span-12 { grid-column: span 12; }
.col-span-9 { grid-column: span 9; }
.col-span-3 { grid-column: span 3; }

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.main-header {
    background: rgba(10, 8, 28, 0.85);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
}

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

.pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-cyan);
    border-radius: 50%;
    animation: radarPulse 1.5s infinite linear;
}

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

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--color-cyan);
    -webkit-text-fill-color: var(--color-cyan);
    text-shadow: 0 0 5px rgba(0, 242, 254, 0.3);
    margin-left: 8px;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
    color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
}

.system-status {
    display: flex;
    gap: 20px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.status-label {
    font-size: 0.65rem;
    color: #64748b;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.status-val {
    font-family: var(--font-code);
    font-weight: 600;
}

.text-cyan { color: var(--color-cyan); text-shadow: 0 0 8px rgba(0, 242, 254, 0.3); }
.text-purple { color: var(--color-purple); text-shadow: 0 0 8px rgba(127, 0, 255, 0.3); }
.text-magenta { color: var(--color-magenta); text-shadow: 0 0 8px rgba(255, 0, 127, 0.3); }
.text-orange { color: var(--color-orange); }
.text-green { color: var(--color-green); }

/* ==========================================================================
   MAIN WORK AREA
   ========================================================================== */
.main-content {
    position: relative;
    border-right: 1px solid var(--panel-border);
    background: rgba(3, 3, 10, 0.4);
    overflow: hidden;
}

.tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

.tab-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 2;
}

/* ==========================================================================
   TAB 1: PHYSICS SANDBOX CANVAS
   ========================================================================== */
.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: crosshair;
}

#simulation-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hud-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    pointer-events: none;
}

.hud-stat {
    background: rgba(5, 5, 15, 0.75);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 11px;
}

.hud-lbl {
    color: #64748b;
}

.hud-bottom-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    pointer-events: none;
}

.canvas-mode-display {
    background: rgba(5, 5, 15, 0.75);
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--color-cyan);
    animation: subtlePulse 2s infinite ease-in-out;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 10px rgba(0, 242, 254, 0.05); }
    50% { opacity: 1; box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); }
}

.canvas-cursor-tip {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.75rem;
    color: #64748b;
    pointer-events: none;
    background: rgba(5, 5, 15, 0.7);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--panel-border);
}

/* ==========================================================================
   TAB 2: TELEMETRY & CHARTS
   ========================================================================== */
.telemetry-dashboard {
    padding: 24px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.telemetry-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.telemetry-row.columns-2 > * {
    flex: 1;
}

.glass-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--glow-card);
    backdrop-filter: blur(16px);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.chart-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}

.card-tag {
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 242, 254, 0.15);
}

.canvas-chart-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
}

.canvas-chart-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-legend {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 11px;
    color: #94a3b8;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.bg-cyan { background-color: var(--color-cyan); box-shadow: 0 0 5px var(--color-cyan); }
.bg-purple { background-color: var(--color-purple); box-shadow: 0 0 5px var(--color-purple); }
.bg-magenta { background-color: var(--color-magenta); box-shadow: 0 0 5px var(--color-magenta); }
.bg-green { background-color: var(--color-green); box-shadow: 0 0 5px var(--color-green); }

/* Synth Controls */
.synth-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-desc {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

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

.toggle-switch {
    position: relative;
    width: 44px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #94a3b8;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.3);
}

.toggle-switch input:checked + label:before {
    transform: translateX(22px);
    background-color: var(--color-cyan);
    box-shadow: var(--glow-cyan);
}

/* Metric Display Boxes */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    height: 100%;
}

.metric-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.metric-val {
    font-family: var(--font-code);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.metric-lbl {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   TAB 3: QUANTEN ARCHIVE
   ========================================================================== */
.archive-section {
    padding: 24px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archive-search-bar {
    position: relative;
    width: 100%;
}

.archive-search-bar input {
    width: 100%;
    background: rgba(5, 5, 15, 0.6);
    border: 1px solid var(--panel-border);
    padding: 12px 40px 12px 16px;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.archive-search-bar input:focus {
    outline: none;
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
    background: rgba(5, 5, 15, 0.8);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
}

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

.archive-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-3px);
    border-color: rgba(127, 0, 255, 0.3);
    box-shadow: 0 10px 20px rgba(127, 0, 255, 0.05);
}

.archive-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
    font-family: var(--font-code);
}

.archive-card h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.archive-card p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
}

.archive-card.expanded {
    grid-column: span 2;
    cursor: default;
}

.archive-card.expanded:hover {
    transform: none;
}

.archive-full-content {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-btn {
    align-self: flex-end;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.close-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   SIDEBAR CONTROL PANEL
   ========================================================================== */
.sidebar-panel {
    background: rgba(7, 5, 20, 0.85);
    backdrop-filter: blur(20px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    z-index: 90;
    height: 100%;
}

.sidebar-panel .glass-card {
    padding: 16px;
    flex-shrink: 0;
}

/* Collapsible system presets list */
.preset-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 8px 12px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.preset-btn.active {
    background: rgba(127, 0, 255, 0.1);
    border-color: rgba(127, 0, 255, 0.25);
    color: #fff;
}

.preset-icon {
    font-size: 1.1rem;
}

.preset-name {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Parameter Sliders */
.slider-group {
    margin-bottom: 12px;
}

.slider-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.slider-lbl span:first-child {
    font-weight: 500;
}

.slider-lbl span:last-child {
    font-family: var(--font-code);
    color: var(--color-cyan);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: var(--glow-cyan);
    cursor: pointer;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Wave selector for acoustic panel */
.wave-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    padding: 2px;
}

.wave-type-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}

.wave-type-btn:hover {
    color: #cbd5e1;
}

.wave-type-btn.active {
    background: rgba(0, 242, 254, 0.12);
    color: var(--color-cyan);
}

/* Toggle lines list */
.toggle-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Mass Type Buttons */
.mass-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mass-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.mass-btn:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.mass-btn .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.mass-btn[data-type="positive"].active {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.08);
    color: #fff;
}

.mass-btn[data-type="negative"].active {
    border-color: rgba(255, 0, 127, 0.3);
    background: rgba(255, 0, 127, 0.08);
    color: #fff;
}

/* Cyber Button Styles */
.cyber-btn {
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.05), rgba(127, 0, 255, 0.05));
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--color-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.02);
}

.cyber-btn:hover {
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.15), rgba(127, 0, 255, 0.15));
    border-color: var(--color-cyan);
    box-shadow: var(--glow-cyan);
    color: #fff;
}

.cyber-btn.danger {
    color: var(--color-magenta);
    border-color: rgba(255, 0, 127, 0.2);
    background: linear-gradient(90deg, rgba(255, 0, 127, 0.02), rgba(127, 0, 255, 0.02));
}

.cyber-btn.danger:hover {
    background: linear-gradient(90deg, rgba(255, 0, 127, 0.1), rgba(127, 0, 255, 0.1));
    border-color: var(--color-magenta);
    box-shadow: var(--glow-magenta);
}

/* Warp Card Section */
.warp-card {
    border-color: rgba(127, 0, 255, 0.2);
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.1) 0%, rgba(5, 5, 15, 0.6) 100%);
    box-shadow: 0 0 25px rgba(127, 0, 255, 0.05);
}

.warp-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(127, 0, 255, 0.2) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    animation: warpBreath 4s infinite ease-in-out;
}

@keyframes warpBreath {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.warp-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-purple);
    text-shadow: var(--glow-purple);
    margin-bottom: 12px;
    text-align: center;
}

.warp-trigger-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-magenta));
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding: 12px 6px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: var(--glow-purple);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.warp-trigger-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(127, 0, 255, 0.7), 0 0 15px rgba(255, 0, 127, 0.4);
}

.warp-trigger-btn:active {
    transform: scale(0.98);
}

.warp-warning {
    font-size: 0.6rem;
    color: #ef4444;
    text-align: center;
    margin-top: 8px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   HYPERSPACE WARP TRANSITION EFFECT
   ========================================================================== */
.hyperspace-active .dashboard-grid {
    animation: hyperspaceWarp 1.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes hyperspaceWarp {
    0% { transform: scale(1); filter: hue-rotate(0deg) saturate(1); }
    50% { transform: scale(0.95) rotate(1deg); filter: hue-rotate(180deg) saturate(1.8) blur(3px); }
    100% { transform: scale(1); filter: hue-rotate(360deg) saturate(1); }
}

/* Hidden States */
.hidden {
    display: none !important;
}
