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

:root {
    --primary-cyan: #00ffff;
    --primary-cyan-glow: rgba(0, 255, 255, 0.6);
    --primary-orange: #ff6b35;
    --primary-blue: #0096ff;
    --bg-dark: #0a0e1a;
    --bg-darker: #030508;
    --panel-bg: rgba(8, 12, 24, 0.92);
    --panel-border: rgba(0, 255, 255, 0.35);
    --text-primary: #f0f4f8;
    --text-secondary: #8b9bb0;
    --success-green: #00ffaa;
    --warning-orange: #ffaa00;
    --danger-red: #ff3366;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: radial-gradient(ellipse at top, #0a0e1f 0%, #020306 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 800px 600px at 15% 25%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 600px 800px at 85% 75%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(10, 150, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambient-pulse 8s ease-in-out infinite alternate;
}

@keyframes ambient-pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    animation: grid-drift 60s linear infinite;
}

@keyframes grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 3px
    );
    pointer-events: none;
    z-index: 999;
    opacity: 0.3;
    animation: scanline-move 12s linear infinite;
}

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

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 300px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 998;
}

.hidden {
    display: none !important;
}

/* Mission Control Container */
.mission-control {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

/* Enhanced Header Bar */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.98) 0%, rgba(8, 12, 24, 0.92) 100%);
    border-bottom: 1px solid var(--panel-border);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(0, 255, 255, 0.1) inset,
        0 4px 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

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

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-cyan);
    text-shadow:
        0 0 20px var(--primary-cyan-glow),
        0 0 40px var(--primary-cyan-glow),
        0 0 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.25em;
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% { text-shadow: 0 0 20px var(--primary-cyan-glow), 0 0 40px var(--primary-cyan-glow), 0 0 2px rgba(255, 255, 255, 0.8); }
    100% { text-shadow: 0 0 30px var(--primary-cyan-glow), 0 0 60px var(--primary-cyan-glow), 0 0 3px rgba(255, 255, 255, 1); }
}

.mission-id {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 4px;
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1) inset;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success-green);
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-green);
    box-shadow:
        0 0 10px var(--success-green),
        0 0 20px var(--success-green),
        0 0 30px rgba(0, 255, 170, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--success-green), 0 0 20px var(--success-green), 0 0 30px rgba(0, 255, 170, 0.5);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.3);
        box-shadow: 0 0 15px var(--success-green), 0 0 30px var(--success-green), 0 0 40px rgba(0, 255, 170, 0.7);
    }
}

.live-clock {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-shadow:
        0 0 10px var(--primary-cyan-glow),
        0 0 20px var(--primary-cyan-glow);
    letter-spacing: 0.1em;
}

/* Enhanced Input Section */
.input-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.control-panel {
    width: 100%;
    max-width: 900px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 3rem 3.5rem;
    box-shadow:
        0 0 60px rgba(0, 255, 255, 0.25),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(0, 255, 255, 0.1),
        inset 0 0 80px rgba(0, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.control-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.08), transparent);
    animation: panel-scan 4s ease-in-out infinite;
    transform: rotate(45deg);
}

@keyframes panel-scan {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

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

.panel-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 0.12em;
    text-shadow:
        0 0 20px var(--primary-cyan-glow),
        0 0 2px rgba(255, 255, 255, 0.8);
}

.panel-status {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: var(--warning-orange);
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--warning-orange);
    border-radius: 4px;
    background: rgba(255, 170, 0, 0.08);
    box-shadow:
        0 0 20px rgba(255, 170, 0, 0.2),
        inset 0 0 20px rgba(255, 170, 0, 0.05);
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.input-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-module {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.module-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(139, 155, 176, 0.3);
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.time-input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.time-input-box input {
    width: 110px;
    padding: 1.4rem 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    background: rgba(0, 255, 255, 0.04);
    border: 2px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    color: var(--primary-cyan);
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1) inset,
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.time-input-box input:focus {
    outline: none;
    background: rgba(0, 255, 255, 0.08);
    border-color: var(--primary-cyan);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.15) inset,
        0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.input-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.time-separator {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-top: -2rem;
    text-shadow: 0 0 20px var(--primary-cyan-glow);
    animation: separator-pulse 2s ease-in-out infinite;
}

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

.divider-line {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3) 20%, rgba(0, 255, 255, 0.3) 80%, transparent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.divider-line span {
    position: relative;
    padding: 0 1.5rem;
    background: var(--panel-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.datetime-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 255, 255, 0.04);
    border: 2px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    color: var(--primary-cyan);
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1) inset,
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.datetime-input:focus {
    outline: none;
    background: rgba(0, 255, 255, 0.08);
    border-color: var(--primary-cyan);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.15) inset,
        0 4px 20px rgba(0, 0, 0, 0.4);
}

