/* ========================================
   V4.0 "CYBER CONTROL CENTER" DESIGN SYSTEM
   Theme: Offensive Security / Neural Arch
   ======================================== */

:root {
    /* Neon Color Palette */
    --neon-green: #00FF41;
    --neon-cyan: #00E5FF;
    --neon-red: #FF003C;
    --neon-purple: #9d00ff;
    --neon-yellow: #f0f000;
    
    /* Backgrounds & Glassmorphism */
    --bg-black: #050505;
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-border: rgba(0, 255, 65, 0.2);
    --glass-accent: rgba(0, 229, 255, 0.15);
    
    /* Typography */
    --font-main: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-hacker: 'VT323', monospace;
    --font-glitch: 'Rubik Glitch', system-ui;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
    border-left: 1px solid rgba(255, 0, 60, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border: 2px solid #050505;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
}

::-webkit-scrollbar-button {
    background: #050505;
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
    height: 15px;
    width: 15px;
}

::-webkit-scrollbar-button:vertical:decrement {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%2300FF41'><polygon points='50,0 0,100 100,100'/></svg>");
}

::-webkit-scrollbar-button:vertical:increment {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%2300FF41'><polygon points='50,100 0,0 100,0'/></svg>");
}

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

body {
    background: var(--bg-black);
    color: var(--neon-green);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HACKER OVERLAYS (CRT & SCANNERS)
   ======================================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    opacity: 0.15;
    animation: scanlineScroll 12s linear infinite;
}

@keyframes scanlineScroll {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

.crt-flicker {
    animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
    0% { opacity: 0.98; }
    5% { opacity: 0.95; }
    10% { opacity: 0.99; }
    100% { opacity: 1; }
}

/* ========================================
   CORE UI COMPONENTS
   ======================================== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
}

.neon-text {
    text-shadow: 0 0 10px var(--neon-green);
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.btn-cyber {
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.btn-cyber:hover {
    background: var(--neon-green);
    color: var(--bg-black);
    box-shadow: 0 0 20px var(--neon-green);
}

/* ========================================
   ANIMATION TOKENS
   ======================================== */
.decrypting {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.decrypting.visible {
    opacity: 1;
}

.stagger-in > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-in.visible > * {
    animation: staggerFadeIn 0.6s ease forwards;
}

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BACKGROUND LAYERS
   ======================================== */
#matrix-bg, #network-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#matrix-bg { opacity: 0.7; }
#network-bg { opacity: 0.7; }

/* ========================================
   GLOBAL UI REFINEMENTS
   ======================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

#loading-matrix-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: -1;
    pointer-events: none;
}

.hidden { display: none !important; }

/* Phase 0: Shock Intro */
.shock-intro {
    text-align: center;
    animation: shockIntroEntry 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.shock-intro.exit {
    animation: shockIntroExit 0.8s ease-in forwards;
}

.surprise-text {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 30px var(--neon-green);
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
}

@keyframes shockIntroEntry {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes shockIntroExit {
    to { transform: scale(1.5); filter: blur(10px); opacity: 0; }
}

.loading-progress {
    width: 300px;
    height: 2px;
    background: rgba(0, 255, 65, 0.1);
    margin: 1rem auto;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
}

/* Phase 2: System Boot */
.system-boot {
    width: 400px;
    text-align: left;
}

.boot-terminal {
    font-size: 0.8rem;
    margin-bottom: 2rem;
    height: 100px;
}

.boot-line {
    margin-bottom: 0.3rem;
    display: flex;
    justify-content: space-between;
    animation: hackerGlitch 5s infinite linear;
}

.line-status { font-weight: bold; }
.line-status.busy { color: var(--neon-yellow); }
.line-status.ok { color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green); }

/* Phase 3: Final Decryption */
.final-decryption {
    text-align: center;
}

.shield-container {
    margin-bottom: 2rem;
    opacity: 0.05;
    animation: shieldFadeIn 1s ease forwards, shieldRotate 20s linear infinite;
}

.shield-icon {
    width: 80px;
    height: 80px;
    color: var(--neon-green);
}

@keyframes shieldFadeIn {
    to { opacity: 0.15; }
}

@keyframes shieldRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.welcome-text {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 1em;
    text-transform: uppercase;
    transition: letter-spacing 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: hackerGlitch 3s infinite linear;
}

.welcome-text.focused {
    letter-spacing: 0.4em;
    color: #fff;
    text-shadow: 0 0 15px var(--neon-green);
}

/* Phase 1: Character Reveal */
.character-reveal {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.reveal-text {
    display: flex;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 7rem;
    color: var(--neon-green);
    text-shadow: 2px 2px 0px rgba(255, 0, 0, 0.5), -2px -2px 0px rgba(0, 0, 255, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: hackerGlitch 3s infinite linear;
}

.reveal-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
}

.reveal-char.active {
    animation: charRevealSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes hackerGlitch {
    0%   { transform: translate(0) skewX(0deg);   text-shadow: 2px 0 rgba(255,0,60,0.6), -2px 0 rgba(0,229,255,0.6);   filter: brightness(1); }
    1%   { transform: translate(-5px, 2px) skewX(-4deg); text-shadow: 7px 0 rgba(255,0,60,1), -7px 0 rgba(0,229,255,1); filter: brightness(1.5); }
    2%   { transform: translate(5px,-2px) skewX(4deg);  text-shadow: -7px 0 rgba(255,0,60,1), 7px 0 rgba(0,229,255,1);  filter: brightness(0.6); }
    3%   { transform: translate(-3px, 0) skewX(-2deg);  text-shadow: 4px 0 rgba(255,0,60,0.8), -4px 0 rgba(0,229,255,0.8); filter: brightness(1.2); }
    4%   { transform: translate(0) skewX(0deg);   text-shadow: 2px 0 rgba(255,0,60,0.6), -2px 0 rgba(0,229,255,0.6);   filter: brightness(1); }
    14%  { transform: translate(0); opacity: 1; }
    15%  { transform: translate(4px, 1px) skewX(3deg);  text-shadow: 6px 0 rgba(255,0,60,0.9), -6px 0 rgba(0,229,255,0.9); filter: brightness(1.3); opacity: 0.8; }
    16%  { transform: translate(-4px,-1px) skewX(-3deg); text-shadow: -6px 0 rgba(255,0,60,0.9), 6px 0 rgba(0,229,255,0.9); filter: brightness(0.7); opacity: 1; }
    17%  { transform: translate(0) skewX(0deg);   text-shadow: 2px 0 rgba(255,0,60,0.6), -2px 0 rgba(0,229,255,0.6);   filter: brightness(1); }
    44%  { transform: translate(0); opacity: 1; filter: hue-rotate(0deg); }
    45%  { transform: translate(-6px, 0); opacity: 0.6; filter: hue-rotate(120deg) brightness(1.4); }
    46%  { transform: translate(6px, 0);  opacity: 0.9; filter: hue-rotate(240deg) brightness(0.8); }
    47%  { transform: translate(0);       opacity: 1;   filter: hue-rotate(0deg) brightness(1); }
    74%  { transform: translate(0) skewX(0deg); }
    75%  { transform: translate(3px,-3px) skewX(-5deg); text-shadow: 5px 0 rgba(255,0,60,0.8), -5px 0 rgba(0,229,255,0.8); filter: brightness(1.2); }
    76%  { transform: translate(-3px, 3px) skewX(5deg); text-shadow: -5px 0 rgba(255,0,60,0.8), 5px 0 rgba(0,229,255,0.8); filter: brightness(0.8); }
    77%  { transform: translate(0) skewX(0deg); filter: brightness(1); }
    100% { transform: translate(0) skewX(0deg); text-shadow: 2px 0 rgba(255,0,60,0.6), -2px 0 rgba(0,229,255,0.6); filter: brightness(1); }
}

@keyframes charRevealSlide {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-subtext {
    font-size: 2rem;
    opacity: 0.7;
    min-height: 1.5rem;
    margin-bottom: 0.5rem;
    animation: hackerGlitch 4s infinite linear;
}

/* When animate-pulse is added by JS, preserve the glitch alongside the pulse */
.reveal-subtext.animate-pulse {
    animation: textPulse 2s infinite ease-in-out, hackerGlitch 4s infinite linear;
}

.reveal-final {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1rem;
    min-height: 3rem;
    animation: hackerGlitch 2.5s infinite linear;
}

.pulsate {
    animation: textPulse 2s infinite ease-in-out;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.3; text-shadow: 0 0 5px var(--neon-green); }
    50% { opacity: 1; text-shadow: 0 0 15px var(--neon-green); }
}

.green-pulse-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    animation: ambientPulse 4s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); filter: blur(0px); }
    50% { opacity: 0.8; transform: scale(1.05); filter: blur(2px); }
}

/* ========================================
   THREAT MONITOR
   ======================================== */
.threat-monitor-card {
    padding: 2.5rem;
}

.threat-header {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

.threat-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.threat-map {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-radius: 4px;
    height: 400px;
    overflow: hidden;
}

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

.map-overlay-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--neon-red);
    font-size: 0.9rem;
    font-family: var(--font-display);
    text-shadow: 0 0 10px var(--neon-red);
    pointer-events: none;
}

.map-status-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.stat-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.6rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: bold;
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 4px;
}

.status-label {
    color: var(--neon-cyan);
}

.status-value {
    color: var(--neon-green);
}

/* ========================================
   BIOMETRIC SCAN
   ======================================== */
.profile-card {
    position: relative;
    overflow: hidden;
}

.profile-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.profile-img {
    display: block;
    width: 100%;
    height: auto;
}

.biometric-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: scan 3s infinite;
}

