@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700;800&display=swap');

:root {
    --bg-dark: #07080c;
    --bg-surface: rgba(13, 15, 24, 0.82);
    --bg-surface-hover: rgba(22, 26, 42, 0.92);
    --bg-card: rgba(18, 21, 33, 0.72);
    --border-color: rgba(255, 255, 255, 0.09);
    --border-highlight: rgba(139, 92, 246, 0.45);
    
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #06b6d4;
    --accent-pink: #ec4899;
    --critical-red: #ef4444;
    --warning-amber: #f59e0b;
    --success-green: #10b981;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* =========================================================================
   UNIVERSAL TACTICAL DARK SCROLLBARS (ELIMINATES UGLY WHITE/LIGHT BROWSER BARS)
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.45) rgba(8, 10, 20, 0.5);
}

/* Chrome, Edge, Safari, Opera Webkit Scrollbar Suite */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(8, 10, 20, 0.65);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

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

/* 3D Canvas Container */
#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Vignette & Ambient Overlays */
.ambient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 40%, rgba(7, 8, 12, 0.85) 100%);
}

.grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* HUD Interface Layer */
.hud-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.hud-interactive {
    pointer-events: auto;
}

/* Unified Top HUD Stack */
.top-hud-stack {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 30;
    pointer-events: none;
}

/* Top Navigation Header */
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-badge:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.brand-logo-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-title span {
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--critical-red);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--critical-red);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Telemetry Metrics Pill Bar */
.telemetry-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 12px;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.telemetry-item:last-child {
    border-right: none;
}

.telemetry-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.telemetry-val {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.telemetry-val.alert-val {
    color: var(--critical-red);
}

.telemetry-val.latency-val {
    color: var(--success-green);
}

/* Header Controls Right */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-body);
}

.hud-btn:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--bg-surface-hover);
}

.hud-btn.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    color: #fff;
}

/* Sub-Header Ribbon: Filters + Live Ticker */
.sub-header-ribbon {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Category Filter Tabs Bar (Docked inside sub-header ribbon) */
.category-filter-bar {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    padding: 4px 6px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 15;
    flex-shrink: 0;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    white-space: nowrap;
}

.filter-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-pill.active {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--primary);
    color: #fff;
}

.filter-pill .count {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
}

.pill-archived {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 10px;
}

/* Sidebar Live Feed Drawer */
.feed-drawer {
    position: absolute;
    right: 20px;
    top: 112px;
    bottom: 80px;
    width: 390px;
    max-width: calc(100vw - 40px);
    background: rgba(10, 13, 22, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(139, 92, 246, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 25;
}

.feed-drawer.collapsed {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
}

.feed-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.feed-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.feed-pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    animation: livePulse 1.5s infinite;
}

.feed-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: scale(1.05);
}

.search-box {
    margin: 10px 14px 6px 14px;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 9px 12px 9px 34px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 14px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

.feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-list::-webkit-scrollbar {
    width: 5px;
}
.feed-list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}
.feed-list::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* Incident Event Card */
.event-card, .incident-card {
    background: rgba(13, 16, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: visible;
}

.event-card::before, .incident-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: transparent;
    transition: background 0.2s ease, width 0.2s ease;
}

.event-card:hover, .incident-card:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(20, 25, 44, 0.95);
    transform: translateX(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(139, 92, 246, 0.2);
}

.event-card:hover::before, .incident-card:hover::before {
    background: var(--primary);
    width: 3px;
}

.event-card.selected, .event-card.active,
.incident-card.selected, .incident-card.active {
    border-color: var(--primary);
    background: rgba(25, 30, 54, 0.98);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.45);
}

.event-card.selected::before, .event-card.active::before,
.incident-card.selected::before, .incident-card.active::before {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    width: 3px;
}

.event-card.archived-card, .incident-card.archived-card {
    opacity: 0.65;
    border-style: dashed;
}

.card-header, .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.time-ago {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
    flex-shrink: 1;
}