.initiate-btn {
    position: relative;
    width: 100%;
    margin-top: 2.5rem;
    padding: 1.8rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 30px rgba(255, 107, 53, 0.5),
        0 0 40px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.initiate-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(255, 107, 53, 0.7),
        0 0 60px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 53, 0.8);
}

.initiate-btn:active {
    transform: translateY(-1px);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Enhanced Countdown Section */
.countdown-section {
    padding: 2rem;
    min-height: calc(100vh - 100px);
}

.display-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Enhanced Data Modules */
.data-module {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 255, 0.08),
        inset 0 1px 0 rgba(0, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.data-module:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 255, 0.15),
        inset 0 1px 0 rgba(0, 255, 255, 0.15),
        inset 0 0 40px rgba(0, 255, 255, 0.04);
}

.module-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(139, 155, 176, 0.3);
}

/* Enhanced Gauges */
.gauge-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gauge-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.5) inset,
        0 4px 10px rgba(0, 0, 0, 0.3);
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    box-shadow:
        0 0 20px var(--primary-cyan-glow),
        0 0 10px var(--primary-cyan) inset;
    transition: width 0.5s ease;
    position: relative;
}

.gauge-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: gauge-shine 2.5s ease-in-out infinite;
}

.gauge-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
}

@keyframes gauge-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.gauge-fill.thrust {
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--danger-red) 100%);
    box-shadow:
        0 0 20px rgba(255, 107, 53, 0.6),
        0 0 10px var(--primary-orange) inset;
}

.gauge-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-align: right;
    text-shadow: 0 0 10px var(--primary-cyan-glow);
}

/* Enhanced Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

.check-item.active {
    color: var(--success-green);
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}

.check-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 155, 176, 0.3);
    border: 2px solid var(--text-secondary);
    transition: all 0.4s ease;
    box-shadow: 0 0 5px rgba(139, 155, 176, 0.2) inset;
}

.check-item.active .check-dot {
    background: var(--success-green);
    border-color: var(--success-green);
    box-shadow:
        0 0 15px var(--success-green),
        0 0 25px rgba(0, 255, 170, 0.5),
        0 0 5px var(--success-green) inset;
    animation: check-pulse 1.5s ease-in-out infinite;
}

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

/* Enhanced Telemetry */
.telemetry-data {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-cyan);
    line-height: 1.8;
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.telem-line {
    animation: telem-flicker 0.15s infinite;
}

@keyframes telem-flicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Enhanced Center Panel */
.center-panel {
    display: flex;
    flex-direction: column;
}

.timer-container {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 2rem;
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    border-radius: 10px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 255, 255, 0.15),
        inset 0 1px 0 rgba(0, 255, 255, 0.15),
        inset 0 0 60px rgba(0, 255, 255, 0.04);
    backdrop-filter: blur(15px);
}

.timer-label {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.4em;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 10px rgba(139, 155, 176, 0.3);
}

.timer-display {
    font-family: 'Orbitron', monospace;
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--primary-cyan);
    text-shadow:
        0 0 40px var(--primary-cyan-glow),
        0 0 80px rgba(0, 255, 255, 0.4),
        0 0 120px rgba(0, 255, 255, 0.2),
        0 0 3px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.12em;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.timer-sublabel {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Enhanced Launch Viewport */
.launch-viewport {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(0, 20, 40, 0.8) 0%, transparent 60%),
        linear-gradient(to bottom, #000508 0%, #001018 40%, #001a28 70%, #002030 100%);
    border: 2px solid var(--panel-border);
    border-radius: 10px;
    height: 650px;
    overflow: hidden;
    box-shadow:
        0 8px 50px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 255, 255, 0.12),
        inset 0 1px 0 rgba(0, 255, 255, 0.1),
        inset 0 0 80px rgba(0, 50, 100, 0.2);
}

