:root {
    --bg-deep: #020408;
    --blue-neon: #00f3ff;
    --blue-mid: #0077be;
    --blue-dark: #0a1a2f;
    --text-main: #e0f7fa;
    --font-ui: 'Orbitron', 'Segoe UI', sans-serif;
    --font-mono: 'Courier New', monospace;
}

* {
    box-sizing: border-box; 
    margin: 0; 
    padding: 0;
}@keyframes blinker { 50% { opacity: 0.3; } }
@keyframes scanLoad {
    0% { width: 0%; left: 0; opacity: 1; }
    50% { width: 100%; left: 0; opacity: 1; }
    100% { width: 0%; left: 100%; opacity: 0; }
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 5px, 0); }
    50% { clip: rect(85px, 9999px, 100px, 0); }
    100% { clip: rect(42px, 9999px, 80px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    100% { clip: rect(10px, 9999px, 80px, 0); }
}

@keyframes scanAvatar {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.5; } }

@keyframes timerLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-ui);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar {
    width: 8px; 
    height: 8px; 
}

::-webkit-scrollbar-track {
    background: #020408; 
    border-left: 1px solid #333;
}

::-webkit-scrollbar-thumb {
    background: var(--blue-dark); 
    border: 1px solid var(--blue-mid);
    border-radius: 4px; 
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-mid); 
    border-color: var(--blue-neon); 
    box-shadow: 0 0 10px var(--blue-neon);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--blue-mid) #020408;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Creates the grid using gradients instead of div tiles */
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; 
    z-index: -1;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
}

