/* OPERATION: HOLLOW SKIES - MONOCHROME TACTICAL HUD DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Orbitron:wght@600;700;800;900&family=Share+Tech+Mono&display=swap');

:root {
    --bg-void: #030508;
    --bg-surface: #06090e;
    --bg-panel: rgba(8, 12, 18, 0.92);
    --bg-card: rgba(10, 15, 22, 0.85);

    /* Single Unified Accent Tone: Tactical Crimson */
    --hud-red: #ff2444;
    --hud-red-bright: #ff4763;
    --hud-red-dim: rgba(255, 36, 68, 0.22);
    --hud-red-subtle: rgba(255, 36, 68, 0.08);
    --hud-red-glow: 0 0 10px rgba(255, 36, 68, 0.5);

    /* Monochrome Text & Data */
    --text-primary: #ffffff;
    --text-silver: #c5d2df;
    --text-dim: #627385;
    --text-accent: #ff2444;

    --font-head: 'Orbitron', sans-serif;
    --font-ui: 'Chakra Petch', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* CRT Scanlines and Vignette */
.crt-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 0, 0, 0), rgba(255, 0, 0, 0.02));
    background-size: 100% 3px, 6px 100%;
    opacity: 0.65;
}

.crt-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.95);
}

/* ========================================================
   1. INTRO GATE SCREEN (UNIFIED MONOCHROME CRIMSON)
   ======================================================== */
.intro-gate-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #110508 0%, #030508 85%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.intro-gate-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.06);
}

.intro-canvas-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.intro-center-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

/* Wings from Ref 5 */
.gate-wing {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
}
.gate-wing-tr { top: -20px; right: -20px; }
.gate-wing-bl { bottom: -20px; left: -20px; }

/* Concentric Reticles from Ref 5 */
.gate-reticle-box {
    position: absolute;
    width: min(620px, 92vw);
    height: min(620px, 92vw);
    pointer-events: none;
    z-index: 2;
}

.gate-reticle-svg {
    width: 100%;
    height: 100%;
}

.spin-slow-cw {
    transform-origin: 300px 300px;
    animation: spinCw 50s linear infinite;
}

.spin-slow-ccw {
    transform-origin: 300px 300px;
    animation: spinCcw 35s linear infinite;
}

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

.gate-banner-top {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--hud-red);
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
    text-shadow: var(--hud-red-glow);
}

.gate-main-title {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(255, 36, 68, 0.8), 0 0 60px rgba(255, 36, 68, 0.4);
    margin-bottom: 16px;
}

.gate-directive-lines {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-silver);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.gate-dir-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gate-bullet {
    font-size: 9px;
    color: var(--hud-red);
}

.gate-beacon-ping {
    color: var(--hud-red);
    animation: beaconBlink 1.2s infinite;
}

@keyframes beaconBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Fighter Jet HUD Avionics Wings (Flanking Central Reticle) */
.gate-hud-wing {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    z-index: 15;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--font-mono);
}

.gate-hud-left { left: 40px; }
.gate-hud-right { right: 40px; }

.hud-wing-block {
    background: rgba(4, 7, 12, 0.78);
    border: 1px solid var(--hud-red-dim);
    padding: 10px 14px;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
    position: relative;
}

.hud-tape-header {
    font-size: 10px;
    color: var(--hud-red);
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--hud-red-dim);
    padding-bottom: 4px;
    margin-bottom: 8px;
    font-weight: 700;
}

.hud-tape-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 3px 0;
    color: var(--text-dim);
    border-bottom: 1px dashed rgba(255, 36, 68, 0.08);
}

.hud-tape-row strong {
    color: #fff;
    font-weight: 700;
}

.hud-val-glow {
    text-shadow: var(--hud-red-glow);
}

/* Fighter Jet Pitch Ladder */
.hud-pitch-ladder {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px 0;
}

.pitch-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--hud-red);
    opacity: 0.65;
}

.pitch-bar {
    flex: 1;
    height: 1px;
    background: var(--hud-red);
    margin-left: 8px;
    position: relative;
}