.viewport-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.4;
    animation: grid-pulse 4s ease-in-out infinite alternate;
}

@keyframes grid-pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.5; }
}

.distance-markers {
    position: absolute;
    left: 25px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 0;
    z-index: 5;
}

.marker {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-cyan);
    opacity: 0.5;
    position: relative;
    text-shadow: 0 0 10px var(--primary-cyan-glow);
}

.marker::before {
    content: '';
    position: absolute;
    right: -35px;
    top: 50%;
    width: 25px;
    height: 1px;
    background: var(--primary-cyan);
    opacity: 0.5;
    box-shadow: 0 0 8px var(--primary-cyan-glow);
}

/* Enhanced Launch Complex */
.launch-complex {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.atmosphere-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(255, 120, 60, 0.25) 0%, rgba(255, 80, 30, 0.1) 40%, transparent 70%);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.smoke-clouds {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 180px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.smoke-clouds::before,
.smoke-clouds::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(220, 220, 220, 0.5) 0%, rgba(180, 180, 180, 0.3) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    animation: smoke-rise 3.5s ease-out infinite;
}

.smoke-clouds::after {
    left: 60px;
    animation-delay: 1.2s;
}

@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(0.4);
        opacity: 0;
    }
    25% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-180px) scale(1.8);
        opacity: 0;
    }
}

/* Enhanced Rocket Assembly */
.rocket-assembly {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.3s ease;
    filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.9));
}

.rocket {
    position: relative;
    width: 90px;
    height: 300px;
}

/* Enhanced Nosecone */
.nosecone {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 65px;
    filter: drop-shadow(0 -4px 8px rgba(255, 255, 255, 0.3));
}

.nosecone-tip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 27.5px solid transparent;
    border-right: 27.5px solid transparent;
    border-bottom: 45px solid #f0f2f5;
    filter: drop-shadow(0 -3px 6px rgba(255, 255, 255, 0.5));
}

