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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    color: #00ffff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated starfield background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    z-index: -2;
}

.starfield::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        25vw 5vh 0 #fff,
        45vw 15vh 0 #00ffff,
        75vw 25vh 0 #fff,
        15vw 35vh 0 #ff4081,
        85vw 45vh 0 #fff,
        35vw 55vh 0 #00ffff,
        65vw 65vh 0 #fff,
        95vw 75vh 0 #ff4081,
        55vw 85vh 0 #fff,
        5vw 95vh 0 #00ffff,
        30vw 10vh 0 #fff,
        70vw 20vh 0 #ff4081,
        90vw 30vh 0 #fff,
        20vw 40vh 0 #00ffff,
        60vw 50vh 0 #fff,
        80vw 60vh 0 #ff4081,
        40vw 70vh 0 #fff,
        10vw 80vh 0 #00ffff,
        50vw 90vh 0 #fff,
        90vw 10vh 0 #ff4081;
    animation: twinkle 3s infinite;
}

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

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

/* Header */
.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 64, 129, 0.1) 100%);
    border-bottom: 2px solid #00ffff;
    backdrop-filter: blur(10px);
    position: relative;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-ring {
    width: 40px;
    height: 40px;
    border: 3px solid #00ffff;
    border-radius: 50%;
    position: relative;
    animation: logoSpin 8s linear infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #00ffff 0%, transparent 70%);
    border-radius: 50%;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

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

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: statusBlink 2s ease-in-out infinite;
}

.status-dot.online {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

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

.time-display {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.mission-status {
    font-size: 0.9rem;
    color: #ff4081;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-ring {
    width: 35px;
    height: 35px;
    border: 2px solid #ff4081;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.3) 0%, transparent 70%);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 5px #ff4081; }
    50% { box-shadow: 0 0 20px #ff4081; }
}

/* Main Interface */
.main-interface {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Panels */
.left-panel, .right-panel {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.left-panel::before, .right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00ffff 50%, transparent 100%);
    animation: borderScan 3s linear infinite;
}

@keyframes borderScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.center-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.panel-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-indicator {
    width: 15px;
    height: 15px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Diagnostics */
.diagnostic-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.diagnostic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.diag-label {
    flex: 1;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
}

.progress-bar {
    flex: 2;
    height: 8px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00 0%, #ffff00 70%, #ff0000 100%);
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 5px #fff;
    animation: progressScan 2s ease-in-out infinite;
}

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

.diag-value {
    flex: 0 0 auto;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00ffff;
}

/* Controls */
.control-section {
    margin-top: 2rem;
}

.control-section h4 {
    color: #ff4081;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.control-btn {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.control-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 255, 255, 0.1) 100%);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.btn-icon, .tool-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn-label, .tool-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Display */
.main-display {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    flex: 1;
}

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

.display-header h2 {
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.display-controls {
    display: flex;
    gap: 1rem;
}

.display-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.display-btn:hover, .display-btn.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Holographic Container */
.holo-container {
    position: relative;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.holo-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: holoGridMove 10s linear infinite;
}

@keyframes holoGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(25px, 25px); }
}

.scanner-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 255, 255, 0.3) 10deg, transparent 20deg);
    border-radius: 50%;
    animation: scannerRotate 4s linear infinite;
}

@keyframes scannerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.target-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.target-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ff4081;
    border-radius: 50%;
    animation: targetPulse 2s ease-in-out infinite;
}

.target-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ff4081;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4081;
}

@keyframes targetPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.holo-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #00ffff;
    animation: holoTextGlow 3s ease-in-out infinite;
}

@keyframes holoTextGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Tool Rack */
.tool-rack {
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255, 64, 129, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.tool-section {
    margin-bottom: 2rem;
}

.tool-section:last-child {
    margin-bottom: 0;
}

.tool-section h4 {
    color: #ff4081;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.tool-btn {
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255, 64, 129, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #ff4081;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 64, 129, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.tool-btn:hover::before {
    left: 100%;
}

.tool-btn:hover {
    border-color: #ff4081;
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.3);
    transform: translateY(-2px);
}

/* Communications Panel */
.communications-panel {
    margin-bottom: 2rem;
}

.signal-strength {
    display: flex;
    gap: 3px;
}

.signal-bar {
    width: 4px;
    height: 15px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
}

.signal-bar.active {
    background: #00ffff;
    box-shadow: 0 0 5px #00ffff;
    animation: signalPulse 2s ease-in-out infinite;
}

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

.comm-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    padding: 1rem;
    height: 150px;
    overflow-y: auto;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.message {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.message.incoming {
    color: #00ff00;
}

.message.outgoing {
    color: #ff4081;
    text-align: right;
}

.timestamp {
    font-size: 0.7rem;
    color: #888;
}

.sender {
    font-weight: bold;
    text-transform: uppercase;
}

.comm-input {
    display: flex;
    gap: 0.5rem;
}

.comm-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 3px;
    padding: 0.5rem;
    color: #00ffff;
    font-family: 'Courier New', monospace;
}