.scan-line.delay-1 {
    animation-delay: 1s;
}

.scan-line.delay-2 {
    animation-delay: 2s;
}

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

.identity-info {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-cyan);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.identity-header {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.identity-details p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.identity-details span {
    color: var(--neon-green);
}

.threat-level {
    color: var(--neon-yellow) !important;
}

/* ========================================
   INTEL FEED HEADER
   ======================================== */
.intel-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation */
.cyber-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 900;
    display: flex;
    align-items: center;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(0, 255, 65, 0.5);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* Hero & Terminal */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
    align-items: center;
}

.terminal-shell {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: rgba(0, 255, 65, 0.05);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-tab { font-size: 0.7rem; color: rgba(0, 255, 65, 0.5); margin-left: auto; }

.terminal-body {
    height: 450px;
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.95rem;
}

.terminal-response {
    color: var(--neon-cyan);
    margin: 0.5rem 0 1rem 1.5rem;
    white-space: pre-wrap;
    line-height: 1.4;
    font-family: var(--font-mono);
}

.terminal-response.help-response {
    text-align: center;
    margin: 1rem 0;
}

.terminal-line-item {
    margin-bottom: 0.3rem;
    opacity: 0;
    transform: translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.terminal-line-item.active {
    opacity: 1;
    transform: translateY(0);
}

.terminal-input-line {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--neon-green);
    font-family: var(--font-mono);
    outline: none;
    flex: 1;
}

/* Project Filters */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    font-family: var(--font-hacker);
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: rgba(0, 255, 65, 0.6);
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 2px;
}

