/* ==========================================
   O2MatiX Underground Hacker Console Theme
   ========================================== */

:root {
    --primary: #0aff9d;
    --primary-alt: #00ffd0;
    --warning: #ffcc00;
    --danger: #ff0000;
    --critical: #ff6600;
    --bg: #000000;
    --bg-alt: #0a0a0a;
    --card: #0f0f0f;
    --card-border: rgba(10, 255, 157, 0.15);
    --text: #c8fce2;
    --text-dim: rgba(200, 252, 226, 0.7);
    --shadow-glow: rgba(10, 255, 157, 0.08);
    --shadow-glow-hover: rgba(0, 255, 208, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #000000;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    box-shadow: inset 0 0 200px rgba(255, 0, 0, 0.1);
}

/* Scanline Overlay Effect */
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.08) 1px,
        transparent 2px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
    mix-blend-mode: overlay;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(13, 15, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(10, 255, 157, 0.3);
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-clock {
    font-size: 1rem;
    color: var(--primary-alt);
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--primary);
    text-shadow:
        0 0 10px rgba(10, 255, 157, 0.5),
        0 0 20px rgba(10, 255, 157, 0.3);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Glitch effect on hover */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: #00ffd0;
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); opacity: 0; }
    33% { transform: translate(-2px, 2px); opacity: 0.7; }
    66% { transform: translate(2px, -2px); opacity: 0.7; }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); opacity: 0; }
    33% { transform: translate(2px, -2px); opacity: 0.5; }
    66% { transform: translate(-2px, 2px); opacity: 0.5; }
}

/* Blinking cursor */
.title::after {
    content: "_";
    color: var(--primary-alt);
    animation: blink 1s steps(2, start) infinite;
    margin-left: 0.3em;
}

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

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* About Panel */
.about-panel {
    margin-bottom: 3rem;
    text-align: center;
}

.about-toggle {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.about-toggle:hover {
    background: rgba(10, 255, 157, 0.1);
    box-shadow: 0 0 20px rgba(10, 255, 157, 0.3);
    transform: translateY(-2px);
}

.about-toggle:focus {
    outline: 2px solid var(--primary-alt);
    outline-offset: 3px;
}

.about-content {
    max-width: 700px;
    margin: 1.5rem auto 0;
    padding: 1.5rem;
    background: rgba(26, 29, 34, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.about-content.active {
    max-height: 500px;
    opacity: 1;
}

.about-content h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.about-content p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.section-header {
    grid-column: 1 / -1;
}

/* App Cards */
.app-card {
    background: linear-gradient(180deg, rgba(26, 29, 34, 0.9), rgba(16, 18, 22, 0.95));
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 18px var(--shadow-glow);
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 208, 0.35);
    box-shadow: 0 0 22px var(--shadow-glow-hover);
}

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

.card-header i {
    font-size: 2rem;
    color: var(--primary);
}

/* Status Dot */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.app-card[data-status="coming-soon"] .status-dot {
    background: #ffa500;
    box-shadow: 0 0 10px #ffa500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.app-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.app-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 3em;
}

/* Enter Button */
.btn-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-enter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-enter:hover::before {
    transform: translateX(0);
}

.btn-enter:hover {
    color: var(--bg);
    box-shadow: 0 0 20px rgba(10, 255, 157, 0.4);
}

.btn-enter:focus {
    outline: 2px solid var(--primary-alt);
    outline-offset: 3px;
}

.btn-enter i {
    transition: transform 0.3s ease;
}

.btn-enter:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    margin-top: 5rem;
    padding: 2rem;
    background: rgba(13, 15, 18, 0.8);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* LED Indicator */
.led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.led-green {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.led-amber {
    background: #ffa500;
    box-shadow: 0 0 10px #ffa500;
}

.led-red {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-alt);
    outline-offset: 3px;
}

/* Matrix Rain Canvas */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(10, 255, 157, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 255, 157, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Terminal Header */
.terminal-header {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.5rem;
    background: rgba(10, 255, 157, 0.05);
    border: 1px solid rgba(10, 255, 157, 0.2);
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

.terminal-prompt {
    color: var(--primary-alt);
    margin-right: 0.5rem;
}

.terminal-text {
    color: var(--text);
}

.cursor-blink {
    animation: cursor-blink 0.8s steps(2) infinite;
}

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

/* Access Code */
.access-code {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 208, 0.05);
    border: 1px solid rgba(0, 255, 208, 0.3);
    border-radius: 3px;
}

.code-label {
    color: var(--primary-alt);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.code-value {
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.15em;
    font-family: 'Courier New', monospace;
}

/* Enhanced Card Glitch on Hover */
.app-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        var(--primary),
        var(--primary-alt),
        #ff00ff,
        var(--primary-alt),
        var(--primary)
    );
    background-size: 400% 400%;
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: gradient-shift 3s ease infinite;
}

.app-card:hover::before {
    opacity: 0.3;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Data Stream Effect for Cards */
.app-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(10, 255, 157, 0.03) 2px,
        rgba(10, 255, 157, 0.03) 4px
    );
    animation: scan 8s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover::after {
    opacity: 1;
}

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

/* Navbar Enhancements */
.navbar {
    box-shadow: 0 4px 20px rgba(10, 255, 157, 0.1);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary) 20%,
        var(--primary-alt) 50%,
        var(--primary) 80%,
        transparent
    );
    animation: navbar-glow 3s ease-in-out infinite;
}