.comm-input input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.comm-input button {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 3px;
    padding: 0.5rem 1rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.comm-input button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* Quantum Processor */
.quantum-processor {
    margin-bottom: 2rem;
}

.quantum-indicator {
    width: 15px;
    height: 15px;
    background: #ff4081;
    border-radius: 50%;
    animation: quantumSpin 3s linear infinite;
}

@keyframes quantumSpin {
    0% { transform: rotate(0deg) scale(1); box-shadow: 0 0 5px #ff4081; }
    50% { transform: rotate(180deg) scale(1.2); box-shadow: 0 0 15px #ff4081; }
    100% { transform: rotate(360deg) scale(1); box-shadow: 0 0 5px #ff4081; }
}

.quantum-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 64, 129, 0.3);
    border-radius: 5px;
    padding: 1rem;
    height: 120px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.quantum-field {
    position: relative;
    width: 100%;
    height: 100%;
}

.quantum-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff4081;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4081;
    animation: quantumFloat 4s ease-in-out infinite;
}

.quantum-particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.quantum-particle:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
}

.quantum-particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 2s;
}

.quantum-particle:nth-child(4) {
    top: 40%;
    left: 80%;
    animation-delay: 3s;
}

@keyframes quantumFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translate(20px, -10px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-10px, 20px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translate(-20px, -15px) scale(1.1);
        opacity: 0.9;
    }
}

.quantum-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.quantum-btn {
    background: rgba(255, 64, 129, 0.1);
    border: 1px solid rgba(255, 64, 129, 0.3);
    border-radius: 3px;
    padding: 0.5rem 1rem;
    color: #ff4081;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.quantum-btn:hover {
    background: rgba(255, 64, 129, 0.2);
    box-shadow: 0 0 5px rgba(255, 64, 129, 0.3);
}

.quantum-level {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #ff4081;
    text-shadow: 0 0 5px #ff4081;
}

/* Mission Objectives */
.objective-list {
    list-style: none;
}

.objective {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.objective:last-child {
    border-bottom: none;
}

.obj-status {
    width: 20px;
    text-align: center;
    font-weight: bold;
}

.objective.completed .obj-status {
    color: #00ff00;
    animation: completedGlow 2s ease-in-out infinite;
}

.objective.active .obj-status {
    color: #ffff00;
    animation: activePulse 1s ease-in-out infinite;
}

.objective .obj-status {
    color: #666;
}

@keyframes completedGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

.obj-text {
    flex: 1;
    font-size: 0.9rem;
}

.objective.completed .obj-text {
    color: #888;
    text-decoration: line-through;
}

.objective.active .obj-text {
    color: #ffff00;
    font-weight: bold;
}

/* Footer */
.command-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 64, 129, 0.1) 100%);
    border-top: 2px solid #00ffff;
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
}

.system-info {
    color: #888;
    font-family: 'Courier New', monospace;
}

.warning-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00ff00;
    font-weight: bold;
    text-transform: uppercase;
}

.warning-icon {
    animation: warningBlink 2s ease-in-out infinite;
}

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

.coordinates {
    font-family: 'Orbitron', monospace;
    color: #00ffff;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    padding: 0.5rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.audio-btn.muted .audio-icon {
    opacity: 0.5;
}

#volumeSlider {
    width: 80px;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px #00ffff;
}

#volumeSlider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px #00ffff;
}

/* Self Destruct Button */
.self-destruct-btn {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(139, 0, 0, 0.3) 100%);
    border: 2px solid #ff0000;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: #ff0000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: bold;
    animation: destructPulse 2s ease-in-out infinite;
}

@keyframes destructPulse {
    0%, 100% { 
        box-shadow: 0 0 5px #ff0000; 
        border-color: #ff0000;
    }
    50% { 
        box-shadow: 0 0 20px #ff0000, 0 0 30px rgba(255, 0, 0, 0.5); 
        border-color: #ff4444;
    }
}

.self-destruct-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 0, 0.3) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.self-destruct-btn:hover::before {
    left: 100%;
}

.self-destruct-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.4) 0%, rgba(139, 0, 0, 0.5) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px #ff0000, 0 0 35px rgba(255, 0, 0, 0.5);
}

.destruct-icon {
    display: inline-block;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    animation: destructIconPulse 1s ease-in-out infinite;
}

@keyframes destructIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.destruct-label {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Self Destruct Modal */
.self-destruct-modal {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
}

.destruct-content {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
    border: 3px solid #ff0000 !important;
    box-shadow: 0 0 50px #ff0000, inset 0 0 50px rgba(255, 0, 0, 0.1) !important;
    animation: destructModalPulse 1s ease-in-out infinite;
}

@keyframes destructModalPulse {
    0%, 100% { 
        border-color: #ff0000;
        box-shadow: 0 0 50px #ff0000, inset 0 0 50px rgba(255, 0, 0, 0.1);
    }
    50% { 
        border-color: #ff4444;
        box-shadow: 0 0 80px #ff0000, inset 0 0 80px rgba(255, 0, 0, 0.2);
    }
}

.destruct-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ff0000;
}

