        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        :root {
            --color-bg: #0a0a0a;
            --color-text: #D5D8B5;
            --color-accent-primary: #FF8C00;
            --color-accent-secondary: #00FFFF;
            --color-warning: #CC4444;
            --color-success: #88CC88;
            --color-data: #88CC88;
            
            --font-main: 'Fira Code', 'Courier New', monospace;
            --font-display: 'VT323', 'Courier New', monospace;
            
            --timing-slow: cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --timing-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
            
            --border-radius-sm: 3px;
            --border-radius-md: 6px;
            --border-radius-lg: 8px;
            --border-radius-xl: 12px;
            
            --glow-primary: 0 0 8px var(--color-accent-primary), 0 0 15px var(--color-accent-primary);
            --glow-secondary: 0 0 8px var(--color-accent-secondary), 0 0 15px var(--color-accent-secondary);
            --glow-text: 0 0 3px currentColor, 0 0 6px currentColor;
        }

        [data-theme="cyan"] {
            --color-text: #A8E6E6;
            --color-accent-primary: #00E5FF;
            --color-accent-secondary: #18FFFF;
            --color-warning: #FF6B9D;
            --color-success: #69F0AE;
            --color-data: #69F0AE;
        }

        [data-theme="red"] {
            --color-text: #FFB3B3;
            --color-accent-primary: #FF3333;
            --color-accent-secondary: #FF6B6B;
            --color-warning: #FFD700;
            --color-success: #90EE90;
            --color-data: #FFA07A;
        }

        [data-theme="green"] {
            --color-text: #B8F5B8;
            --color-accent-primary: #00FF00;
            --color-accent-secondary: #39FF14;
            --color-warning: #FFD700;
            --color-success: #7FFF00;
            --color-data: #ADFF2F;
        }

        [data-theme="purple"] {
            --color-text: #E6C9FF;
            --color-accent-primary: #B24BF3;
            --color-accent-secondary: #E040FB;
            --color-warning: #FF4081;
            --color-success: #00E676;
            --color-data: #B388FF;
        }

        body {
            font-family: var(--font-main);
            background: var(--color-bg);
            color: var(--color-text);
            font-size: 16px;
            line-height: 1.6;
            overflow-x: hidden;
            font-feature-settings: "liga" 1;
            text-shadow: var(--glow-text);
            cursor: default;
            transition: color 0.3s ease, background-color 0.3s ease;
        }

        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.15),
                rgba(0, 0, 0, 0.15) 1px,
                transparent 1px,
                transparent 2px
            );
            pointer-events: none;
            z-index: 10000;
            animation: scanline-drift 8s linear infinite;
        }

        .theme-transition-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--color-bg);
            pointer-events: none;
            z-index: 50000;
            opacity: 0;
            display: none;
        }

        .theme-transition-overlay.active {
            display: block;
            animation: theme-glitch-transition 2s ease-in-out;
        }

        .glitch-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 50001;
            opacity: 0;
        }

        .glitch-overlay.active {
            animation: intense-glitch 2s ease-in-out;
        }

        .custom-cursor {
            position: fixed;
            width: 10px;
            height: 18px;
            background: var(--color-accent-primary);
            pointer-events: none;
            z-index: 99999;
            animation: cursor-blink 1.2s ease-in-out infinite;
            box-shadow: var(--glow-primary);
            border-radius: 2px;
            transition: transform 0.15s var(--timing-slow), background 0.3s ease, box-shadow 0.3s ease;
            display: none;
            will-change: transform;
        }

        @media (hover: hover) and (pointer: fine) {
            .custom-cursor {
                display: block;
            }
            * {
                cursor: none !important;
            }
        }

        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--color-bg);
            z-index: 100000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-family: var(--font-display);
            transition: opacity 1.5s var(--timing-slow), visibility 1.5s var(--timing-slow), filter 1s ease-out;
        }

        .preloader.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        
        .preloader.skip {
            animation: preloader-dissolve 0.8s ease-out forwards;
        }
        
        @keyframes preloader-dissolve {
            0% {
                opacity: 1;
                filter: blur(0px) brightness(1);
                transform: scale(1);
            }
            50% {
                opacity: 0.5;
                filter: blur(10px) brightness(1.5);
                transform: scale(1.05);
            }
            100% {
                opacity: 0;
                filter: blur(30px) brightness(2);
                transform: scale(1.1);
                visibility: hidden;
            }
        }
        
        .skip-hint {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: var(--color-accent-primary);
            text-shadow: var(--glow-primary);
            font-family: var(--font-main);
            font-size: 16px;
            opacity: 1;
            animation: hint-pulse 2s ease-in-out infinite;
            z-index: 100001;
            background: rgba(0, 0, 0, 0.5);
            padding: 12px 24px;
            border: 1px solid var(--color-accent-primary);
            border-radius: var(--border-radius-md);
            box-shadow: var(--glow-primary);
            backdrop-filter: blur(10px);
            white-space: nowrap;
            user-select: none;
        }
        
        @keyframes hint-pulse {
            0%, 100% { 
                opacity: 0.8;
                transform: translateX(-50%) scale(1);
            }
            50% { 
                opacity: 1;
                transform: translateX(-50%) scale(1.05);
            }
        }
        
        .preloader.skip .skip-hint,
        .preloader.hidden .skip-hint {
            display: none;
        }

        .no-signal {
            font-size: 48px;
            color: var(--color-accent-secondary);
            text-shadow: var(--glow-secondary);
            opacity: 0;
            animation: no-signal-pulse 2s ease-in-out infinite;
        }

        .ascii-logo {
            font-size: 18px;
            color: var(--color-text);
            text-shadow: var(--glow-text);
            white-space: pre;
            text-align: center;
            margin: 30px 0;
            opacity: 0;
            line-height: 1.2;
        }

        .system-checks {
            font-family: var(--font-main);
            font-size: 15px;
            color: var(--color-text);
            text-shadow: var(--glow-text);
            text-align: left;
            max-width: 90%;
        }

        .check-line {
            opacity: 0;
            margin: 10px 0;
            word-wrap: break-word;
        }

        .welcome-text {
            font-family: var(--font-main);
            font-size: 17px;
            color: var(--color-accent-primary);
            text-shadow: var(--glow-primary);
            margin-top: 30px;
            opacity: 0;
            text-align: center;
        }

        .welcome-text div {
            margin: 5px 0;
        }

        .terminal-container {
            min-height: 100vh;
            padding: 30px;
            padding-bottom: 100px;
            position: relative;
            background: 
                radial-gradient(ellipse at center, transparent 0%, transparent 70%, rgba(0,0,0,0.4) 100%),
                repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.02) 2px, rgba(255,255,255,.02) 4px);
            box-shadow: 
                inset 0 0 200px rgba(0,0,0,0.9),
                inset 0 0 100px rgba(0,0,0,0.7);
            display: none;
            opacity: 0;
            transition: opacity 1s var(--timing-slow);
        }

        .terminal-container.active {
            display: block;
            opacity: 1;
        }

        .crt-rolling-bar {
            position: fixed;
            top: -150px;
            left: 0;
            width: 100%;
            height: 150px;
            background: linear-gradient(
                to bottom,
                transparent,
                rgba(255, 255, 255, 0.03) 30%,
                rgba(255, 255, 255, 0.08) 50%,
                rgba(255, 255, 255, 0.03) 70%,
                transparent
            );
            pointer-events: none;
            z-index: 5000;
            animation: rolling-scan 15s linear infinite;
        }

        .bg-wireframe {
            position: fixed;
            top: 50%;
            left: 50%;
            width: 350px;
            height: 350px;
            transform: translate(-50%, -50%);
            opacity: 0.05;
            z-index: -1;
            animation: slow-rotate 180s linear infinite;
            filter: blur(0.5px);
            transition: opacity 0.3s ease;
        }

        .terminal-frame {
            border: 2px solid var(--color-accent-primary);
            border-radius: var(--border-radius-xl);
            padding: 30px;
            min-height: calc(100vh - 140px);
            box-shadow: var(--glow-primary), inset 0 0 30px rgba(255, 140, 0, 0.05);
            position: relative;
            background: rgba(10, 10, 10, 0.6);
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .terminal-header {
            text-align: center;
            margin-bottom: 40px;
            font-family: var(--font-display);
            font-size: 32px;
            color: var(--color-accent-primary);
            text-shadow: var(--glow-primary);
            border-bottom: 2px solid var(--color-accent-primary);
            padding-bottom: 20px;
            letter-spacing: 2px;
            transition: color 0.3s ease, text-shadow 0.3s ease, border-color 0.3s ease;
        }

        .system-log {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--color-text);
            border-radius: var(--border-radius-lg);
            padding: 20px;
            margin-bottom: 30px;
            max-height: 350px;
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
            transition: border-color 0.3s ease;
        }

        .log-header {
            font-family: var(--font-display);
            font-size: 22px;
            color: var(--color-accent-primary);
            text-shadow: var(--glow-primary);
            margin-bottom: 15px;
            text-align: center;
            letter-spacing: 1px;
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        .log-entries {
            max-height: 250px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--color-accent-primary) rgba(255,255,255,0.1);
            padding-right: 5px;
        }

        .log-entries::-webkit-scrollbar {
            width: 8px;
        }

        .log-entries::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.1);
            border-radius: 4px;
        }

        .log-entries::-webkit-scrollbar-thumb {
            background: var(--color-accent-primary);
            border-radius: 4px;
            box-shadow: var(--glow-primary);
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        .log-entries::-webkit-scrollbar-thumb:hover {
            background: var(--color-accent-secondary);
        }

        .log-entry {
            padding: 10px 14px;
            margin: 6px 0;
            border-left: 3px solid transparent;
            border-radius: var(--border-radius-sm);
            transition: all 0.8s var(--timing-slow);
            background: rgba(255, 255, 255, 0.03);
            opacity: 0;
            transform: translateX(-20px);
            animation: log-entry-appear 1s var(--timing-slow) forwards;
            word-wrap: break-word;
        }

        .log-entry.system {
            border-left-color: var(--color-text);
            color: var(--color-text);
        }

        .log-entry.action {
            border-left-color: var(--color-accent-primary);
            color: var(--color-accent-primary);
            animation: log-entry-appear 1s var(--timing-slow) forwards, log-pulse 1.5s ease-out;
        }

        .log-entry.alert {
            border-left-color: var(--color-accent-secondary);
            color: var(--color-accent-secondary);
            animation: log-entry-appear 1s var(--timing-slow) forwards, log-alert 2s ease-out;
        }

        .log-entry.warning {
            border-left-color: var(--color-warning);
            color: var(--color-warning);
        }

        .log-entry.data {
            border-left-color: var(--color-data);
            color: var(--color-data);
        }

        .log-entry:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateX(5px);
        }

        .timestamp {
            opacity: 0.7;
            margin-right: 10px;
            font-size: 0.9em;
        }

        .modules-section {
            margin-bottom: 40px;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: 28px;
            color: var(--color-text);
            text-shadow: var(--glow-text);
            margin-bottom: 25px;
            text-align: center;
            letter-spacing: 1px;
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        .title-bracket {
            color: var(--color-accent-primary);
            transition: color 0.3s ease;
        }

        .modules-container {
            display: flex;
            gap: 30px;
        }

        .modules-table {
            flex: 2;
            border-collapse: separate;
            border-spacing: 0 10px;
            width: 100%;
        }

        .modules-table thead th {
            background: rgba(255, 140, 0, 0.15);
            color: var(--color-accent-primary);
            text-shadow: var(--glow-primary);
            padding: 18px;
            font-family: var(--font-display);
            font-size: 19px;
            border-radius: var(--border-radius-md);
            letter-spacing: 1px;
            transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
        }

        .modules-table tbody tr {
            background: rgba(255, 255, 255, 0.04);
            border-radius: var(--border-radius-md);
            transition: all 0.5s var(--timing-slow);
        }

        .modules-table tbody tr:hover {
            background: rgba(255, 140, 0, 0.2);
            box-shadow: 
                0 0 25px rgba(255, 140, 0, 0.4),
                inset 0 0 25px rgba(255, 140, 0, 0.15);
            transform: translateX(10px) scale(1.01);
        }

        .modules-table td {
            padding: 18px;
            border: none;
            transition: color 0.3s ease;
        }

        .modules-table td:first-child {
            border-top-left-radius: var(--border-radius-md);
            border-bottom-left-radius: var(--border-radius-md);
        }

        .modules-table td:last-child {
            border-top-right-radius: var(--border-radius-md);
            border-bottom-right-radius: var(--border-radius-md);
        }

        .module-id {
            font-weight: 600;
            color: var(--color-accent-secondary);
            text-shadow: var(--glow-secondary);
            font-size: 1.1em;
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        .module-status {
            font-weight: 600;
        }

        .status-active { 
            color: var(--color-success); 
            text-shadow: 0 0 8px var(--color-success);
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }
        
        .status-monitoring { 
            color: var(--color-accent-primary);
            text-shadow: 0 0 8px var(--color-accent-primary);
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }
        
        .status-standby { 
            color: var(--color-warning);
            text-shadow: 0 0 8px var(--color-warning);
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        .threat-safe { 
            color: var(--color-success);
            text-shadow: 0 0 8px var(--color-success);
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }
        
        .threat-euclid { 
            color: var(--color-accent-primary);
            text-shadow: 0 0 8px var(--color-accent-primary);
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }
        
        .threat-keter { 
            color: var(--color-warning);
            text-shadow: 0 0 8px var(--color-warning);
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }
        
        .threat-thaumiel { 
            color: var(--color-accent-secondary);
            text-shadow: 0 0 8px var(--color-accent-secondary);
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        .module-details {
            flex: 1;
            padding: 25px;
            background: rgba(255, 140, 0, 0.08);
            border: 1px solid var(--color-accent-primary);
            border-radius: var(--border-radius-lg);
            min-height: 280px;
            transition: all 1s var(--timing-slow);
            box-shadow: inset 0 0 20px rgba(255, 140, 0, 0.1);
        }

        .module-details.active {
            box-shadow: 
                0 0 35px rgba(255, 140, 0, 0.5),
                inset 0 0 30px rgba(255, 140, 0, 0.15);
            border-width: 2px;
        }

        .details-placeholder {
            color: var(--color-text);
            opacity: 0.6;
            text-align: center;
            margin-top: 80px;
            font-size: 1.1em;
            transition: color 0.3s ease;
        }

        .module-detail-content {
            display: none;
        }

        .module-detail-content.active {
            display: block;
            animation: detail-fade-in 1s var(--timing-slow);
        }

        .detail-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 18px;
            color: var(--color-accent-primary);
            text-shadow: var(--glow-primary);
            border-bottom: 1px solid var(--color-accent-primary);
            padding-bottom: 10px;
            transition: color 0.3s ease, text-shadow 0.3s ease, border-color 0.3s ease;
        }

        .detail-description {
            line-height: 1.7;
            margin-bottom: 15px;
            color: var(--color-text);
            transition: color 0.3s ease;
        }

        .detail-status,
        .detail-threat {
            font-weight: 600;
            margin-bottom: 8px;
        }

        .action-section {
            text-align: center;
            margin: 50px 0;
        }

        .action-buttons-group {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 25px;
            flex-wrap: wrap;
        }

        .crt-button {
            padding: 18px 40px;
            background: transparent;
            border: 2px solid var(--color-accent-primary);
            border-radius: var(--border-radius-md);
            color: var(--color-accent-primary);
            font-family: var(--font-main);
            font-size: 19px;
            position: relative;
            overflow: hidden;
            transition: all 0.8s var(--timing-slow);
            text-shadow: var(--glow-primary);
            font-weight: 600;
            letter-spacing: 1px;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        @media (hover: hover) {
            .crt-button {
                cursor: pointer;
            }
        }

        .crt-button::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 140, 0, 0.4),
                transparent
            );
            transition: left 1.2s var(--timing-slow);
        }

        .crt-button:hover::before {
            left: 100%;
        }

        .crt-button:hover {
            background: rgba(255, 140, 0, 0.25);
            box-shadow: 
                0 0 30px rgba(255, 140, 0, 0.7),
                inset 0 0 25px rgba(255, 140, 0, 0.25);
            transform: translateY(-3px);
        }

        .crt-button:active {
            transform: translateY(0);
            transition: transform 0.1s;
        }

        .crt-button:disabled {
            opacity: 0.6;
        }

        .crt-button.processing {
            border-color: var(--color-accent-secondary);
            color: var(--color-accent-secondary);
            animation: processing-pulse 1.5s ease-in-out infinite;
        }

        .crt-button.success {
            border-color: var(--color-success);
            color: var(--color-success);
            animation: success-flash 2s ease-out;
        }

        .terminal-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 18px 30px;
            background: rgba(10, 10, 10, 0.97);
            border-top: 2px solid var(--color-accent-primary);
            border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: var(--font-main);
            font-size: 14px;
            backdrop-filter: blur(15px);
            z-index: 1000;
            box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.8);
            transition: border-color 0.3s ease;
            flex-wrap: wrap;
            gap: 15px;
        }

        .footer-segment {
            display: flex;
            align-items: center;
        }

        .footer-label {
            color: var(--color-text);
            margin-right: 8px;
            transition: color 0.3s ease;
        }

        .footer-value {
            color: var(--color-accent-primary);
            text-shadow: var(--glow-primary);
            font-weight: bold;
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        .footer-divider {
            color: var(--color-text);
            margin: 0 15px;
            opacity: 0.5;
        }

        .threat-keter {
            color: var(--color-warning);
            text-shadow: 0 0 10px var(--color-warning);
            animation: threat-pulse 3s ease-in-out infinite;
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        .glitchy {
            transition: opacity 0.8s ease-out;
        }

        .connection-dots {
            color: var(--color-success);
            text-shadow: var(--glow-text);
            font-size: 16px;
            transition: color 0.3s ease;
        }

        .theme-selector {
            display: flex;
            gap: 8px;
            align-items: center;
            padding: 4px 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius-md);
            border: 1px solid var(--color-accent-primary);
            transition: border-color 0.3s ease;
        }

        .theme-selector-label {
            color: var(--color-text);
            font-size: 12px;
            margin-right: 5px;
            transition: color 0.3s ease;
        }

        .theme-btn {
            width: 24px;
            height: 24px;
            border: 2px solid transparent;
            border-radius: 50%;
            position: relative;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        @media (hover: hover) {
            .theme-btn {
                cursor: pointer;
            }
        }

        .theme-btn:hover {
            transform: scale(1.2);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .theme-btn.active {
            border-color: var(--color-accent-primary);
            box-shadow: 0 0 15px var(--color-accent-primary);
            animation: theme-btn-pulse 2s ease-in-out infinite;
        }

        .theme-btn[data-theme="orange"] {
            background: linear-gradient(135deg, #FF8C00, #FFA500);
        }

        .theme-btn[data-theme="cyan"] {
            background: linear-gradient(135deg, #00E5FF, #18FFFF);
        }

        .theme-btn[data-theme="red"] {
            background: linear-gradient(135deg, #FF3333, #FF6B6B);
        }

        .theme-btn[data-theme="green"] {
            background: linear-gradient(135deg, #00FF00, #39FF14);
        }

        .theme-btn[data-theme="purple"] {
            background: linear-gradient(135deg, #B24BF3, #E040FB);
        }

        @keyframes cursor-blink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0.2; }
        }

        @keyframes no-signal-pulse {
            0%, 100% { 
                opacity: 0;
                transform: scale(1);
            }
            50% { 
                opacity: 1; 
                transform: scale(1.08);
            }
        }

        @keyframes rolling-scan {
            0% { transform: translateY(-150px); }
            100% { transform: translateY(calc(100vh + 150px)); }
        }

        @keyframes scanline-drift {
            0% { transform: translateY(0px); }
            100% { transform: translateY(4px); }
        }

        @keyframes slow-rotate {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        @keyframes log-entry-appear {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes log-pulse {
            0%, 100% { box-shadow: none; }
            50% { box-shadow: 0 0 20px rgba(255, 140, 0, 0.6); }
        }

        @keyframes log-alert {
            0%, 100% { box-shadow: none; }
            50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.6); }
        }

        @keyframes processing-pulse {
            0%, 100% { 
                box-shadow: 0 0 15px var(--color-accent-secondary);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 0 30px var(--color-accent-secondary);
                transform: scale(1.03);
            }
        }

        @keyframes success-flash {
            0% { box-shadow: 0 0 40px var(--color-success); }
            100% { box-shadow: 0 0 15px var(--color-success); }
        }

        @keyframes threat-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        @keyframes detail-fade-in {
            from {
                opacity: 0;
                transform: translateY(15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes smooth-glitch {
            0%, 100% { 
                transform: translate(0); 
                text-shadow: var(--glow-text); 
            }
            15% { 
                transform: translate(-2px, 0); 
                text-shadow: -3px 0 var(--color-accent-primary), 3px 0 var(--color-accent-secondary); 
            }
            30% { 
                transform: translate(2px, 0); 
                text-shadow: 3px 0 var(--color-accent-primary), -3px 0 var(--color-accent-secondary); 
            }
            45% { transform: translate(0); }
        }

        @keyframes theme-glitch-transition {
            0% {
                opacity: 0;
            }
            5% {
                opacity: 0.3;
                filter: brightness(1.5) contrast(1.2);
            }
            10% {
                opacity: 0.6;
                transform: translate(-5px, 0);
            }
            15% {
                opacity: 0.8;
                transform: translate(5px, 0);
                filter: hue-rotate(45deg);
            }
            20% {
                opacity: 1;
                transform: translate(-3px, 2px);
            }
            25% {
                opacity: 0.9;
                transform: translate(3px, -2px);
                filter: brightness(2) contrast(1.5);
            }
            30% {
                opacity: 1;
                transform: translate(0, 0);
                filter: blur(2px);
            }
            35% {
                opacity: 0.95;
                filter: blur(0px) brightness(1.3);
            }
            40% {
                opacity: 1;
                transform: scaleY(0.98);
            }
            45% {
                opacity: 1;
                transform: scaleY(1.02);
            }
            50% {
                opacity: 1;
                transform: scaleY(1) scaleX(0.98);
                filter: brightness(3) saturate(2);
            }
            55% {
                opacity: 0.9;
                transform: scaleX(1.02);
            }
            60% {
                opacity: 1;
                transform: scale(1);
                filter: brightness(1.5);
            }
            70% {
                opacity: 0.8;
                filter: brightness(1);
            }
            80% {
                opacity: 0.5;
            }
            90% {
                opacity: 0.2;
            }
            100% {
                opacity: 0;
                filter: brightness(1) contrast(1);
            }
        }

        @keyframes intense-glitch {
            0%, 100% {
                opacity: 0;
            }
            5%, 15%, 25%, 35%, 45% {
                opacity: 0.8;
                background: repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 2px,
                    rgba(255, 255, 255, 0.1) 2px,
                    rgba(255, 255, 255, 0.1) 4px
                );
            }
            10%, 20%, 30%, 40%, 50% {
                opacity: 0.6;
                background: repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 3px,
                    rgba(0, 255, 255, 0.1) 3px,
                    rgba(0, 255, 255, 0.1) 6px
                );
            }
            55% {
                opacity: 1;
                background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
            }
            60% {
                opacity: 0;
            }
        }

        @keyframes theme-btn-pulse {
            0%, 100% {
                box-shadow: 0 0 15px var(--color-accent-primary);
            }
            50% {
                box-shadow: 0 0 25px var(--color-accent-primary), 0 0 35px var(--color-accent-primary);
            }
        }

        @media (max-width: 1200px) {
            .modules-container {
                flex-direction: column;
            }
            
            .module-details {
                min-height: 200px;
            }
            
            .terminal-container {
                padding: 20px;
            }
            
            .terminal-frame {
                padding: 25px;
            }
        }
        
        @media (max-width: 992px) {
            .terminal-header {
                font-size: 26px;
            }
            
            .section-title {
                font-size: 24px;
            }
            
            .crt-button {
                padding: 16px 35px;
                font-size: 17px;
            }
            
            .action-buttons-group {
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            :root { font-size: 14px; }
            
            .terminal-container { 
                padding: 15px; 
                padding-bottom: 200px;
            }
            
            .terminal-frame { 
                padding: 20px; 
            }
            
            .terminal-header { 
                font-size: 22px; 
                padding-bottom: 15px;
                word-break: break-word;
            }
            
            .ascii-logo {
                font-size: 10px;
                overflow-x: auto;
            }
            
            .system-checks {
                font-size: 12px;
            }
            
            .action-buttons-group {
                flex-direction: column;
                gap: 15px;
            }
            
            .action-buttons-group .crt-button {
                width: 100%;
                max-width: 400px;
            }
            
            .modules-table, 
            .modules-table thead, 
            .modules-table tbody,
            .modules-table th, 
            .modules-table td, 
            .modules-table tr {
                display: block;
            }
            
            .modules-table thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }
            
            .modules-table tbody tr {
                border: 1px solid var(--color-accent-primary);
                margin-bottom: 12px;
                padding: 12px;
                border-radius: var(--border-radius-md);
            }
            
            .modules-table tbody tr:hover {
                transform: none;
            }
            
            .modules-table td {
                border: none;
                position: relative;
                padding-left: 50%;
                min-height: 35px;
                display: flex;
                align-items: center;
            }
            
            .modules-table td:before {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                left: 12px;
                width: 45%;
                padding-right: 10px;
                white-space: nowrap;
                font-weight: bold;
                color: var(--color-accent-primary);
            }
            
            .modules-table td:nth-of-type(1):before { content: "ID:"; }
            .modules-table td:nth-of-type(2):before { content: "МОДУЛЬ:"; }
            .modules-table td:nth-of-type(3):before { content: "СТАТУС:"; }
            .modules-table td:nth-of-type(4):before { content: "УГРОЗА:"; }
            
            .terminal-footer {
                flex-direction: column;
                gap: 12px;
                padding: 15px;
                align-items: stretch;
            }
            
            .footer-segment {
                font-size: 13px;
                justify-content: center;
            }
            
            .footer-divider {
                display: none;
            }
            
            .theme-selector {
                justify-content: center;
                width: 100%;
            }
            
            .crt-button {
                padding: 15px 30px;
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            :root { font-size: 13px; }
            
            .no-signal {
                font-size: 36px;
            }
            
            .skip-hint {
                font-size: 13px;
                padding: 10px 20px;
                bottom: 20px;
                max-width: 90%;
            }
            
            .system-log {
                max-height: 250px;
                padding: 15px;
            }
            
            .log-entries {
                max-height: 180px;
            }

            .theme-btn {
                width: 20px;
                height: 20px;
            }
            
            .terminal-frame {
                padding: 15px;
            }
            
            .terminal-header {
                font-size: 18px;
            }
            
            .crt-button {
                padding: 14px 25px;
                font-size: 15px;
            }
            
            .modules-table td {
                padding: 12px;
                font-size: 13px;
            }
            
            .footer-segment {
                font-size: 12px;
            }
        }
        
        .footer-value.error {
            color: var(--color-warning);
            text-shadow: 0 0 10px var(--color-warning);
            animation: error-pulse 2s ease-in-out infinite;
        }
        
        @keyframes error-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Custom Context Menu Styles */
        .custom-context-menu {
            position: fixed;
            background: rgba(10, 10, 10, 0.98);
            border: 1px solid var(--color-accent-primary);
            border-radius: 0;
            padding: 0;
            font-family: 'Fira Code', 'Courier New', monospace;
            font-size: 13px;
            box-shadow: 
                0 0 20px rgba(var(--color-primary-rgb), 0.4),
                0 0 40px rgba(var(--color-primary-rgb), 0.2),
                inset 0 0 20px rgba(var(--color-primary-rgb), 0.05);
            z-index: 10000;
            display: none !important;
            min-width: 250px;
            backdrop-filter: blur(5px);
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.2s ease-out;
        }

        .custom-context-menu.show {
            display: block !important;
            visibility: visible;
            opacity: 1;
            animation: contextMenuOpen 0.2s ease-out;
        }

        @keyframes contextMenuOpen {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(-5px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .context-menu-header {
            padding: 8px 12px;
            background: linear-gradient(90deg, 
                rgba(var(--color-primary-rgb), 0.2) 0%,
                rgba(var(--color-primary-rgb), 0.05) 100%);
            border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.3);
            color: var(--color-accent-primary);
            font-weight: 600;
            text-align: center;
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .context-menu-separator {
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 10%, 
                rgba(var(--color-primary-rgb), 0.3) 50%, 
                transparent 90%);
            margin: 4px 0;
        }

        .context-menu-item {
            padding: 10px 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: all 0.15s ease;
            color: #b0b0b0;
            position: relative;
        }

        .context-menu-item:hover {
            background: linear-gradient(90deg, 
                rgba(var(--color-primary-rgb), 0.2) 0%,
                rgba(var(--color-primary-rgb), 0.1) 100%);
            color: var(--color-accent-primary);
            padding-left: 16px;
        }

        .context-menu-item.danger {
            color: #ff6b6b;
        }

        .context-menu-item.danger:hover {
            background: linear-gradient(90deg, 
                rgba(255, 107, 107, 0.2) 0%,
                rgba(255, 107, 107, 0.1) 100%);
            color: #ff3333;
        }

        .context-menu-icon {
            margin-right: 10px;
            font-size: 14px;
            opacity: 0.8;
            color: var(--color-accent-primary);
        }

        .context-menu-shortcut {
            margin-left: auto;
            opacity: 0.5;
            font-size: 11px;
            padding-left: 20px;
        }

        .context-menu-arrow {
            margin-left: auto;
            opacity: 0.6;
        }

        .context-menu-item.has-submenu:hover .context-menu-arrow {
            transform: translateX(2px);
            opacity: 1;
        }

        .context-submenu {
            position: absolute;
            left: 100%;
            top: 0;
            background: rgba(10, 10, 10, 0.98);
            border: 1px solid var(--color-accent-primary);
            min-width: 180px;
            display: none !important;
            box-shadow: 
                0 0 20px rgba(var(--color-primary-rgb), 0.4),
                0 0 40px rgba(var(--color-primary-rgb), 0.2);
            backdrop-filter: blur(5px);
        }

        .context-menu-item.has-submenu:hover + .context-submenu,
        .context-submenu:hover {
            display: block !important;
            animation: contextMenuOpen 0.15s ease-out;
        }

        .theme-color-dot {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 10px;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .theme-color-dot.orange {
            background: #ff6b35;
        }

        .theme-color-dot.cyan {
            background: #00ffff;
        }

        .theme-color-dot.red {
            background: #ff0040;
        }

        .theme-color-dot.green {
            background: #00ff00;
        }

        .theme-color-dot.purple {
            background: #b366ff;
        }

        .context-menu-footer {
            padding: 8px 12px;
            background: linear-gradient(90deg, 
                rgba(var(--color-primary-rgb), 0.15) 0%,
                rgba(var(--color-primary-rgb), 0.05) 100%);
            border-top: 1px solid rgba(var(--color-primary-rgb), 0.3);
            color: var(--color-accent-primary);
            font-size: 10px;
            text-align: center;
            opacity: 0.6;
            letter-spacing: 0.5px;
        }

        /* Глитч эффект для контекстного меню при наведении */
        .custom-context-menu:hover {
            animation: contextGlitch 8s infinite;
        }

        @keyframes contextGlitch {
            0%, 100% {
                border-color: var(--color-accent-primary);
                filter: hue-rotate(0deg);
            }
            2% {
                border-color: var(--color-accent-secondary);
                transform: translateX(1px);
            }
            4% {
                border-color: var(--color-accent-primary);
                transform: translateX(-1px);
            }
            6% {
                transform: translateX(0);
            }
        }