@keyframes navbar-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Title Enhancements */
.title {
    text-shadow:
        0 0 5px rgba(10, 255, 157, 0.8),
        0 0 10px rgba(10, 255, 157, 0.6),
        0 0 20px rgba(10, 255, 157, 0.4),
        0 0 40px rgba(10, 255, 157, 0.2);
}

/* VHS/Glitch Overlay */
.vhs-overlay {
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    z-index: 9997;
    pointer-events: none;
    opacity: 0.5;
    animation: vhs-distortion 0.2s infinite;
}

@keyframes vhs-distortion {
    0% { transform: translateX(2px) skew(0.5deg); }
    25% { transform: translateX(-2px) skew(-0.5deg); }
    50% { transform: translateX(1px) skew(0.3deg); }
    75% { transform: translateX(-1px) skew(-0.3deg); }
    100% { transform: translateX(0) skew(0); }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 9996;
    pointer-events: none;
    animation: noise-animation 0.2s infinite;
}

@keyframes noise-animation {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

/* Connection Overlay Warning */
.connection-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.connection-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.connection-warning {
    text-align: center;
    padding: 3rem;
    background: rgba(13, 15, 18, 0.95);
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow:
        0 0 30px rgba(10, 255, 157, 0.3),
        inset 0 0 20px rgba(10, 255, 157, 0.1);
    animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% {
        border-color: var(--primary);
        box-shadow: 0 0 30px rgba(10, 255, 157, 0.3), inset 0 0 20px rgba(10, 255, 157, 0.1);
    }
    50% {
        border-color: #ff0000;
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.5), inset 0 0 30px rgba(255, 0, 0, 0.2);
    }
}

.warning-icon {
    font-size: 4rem;
    color: #ffa500;
    margin-bottom: 1rem;
    animation: warning-blink 1s ease-in-out infinite;
}

@keyframes warning-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.warning-text {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(10, 255, 157, 0.5);
}

.warning-bars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.signal-bar {
    width: 8px;
    height: 30px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: signal-strength 1.5s ease-in-out infinite;
}

.signal-bar:nth-child(1) {
    animation-delay: 0s;
    height: 15px;
}
.signal-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 20px;
}
.signal-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 25px;
}
.signal-bar:nth-child(4) {
    animation-delay: 0.6s;
    height: 30px;
}

@keyframes signal-strength {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

.warning-status {
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Chromatic Aberration Effect */
body.glitch-active {
    animation: chromatic-aberration 0.3s ease-in-out;
}

@keyframes chromatic-aberration {
    0% {
        filter: none;
        transform: translate(0);
    }
    25% {
        filter:
            drop-shadow(2px 0 0 rgba(255, 0, 0, 0.5))
            drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.5));
        transform: translate(-2px, 0) skew(2deg);
    }
    50% {
        filter:
            drop-shadow(-2px 0 0 rgba(255, 0, 0, 0.5))
            drop-shadow(2px 0 0 rgba(0, 255, 255, 0.5));
        transform: translate(2px, 0) skew(-2deg);
    }
    75% {
        filter:
            drop-shadow(1px 0 0 rgba(255, 0, 0, 0.5))
            drop-shadow(-1px 0 0 rgba(0, 255, 255, 0.5));
        transform: translate(-1px, 0) skew(1deg);
    }
    100% {
        filter: none;
        transform: translate(0);
    }
}

/* Screen Shake Effect */
body.shake {
    animation: screen-shake 0.5s ease-in-out;
}

@keyframes screen-shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-2px, -2px) rotate(-0.5deg); }
    20% { transform: translate(2px, 2px) rotate(0.5deg); }
    30% { transform: translate(-2px, 2px) rotate(-0.5deg); }
    40% { transform: translate(2px, -2px) rotate(0.5deg); }
    50% { transform: translate(-2px, -2px) rotate(-0.5deg); }
    60% { transform: translate(2px, 2px) rotate(0.5deg); }
    70% { transform: translate(-2px, 2px) rotate(-0.5deg); }
    80% { transform: translate(2px, -2px) rotate(0.5deg); }
    90% { transform: translate(-2px, -2px) rotate(-0.5deg); }
}

/* Blur/Focus Effect */
body.signal-loss {
    animation: signal-blur 1s ease-in-out;
}