.destruct-header h2 {
    font-family: 'Orbitron', monospace;
    color: #ff0000;
    font-size: 2rem;
    text-shadow: 0 0 20px #ff0000;
    animation: destructHeaderFlash 0.5s ease-in-out infinite alternate;
}

@keyframes destructHeaderFlash {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.destruct-warning {
    color: #ffff00;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: destructWarningBlink 1s ease-in-out infinite;
}

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

/* Countdown Display */
.countdown-container {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.countdown-display {
    position: relative;
    z-index: 2;
}

.countdown-number {
    font-family: 'Orbitron', monospace;
    font-size: 6rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 60px #ff0000;
    animation: countdownPulse 1s ease-in-out infinite;
    display: block;
}

@keyframes countdownPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.countdown-label {
    font-size: 1.2rem;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 1rem;
    animation: countdownLabelFlash 2s ease-in-out infinite;
}

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

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 0, 0.1) 2px,
            rgba(255, 0, 0, 0.1) 4px
        );
    animation: glitchEffect 0.3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes glitchEffect {
    0% { 
        transform: translateX(0px);
        filter: hue-rotate(0deg);
    }
    10% { 
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }
    20% { 
        transform: translateX(2px);
        filter: hue-rotate(180deg);
    }
    30% { 
        transform: translateX(-1px);
        filter: hue-rotate(270deg);
    }
    40% { 
        transform: translateX(1px);
        filter: hue-rotate(360deg);
    }
    50% { 
        transform: translateX(-3px);
        filter: hue-rotate(180deg);
    }
    60% { 
        transform: translateX(3px);
        filter: hue-rotate(90deg);
    }
    70% { 
        transform: translateX(-1px);
        filter: hue-rotate(270deg);
    }
    80% { 
        transform: translateX(1px);
        filter: hue-rotate(180deg);
    }
    90% { 
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }
    100% { 
        transform: translateX(0px);
        filter: hue-rotate(0deg);
    }
}

/* Destruct Controls */
.destruct-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.abort-btn {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 139, 0, 0.3) 100%);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 1rem 2rem;
    color: #00ff00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: abortPulse 2s ease-in-out infinite;
}

@keyframes abortPulse {
    0%, 100% { 
        box-shadow: 0 0 10px #00ff00; 
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px #00ff00, 0 0 40px rgba(0, 255, 0, 0.5); 
        transform: scale(1.05);
    }
}

.abort-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.4) 0%, rgba(0, 139, 0, 0.5) 100%);
    box-shadow: 0 0 40px #00ff00, 0 0 50px rgba(0, 255, 0, 0.5);
}

.abort-icon {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.abort-code {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 0, 0.3);
    border-radius: 5px;
}

.abort-code label {
    color: #ffff00;
    font-weight: bold;
    text-transform: uppercase;
}

.abort-code input {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 0, 0.5);
    border-radius: 3px;
    padding: 0.5rem;
    color: #ffff00;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.abort-code input:focus {
    outline: none;
    border-color: #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.abort-code button {
    background: rgba(255, 255, 0, 0.2);
    border: 1px solid #ffff00;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    color: #ffff00;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.abort-code button:hover {
    background: rgba(255, 255, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

/* System Warnings */
.system-warnings {
    margin-top: 2rem;
}

.warning-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff0000;
    border-radius: 0 5px 5px 0;
    animation: warningItemFlash 3s ease-in-out infinite;
}

@keyframes warningItemFlash {
    0%, 100% { 
        background: rgba(255, 0, 0, 0.1);
        border-left-color: #ff0000;
    }
    50% { 
        background: rgba(255, 0, 0, 0.2);
        border-left-color: #ff4444;
    }
}

.warning-item .warning-icon {
    font-size: 1.5rem;
    animation: warningIconSpin 2s linear infinite;
}

@keyframes warningIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.warning-item .warning-text {
    color: #ff0000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: warningTextPulse 1.5s ease-in-out infinite;
}

@keyframes warningTextPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Critical Countdown Effects */
.countdown-critical .countdown-number {
    color: #ffffff !important;
    animation: criticalFlash 0.2s ease-in-out infinite !important;
    text-shadow: 
        0 0 30px #ff0000,
        0 0 60px #ff0000,
        0 0 90px #ff0000,
        0 0 120px #ffffff !important;
}

@keyframes criticalFlash {
    0%, 100% { 
        color: #ff0000;
        transform: scale(1);
    }
    50% { 
        color: #ffffff;
        transform: scale(1.2);
    }
}

.countdown-final .countdown-number {
    animation: finalCountdown 0.1s ease-in-out infinite !important;
    font-size: 8rem !important;
}

@keyframes finalCountdown {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.3) rotate(2deg);
        filter: brightness(2);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.modal-header h3 {
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn {
    background: none;
    border: none;
    color: #ff4081;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px #ff4081;
}

.modal-body {
    color: #ccc;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-interface {
        grid-template-columns: 250px 1fr 300px;
    }
}

@media (max-width: 768px) {
    .main-interface {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
    }
    
    .command-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-left, .header-right {
        justify-content: center;
    }
    
    .tool-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .control-grid {
        grid-template-columns: 1fr;
    }
}