.badge-earthquake {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-weather {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-wildfire {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-news {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-narcotics {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.badge-crypto {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.badge-arms {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.2);
}

.badge-cyber {
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

.badge-terrorism {
    background: rgba(220, 38, 38, 0.22);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.badge-health {
    background: rgba(132, 204, 22, 0.18);
    color: #a3e635;
    border: 1px solid rgba(132, 204, 22, 0.4);
    box-shadow: 0 0 8px rgba(132, 204, 22, 0.2);
}

.badge-infrastructure {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.2);
}

.badge-piracy {
    background: rgba(99, 102, 241, 0.18);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

.badge-police {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.badge-war {
    background: rgba(225, 29, 72, 0.2);
    color: #fda4af;
    border: 1px solid rgba(225, 29, 72, 0.45);
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.25);
}

.badge-geopolitics {
    background: rgba(139, 92, 246, 0.18);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-politics {
    background: rgba(168, 85, 247, 0.22);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

.badge-justice {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.card-title {
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
    color: #f8fafc;
    word-break: break-word;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.70rem;
    color: var(--text-dim);
    gap: 8px;
}

.card-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lifecycle-tag {
    font-size: 0.66rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Bottom Controls Toolbar */
.hud-bottom-bar {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 30;
    pointer-events: none;
}

/* Layer Switcher Floating Controls (Left Bottom) */
.layer-switcher-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    padding: 4px 6px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.layer-btn {
    padding: 6px 11px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    white-space: nowrap;
}

.layer-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.layer-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}

.view-controls {
    display: flex;
    gap: 6px;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    padding: 4px 6px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.ctrl-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctrl-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ctrl-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ==========================================================================
   FLOATING PREVIEW CARD (COMPACT MODAL)
   ========================================================================== */
.incident-modal {
    position: absolute;
    left: 20px;
    bottom: 74px;
    width: 420px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    background: var(--bg-surface);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-highlight);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    padding: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 30;
    animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-media-wrapper {
    width: 100%;
    height: 180px;
    position: relative;
    background: #000;
    overflow: hidden;
}

.modal-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

.modal-badge-float {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 5;
}

.modal-body {
    padding: 16px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.modal-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 10px;
}

.modal-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-stat-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.modal-stat-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.modal-actions {
    display: flex;
    gap: 8px;
}

.modal-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.btn-primary-dossier {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary-dossier:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.7);
}

.btn-secondary-action {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   FULL TACTICAL DOSSIER OVERLAY (PANTALLA DE INTELIGENCIA EXTENDIDA)
   ========================================================================== */
.dossier-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(7, 8, 12, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dossier-modal-window {
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 30px var(--primary-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dossier-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.dossier-header-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dossier-nav-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.dossier-tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.dossier-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dossier-tab-btn.active {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--primary);
    color: #fff;
}

.dossier-body-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tab Panels */
.tab-panel {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.tab-panel.active {
    display: flex;
}

/* Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border-highlight);
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Gallery Grid */
.dossier-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
    height: 170px;
    position: relative;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Agencies Tag Cloud */
.agency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agency-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .telemetry-bar { display: none; }
    .sub-header-ribbon { flex-wrap: wrap; }
    .breaking-ticker-hud { width: 100%; }
}

@media (max-width: 900px) {
    .feed-drawer { width: calc(100vw - 32px); right: 16px; top: 120px; bottom: 80px; }
    .incident-modal { width: calc(100vw - 32px); left: 16px; bottom: 74px; }
    .category-filter-bar { max-width: 100%; overflow-x: auto; }
    .hud-bottom-bar { flex-wrap: wrap; justify-content: center; gap: 8px; }
}

/* =========================================================================
   TACTICAL PINS & RADAR MARKERS (Globe HTML Layer)
   ========================================================================= */
.pulse-marker-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto !important;
    transform: translate(-50%, -50%);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pulse-marker-wrapper:hover {
    transform: translate(-50%, -50%) scale(1.35);
    z-index: 9999 !important;
}

.pulse-marker-core {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #090a10;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 14px currentColor;
    position: relative;
    z-index: 2;
}

.pulse-marker-wave {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0.8;
    animation: markerRadarWave 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    pointer-events: none;
    z-index: 1;
}

.pulse-marker-tooltip {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    background: rgba(10, 12, 20, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-marker-wrapper:hover .pulse-marker-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes markerRadarWave {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}


/* =========================================================================
   CLUSTER INCIDENTS FLYOUT MODAL
   ========================================================================= */
.cluster-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(4, 5, 9, 0.78);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.cluster-modal-card {
    background: rgba(13, 16, 28, 0.96);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.25);
    border-radius: 18px;
    width: 100%;
    max-width: 580px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cluster-modal-header {
    padding: 18px 22px;
    background: rgba(22, 27, 46, 0.85);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cluster-header-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cluster-badge-count {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 0 14px var(--primary-glow);
    font-family: var(--font-mono);
}

.cluster-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    margin: 0;
}

.cluster-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.cluster-items-list {
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(82vh - 90px);
}

.cluster-item-card {
    background: rgba(18, 22, 38, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cluster-item-card:hover {
    background: rgba(30, 37, 62, 0.95);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

.cluster-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.cluster-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Category Dropdown Menu Styling */
.category-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.category-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background: #090a14;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(139, 92, 246, 0.2);
    padding: 8px;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.category-dropdown-menu.show {
    display: block;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-group-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.8px;
    padding: 8px 10px 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.dropdown-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #fff;
    padding-left: 14px;
}

.dropdown-item.active {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
    font-weight: 700;
    border-left: 3px solid var(--primary);
}

.dropdown-item .count {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    color: var(--text-muted);
}

/* Bottom Center Territorial Hover HUD Badge */
.geo-hover-hud {
    position: absolute;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(9, 10, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.45);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(139, 92, 246, 0.35);
    z-index: 25;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.geo-hover-hud.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.geo-hud-pulse-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.geo-hud-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.geo-hud-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.geo-hud-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-top: 1px;
}

.geo-hud-sub {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* =========================================================================
   BREAKING NEWS HUD TICKER (TOP HORIZONTAL STREAM)
   ========================================================================= */
.breaking-ticker-hud {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(11, 13, 22, 0.90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 5px 12px;
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(239, 68, 68, 0.08);
    overflow: hidden;
}

.ticker-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
}

.ticker-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    animation: tickerSlide 35s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

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

.ticker-cable-item {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-cable-item:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.ticker-cable-item .sev-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* =========================================================================
   SEVERITY QUICK FILTER BAR (FEED SIDEBAR)
   ========================================================================= */
.severity-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 14px 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: nowrap;
    overflow-x: auto;
}

.severity-filter-bar::-webkit-scrollbar {
    display: none;
}

.severity-pill {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.severity-pill .sev-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.severity-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.severity-pill.active {
    background: rgba(139, 92, 246, 0.22);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.severity-pill.pill-sev-critical.active {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.severity-pill.pill-sev-high.active {
    background: rgba(245, 158, 11, 0.22);
    border-color: #f59e0b;
    color: #fde68a;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.severity-pill.pill-sev-medium.active {
    background: rgba(139, 92, 246, 0.22);
    border-color: #8b5cf6;
    color: #ddd6fe;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.severity-pill.pill-sev-low.active {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #a7f3d0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

/* =========================================================================
   INTERACTIVE TIMELINE SCRUBBER (BOTTOM BAR)
   ========================================================================= */
.timeline-scrubber-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    white-space: nowrap;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.timeline-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.timeline-val {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
}

.timeline-slider-track {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.69rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.timeline-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.timeline-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Tactical Focus / Copy Buttons in Modal */
.btn-focus-action {
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
}

.btn-focus-action:hover {
    background: rgba(56, 189, 248, 0.3) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4) !important;
}

/* Audio Toggle Mute Style */
#btn-toggle-audio.muted {
    opacity: 0.65;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* =========================================================================
   FLOATING LATERAL TACTICAL DOCK (RADAR DOPPLER & SPECIAL SENSORS)
   ========================================================================= */
.tactical-side-dock {
    position: absolute;
    left: 20px;
    bottom: 74px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 28;
    pointer-events: auto;
}

.tactical-side-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 13, 24, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    border-radius: 14px;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 10px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
}

.tactical-side-btn:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(16, 22, 38, 0.96);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 18px rgba(6, 182, 212, 0.25);
}

.tactical-side-btn.active {
    background: rgba(7, 24, 40, 0.96);
    border-color: #06b6d4;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), 0 12px 35px rgba(0, 0, 0, 0.85);
}

.tactical-btn-icon-box {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.25s ease;
}

.tactical-side-btn.active .tactical-btn-icon-box {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.45);
}

.radar-scan-ring {
    display: none;
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    border: 1.5px solid #06b6d4;
    animation: radarRingPulse 1.8s infinite;
}

.tactical-side-btn.active .radar-scan-ring {
    display: block;
}

@keyframes radarRingPulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.tactical-btn-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.tactical-btn-name {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.2;
}

.tactical-btn-state {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.tactical-side-btn.active .tactical-btn-state {
    color: #22d3ee;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

/* Tactical Slide Switch Pill */
.tactical-switch-pill {
    width: 38px;
    height: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    padding: 2px;
    margin-left: 4px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-indicator-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #64748b;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tactical-side-btn.active .tactical-switch-pill {
    background: rgba(6, 182, 212, 0.35);
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.tactical-side-btn.active .switch-indicator-dot {
    transform: translateX(18px);
    background: #22d3ee;
    box-shadow: 0 0 8px #22d3ee;
}

/* Heatmap Switch Specific Themes */
.tactical-side-btn#btn-toggle-heatmap:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 18px rgba(249, 115, 22, 0.25);
}

.tactical-side-btn#btn-toggle-heatmap.active {
    background: rgba(40, 16, 8, 0.96);
    border-color: #f97316;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.4), 0 12px 35px rgba(0, 0, 0, 0.85);
}

.tactical-side-btn#btn-toggle-heatmap.active .tactical-btn-icon-box {
    background: rgba(249, 115, 22, 0.25);
    border-color: #f97316;
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.45);
}

.tactical-side-btn#btn-toggle-heatmap.active .tactical-btn-state {
    color: #fb923c;
    text-shadow: 0 0 8px rgba(251, 146, 60, 0.6);
}

.tactical-side-btn#btn-toggle-heatmap.active .tactical-switch-pill {
    background: rgba(249, 115, 22, 0.35);
    border-color: #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.tactical-side-btn#btn-toggle-heatmap.active .switch-indicator-dot {
    transform: translateX(18px);
    background: #fb923c;
    box-shadow: 0 0 8px #fb923c;
}

.heatmap-pulse-ring {
    display: none;
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    border: 1.5px solid #f97316;
    animation: radarRingPulse 1.8s infinite;
}

.tactical-side-btn#btn-toggle-heatmap.active .heatmap-pulse-ring {
    display: block;
}

/* Audio Speech Synthesizer (SITREP Voice) Animation */
.btn-speaking {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
    animation: speakPulse 1.2s infinite ease-in-out;
}

@keyframes speakPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 18px rgba(239, 68, 68, 0.8); }
}

/* Multi-Source Corroboration Pills */
.source-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.source-pill-link:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.corroboration-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