.nosecone-body {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 20px;
    background: linear-gradient(to right, #d5d8dc 0%, #f0f2f5 50%, #d5d8dc 100%);
    clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced Upper Stage */
.upper-stage {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 65px;
    background: linear-gradient(to right, #c0c5ca 0%, #e5e8ec 50%, #c0c5ca 100%);
    border-radius: 3px;
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.stage-panel {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(10, 150, 255, 0.12));
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow:
        0 0 15px rgba(0, 255, 255, 0.3) inset,
        0 0 20px rgba(0, 255, 255, 0.2);
}

.stage-band {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #ff6b35 0%, #ffaa00 50%, #ff6b35 100%);
    box-shadow:
        0 0 15px rgba(255, 107, 53, 0.8),
        0 0 25px rgba(255, 170, 0, 0.6);
}

.stage-window {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #00e5ff 0%, #0099cc 60%, #006699 100%);
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 229, 255, 0.8),
        0 0 25px rgba(0, 150, 255, 0.5);
}

/* Enhanced Main Body */
.main-body {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 85px;
    background: linear-gradient(to right, #a8adb2 0%, #d0d5da 50%, #a8adb2 100%);
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.25),
        inset 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.body-panel {
    position: absolute;
    top: 6px;
    width: 12px;
    height: calc(100% - 12px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
}

.body-panel.left {
    left: 6px;
}

.body-panel.right {
    right: 6px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.25) 100%);
}

.body-stripe {
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(255, 107, 53, 0.25) 0%,
        rgba(255, 107, 53, 0.45) 30%,
        rgba(255, 107, 53, 0.6) 50%,
        rgba(255, 107, 53, 0.45) 70%,
        rgba(255, 107, 53, 0.25) 100%);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.body-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: var(--primary-cyan);
    text-shadow:
        0 0 15px var(--primary-cyan-glow),
        0 0 30px var(--primary-cyan-glow);
}

/* Enhanced Lower Stage */
.lower-stage {
    position: absolute;
    top: 215px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 45px;
    background: linear-gradient(to right, #909499 0%, #b0b5ba 50%, #909499 100%);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.2),
        inset 0 -2px 8px rgba(0, 0, 0, 0.35);
}

.stage-detail {
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 4px;
    background: linear-gradient(to right, #ff6b35 0%, #ff8c42 50%, #ff6b35 100%);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

.stage-vent {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 3px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) inset;
}

/* Enhanced Fins */
.fins {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 45px;
}

.fin {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.fin-1 {
    left: -30px;
    border-width: 45px 0 0 35px;
    border-color: transparent transparent transparent #888d92;
    filter: drop-shadow(-3px 3px 6px rgba(0, 0, 0, 0.6));
}

.fin-2 {
    right: -30px;
    border-width: 0 0 45px 35px;
    border-color: transparent transparent #686d72 transparent;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.6));
}

.fin-3 {
    left: 6px;
    border-width: 45px 0 0 24px;
    border-color: transparent transparent transparent #787d82;
    filter: drop-shadow(-2px 2px 4px rgba(0, 0, 0, 0.4));
}

.fin-4 {
    right: 6px;
    border-width: 0 0 45px 24px;
    border-color: transparent transparent #585d62 transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}

/* Enhanced Engine Section */
.engine-section {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 45px;
}

.engine-ring {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: linear-gradient(to bottom, #4a4a4a 0%, #1a1a1a 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.8);
}

.engine-nozzle {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 28px;
    background: linear-gradient(to bottom, #3a3a3a 0%, #0a0a0a 100%);
    border-radius: 3px 3px 50% 50%;
    box-shadow:
        inset 0 -8px 8px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.6);
}

.engine-nozzle::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
    border-radius: 50%;
}

.engine-nozzle.center {
    left: 50%;
    transform: translateX(-50%);
}

.engine-nozzle.left {
    left: 10px;
}

.engine-nozzle.right {
    right: 10px;
}

/* Enhanced Exhaust Flames */
.exhaust-group {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.flame {
    position: absolute;
    bottom: 0;
    width: 22px;
    height: 100px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 240, 200, 0.95) 8%,
        rgba(255, 200, 100, 0.9) 25%,
        rgba(255, 150, 40, 0.85) 45%,
        rgba(255, 100, 20, 0.7) 65%,
        rgba(255, 60, 0, 0.4) 85%,
        transparent 100%);
    border-radius: 50% 50% 50% 50% / 15% 15% 85% 85%;
    filter: blur(2px);
    animation: flame-flicker 0.04s infinite alternate;
}

@keyframes flame-flicker {
    0% {
        transform: scaleY(1) scaleX(0.92);
        opacity: 0.95;
    }
    100% {
        transform: scaleY(1.12) scaleX(1.08);
        opacity: 1;
    }
}

.flame-center {
    left: 50%;
    transform: translateX(-50%);
    height: 110px;
    width: 24px;
    filter: blur(1.5px);
}

.flame-left {
    left: 10px;
    height: 92px;
    animation-delay: 0.02s;
}

.flame-right {
    right: 10px;
    height: 92px;
    animation-delay: 0.03s;
}

.heat-distortion {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 150px;
    background: radial-gradient(ellipse at center,
        rgba(255, 180, 50, 0.4) 0%,
        rgba(255, 120, 30, 0.25) 35%,
        transparent 70%);
    filter: blur(20px);
    animation: heat-wave 0.08s infinite;
}

@keyframes heat-wave {
    0%, 100% { transform: translateX(-50%) scaleY(1) scaleX(1); }
    50% { transform: translateX(-50%) scaleY(1.15) scaleX(0.95); }
}

/* Enhanced Launch Pad */
.launch-pad {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    z-index: 5;
}

.pad-structure {
    position: relative;
    width: 130px;
    height: 90px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #505050 0%, #2a2a2a 100%);
    border-radius: 6px 6px 0 0;
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.15),
        inset 0 -2px 8px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.8);
}

.pad-structure::before,
.pad-structure::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(to bottom, #606060 0%, #353535 100%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

.pad-structure::before {
    left: -18px;
    border-radius: 3px 0 0 0;
}

.pad-structure::after {
    right: -18px;
    border-radius: 0 3px 0 0;
}

.pad-base {
    width: 200px;
    height: 35px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #3a3a3a 0%, #1a1a1a 100%);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.6);
    border-radius: 3px;
}

/* Enhanced Rocket Animation States */
.rocket-assembly.priming {
    animation: rocket-priming 2.5s ease-in-out infinite;
}

@keyframes rocket-priming {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    25% { transform: translateX(-50%) translateY(-4px); }
    50% { transform: translateX(-50%) translateY(0); }
    75% { transform: translateX(-50%) translateY(-4px); }
}

.rocket-assembly.priming .exhaust-group {
    opacity: 0.4;
}

.rocket-assembly.priming ~ .smoke-clouds {
    opacity: 0.5;
}

.rocket-assembly.priming ~ .atmosphere-glow {
    opacity: 0.3;
}

.rocket-assembly.ready {
    animation: rocket-ready 1.2s ease-in-out infinite;
}

@keyframes rocket-ready {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

.rocket-assembly.ready .exhaust-group {
    opacity: 0.8;
}

.rocket-assembly.ready ~ .smoke-clouds {
    opacity: 0.8;
}

.rocket-assembly.ready ~ .atmosphere-glow {
    opacity: 0.6;
}

.rocket-assembly.launching {
    animation: rocket-launch 3.5s cubic-bezier(0.32, 0, 0.15, 1) forwards;
}

@keyframes rocket-launch {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
        filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.9));
    }
    15% {
        transform: translateX(-50%) translateY(-80px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-750px) scale(0.25);
        opacity: 0;
        filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.5));
    }
}