.pitch-bar::after {
    content: "";
    position: absolute;
    right: 0;
    top: -2px;
    width: 1px;
    height: 5px;
    background: var(--hud-red);
}

.horizon-line {
    opacity: 1;
    font-weight: 700;
    color: #fff;
}

.horizon-bar {
    height: 2px;
    background: var(--hud-red);
    box-shadow: var(--hud-red-glow);
}

.pitch-waterfall {
    color: #fff;
    font-size: 10px;
    letter-spacing: -1px;
    margin-left: 6px;
}

.hud-target-box {
    position: relative;
    padding: 10px;
    border: 1px solid var(--hud-red);
    background: rgba(255, 36, 68, 0.06);
    box-shadow: var(--hud-red-glow);
}

.intro-ecg-canvas {
    width: 100%;
    height: 42px;
    display: block;
    background: rgba(2, 4, 7, 0.9);
    border: 1px solid var(--hud-red-dim);
}

/* Pulsing Reticle Core */
.reticle-core-pulse {
    transform-origin: 300px 300px;
    animation: reticlePulse 3s ease-in-out infinite;
}

@keyframes reticlePulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 0.7; }
}

/* High-Impact CTA Button */
.gate-prompt-cta {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
    background: rgba(255, 36, 68, 0.16);
    border: 1px solid var(--hud-red);
    padding: 14px 34px;
    animation: blinkCta 1.8s infinite;
    box-shadow: 0 0 16px rgba(255, 36, 68, 0.4);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.gate-prompt-cta:hover {
    background: var(--hud-red);
    box-shadow: 0 0 24px rgba(255, 36, 68, 0.9);
    transform: scale(1.02);
}

.cta-bracket {
    color: var(--hud-red);
    font-size: 16px;
    font-weight: 900;
}

.gate-prompt-cta:hover .cta-bracket {
    color: #fff;
}

@keyframes blinkCta {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@media (max-width: 1300px) {
    .gate-hud-wing { display: none; }
}

/* ========================================================
   2. C4I TACTICAL COMMAND DECK (MONOCHROME CRIMSON)
   ======================================================== */
.tactical-deck-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    background: var(--bg-void);
}

/* Top Telemetry Header */
.deck-topbar {
    height: 44px;
    background: rgba(6, 9, 14, 0.95);
    border-bottom: 1px solid var(--hud-red-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    z-index: 50;
}

.deck-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.deck-op-badge {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deck-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hud-btn-mini {
    background: transparent;
    border: 1px solid rgba(255, 36, 68, 0.3);
    color: var(--text-silver);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.hud-btn-mini:hover, .hud-btn-mini.active {
    border-color: var(--hud-red);
    color: #fff;
    background: var(--hud-red-dim);
    box-shadow: var(--hud-red-glow);
}

/* Deck Multi-Window Layout (Ref 1, 2, 3) */
.deck-grid-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
    position: relative;
}

/* Asymmetrical Window Shell */
.deck-window {
    background: var(--bg-panel);
    border: 1px solid var(--hud-red-dim);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.deck-window-header {
    background: rgba(4, 7, 11, 0.92);
    border-bottom: 1px solid var(--hud-red-dim);
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--hud-red);
}

.deck-window-content {
    flex: 1;
    position: relative;
    overflow-y: auto;
    padding: 12px;
}

/* Window Brackets */
.hud-bracket {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--hud-red);
    pointer-events: none;
}
.hud-bracket.tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.hud-bracket.tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.hud-bracket.bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.hud-bracket.br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

/* LEFT COLUMN: THEATER MAP & TERRAIN (Ref 1 & 2) */
.left-theater-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theater-map-box {
    flex: 2.2;
    min-height: 240px;
    position: relative;
}

#deckMapCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.terrain-mesh-box {
    flex: 1.2;
    min-height: 140px;
    position: relative;
}

#terrainCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.terrain-telemetry-badge {
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
    background: rgba(2, 4, 8, 0.75);
    border: 1px solid var(--hud-red-dim);
    padding: 3px 8px;
    letter-spacing: 1px;
}

.terrain-telemetry-badge strong {
    color: #ffffff;
}