@keyframes signal-blur {
    0%, 100% { filter: blur(0px); }
    50% { filter: blur(3px); }
}

/* Random Horizontal Distortion */
.glitch-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(10, 255, 157, 0.8);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
}

/* CRT Screen Curvature Effect */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 9995;
    pointer-events: none;
}

/* Enhanced Scanlines with Random Flicker */
.scanlines {
    animation: scanline-flicker 0.15s infinite;
}

@keyframes scanline-flicker {
    0% { opacity: 0.35; }
    50% { opacity: 0.33; }
    100% { opacity: 0.35; }
}

/* ==========================================
   NUCLEAR / MILITARY THEME ENHANCEMENTS
   ========================================== */

/* Radiation Warning Strips */
.radiation-strip {
    position: fixed;
    left: 0;
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(
        45deg,
        #ffcc00,
        #ffcc00 20px,
        #000000 20px,
        #000000 40px
    );
    z-index: 10001;
    animation: strip-scroll 2s linear infinite;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.radiation-strip-top {
    top: 0;
}

.radiation-strip-bottom {
    bottom: 0;
}

@keyframes strip-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* Nuclear Warning Banner */
.nuclear-banner {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    background: rgba(255, 0, 0, 0.9);
    color: #ffffff;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    z-index: 10000;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
}

.nuclear-banner span {
    display: inline-block;
    padding: 0 3rem;
    animation: banner-scroll 20s linear infinite;
}

@keyframes banner-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* System HUD Overlay */
.system-hud {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary);
    border-radius: 4px;
    padding: 1rem;
    z-index: 9999;
    font-size: 0.75rem;
    box-shadow: 0 0 30px rgba(10, 255, 157, 0.3);
    animation: hud-pulse 3s ease-in-out infinite;
}

@keyframes hud-pulse {
    0%, 100% {
        border-color: var(--primary);
        box-shadow: 0 0 30px rgba(10, 255, 157, 0.3);
    }
    50% {
        border-color: var(--warning);
        box-shadow: 0 0 40px rgba(255, 204, 0, 0.5);
    }
}

.hud-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.hud-item:last-child {
    margin-bottom: 0;
}

.hud-label {
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.hud-value {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hud-critical {
    color: var(--critical);
    animation: critical-blink 1s ease-in-out infinite;
}

@keyframes critical-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Enhanced Connection Warning */
.connection-warning {
    position: relative;
}

.warning-subtext {
    font-size: 1rem;
    color: var(--critical);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.countdown {
    font-size: 4rem;
    color: var(--danger);
    font-weight: 700;
    margin-top: 1.5rem;
    text-shadow:
        0 0 10px rgba(255, 0, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.5);
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Critical Alert */
.critical-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.95);
    border: 3px solid var(--danger);
    padding: 2rem 3rem;
    z-index: 10002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow:
        0 0 50px rgba(255, 0, 0, 0.8),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    animation: alert-shake 0.5s ease-in-out infinite;
}

.critical-alert.active {
    opacity: 1;
    pointer-events: all;
}

@keyframes alert-shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-1deg); }
    75% { transform: translate(-50%, -50%) rotate(1deg); }
}

.alert-content {
    text-align: center;
}

.alert-icon {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    animation: alert-icon-pulse 0.5s ease-in-out infinite;
}

@keyframes alert-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.alert-text {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.alert-message {
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 0.15em;
}

/* Radar Scanner */
.radar-scanner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0.6;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        transparent 70%,
        rgba(10, 255, 157, 0.1) 70%,
        rgba(10, 255, 157, 0.2) 100%
    );
}

.radar-scanner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary)
    );
    transform-origin: left center;
    animation: radar-sweep 3s linear infinite;
}

.radar-scanner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary);
    animation: radar-ping 3s ease-in-out infinite;
}

@keyframes radar-sweep {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes radar-ping {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary);
    }
    50% {
        box-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary);
    }
}

/* Enhanced App Cards - More Aggressive */
.app-card {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.95), rgba(5, 5, 5, 0.98));
    border: 1px solid var(--card-border);
    box-shadow:
        0 0 30px rgba(10, 255, 157, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.app-card:hover {
    border-color: var(--warning);
    box-shadow:
        0 0 40px rgba(255, 204, 0, 0.4),
        inset 0 0 30px rgba(255, 204, 0, 0.1);
}

/* Navbar - More Intense */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--danger);
    box-shadow:
        0 4px 30px rgba(255, 0, 0, 0.3),
        0 0 50px rgba(10, 255, 157, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .system-hud {
        top: auto;
        bottom: 100px;
        right: 10px;
        font-size: 0.65rem;
        padding: 0.75rem;
    }

    .radar-scanner {
        width: 100px;
        height: 100px;
    }

    .nuclear-banner {
        font-size: 0.7rem;
    }

    .radiation-strip {
        height: 20px;
    }

    .radiation-strip-top {
        top: 0;
    }
}