.rocket-assembly.launching .exhaust-group {
    opacity: 1;
    height: 180px;
}

.rocket-assembly.launching .flame {
    height: 180px;
}

.rocket-assembly.launching .flame-center {
    height: 200px;
}

.rocket-assembly.launching ~ .smoke-clouds {
    opacity: 1;
}

.rocket-assembly.launching ~ .atmosphere-glow {
    opacity: 1;
}

/* Enhanced Graphs */
.graph-display {
    position: relative;
    width: 100%;
    height: 110px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 6px;
    margin-bottom: 0.6rem;
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.5) inset,
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.graph-display canvas {
    width: 100%;
    height: 100%;
}

.graph-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-align: center;
    text-shadow: 0 0 15px var(--primary-cyan-glow);
}

/* Enhanced Status Log */
.status-log {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--success-green);
    max-height: 160px;
    overflow-y: auto;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}

.status-log::-webkit-scrollbar {
    width: 4px;
}

.status-log::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.status-log::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan-glow);
}

.log-entry {
    padding: 0.35rem 0;
    opacity: 0.9;
    animation: log-fade-in 0.6s ease;
}

@keyframes log-fade-in {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 0.9;
        transform: translateX(0);
    }
}

/* Enhanced Weather */
.weather-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.weather-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan-glow);
}

/* Enhanced Abort Button */
.abort-btn {
    display: block;
    margin: 0 auto;
    padding: 1.2rem 2.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.15), rgba(255, 0, 0, 0.15));
    border: 2px solid var(--danger-red);
    border-radius: 6px;
    color: var(--danger-red);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 0 30px rgba(255, 51, 102, 0.2),
        inset 0 0 20px rgba(255, 51, 102, 0.05);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.abort-btn:hover {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.3), rgba(255, 0, 0, 0.3));
    box-shadow:
        0 0 40px rgba(255, 51, 102, 0.5),
        inset 0 0 30px rgba(255, 51, 102, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .display-grid {
        grid-template-columns: 1fr;
    }

    .left-panel, .right-panel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .left-panel {
        order: 2;
    }

    .center-panel {
        order: 1;
    }

    .right-panel {
        order: 3;
    }
}

@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .header-left, .header-center, .header-right {
        justify-content: center;
    }

    .logo {
        font-size: 1.3rem;
    }

    .timer-display {
        font-size: 3.5rem;
    }

    .time-input-box input {
        width: 80px;
        font-size: 1.6rem;
        padding: 1rem 0.6rem;
    }

    .launch-viewport {
        height: 450px;
    }

    .rocket-assembly {
        transform: translateX(-50%) scale(0.75);
    }

    .control-panel {
        padding: 2rem;
    }
}