/* Target Optical Recon Pod Feeds (Ace Combat FLIR / Recon Viewfinder) */
.target-recon-feed-window {
    flex: 1.15;
    min-height: 115px;
    display: flex;
    flex-direction: column;
}

.recon-feed-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px;
    flex: 1;
}

.recon-feed-frame {
    background: rgba(2, 4, 8, 0.9);
    border: 1px solid var(--hud-red-dim);
    display: flex;
    flex-direction: column;
    padding: 4px;
    gap: 4px;
}

.feed-tag {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--hud-red);
    letter-spacing: 1px;
}

.feed-viewfinder {
    flex: 1;
    min-height: 52px;
    background: radial-gradient(circle at center, rgba(255, 36, 68, 0.12) 0%, rgba(2, 4, 8, 0.95) 75%);
    border: 1px solid rgba(255, 36, 68, 0.25);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 4px;
    overflow: hidden;
}

.feed-viewfinder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0) 50%, rgba(255, 36, 68, 0.08) 50%);
    background-size: 100% 3px;
    pointer-events: none;
}

.viewfinder-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: 1px dashed rgba(255, 36, 68, 0.5);
    border-radius: 50%;
}

.viewfinder-crosshair::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--hud-red);
}

.feed-sensor-data {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-silver);
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 4px;
}

/* CENTER COLUMN: ARCHIVE CHANNELS & DOSSIERS */
.center-archive-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

/* ========================================================
   1-A. GATE TOP & BOTTOM COCKPIT HUD TAPES
   ======================================================== */
.gate-hud-top-tape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background: rgba(3, 5, 8, 0.95);
    border-bottom: 1px solid var(--hud-red-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    z-index: 20;
    pointer-events: none;
}

.tape-block {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-silver);
}

.tape-hdg-track {
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--hud-red);
}

.gate-hud-bottom-tape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(3, 5, 8, 0.95);
    border-top: 1px solid var(--hud-red-dim);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    z-index: 20;
    pointer-events: none;
}

.footer-telemetry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
}

.footer-telemetry-item strong {
    color: #ffffff;
}

@media (max-width: 900px) {
    .gate-hud-top-tape, .gate-hud-bottom-tape { display: none; }
}

/* Category Channel Selector */
.avionics-channel-deck {
    background: rgba(5, 8, 13, 0.95);
    border: 1px solid var(--hud-red-dim);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    position: relative;
}

.channel-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--hud-red-dim);
    padding-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.comm-deck-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.comm-beacon-led {
    color: var(--hud-red);
    font-size: 10px;
    animation: beaconBlink 1s infinite;
}

.comm-deck-freq {
    color: var(--hud-red);
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: var(--hud-red-glow);
}

.channel-keys-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.btn-channel-key {
    background: rgba(8, 12, 18, 0.85);
    border: 1px solid rgba(255, 36, 68, 0.25);
    color: var(--text-silver);
    font-family: var(--font-mono);
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    position: relative;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-channel-key:hover {
    border-color: var(--hud-red);
    color: #ffffff;
    background: rgba(255, 36, 68, 0.12);
    box-shadow: 0 0 10px rgba(255, 36, 68, 0.3);
}

.btn-channel-key.active {
    background: rgba(255, 36, 68, 0.22);
    border-color: var(--hud-red);
    color: #ffffff;
    box-shadow: var(--hud-red-glow), inset 0 0 10px rgba(255, 36, 68, 0.3);
}

.chan-key-top {
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.btn-channel-key.active .chan-key-top {
    color: #fff;
}

.chan-led {
    font-size: 8px;
    color: var(--hud-red);
    opacity: 0.5;
}

.btn-channel-key.active .chan-led {
    opacity: 1;
    text-shadow: var(--hud-red-glow);
    animation: beaconBlink 0.8s infinite;
}

.chan-key-freq {
    font-size: 12px;
    font-weight: 700;
    color: var(--hud-red);
    letter-spacing: 1px;
}

.chan-key-name {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-silver);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.btn-channel-key.active .chan-key-name {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .channel-keys-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Asymmetrical Dossier Grid */
.dossier-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tactical Manifest Dossier Row (Sleek Military Avionics Record) */
.tactical-dossier-row {
    background: rgba(5, 8, 14, 0.9);
    border: 1px solid var(--hud-red-dim);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.tactical-dossier-row:hover {
    border-color: var(--hud-red);
    background: rgba(255, 36, 68, 0.08);
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(255, 36, 68, 0.25), inset 3px 0 0 var(--hud-red);
}

.dossier-row-left-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
}

.dossier-index-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
}

.tactical-dossier-row:hover .dossier-index-num {
    color: var(--hud-red);
}

.dossier-status-dot {
    font-size: 8px;
    color: var(--hud-red);
    opacity: 0.6;
}

.tactical-dossier-row:hover .dossier-status-dot {
    opacity: 1;
    text-shadow: var(--hud-red-glow);
    animation: beaconBlink 0.6s infinite;
}

/* Compact Micro Thumbnail (Preview without cluttering the screen) */
.dossier-micro-thumb {
    width: 68px;
    height: 48px;
    background: #000;
    border: 1px solid rgba(255, 36, 68, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.dossier-micro-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.2s;
}

.tactical-dossier-row:hover .dossier-micro-thumb img {
    filter: brightness(1.05) contrast(1.15);
}

.micro-thumb-scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5) 50%);
    background-size: 100% 4px;
    opacity: 0.7;
}