@media (max-width: 768px) {
    .main-nav { padding: 15px; justify-content: center; }
    .main-nav ul { padding: 0; gap: 15px; }
    .nav-link { font-size: 0.75rem; }
    
    .glitch-title { font-size: 2.5rem; }
    
    .footer-grid { flex-direction: column; gap: 15px; text-align: center; }
    .footer-col { justify-content: center; flex-direction: column; }
    
    .quest-section, .gamelog-section { padding-left: 5%; padding-right: 5%; }
}.command-island {
    position: fixed;
    top: 30px; 
    left: 50%;
    transform: translateX(-50%) translateY(-20px); 
    z-index: 9000; 
    width: auto;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.command-island.nav-visible {
    opacity: 1;
    pointer-events: all;
    /* Returns to natural position */
    transform: translateX(-50%) translateY(0);
}

.island-container {
    background: rgba(2, 4, 8, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--blue-mid);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(0, 243, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.island-container:hover {
    padding: 15px 30px;
    border-color: var(--blue-neon);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transform: scale(1.05);
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8892b0;
    transition: 0.3s;
    padding: 5px 10px;
    border-radius: 12px;
    min-width: 60px;
}

.nav-item .icon { font-family: var(--font-mono); font-size: 1.2rem; font-weight: bold; margin-bottom: 2px; }
.nav-item .label { font-size: 0px; font-family: var(--font-ui); opacity: 0; transition: 0.3s; letter-spacing: 1px; }

.nav-item:hover, .nav-item.active { color: var(--blue-neon); background: rgba(0, 243, 255, 0.05); }

.island-container:hover .nav-item .label { font-size: 0.6rem; opacity: 1; margin-top: 4px; }
.nav-item.active .icon { text-shadow: 0 0 10px var(--blue-neon); }
.nav-item.danger:hover { color: #ff4444; }

@media (max-width: 768px) {
    .command-island { 
        top: 15px;   
        width: 95%;  
        max-width: 400px; 
    }
    
    .island-container { 
        justify-content: space-between; 
        padding: 8px 5px; 
        width: 100%; 
        gap: 2px; 
    }
    
    .island-container:hover {
        transform: none;
        padding: 8px 5px;
    }

    .nav-item {
        min-width: auto; 
        padding: 5px;  
        flex: 1;         
    }

    .nav-item .icon { 
        font-size: 0.9rem; 
        margin-bottom: 0;
    }

    .island-container:hover .nav-item .label,
    .nav-item .label { 
        display: none; 
    }
}.system-footer {
    width: 100%;
    background: rgba(2, 4, 8, 0.95);
    border-top: 1px solid var(--blue-mid);
    padding: 15px 0;
    margin-top: auto;
    position: relative;
    z-index: 100;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #557;
}

.footer-col { display: flex; gap: 20px; align-items: center; }
.center-col { flex-direction: column; gap: 2px; }
.right-col { justify-content: flex-end; }
.sys-id { color: var(--blue-neon); font-weight: bold; }
.comm-link { color: #a0c4ff; text-decoration: none; transition: color 0.2s; margin-left:10px; }
.comm-link:hover { color: var(--blue-neon); text-shadow: 0 0 5px var(--blue-neon); }

.scan-bar {
    position: absolute; bottom: 0; left: 0; height: 2px;
    background: var(--blue-neon); width: 0%;
    animation: scanLoad 4s infinite linear;
    box-shadow: 0 0 10px var(--blue-neon);
}.quote-section {
    padding: 50px 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    text-align: center;
    position: relative;
    z-index: 10;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0, 243, 255, 0.2);
    background: rgba(2, 4, 8, 0.6);
    padding: 30px;
    position: relative;
    backdrop-filter: blur(5px);
}

/* Corner Accents */
.quote-container::before, .quote-container::after {
    content: ''; position: absolute; width: 10px; height: 10px;
    border: 2px solid var(--blue-neon); transition: 0.3s;
}
.quote-container::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.quote-container::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hud-label {
    font-family: var(--font-mono);
    color: var(--blue-mid);
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* The Quote Text Area */
.quote-display {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-in-out;
    min-height: 120px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-display.active {
    opacity: 1;
    transform: translateY(0);
}

.quote-text {
    font-size: 1.2rem;
    color: #fff;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.quote-meta {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.q-char { color: var(--blue-neon); font-weight: bold; }
.q-source { color: #8892b0; }

/* The Timer Bar */
.quote-timer-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
}

.timer-fill {
    height: 100%;
    background: var(--blue-neon);
    width: 0%;
    box-shadow: 0 0 10px var(--blue-neon);
}#loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Allows clicks to pass through once opened */
}

/* --- THE DOORS --- */
.door-panel {
    position: absolute;
    top: 0;
    width: 50%;       /* Each door takes half width */
    height: 100%;
    background: #020408; /* Match your deep dark background */
    border-bottom: 2px solid var(--blue-neon); /* Cool bottom detail */
    z-index: 100;
    transition: transform 0.8s ease-in-out; /* Smooth sliding speed */
}

.left-door {
    left: 0;
    border-right: 1px solid #111; /* Center seam */
}

.right-door {
    right: 0;
    border-left: 1px solid #111; /* Center seam */
}

/* --- THE CONTENT (Scanner/Text) --- */
.loader-content {
    position: relative;
    z-index: 101; /* Must be ABOVE the doors */
    text-align: center;
    transition: opacity 0.5s ease-out; /* Fades out slightly before doors open */
}

/* Reuse your existing Scanner styles, just ensuring they look good here */
.scanner-ring {
    width: 60px; height: 60px;
    border: 4px solid rgba(0, 243, 255, 0.3);
    border-top: 4px solid var(--blue-neon);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

.loader-title {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.loader-status {
    font-family: 'Courier New', monospace;
    color: var(--blue-neon);
    font-size: 0.8rem;
    animation: blink 1s infinite;
}

/* --- THE ANIMATION STATES --- */

/* 1. Slide Left Door to the Left */
#loader-wrapper.loaded .left-door {
    transform: translateX(-100%);
}

/* 2. Slide Right Door to the Right */
#loader-wrapper.loaded .right-door {
    transform: translateX(100%);
}

/* 3. Fade out text/spinner immediately */
#loader-wrapper.loaded .loader-content {
    opacity: 0;
}.admin-container {
    padding: 120px 5% 50px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--blue-neon);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
}

.admin-panel {
    background: rgba(2, 4, 8, 0.8);
    border: 1px solid var(--blue-mid);
    padding: 25px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.admin-panel::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 20px; height: 20px;
    border-top: 3px solid var(--blue-neon);
    border-right: 3px solid var(--blue-neon);
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    color: var(--blue-neon);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

input[type="text"], 
input[type="password"],
input[type="number"],
textarea, 
select {
    width: 100%;
    background: #050a14;
    border: 1px solid #334;
    color: #00ff88; 
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

button.hero-btn {
    height: 100%; 
    border: 1px solid var(--blue-neon);
    background: rgba(0, 243, 255, 0.1);
    color: var(--blue-neon);
    cursor: pointer;
    transition: 0.3s;
}

button.hero-btn:hover {
    background: var(--blue-neon);
    color: #000;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--blue-neon);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    background: #0a1525;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.data-table th {
    text-align: left;
    color: #8892b0;
    border-bottom: 1px solid var(--blue-mid);
    padding: 10px 5px;
}

.data-table td {
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0f7fa;
}

.data-table tr:hover {
    background: rgba(0, 243, 255, 0.05); 
}

.btn-del {
    color: #ff4444;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ff4444;
    padding: 2px 8px;
    font-size: 0.7rem;
    transition: 0.2s;
}

.btn-del:hover {
    background: #ff4444;
    color: #000;
}

.login-box {
    max-width: 400px;
    margin: 15vh auto;
    padding: 40px;
    background: rgba(2, 4, 8, 0.9);
    border: 1px solid var(--blue-neon);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    text-align: center;
}

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

/* =========================================
   ADMIN LAYOUT SYSTEM
   ========================================= */
.admin-top-bar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--blue-neon);
    padding: 0 30px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
}

.admin-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

.admin-brand span { color: var(--blue-neon); }

/* Overwrite Nav for Admin Header */
.admin-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0; padding: 0;
}

.admin-nav a {
    text-decoration: none;
    color: #8892b0;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
}

.admin-nav a:hover, .admin-nav a.active {
    color: var(--blue-neon);
    text-shadow: 0 0 5px var(--blue-neon);
}

.logout-btn {
    color: #ff4444 !important;
    border: 1px solid #ff4444;
    padding: 5px 15px;
}

.logout-btn:hover { background: #ff4444; color: #000 !important; }.terminal-section {
    padding: 120px 5% 50px 5%;
    min-height: 100vh;
}

.terminal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.console-panel {
    background: #000;
    border: 2px solid var(--blue-mid);
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.monitor-screen {
    background: radial-gradient(circle, #05101a 0%, #000 100%);
    height: 100%;
    padding: 40px;
    text-align: center;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.data-readout h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 0 15px var(--blue-neon);
    margin: 0;
    font-family: var(--font-mono);
}

.rate-readout {
    color: #8892b0;
    font-family: var(--font-mono);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.hack-button {
    background: transparent;
    border: 2px solid var(--blue-neon);
    color: var(--blue-neon);
    padding: 20px 40px;
    font-size: 1.5rem;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
}

.hack-button:active {
    background: var(--blue-neon);
    color: #000;
    transform: scale(0.95);
    box-shadow: 0 0 30px var(--blue-neon);
}

.console-log {
    margin-top: 30px;
    width: 100%;
    height: 100px;
    text-align: left;
    font-family: monospace;
    color: #00ff88;
    font-size: 0.8rem;
    overflow: hidden;
    opacity: 0.7;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.market-panel {
    border: 1px solid var(--blue-mid);
    background: rgba(2, 4, 8, 0.8);
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.market-header {
    color: var(--blue-neon);
    border-bottom: 2px solid var(--blue-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: var(--font-ui);
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.shop-item:hover {
    border-color: var(--blue-neon);
    background: rgba(0, 243, 255, 0.1);
}

.shop-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.item-info h4 { margin: 0; color: #fff; }
.item-cost { color: #ffcc00; font-size: 0.9rem; font-family: monospace; }
.item-rate { color: #00ff88; font-size: 0.8rem; }

.system-controls {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.btn-reset {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 5px 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.btn-reset:hover {
    background: #ff4444;
    color: #000;
    opacity: 1;
}

.save-indicator {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #8892b0;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s;
}

.save-indicator.visible {
    opacity: 1;
}

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

/* =========================================
   DEDICATED LEADERBOARD MAINFRAME
   ========================================= */
.leaderboard-mainframe {
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ffcc00; /* Gold Border */
    background: rgba(10, 5, 0, 0.9); /* Very dark amber tint */
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.leaderboard-mainframe::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(255, 204, 0, 0.5);
    animation: scanline 4s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

.mainframe-header {
    background: rgba(255, 204, 0, 0.1);
    border-bottom: 1px solid #ffcc00;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mainframe-title {
    color: #ffcc00;
    font-family: var(--font-ui);
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.mainframe-status {
    color: #00ff88;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
}

.blink-dot {
    width: 8px; height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff88;
    animation: blinker 1s infinite;
}

.mainframe-body {
    padding: 30px;
}

.network-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px dashed #444;
    padding-bottom: 25px;
}

.login-prompt {
    color: #888;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.join-network {
    display: flex;
    gap: 0; /* Connected inputs */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.join-network input {
    background: #000;
    border: 1px solid #ffcc00;
    border-right: none;
    color: #ffcc00;
    padding: 15px 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    width: 250px;
    outline: none;
    text-transform: uppercase;
}

.join-network button {
    background: #ffcc00;
    color: #000;
    border: 1px solid #ffcc00;
    font-weight: bold;
    padding: 0 25px;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: 0.3s;
}

.join-network button:hover {
    background: #fff;
    box-shadow: 0 0 20px #ffcc00;
}

.grand-table table {
    width: 100%;
    border-collapse: collapse;
}

.grand-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.grand-table tr:hover {
    background: rgba(255, 204, 0, 0.05);
}

.grand-table td {
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 1rem;
}

.grand-table tr:nth-child(1) { background: linear-gradient(90deg, rgba(255,204,0,0.15) 0%, transparent 100%); }
.grand-table tr:nth-child(1) td { color: #ffcc00; font-size: 1.3rem; text-shadow: 0 0 15px rgba(255,204,0,0.5); }

.grand-table tr:nth-child(2) td { color: #00f3ff; }
.grand-table tr:nth-child(3) td { color: #ff8800; }

@media (max-width: 768px) {
    .join-network { flex-direction: column; width: 100%; }
    .join-network input { width: 100%; border-right: 1px solid #ffcc00; border-bottom: none; }
    .join-network button { width: 100%; padding: 15px; }
}.file-manager-section {
    padding: 120px 5% 50px 5%;
    min-height: 100vh;
}

.file-manager-container {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--blue-mid);
    background: rgba(2, 4, 8, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.address-bar {
    background: #050a14;
    padding: 15px 20px;
    border-bottom: 1px solid var(--blue-mid);
    font-family: var(--font-mono);
    color: #8892b0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.path-root { color: #ffcc00; }
.path-current { color: var(--blue-neon); }
.cursor-blink { animation: blinker 1s infinite; color: var(--blue-neon); }

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    padding: 40px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: 0.2s;
}

.file-item:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--blue-mid);
    transform: translateY(-5px);
}

.file-name {
    margin-top: 15px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.file-meta {
    margin-top: 5px;
    color: #556;
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.folder-icon {
    width: 80px;
    height: 60px;
    position: relative;
}
.folder-tab {
    width: 40%;
    height: 10px;
    background: var(--blue-mid);
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: -8px; left: 0;
}
.folder-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-mid) 0%, rgba(0,0,0,0.5) 100%);
    border: 1px solid var(--blue-neon);
    border-radius: 0 5px 5px 5px;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue-neon); font-weight: bold; font-family: monospace;
}

.profile-icon {
    width: 70px; height: 70px;
    border: 2px solid #8892b0;
    padding: 3px;
    border-radius: 50%;
}
.profile-icon img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.3s;
}
.file-item:hover .profile-icon img { filter: grayscale(0); }

.exe-icon {
    width: 70px; height: 70px;
    background: #000;
    border: 2px solid #00ff88;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}
.exe-badge {
    background: #00ff88; color: #000;
    font-size: 0.6rem; font-weight: bold;
    padding: 2px 5px; margin-bottom: 5px;
}
.exe-symbol { color: #00ff88; font-family: monospace; font-size: 1.2rem; }

.status-bar {
    background: #050a14;
    border-top: 1px solid var(--blue-mid);
    padding: 5px 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #556;
    display: flex;
    gap: 30px;
}

/* --- VIDEO / MEDIA ICON --- */
.video-icon {
    width: 80px; 
    height: 60px;
    background: #0a0510; /* Very dark purple/black */
    border: 2px solid #d45cff; /* Neon Purple */
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(212, 92, 255, 0.2);
    transition: 0.3s;
}

/* The "Screen" with scanlines */
.vid-screen {
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0),
        rgba(0,0,0,0) 2px,
        rgba(212, 92, 255, 0.1) 3px
    );
    border: 1px solid rgba(212, 92, 255, 0.3);
    z-index: 1;
}

/* The Play Symbol */
.vid-play {
    color: #d45cff;
    font-size: 1.5rem;
    z-index: 2;
    text-shadow: 0 0 10px #d45cff;
}

/* The "MOV" Badge at the top */
.vid-label {
    position: absolute;
    top: -8px; 
    right: -5px;
    background: #d45cff;
    color: #000;
    font-size: 0.5rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
    z-index: 3;
    font-family: var(--font-mono);
}

/* HOVER EFFECT */
.file-item:hover .video-icon {
    border-color: #fff;
    box-shadow: 0 0 25px rgba(212, 92, 255, 0.5);
    transform: scale(1.05);
}

.file-item:hover .vid-play {
    color: #fff;
}

@media (max-width: 600px) {
    .file-grid { grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px; }
}.contact-section {
    padding: 120px 5% 50px 5%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    max-width: 900px;
    width: 100%;
}

.section-title {
    color: var(--blue-neon);
    font-family: var(--font-ui);
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.discord-wrapper {
    position: relative;
    transition: 0.3s;
}

.discord-wrapper:hover { transform: translateY(-5px); }

.discord-card {
    background: #23272a; /* Discord Dark */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
    position: relative;
    z-index: 2;
}

.discord-banner {
    width: 100%;
    height: 200px;
    background-color: #5865F2; 
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1; 
}

.discord-header {
    padding: 0 20px;
    margin-top: -50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.discord-avatar {
    position: relative;
    width: 100px; height: 100px;
}

.discord-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 6px solid #23272a;
    background: #000;
}

.status-dot {
    width: 20px; height: 20px;
    background: #3ba55c; /* Online Green */
    border: 4px solid #23272a;
    border-radius: 50%;
    position: absolute;
    bottom: 5px; right: 5px;
}

.discord-badges {
    padding-bottom: 10px;
    display: flex; gap: 5px;
}

.badge {
    background: #18191c;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: sans-serif;
    font-weight: bold;
}

.discord-body {
    padding: 20px;
    color: #fff;
}

.discord-body h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: sans-serif;
}

.discord-tag {
    color: #b9bbbe;
    margin: 0;
    font-family: sans-serif;
    font-size: 0.9rem;
}

.discord-bio {
    margin: 20px 0;
    padding: 15px;
    background: #2f3136;
    border-left: 3px solid #5865F2;
    color: #dcddde;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 4px;
    font-family: sans-serif;
    font-weight: bold;
    transition: 0.2s;
}

.discord-btn:hover { background: #4752c4; }

.email-terminal {
    background: #000;
    border: 1px solid #333;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.05);
}

.terminal-header {
    background: #111;
    padding: 10px;
    border-bottom: 1px solid #333;
    display: flex; align-items: center; gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.term-title { margin-left: 10px; color: #666; font-size: 0.8rem; }

.terminal-body {
    padding: 20px;
}

.term-text {
    color: #00ff88;
    margin: 5px 0;
    font-size: 0.9rem;
}

.highlight { color: #fff; border-bottom: 1px dashed #666; }

.term-btn {
    display: inline-block;
    margin-top: 15px;
    color: var(--blue-neon);
    text-decoration: none;
    border: 1px solid var(--blue-neon);
    padding: 8px 15px;
    font-size: 0.8rem;
    transition: 0.2s;
}

.term-btn:hover {
    background: var(--blue-neon);
    color: #000;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}.profile-section {
    padding: 120px 10% 50px 10%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.profile-container {
    display: flex;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-left {
    flex: 1;
    max-width: 350px;
}

.avatar-frame {
    width: 100%;
    aspect-ratio: 1/1; /* Keeps it square */
    border: 2px solid var(--blue-mid);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.5);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2) sepia(20%) hue-rotate(180deg) saturate(200%);
}

.scanner-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--blue-neon);
    box-shadow: 0 0 10px var(--blue-neon);
    opacity: 0.5;
    animation: scanAvatar 3s ease-in-out infinite;
}

.id-card {
    background: rgba(10, 26, 47, 0.8);
    border: 1px solid var(--blue-mid);
    padding: 20px;
    backdrop-filter: blur(5px);
}

.id-card h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--blue-dark);
    padding-bottom: 10px;
    color: #fff;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.stat-label { color: #8892b0; }
.stat-value { color: var(--blue-neon); font-weight: bold; }
.highlight { color: var(--blue-neon); }

.xp-bar-container { margin-top: 20px; }
.xp-label { font-size: 0.7rem; color: #8892b0; margin-bottom: 5px; }
.xp-track { height: 8px; background: #0a1020; border: 1px solid #333; }
.xp-fill { height: 100%; background: linear-gradient(90deg, var(--blue-mid), var(--blue-neon)); }

.profile-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hud-panel {
    background: rgba(2, 4, 8, 0.4);
    border-left: 3px solid var(--blue-mid);
    padding: 20px;
    transition: 0.3s;
}

.hud-panel:hover {
    border-left-color: var(--blue-neon);
    background: rgba(2, 4, 8, 0.6);
}

.panel-header {
    color: var(--blue-neon);
    margin-bottom: 15px;
    font-family: var(--font-ui);
    letter-spacing: 2px;
}

.lore-text {
    color: #a0c4ff;
    line-height: 1.8;
    font-family: sans-serif;
}

.skill-grid { display: flex; flex-direction: column; gap: 15px; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 5px; color: #fff; }
.skill-bar { height: 10px; background: rgba(255,255,255,0.05); overflow: hidden; }
.skill-bar .fill { height: 100%; background: var(--blue-neon); box-shadow: 0 0 10px var(--blue-neon); }

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.inv-slot {
    border: 1px solid var(--blue-mid);
    color: #a0c4ff;
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    background: rgba(0, 119, 190, 0.1);
    transition: 0.2s;
}

.inv-slot:hover {
    background: var(--blue-neon);
    color: #000;
    box-shadow: 0 0 15px var(--blue-neon);
    font-weight: bold;
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .profile-left {
        max-width: 100%;
    }
}.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    background: rgba(2, 4, 8, 0.6);
    padding: 40px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(2px);
    /* Simple Fade In Animation */
    animation: fadeUp 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.sub-text {
    color: var(--blue-neon);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-bottom: 20px;
    margin-top: 10px;
    letter-spacing: 3px;
}

.intro-log {
    text-align: left;
    font-family: var(--font-mono);
    color: #8892b0;
    margin: 20px auto;
    width: fit-content;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    border: 2px solid var(--blue-neon);
    color: var(--blue-neon);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-ui);
    transition: 0.3s;
    background: transparent;
}

.hero-btn:hover {
    background: var(--blue-neon);
    color: #000;
    box-shadow: 0 0 20px var(--blue-neon);
}

.glitch-title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 2px 2px 0px var(--blue-mid);
    position: relative;
}

.glitch-title::before, .glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.glitch-title::before {
    left: 2px; text-shadow: -1px 0 #ff00c1; clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch-title::after {
    left: -2px; text-shadow: -1px 0 #00fff9; clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.gamelog-section {
    padding: 120px 15% 50px 15%;
    min-height: 100vh;
}

.panel-title {
    color: var(--blue-neon);
    border-bottom: 2px solid var(--blue-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: var(--font-ui);
    letter-spacing: 3px;
}

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

.game-card-active {
    height: 180px;
    position: relative;
    border: 1px solid var(--blue-mid);
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.game-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6; /* Dimmed by default so text pops */
    transition: transform 0.5s ease, opacity 0.3s;
    /* The "Cyberpunk" Blue Filter */
    filter: grayscale(100%) sepia(20%) hue-rotate(180deg) saturate(200%); 
}

/* Hover Effect: Full Color Zoom */
.game-card-active:hover .game-bg-layer {
    transform: scale(1.1);
    filter: none; 
    opacity: 1;
}

.game-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(2, 4, 8, 1), transparent);
    padding: 20px;
    z-index: 2;
}

.game-meta h4 {
    margin: 5px 0 10px 0;
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-ui);
    text-shadow: 0 2px 4px #000;
}

.status-badge {
    font-size: 0.7rem;
    color: var(--blue-neon);
    border: 1px solid var(--blue-neon);
    padding: 2px 6px;
    background: rgba(0, 243, 255, 0.1);
    font-weight: bold;
}

.blink { animation: blinker 1.5s linear infinite; }

.progress-bar-sm {
    height: 4px;
    background: rgba(255,255,255,0.2);
    width: 100%;
    margin-top: 5px;
}

.progress-bar-sm .fill {
    height: 100%;
    background: var(--blue-neon);
    box-shadow: 0 0 10px var(--blue-neon);
}

.infinite { animation: scanLoad 2s infinite linear; width: 30% !important; }

.log-entry {
    border: 1px solid var(--blue-dark);
    margin-bottom: 15px;
    background: rgba(10, 20, 35, 0.8);
    transition: all 0.3s ease;
}

.log-entry.active {
    border-color: var(--blue-neon);
    background: rgba(10, 26, 47, 0.95);
}

.log-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    font-family: var(--font-mono);
}

.log-date { color: #666; font-size: 0.8rem; margin-right: 15px; }
.log-title { flex-grow: 1; color: #fff; font-weight: bold; font-size: 1.1rem; }
.expand-icon { color: var(--blue-neon); font-weight: bold; }

.log-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0,0,0,0.3);
}

.log-entry.active .log-body {
    max-height: 600px; 
}

.review-banner {
    width: 100%;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-bottom: 1px solid var(--blue-dark);
}

.review-content {
    padding: 20px;
    color: #a0c4ff;
    line-height: 1.6;
    font-size: 0.95rem;
    border-left: 3px solid var(--blue-mid);
    margin: 15px;
}

.comment-text {
    font-style: italic;
    color: #e0f7fa;
}

@media (max-width: 768px) {
    .active-games-grid {
        grid-template-columns: 1fr; 
    }
    
    .game-card-active {
        height: 160px;
    }
}.quest-section {
    padding: 120px 5% 50px 5%; /* Adjusted padding for better fit */
    min-height: 100vh;
}

.hud-header {
    margin-bottom: 40px;
    border-left: 5px solid var(--blue-neon);
    padding-left: 15px;
}

.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- MAIN CARD CONTAINER --- */
.project-card {
    background: rgba(10, 15, 30, 0.85); /* Slightly darker for contrast */
    border: 1px solid var(--blue-mid);
    border-radius: 6px;
    overflow: hidden; /* CRITICAL: Keeps banner corners rounded */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures cards in the same row are equal height */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.project-card:hover {
    border-color: var(--blue-neon);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15), 
                inset 0 0 20px rgba(0, 243, 255, 0.05);
    transform: translateY(-8px);
}

/* --- 1. THE BANNER IMAGE (TOP) --- */
.card-banner {
    width: 100%;
    height: 160px; /* Fixed height for uniformity */
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--blue-mid);
    position: relative;
    transition: 0.5s;
}

/* Hover Effect: Darken image slightly to make text pop */
.project-card:hover .card-banner {
    filter: brightness(1.1) contrast(1.1);
}

/* "No Signal" Fallback Pattern */
.card-banner.no-signal {
    background: repeating-linear-gradient(
        45deg,
        #0b0d14,
        #0b0d14 10px,
        #151820 10px,
        #151820 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-banner.no-signal::after {
    content: '[ NO_SIGNAL ]';
    color: #334;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* --- 2. THE CARD BODY (MIDDLE) --- */
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes footer to bottom */
}

/* BADGES ROW */
.card-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border: 1px solid currentColor; /* Takes color from inline style */
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.cat-badge {
    font-size: 0.7rem;
    color: #8892b0;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid transparent;
}

/* TYPOGRAPHY */
.project-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #fff;
    font-family: var(--font-ui);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.project-card p {
    font-size: 0.9rem;
    color: #a0c4ff;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Helps push footer down if text is short */
}

/* --- 3. THE FOOTER (BOTTOM) --- */
.card-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TAGS (Left Side) */
.loadout {
    font-family: var(--font-mono);
    opacity: 0.7;
}

/* LINK BUTTON (Right Side) */
.init-link {
    color: var(--blue-neon);
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
    padding-right: 15px; /* Space for arrow */
}

.init-link::after {
    content: '>>';
    position: absolute;
    right: 0;
    transition: 0.3s;
    opacity: 0.5;
}

.init-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--blue-neon);
    padding-right: 20px; /* Animate space */
}

.init-link:hover::after {
    right: -5px; /* Animate arrow */
    opacity: 1;
    color: var(--blue-neon);
}.broadcast-section {
    padding: 120px 5% 50px 5%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.broadcast-container {
    width: 100%;
    max-width: 900px;
}

/* --- HEADER STATUS --- */
.broadcast-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.signal-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    display: flex; align-items: center; gap: 8px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: #00ff88; box-shadow: 0 0 5px #00ff88; animation: blinker 2s infinite; }
.dot.red { background: #ff4444; }

/* --- THE TV UNIT --- */
.tv-unit {
    perspective: 1000px;
    margin-bottom: 40px;
}

.tv-housing {
    background: #151515;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        inset 0 0 60px rgba(0,0,0,0.9);
    position: relative;
    border-top: 1px solid #444; /* Highlight */
}

/* SCREEN AREA */
.tv-screen {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 4px solid #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.tv-screen iframe {
    width: 100%; height: 100%;
    filter: contrast(1.1) saturate(1.1);
}

.screen-glare {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

/* CONTROL PANEL (Bottom of TV) */
.tv-panel {
    margin-top: 15px;
    height: 40px;
    background: #111;
    border-radius: 4px;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.speaker-grill { display: flex; gap: 4px; }
.speaker-grill span {
    width: 4px; height: 20px;
    background: #222;
    border-radius: 2px;
}

.controls-center { text-align: center; }
.brand { 
    font-size: 0.6rem; letter-spacing: 2px; color: #555; 
    font-family: var(--font-ui); font-weight: bold;
}
.pwr-led {
    width: 6px; height: 6px; margin: 4px auto 0 auto;
    border-radius: 50%;
}
.pwr-led.on { background: #00ff88; box-shadow: 0 0 5px #00ff88; }
.pwr-led.off { background: #330000; }

.dial-pad { display: flex; gap: 10px; }
.dial {
    width: 15px; height: 15px;
    background: #333;
    border-radius: 50%;
    border: 1px solid #000;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.1);
}

/* --- INTEL CARD (DESCRIPTION) --- */
.intel-card {
    border-left: 2px solid var(--blue-neon);
    padding-left: 25px;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.02) 0%, transparent 100%);
}

.intel-header {
    display: flex; justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--blue-mid);
}

.intel-label { letter-spacing: 1px; }

.intel-card h1 {
    color: #fff;
    margin: 0 0 15px 0;
    font-family: var(--font-ui);
    font-size: 1.8rem;
}

.intel-body {
    color: #a0c4ff;
    line-height: 1.6;
    font-size: 0.95rem;
    max-height: 150px;
    overflow-y: auto; /* Scroll if description is huge */
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Scrollbar for description */
.intel-body::-webkit-scrollbar { width: 4px; }
.intel-body::-webkit-scrollbar-thumb { background: var(--blue-mid); }

.yt-btn {
    display: inline-block;
    color: #000;
    background: var(--blue-neon);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
}
.yt-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--blue-neon);
}

/* ERROR STATIC */
.static-noise {
    width: 100%; height: 100%;
    background: #111;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #444;
}

/* --- VIDEO METADATA --- */
.video-meta {
    border-left: 4px solid var(--blue-neon);
    padding-left: 20px;
    margin-bottom: 40px;
}

.video-meta h1 {
    color: #fff;
    font-family: var(--font-ui);
    margin: 0 0 10px 0;
}

.video-meta p {
    color: #8892b0;
    font-size: 0.9rem;
    max-width: 800px;
    line-height: 1.6;
}

/* --- ARCHIVE GRID --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.video-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid #333;
    cursor: pointer;
    transition: 0.3s;
}

.video-card:hover {
    border-color: var(--blue-neon);
    transform: translateY(-5px);
}

.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumb-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.play-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem;
    opacity: 0;
    transition: 0.3s;
}

.video-card:hover .thumb-wrapper img { transform: scale(1.1); }
.video-card:hover .play-overlay { opacity: 1; }

.vid-info {
    padding: 10px;
}

.vid-info h4 {
    color: #ddd;
    font-size: 0.8rem;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vid-info .date {
    color: var(--blue-mid);
    font-size: 0.7rem;
    font-family: monospace;
}

/* --- ERROR STATIC --- */
.static-noise {
    width: 100%; height: 100%;
    background: #111;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #555;
    font-family: monospace;
}