.filter-btn::before { content: '['; margin-right: 0.5rem; opacity: 0; transition: opacity 0.2s ease; }
.filter-btn::after { content: ']'; margin-left: 0.5rem; opacity: 0; transition: opacity 0.2s ease; }

.filter-btn:hover, .filter-btn.active {
    color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    text-shadow: 0 0 5px var(--neon-green);
}

.filter-btn:hover::before, .filter-btn.active::before,
.filter-btn:hover::after, .filter-btn.active::after {
    opacity: 1;
}

.filter-btn.active {
    background: rgba(0, 255, 65, 0.05);
}

/* Dossier & Sections */
.reveal-section { padding: 80px 0; }
.section-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 3rem; }

.about-grid { display: grid; grid-template-columns: 350px 1fr; gap: 3rem; }
.profile-img {
    width: 100%;
    border: 1px solid var(--glass-border);
    filter: grayscale(1) contrast(1.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: crosshair;
}

.profile-img:hover {
    filter: grayscale(0) contrast(1.1) brightness(1.1);
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    transform: scale(1.03);
}

.about-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.about-heading { display: flex; flex-direction: column; gap: 0.5rem; }
.about-title { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0.2em; text-transform: uppercase; }
.about-subtitle { font-size: 0.95rem; opacity: 0.8; }
.about-summary { font-size: 0.95rem; line-height: 1.8; opacity: 0.85; margin-bottom: 1.5rem; }
.about-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.profile-tile { background: rgba(0,0,0,0.45); border: 1px solid rgba(0,255,65,0.15); padding: 1.2rem; }
.profile-tile h3 { margin-bottom: 0.8rem; font-size: 0.95rem; }
.tile-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.85rem; opacity: 0.8; }
.tile-list li::before { content: '>'; margin-right: 0.5rem; color: var(--neon-cyan); }