.dossier-micro-thumb.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    background: rgba(4, 7, 12, 0.8);
}

/* Main Dossier Content */
.dossier-row-main-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dossier-row-header-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
}

.dossier-id-code {
    color: var(--hud-red);
    font-weight: 700;
    letter-spacing: 1px;
}

.dossier-category-badge {
    border: 1px solid;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dossier-freq-tag {
    color: var(--text-dim);
    letter-spacing: 1px;
}

.dossier-row-title {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.tactical-dossier-row:hover .dossier-row-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 36, 68, 0.5);
}

.dossier-row-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-silver);
}

.dossier-operative-name strong {
    color: #ffffff;
}

.dossier-meta-sep {
    color: var(--text-dim);
}

.dossier-clearance-tag {
    color: var(--hud-red);
    font-weight: 700;
}

/* Right Action Trigger */
.dossier-row-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    padding: 6px 12px;
    border: 1px solid rgba(255, 36, 68, 0.2);
    background: rgba(2, 4, 8, 0.8);
    transition: all 0.2s;
    flex-shrink: 0;
}

.tactical-dossier-row:hover .dossier-row-action-btn {
    border-color: var(--hud-red);
    color: #ffffff;
    background: var(--hud-red);
    box-shadow: var(--hud-red-glow);
}

.dossier-btn-arrow {
    color: var(--hud-red);
    font-size: 9px;
}

.tactical-dossier-row:hover .dossier-btn-arrow {
    color: #000;
}

/* Empty State */
.dossier-empty-notice {
    padding: 60px 20px;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-dim);
    border: 1px dashed var(--hud-red-dim);
}