.dossier-stats p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.dossier-stats span { color: rgba(0, 255, 65, 0.5); width: 80px; display: inline-block; }

/* Admin Dashboard UI */
.login-shell {
    max-width: 450px;
    margin: 100px auto;
}

#admin-login-form .btn-cyber { width: 100%; margin-top: 1rem; }
#admin-pass { width: 100%; padding: 1rem; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); color: var(--neon-green); font-family: var(--font-mono); }

.admin-list { margin: 1rem 0; }
.tag { font-size: 0.7rem; background: rgba(0, 229, 255, 0.1); color: var(--neon-cyan); padding: 2px 8px; margin-right: 5px; }

/* Cyber Form Styling */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    opacity: 0.8;
}

.cyber-form input, 
.cyber-form textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.8rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.cyber-form input:focus, 
.cyber-form textarea:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.05);
    transform: translateX(5px);
}

.cyber-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.8rem;
    min-height: 1.2rem;
}

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

/* ──────────────────────────────────────────
   ADMIN CRUD PANEL
────────────────────────────────────────── */
.admin-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 0 0;
    margin-bottom: 1.5rem;
}

.admin-nav-tab {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: rgba(0, 255, 65, 0.5);
    font-family: var(--font-hacker);
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-nav-tab:hover, .admin-nav-tab.active {
    color: var(--neon-green);
    border-color: var(--neon-green);
    background: rgba(0, 255, 65, 0.05);
    text-shadow: 0 0 6px var(--neon-green);
}

.admin-tab-content {
    min-height: 300px;
    padding: 2rem;
    margin-top: 0.5rem;
}

/* Record list rows */
.admin-record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    gap: 1rem;
}

.admin-record-row:last-child { border-bottom: none; }

.admin-record-label {
    flex: 1;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-record-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Admin select inputs */
.admin-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.8rem 1rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

/* Floating Admin Button */
.admin-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 901;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(5, 5, 5, 0.7);
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: rgba(0, 255, 65, 0.3);
    font-family: var(--font-hacker);
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-transform: uppercase;
}

.admin-fab:hover {
    color: rgba(0, 255, 65, 0.5);
    border-color: rgba(0, 255, 65, 0.35);
}

.admin-fab-icon {
    font-size: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ======================================== */

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

/* TABLET */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .threat-content {
        grid-template-columns: 1fr;
    }
    
    .surprise-text {
        font-size: 5rem;
    }
    
    .reveal-text {
        font-size: 5rem;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .cyber-nav {
        height: auto;
        padding: 1rem 0;
    }
    
    .nav-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 1.5rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links::-webkit-scrollbar {
        height: 4px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-panels {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .surprise-text {
        font-size: 3rem;
    }
    
    .reveal-text {
        font-size: 3rem;
    }
    
    .reveal-subtext {
        font-size: 1.2rem;
    }
    
    .reveal-final {
        font-size: 1.5rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
        letter-spacing: 0.2em;
    }
    
    .welcome-text.focused {
        letter-spacing: 0.1em;
    }
    
    .terminal-body {
        height: 300px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-section {
        padding-top: 150px;
    }
    
    .threat-map {
        height: 250px;
    }
}