.dossier-empty-title {
    font-size: 14px;
    color: var(--hud-red);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

/* RIGHT COLUMN: SAT INFO, ENCRYPTION HEX, LOGIN BADGE (Ref 1 & 2) */
.right-telemetry-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sat-info-box {
    flex: 1.1;
    min-height: 140px;
}

.sat-world-wireframe {
    width: 100%;
    height: 110px;
    display: block;
}

.hex-stream-box {
    flex: 0.95;
    min-height: 105px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.45;
    color: #8c2a38;
    overflow: hidden;
    white-space: pre;
    background: rgba(2, 4, 7, 0.9);
}

.hex-stream-box .deck-window-content {
    overflow: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hex-stream-box .deck-window-content::-webkit-scrollbar {
    display: none;
}

/* Electronic Warfare & Tactical Weapon Bay Window */
.ew-payload-window {
    flex: 1.1;
    min-height: 125px;
    background: rgba(4, 7, 12, 0.92);
}

.ew-payload-content {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
}

.ew-rwr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    border-bottom: 1px dashed rgba(255, 36, 68, 0.2);
    padding-bottom: 4px;
}

.ew-tag {
    color: var(--text-dim);
}

.ew-state-active {
    color: var(--hud-red);
    font-weight: 700;
    text-shadow: var(--hud-red-glow);
    animation: beaconBlink 0.9s infinite;
}

.payload-bar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.payload-slot {
    background: rgba(2, 4, 8, 0.85);
    border: 1px solid rgba(255, 36, 68, 0.2);
    padding: 5px 7px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slot-name {
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.slot-val {
    font-size: 10px;
    color: #ffffff;
    font-weight: 700;
}

/* LOGIN INFO Window */
.login-badge-window {
    flex: 1.2;
    background: rgba(4, 7, 12, 0.95);
    border: 1px solid var(--hud-red);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-emblem-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-shield-badge {
    width: 44px;
    height: 52px;
    border: 2px solid var(--hud-red);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 900;
    color: var(--hud-red);
    background: rgba(255, 36, 68, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 36, 68, 0.3);
}

.login-shield-badge::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 36, 68, 0.4) 50%, transparent 100%);
    animation: shieldSweep 2.2s linear infinite;
}

@keyframes shieldSweep {
    0% { top: -100%; }
    100% { top: 100%; }
}

.login-status-details {
    font-family: var(--font-mono);
    font-size: 11px;
}

.btn-deck-auth {
    background: var(--hud-red);
    color: #fff;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    padding: 10px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    margin-top: 8px;
    box-shadow: var(--hud-red-glow);
}

.btn-deck-auth:hover {
    background: var(--hud-red-bright);
}

/* Bottom Subtitle Bar */
.deck-subtitle-bar {
    height: 38px;
    background: rgba(3, 5, 8, 0.98);
    border-top: 1px solid var(--hud-red-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-silver);
    letter-spacing: 1px;
    padding: 0 20px;
}

.subtitle-voiceover {
    animation: pulseSub 4s infinite;
}

@keyframes pulseSub {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.7; }
}

/* ========================================================
   MODALS: AUTHENTICATION & SECURE DISPATCH
   ======================================================== */
.deck-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 7, 0.94);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.deck-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.deck-modal-box {
    background: rgba(5, 8, 14, 0.98);
    border: 1px solid var(--hud-red);
    box-shadow: var(--hud-red-glow);
    max-width: 540px;
    width: 100%;
    position: relative;
    padding: 24px;
}

.modal-title-row {
    border-bottom: 1px solid var(--hud-red-dim);
    padding-bottom: 10px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-head);
    font-size: 14px;
    color: #fff;
    letter-spacing: 1.5px;
}

.hud-field-group {
    margin-bottom: 14px;
}

.hud-field-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-silver);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hud-field-input {
    width: 100%;
    background: rgba(2, 4, 8, 0.9);
    border: 1px solid var(--hud-red-dim);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 12px;
    outline: none;
}

.hud-field-input:focus {
    border-color: var(--hud-red);
    box-shadow: var(--hud-red-glow);
}

.file-dropzone {
    border: 1px dashed var(--hud-red);
    background: rgba(2, 4, 7, 0.6);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-dropzone:hover {
    background: var(--hud-red-subtle);
}

.dropzone-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-silver);
}

.dropzone-preview {
    max-height: 120px;
    margin-top: 10px;
    display: none;
    border: 1px solid var(--hud-red-dim);
}

.hud-textarea {
    width: 100%;
    background: rgba(2, 4, 8, 0.9);
    border: 1px solid var(--hud-red-dim);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 12px;
    outline: none;
    resize: vertical;
}

.hud-textarea:focus {
    border-color: var(--hud-red);
    box-shadow: var(--hud-red-glow);
}

.category-radio-btn {
    border: 1px solid var(--hud-red-dim);
    background: rgba(3, 6, 10, 0.8);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-silver);
    transition: all 0.2s;
}

.category-radio-btn input {
    accent-color: var(--hud-red);
}

.category-radio-btn.selected {
    border-color: var(--hud-red);
    color: #fff;
    background: var(--hud-red-dim);
    box-shadow: var(--hud-red-glow);
}

@media (max-width: 1024px) {
    .deck-grid-workspace { grid-template-columns: 1fr; overflow-y: auto; }
    body { overflow-y: auto; }
}
