@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;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

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

#globe-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
}

/* 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 {
    display: none !important;
}

/* 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 {
    position: relative;
    z-index: 100;
    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;
}

/* Audio Control Cluster & Flyout Settings */
.audio-control-cluster {
    position: relative;
    z-index: 105;
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding-right: 4px;
    transition: all 0.25s ease;
}

.audio-control-cluster:hover {
    border-color: var(--primary);
    background: var(--bg-surface-hover);
}

.audio-control-cluster .hud-btn {
    border: none;
    background: transparent;
    backdrop-filter: none;
    padding-right: 6px;
}

.audio-settings-trigger {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.audio-settings-trigger:hover,
.audio-settings-trigger.active {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

.audio-flyout {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: rgba(10, 13, 24, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(139, 92, 246, 0.55);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(139, 92, 246, 0.35);
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.audio-flyout.show {
    display: flex;
}

.audio-flyout-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audio-flyout-label {
    font-size: 0.70rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.hud-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.hud-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    cursor: pointer;
}

.hud-select {
    background: rgba(18, 22, 38, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #fff;
    padding: 6px 8px;
    font-size: 0.78rem;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
}
.hud-select option {
    background: #0d101d;
    color: #fff;
}

/* Sub-Header Ribbon: Filters + Live Ticker */
.sub-header-ribbon {
    position: relative;
    z-index: 20;
    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: visible;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    z-index: 25;
}

/* Synchronized Drawer Glow when Toggle Handle Tab is hovered */
.feed-drawer:has(.drawer-handle-tab:hover),
.feed-drawer:has(.drawer-handle-tab:focus-visible) {
    border-color: #38bdf8 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.45), inset 0 0 20px rgba(56, 189, 248, 0.08) !important;
}

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

/* Side Protruding Drawer Toggle Handle (Seamless Attached Tab) */
.drawer-handle-tab {
    position: absolute !important;
    left: -25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 26px !important;
    height: 52px !important;
    background: rgba(10, 13, 22, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(139, 92, 246, 0.45) !important;
    border-right: none !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: -5px 0 16px rgba(0, 0, 0, 0.7), -2px 0 8px rgba(139, 92, 246, 0.25) !important;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
    z-index: 99 !important;
    pointer-events: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.drawer-handle-tab:hover {
    background: rgba(18, 22, 38, 0.98) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    box-shadow: -8px 0 20px rgba(56, 189, 248, 0.45), -2px 0 10px rgba(56, 189, 248, 0.25) !important;
}

.drawer-handle-tab .handle-chevron {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: rotate(0deg) !important;
}

.feed-drawer.collapsed .drawer-handle-tab .handle-chevron {
    transform: rotate(180deg) !important;
}

.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);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.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 with Severity Accents & Cyberpunk Glow */
.event-card, .incident-card {
    background: rgba(12, 15, 26, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s 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: 6px;
    bottom: 6px;
    width: 3.5px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: rgba(139, 92, 246, 0.4);
    transition: background 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;
}

/* Severity-Specific Color Accents & Neon Left Indicators */
.event-card.severity-critical::before {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}
.event-card.severity-high::before {
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}
.event-card.severity-medium::before {
    background: #a855f7;
    box-shadow: 0 0 10px #a855f7;
}
.event-card.severity-low::before,
.event-card.severity-info::before {
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
}

.event-card:hover, .incident-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(20, 26, 46, 0.96);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.20);
}

.event-card.severity-critical:hover {
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(239, 68, 68, 0.25);
}
.event-card.severity-high:hover {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.25);
}

.event-card.selected, .event-card.active,
.incident-card.selected, .incident-card.active {
    border-color: #38bdf8;
    background: rgba(24, 32, 58, 0.98);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.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-excerpt {
    font-size: 0.74rem;
    line-height: 1.35;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: -2px;
}

.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;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 5px 6px;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ctrl-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.ctrl-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 16px 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-swipe-pill {
    display: none;
}

.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;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.modal-stat-coords {
    cursor: pointer;
    border-radius: 6px;
    padding: 3px 6px;
    margin: -3px -6px;
    transition: background 0.2s ease;
}

.modal-stat-coords:hover {
    background: rgba(56, 189, 248, 0.08);
}

.modal-stat-coords:hover .modal-stat-value {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.modal-actions-row-primary {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6px;
}

.modal-actions-row-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    border-radius: 8px;
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    white-space: nowrap;
    min-width: 0;
    box-sizing: border-box;
}

.modal-action-btn.copied {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.modal-action-btn span {
    white-space: nowrap;
}

.modal-action-btn svg {
    flex-shrink: 0;
}

.btn-focus-action {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

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

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

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

.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);
    color: #fff;
}

/* ==========================================================================
   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: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    gap: 16px;
    min-width: 0;
}

.dossier-header-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.dossier-header-title svg {
    flex-shrink: 0;
}

.dossier-header-title span#dossier-modal-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    min-width: 0;
}

.dossier-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.dossier-header-actions .hud-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================================================
   DOSSIER MULTI-IMAGE HORIZONTAL CAROUSEL / SLIDER
   ========================================================================= */
.dossier-media-carousel {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 18px;
}

.carousel-viewport {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050811;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

.carousel-slide-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.carousel-nav-btn:hover {
    background: var(--primary);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: 14px;
}

.carousel-next {
    right: 14px;
}

.carousel-dots-bar {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dot.active {
    width: 20px;
    border-radius: 10px;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.carousel-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
}

.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;
}

/* Tactical Dossier Typography & Structured Layout */
.dossier-section-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.04em;
    margin-top: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding-bottom: 4px;
}

.dossier-main-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    margin-top: 18px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.dossier-strong {
    color: #ffffff;
    font-weight: 700;
}

.dossier-quote {
    border-left: 3px solid var(--primary);
    background: rgba(139, 92, 246, 0.08);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin: 12px 0;
    color: #e2e8f0;
    font-style: italic;
    font-size: 0.95rem;
}

/* Tactical Alert & Callout Boxes */
.dossier-callout {
    border-radius: 8px;
    padding: 12px 14px;
    margin: 14px 0;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dossier-callout .callout-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dossier-callout .callout-body {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.dossier-callout-note {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(8, 25, 45, 0.85);
}
.dossier-callout-note .callout-header {
    color: #38bdf8;
}

.dossier-callout-warning, .dossier-callout-caution {
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(45, 20, 8, 0.85);
}
.dossier-callout-warning .callout-header, .dossier-callout-caution .callout-header {
    color: #fb923c;
}

.dossier-callout-tip {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(8, 35, 20, 0.85);
}
.dossier-callout-tip .callout-header {
    color: #4ade80;
}

.dossier-callout-important {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(35, 12, 50, 0.85);
}
.dossier-callout-important .callout-header {
    color: #c084fc;
}

.dossier-bullet-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 5px 0;
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.55;
}

.dossier-bullet-dot {
    color: var(--secondary);
    font-size: 0.75rem;
    line-height: 1.6;
}

.dossier-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(56, 189, 248, 0.2), transparent);
    margin: 16px 0;
}

.dossier-spacer {
    height: 12px;
}

/* Tactical Markdown Data Table */
.dossier-table-wrapper {
    width: 100%;
    margin: 14px 0;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dossier-tactical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    font-family: var(--font-body);
}

.dossier-tactical-table th {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dossier-tactical-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}

.dossier-tactical-table tr:last-child td {
    border-bottom: none;
}

.dossier-tactical-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* 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 are consolidated at the end of the stylesheet */

/* =========================================================================
   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 {
    position: relative;
    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 {
    position: relative;
    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;
    gap: 16px;
}

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

.cluster-modal-header .modal-close-btn,
#cluster-close-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-left: auto;
    flex-shrink: 0;
}

.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-category-bar {
    padding: 10px 20px 6px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(14, 18, 30, 0.5);
}

.cluster-cat-pill {
    background: rgba(22, 27, 46, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
}

.cluster-cat-pill:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(139, 92, 246, 0.15);
}

.cluster-cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.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;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 9px;
    padding: 0 8px 0 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(239, 68, 68, 0.04);
    overflow: hidden;
    position: relative;
}

.ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.12) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    color: #f87171;
    letter-spacing: 0.7px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

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

.ticker-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 14px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14px, black calc(100% - 20px), transparent 100%);
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    animation: tickerSlide 105s linear infinite; /* Ritmo calmado y legible */
    will-change: transform;
}

.ticker-content.is-paused,
.breaking-ticker-hud:hover .ticker-content {
    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.74rem;
    font-weight: 500;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 8px;
    border-radius: 6px;
    background: transparent;
    user-select: none;
}

.ticker-cable-item:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-1px);
}

.ticker-cable-item strong,
.ticker-cable-item .ticker-loc {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.2px;
}

.ticker-cable-item .ticker-title {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.1px;
}

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

/* Controles de marquesina táctica */
.ticker-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ticker-ctrl-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.72rem;
    line-height: 1;
    transition: all 0.15s ease;
    padding: 0;
}

.ticker-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f1f5f9;
}

.ticker-ctrl-btn.active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

/* =========================================================================
   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 & UNIFIED BOTTOM HUD DOCK
   ========================================================================= */
.hud-bottom-bar {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 430px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 30;
    pointer-events: auto;
}

.layer-switcher-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    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: 5px 8px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

.layer-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: var(--font-body);
}

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

.layer-btn.active {
    background: rgba(56, 189, 248, 0.20);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

/* Globe Control Buttons (Rotación & Reset) - Tamaño Óptimo Equilibrado */
.view-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 13, 24, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 6px;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(56, 189, 248, 0.10);
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ctrl-btn svg {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.ctrl-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1.5px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.25);
}

.ctrl-btn.active {
    background: rgba(56, 189, 248, 0.24);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.5), inset 0 0 10px rgba(56, 189, 248, 0.2);
}

.ctrl-btn.active svg {
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

@keyframes gpsPulseRadar {
    0% { transform: scale(0.92); opacity: 0.75; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px #38bdf8); }
    100% { transform: scale(0.92); opacity: 0.75; }
}

.ctrl-btn#btn-locate.active svg,
.ctrl-btn#btn-locate.loading svg {
    animation: gpsPulseRadar 1.1s infinite ease-in-out;
}

.timeline-scrubber-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(10, 13, 24, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 6px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 18px rgba(139, 92, 246, 0.15);
    pointer-events: auto;
    white-space: nowrap;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-scrubber-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.25);
}

.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;
    min-width: 185px;
    display: inline-block;
    white-space: nowrap;
}

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

.timeline-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 7px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    min-width: 66px;
    text-align: center;
    box-sizing: border-box;
}

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

.timeline-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(56, 189, 248, 0.45));
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

/* 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);
}

/* =========================================================================
   COLLAPSIBLE TACTICAL MODULES DROPDOWN DOCK
   ========================================================================= */
.tactical-dock-wrapper {
    position: absolute;
    left: 20px;
    bottom: 68px;
    z-index: 35;
    pointer-events: auto;
}

.tactical-dock-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 14px;
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 8px 24px 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);
    min-width: 220px;
    box-sizing: border-box;
}

.tactical-dock-trigger:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(15, 22, 40, 0.98);
    transform: translateY(-1.5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 16px rgba(6, 182, 212, 0.3);
}

.tactical-dock-wrapper.open .tactical-dock-trigger {
    background: rgba(8, 20, 36, 0.98);
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.dock-trigger-main {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dock-trigger-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.5));
}

.dock-trigger-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #fff;
    white-space: nowrap;
}

.dock-trigger-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dock-active-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    min-width: 82px;
    text-align: center;
    box-sizing: border-box;
    display: inline-block;
    white-space: nowrap;
}

.dock-active-badge.has-active {
    background: rgba(6, 182, 212, 0.22);
    color: #22d3ee;
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}

.dock-trigger-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tactical-dock-wrapper.open .dock-trigger-chevron {
    transform: rotate(180deg);
    color: #22d3ee;
}

/* Dropdown Menu Container (slides upwards above trigger) */
.tactical-dock-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 285px;
    max-width: 285px;
    box-sizing: border-box;
    background: rgba(9, 12, 22, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.97);
    transform-origin: bottom left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.tactical-dock-dropdown::-webkit-scrollbar {
    display: none;
}

.tactical-dock-wrapper.open .tactical-dock-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.tactical-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2px;
}

.tactical-dropdown-title {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.tactical-clear-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    font-size: 0.65rem;
    font-family: var(--font-body);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tactical-clear-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.tactical-dropdown-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tactical-side-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(14, 18, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 6px 12px;
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
    width: 100%;
}

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

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

.tactical-side-btn#btn-toggle-cables.active {
    border-color: #38bdf8;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.4);
}

.tactical-side-btn#btn-toggle-satellites.active {
    border-color: #06b6d4;
    box-shadow: 0 0 22px rgba(6, 182, 212, 0.45);
}
.tactical-side-btn#btn-toggle-satellites.active .tactical-btn-icon-box {
    background: rgba(6, 182, 212, 0.25);
    border-color: #06b6d4;
}
.tactical-side-btn#btn-toggle-satellites.active .tactical-btn-state {
    color: #22d3ee;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}
.tactical-side-btn#btn-toggle-satellites.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#btn-toggle-satellites.active .switch-indicator-dot {
    transform: translateX(18px);
    background: #22d3ee;
    box-shadow: 0 0 8px #22d3ee;
}
.satellites-orbit-ring {
    display: none;
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    border: 1.5px solid rgba(6, 182, 212, 0.7);
    animation: radarRingPulse 2.2s infinite ease-out;
}
.tactical-side-btn#btn-toggle-satellites.active .satellites-orbit-ring {
    display: block;
}
.tactical-side-btn#btn-toggle-cables.active .tactical-btn-icon-box {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}
.tactical-side-btn#btn-toggle-flights.active {
    border-color: #f472b6;
    box-shadow: 0 0 22px rgba(244, 114, 182, 0.4);
}
.tactical-side-btn#btn-toggle-flights.active .tactical-btn-icon-box {
    background: rgba(244, 114, 182, 0.2);
    border-color: #f472b6;
}
.tactical-side-btn#btn-toggle-maritime.active {
    border-color: #10b981;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.4);
}
.tactical-side-btn#btn-toggle-maritime.active .tactical-btn-icon-box {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}
.tactical-side-btn#btn-toggle-tectonics.active {
    border-color: #f59e0b;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.4);
}
.tactical-side-btn#btn-toggle-tectonics.active .tactical-btn-icon-box {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}
.tactical-side-btn#btn-toggle-correlations.active {
    border-color: #a855f7;
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.4);
}
.tactical-side-btn#btn-toggle-correlations.active .tactical-btn-icon-box {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}
.tactical-side-btn#btn-toggle-heatmap.active {
    border-color: #ef4444;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.4);
}
.tactical-side-btn#btn-toggle-heatmap.active .tactical-btn-icon-box {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.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;
    flex: 1;
    min-width: 0;
}

.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;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.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;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    display: block;
}

.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;
}

/* Space Weather Telemetry Pill */
.space-weather-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.kp-badge {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

/* Header Briefing Highlight Button */
.btn-briefing-highlight {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(139, 92, 246, 0.25)) !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    color: #fff !important;
    font-weight: 700 !important;
    position: relative;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-briefing-highlight:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(139, 92, 246, 0.4)) !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
}

.briefing-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: livePulse 1.5s infinite;
}

/* =========================================================================
   EXECUTIVE INTELLIGENCE BRIEFING MODAL (AI DAILY SITREP)
   ========================================================================= */
.briefing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 13, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.briefing-overlay.show {
    display: flex;
    animation: modalFadeIn 0.25s ease-out;
}

.briefing-modal {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(8, 12, 22, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(139, 92, 246, 0.22);
    border-radius: 16px;
    width: 100%;
    max-width: 1080px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.briefing-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.briefing-badge {
    align-self: flex-start;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.briefing-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 0;
}

.briefing-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.briefing-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.briefing-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: briefingPulseGlow 1.8s infinite;
}

@keyframes briefingPulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
}

.briefing-refresh-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.briefing-refresh-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.briefing-refresh-btn.rotating .refresh-icon {
    animation: refreshSpin 0.75s linear infinite;
}

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

.briefing-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.briefing-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
}

.briefing-telemetry-banner {
    display: flex;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.briefing-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b-stat-label {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: #64748b;
    text-transform: uppercase;
}

.b-stat-val {
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
}

.b-stat-val.text-red { color: #ef4444; }
.b-stat-val.text-cyan { color: #38bdf8; }

.briefing-theaters-grid {
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

.briefing-loading {
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.briefing-theater-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.22s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    min-height: fit-content;
}

.briefing-theater-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.15);
}

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

.b-theater-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
}

.b-theater-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.3);
}

.b-theater-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
    flex-shrink: 0;
}

.briefing-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    flex-shrink: 0;
    min-height: fit-content;
}

.briefing-item:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.briefing-item:active {
    transform: scale(0.99) translateX(2px);
}

.b-item-dot {
    font-size: 0.9rem;
    line-height: 1.4;
    flex-shrink: 0;
    margin-top: 2px;
}

.b-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.b-item-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.b-item-cat-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.b-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.45;
    transition: color 0.15s ease;
    flex: 1;
}

.briefing-item:hover .b-item-title {
    color: #38bdf8;
}

.b-item-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b-item-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    color: #64748b;
    font-family: var(--font-mono);
    margin-top: 2px;
}

.b-item-sub span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.b-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.b-item-btn {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.b-item-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.b-item-btn.btn-view-map {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.b-item-btn.btn-view-map:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: #34d399;
    color: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.b-item-btn.btn-open-link {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.b-item-btn.btn-open-link:hover {
    background: rgba(148, 163, 184, 0.25);
    border-color: #cbd5e1;
    color: #fff;
}

.briefing-empty {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    padding: 10px 0;
}

.briefing-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

/* ========================================================
   UNIVERSAL TACTICAL LANGUAGE SWITCHER
   ======================================================== */
.lang-switcher-cluster {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.lang-dropdown-arrow {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.lang-switcher-cluster.active .lang-dropdown-arrow {
    transform: rotate(180deg);
}

.lang-flyout {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: rgba(10, 13, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(139, 92, 246, 0.15);
    padding: 10px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-flyout.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 4px 8px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.lang-flyout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.lang-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    width: 100%;
}

.lang-opt:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ffffff;
    transform: translateX(2px);
}

.lang-opt.active {
    background: rgba(139, 92, 246, 0.28);
    border-color: #8b5cf6;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.lang-opt-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.lang-opt-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-opt-code {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: #94a3b8;
    opacity: 0.8;
}

.lang-opt.active .lang-opt-code {
    color: #c4b5fd;
    opacity: 1;
}

/* =========================================================================
   RTL (RIGHT-TO-LEFT) LOCALIZATION STABILIZATION
   Preserves high-precision tactical layout integrity when switching to Arabic
   ========================================================================= */
html[dir="rtl"] .top-hud-stack {
    direction: ltr; /* Keeps top telemetry bar, brand, and actions properly aligned */
}

html[dir="rtl"] .brand-group,
html[dir="rtl"] .telemetry-bar,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .sub-header-ribbon {
    direction: ltr;
}

html[dir="rtl"] .hud-bottom-bar {
    direction: ltr; /* Keeps texture layer buttons, scrubber, and globe controls unified */
}

html[dir="rtl"] .timeline-scrubber-wrapper,
html[dir="rtl"] .timeline-header,
html[dir="rtl"] .timeline-slider-track {
    direction: ltr;
}

html[dir="rtl"] .tactical-dock-wrapper {
    direction: ltr;
}

html[dir="rtl"] .tactical-dock-trigger,
html[dir="rtl"] .tactical-side-btn {
    direction: ltr;
}

/* Modal text reading direction properly rendered in RTL for content */
html[dir="rtl"] .modal-title,
html[dir="rtl"] .modal-desc,
html[dir="rtl"] .dossier-full-summary,
html[dir="rtl"] .briefing-card,
html[dir="rtl"] .feed-card-title,
html[dir="rtl"] .feed-card-summary {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .lang-flyout {
    direction: ltr;
}

/* ==========================================================================
   TACTICAL CYBER-HUD TOOLTIP SYSTEM
   Replaces the browser's default generic tooltip with a sleek cyber HUD tooltip
   ========================================================================== */
#pulse-tactical-tooltip {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 8px;
    padding: 7px 13px;
    color: #f8fafc;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    width: max-content;
    max-width: min(380px, calc(100vw - 36px));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.25), inset 0 0 12px rgba(56, 189, 248, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

#pulse-tactical-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#pulse-tactical-tooltip::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    flex-shrink: 0;
    margin-top: 5px;

#pulse-tactical-tooltip .pulse-tip-text {
    flex: 1;
    display: inline-block;
    word-break: break-word;
}

/* =========================================================================
   RESPONSIVE ENGINE: MOBILE, TABLET & APP INTEGRATION
   Optimized for smartphones, tablets, touch ergonomics & PWA standalone mode
   ========================================================================= */

:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* Global Close Button for Feed Drawer */
.feed-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

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

/* Touch Device Ergonomics (Eliminate sticky mouse hover artifacts) */
@media (hover: none) and (pointer: coarse) {
    #pulse-tactical-tooltip {
        display: none !important;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .hud-btn, .filter-pill, .severity-pill, .timeline-btn, .layer-btn, .ctrl-btn, .modal-action-btn {
        min-height: 38px;
    }
    
    .pulse-marker-wrapper {
        width: 40px;
        height: 40px;
    }

    .pulse-marker-core {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

/* =========================================================================
   BREAKPOINT: LAPTOPS & TABLETS LANDSCAPE (max-width: 1024px)
   ========================================================================= */
@media (max-width: 1024px) {
    .telemetry-bar {
        display: none !important;
    }

    .hud-bottom-bar {
        right: 20px !important;
        left: 20px !important;
    }

    .sub-header-ribbon {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .category-filter-bar {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

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

    .breaking-ticker-hud {
        width: 100% !important;
        max-width: 100% !important;
    }

    .feed-drawer {
        width: 360px;
        right: 16px;
        top: 110px;
        bottom: 80px;
    }
}

/* =========================================================================
   BREAKPOINT: TABLETS PORTRAIT & SMARTPHONES (max-width: 768px)
   ========================================================================= */
@media (max-width: 768px) {
    .feed-close-btn {
        display: flex;
    }

    /* Top HUD Stack: Compact Header */
    .top-hud-stack {
        padding: calc(6px + var(--safe-top)) calc(8px + var(--safe-right)) 0 calc(8px + var(--safe-left));
        gap: 6px;
    }

    .hud-header {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 14px;
    }

    .brand-group {
        gap: 8px;
    }

    .brand-logo-icon {
        width: 28px;
        height: 28px;
    }

    .brand-title {
        font-size: 0.9rem;
        letter-spacing: 0.04em;
    }

    .live-tag {
        display: none !important;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .hud-btn {
        padding: 6px 10px;
        font-size: 0.74rem;
        border-radius: 8px;
    }

    #label-guide-btn,
    #label-exit-btn {
        display: inline-block;
    }

    /* Filters & Ticker */
    .sub-header-ribbon {
        gap: 6px;
    }

    .category-filter-bar {
        gap: 6px;
        padding: 4px 6px;
        border-radius: 12px;
    }

    .filter-pill {
        padding: 6px 11px;
        font-size: 0.75rem;
        flex-shrink: 0;
        border-radius: 9px;
    }

    .category-dropdown-menu,
    .country-dropdown-menu {
        max-height: 52vh;
        width: calc(100vw - 24px);
        left: 0 !important;
        right: auto;
    }

    .breaking-ticker-hud {
        padding: 5px 8px;
        border-radius: 10px;
        font-size: 0.74rem;
    }

    .ticker-badge {
        padding: 3px 7px;
        font-size: 0.65rem;
    }

    .ticker-track-wrapper {
        font-size: 0.74rem;
    }

    .ticker-controls {
        gap: 3px;
    }

    .ticker-ctrl-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    /* Feed Drawer: Mobile Sliding Panel with Left Attached Arrow Handle */
    .feed-drawer {
        position: fixed !important;
        top: calc(56px + var(--safe-top)) !important;
        bottom: calc(75px + var(--safe-bottom)) !important;
        right: calc(10px + var(--safe-right)) !important;
        left: auto !important;
        width: min(390px, calc(100vw - 24px)) !important;
        max-width: none !important;
        border-radius: 18px !important;
        z-index: 1050 !important;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.92), 0 0 30px rgba(139, 92, 246, 0.3) !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    }

    .feed-drawer.collapsed {
        transform: translateX(calc(100% + 20px)) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .drawer-handle-tab {
        display: flex !important;
        left: -32px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 58px !important;
        pointer-events: auto !important;
        border-top-left-radius: 12px !important;
        border-bottom-left-radius: 12px !important;
    }

    .feed-header {
        padding: 12px 14px;
    }

    .feed-title {
        font-size: 0.95rem;
    }

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

    .search-input {
        font-size: 0.82rem;
        padding: 9px 12px 9px 34px;
    }

    .severity-filter-bar {
        padding: 0 14px 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 6px;
    }

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

    .severity-pill {
        flex-shrink: 0;
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .feed-list {
        padding: 0 12px 14px;
        gap: 8px;
    }

    .feed-card {
        padding: 12px;
        border-radius: 12px;
    }

    .feed-card-title {
        font-size: 0.85rem;
        line-height: 1.35;
    }

    .feed-card-summary {
        font-size: 0.77rem;
        line-height: 1.4;
    }

    /* Floating Tactical Layers Menu */
    .tactical-dock-wrapper {
        position: fixed !important;
        left: calc(10px + var(--safe-left)) !important;
        bottom: calc(76px + var(--safe-bottom)) !important;
        z-index: 950 !important;
    }

    .tactical-dock-trigger {
        padding: 7px 12px;
        font-size: 0.76rem;
        border-radius: 12px;
    }

    .tactical-dock-dropdown {
        width: calc(100vw - 24px) !important;
        max-width: 320px !important;
        max-height: 52vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
    }

    /* Bottom HUD Toolbar Dock */
    .hud-bottom-bar {
        position: fixed !important;
        bottom: calc(10px + var(--safe-bottom)) !important;
        left: calc(8px + var(--safe-left)) !important;
        right: calc(8px + var(--safe-right)) !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
        z-index: 900 !important;
        pointer-events: none !important;
    }

    .hud-bottom-bar > * {
        pointer-events: auto !important;
    }

    /* Bottom Row: Layers + View Controls */
    .hud-bottom-bar .layer-switcher-bar {
        width: auto;
        display: flex;
        justify-content: space-between;
        gap: 4px;
        padding: 4px 6px;
        border-radius: 12px;
        flex: 1 1 auto;
    }

    .hud-bottom-bar .layer-btn {
        flex: 1;
        text-align: center;
        padding: 6px 8px;
        font-size: 0.74rem;
        border-radius: 8px;
    }

    .hud-bottom-bar .view-controls {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .hud-bottom-bar .ctrl-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    /* Timeline Scrubber (Middle Row) */
    .timeline-scrubber-wrapper {
        width: 100% !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
        background: rgba(10, 14, 26, 0.94) !important;
    }

    .timeline-header {
        font-size: 0.68rem;
        margin-bottom: 5px;
    }

    .timeline-slider-track {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap !important;
        gap: 5px;
        padding-bottom: 2px;
    }

    .timeline-slider-track::-webkit-scrollbar {
        display: none;
    }

    .timeline-btn {
        flex-shrink: 0;
        padding: 5px 10px;
        font-size: 0.72rem;
        border-radius: 7px;
    }

    /* Compact Preview Card Modal */
    .incident-modal {
        position: fixed !important;
        left: calc(10px + var(--safe-left)) !important;
        right: calc(10px + var(--safe-right)) !important;
        bottom: calc(10px + var(--safe-bottom)) !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(85vh - var(--safe-bottom)) !important;
        border-radius: 18px !important;
        z-index: 1200 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .modal-swipe-pill {
        display: block !important;
        width: 44px;
        height: 5px;
        background: rgba(255, 255, 255, 0.40);
        border-radius: 6px;
        margin: 8px auto 6px auto;
        cursor: grab;
        flex-shrink: 0;
        touch-action: none;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .modal-swipe-pill:hover,
    .modal-swipe-pill:active {
        background: var(--accent-cyan);
        transform: scaleX(1.15);
    }

    .modal-media-wrapper {
        height: 150px;
    }

    .modal-body {
        padding: 14px;
    }

    .modal-title {
        font-size: 1.05rem;
    }

    .modal-desc {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .modal-stats-grid {
        gap: 8px;
    }

    .modal-stat-box {
        padding: 8px 10px;
    }

    .modal-stat-value {
        font-size: 0.85rem;
    }

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

    .modal-actions-row-primary .modal-action-btn {
        flex: 1;
        justify-content: center;
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .modal-actions-row-secondary {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 8px;
    }

    .modal-actions-row-secondary .modal-action-btn {
        padding: 7px 6px;
        font-size: 0.7rem;
        justify-content: center;
    }

    /* Cluster Incidents Modal */
    .cluster-modal-card {
        width: calc(100vw - 20px) !important;
        max-height: 82vh !important;
        border-radius: 16px !important;
    }

    .cluster-modal-header {
        padding: 12px 14px;
    }

    .cluster-title {
        font-size: 0.95rem;
    }

    /* Full Tactical Dossier: Fullscreen Mobile Sheet */
    .dossier-overlay {
        padding: 0 !important;
        align-items: stretch !important;
    }

    .dossier-modal-window {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .dossier-header {
        padding: calc(10px + var(--safe-top)) 12px 10px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .dossier-header-title {
        font-size: 0.95rem !important;
    }

    .dossier-header-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 6px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dossier-header-actions .hud-btn {
        flex: 1;
        justify-content: center;
        padding: 7px 8px !important;
        font-size: 0.72rem !important;
    }

    .dossier-header-actions .modal-close-btn {
        position: absolute;
        top: calc(10px + var(--safe-top));
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .dossier-nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 8px 12px;
    }

    .dossier-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .dossier-tab-btn {
        flex-shrink: 0;
        padding: 7px 12px;
        font-size: 0.75rem;
    }

    .dossier-body-content {
        padding: 14px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-viewport {
        height: 200px;
    }

    #dossier-full-summary {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }

    /* Executive Briefing Modal: Fullscreen Mobile Sheet */
    .briefing-overlay {
        padding: 0 !important;
        align-items: stretch !important;
    }

    .briefing-modal {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .briefing-header {
        padding: calc(12px + var(--safe-top)) 14px 10px !important;
        flex-wrap: wrap;
        gap: 10px;
    }

    .briefing-title {
        font-size: 1.05rem;
    }

    .briefing-subtitle {
        font-size: 0.72rem;
    }

    .briefing-header-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .briefing-telemetry-banner {
        padding: 10px 14px;
        gap: 10px;
    }

    .b-stat-val {
        font-size: 0.85rem;
    }

    .briefing-theaters-grid {
        padding: 12px 14px;
        gap: 14px;
    }

    .briefing-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 14px calc(14px + var(--safe-bottom));
    }

    .briefing-footer .modal-action-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.82rem;
    }
}

/* =========================================================================
   BREAKPOINT: COMPACT PHONES (max-width: 480px)
   ========================================================================= */
@media (max-width: 480px) {
    .brand-title span {
        display: none;
    }

    .header-actions #btn-pulse-guide {
        display: none;
    }

    .header-actions #btn-open-briefing span#label-briefing-btn {
        font-size: 0.7rem;
    }

    .lang-flyout {
        position: fixed !important;
        top: calc(56px + var(--safe-top)) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        transform: translateY(0) !important;
    }

    .audio-flyout {
        position: fixed !important;
        top: calc(56px + var(--safe-top)) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* =========================================================================
   BREAKPOINT: HORIZONTAL LANDSCAPE PHONES (max-height: 500px)
   ========================================================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .sub-header-ribbon {
        display: none !important;
    }

    .hud-bottom-bar {
        bottom: calc(6px + var(--safe-bottom)) !important;
        gap: 4px !important;
    }

    .timeline-scrubber-wrapper {
        display: none !important;
    }

    .tactical-dock-wrapper {
        bottom: calc(50px + var(--safe-bottom)) !important;
    }

    .feed-drawer {
        top: calc(44px + var(--safe-top)) !important;
        bottom: calc(6px + var(--safe-bottom)) !important;
        left: auto !important;
        right: 10px !important;
        width: 320px !important;
    }
}

/* =========================================================================
   BREAKPOINT: ULTRA-COMPACT MOBILE PHONES (max-width: 380px)
   Optimización de tarjetas y controles para pantallas pequeñas / iPhone SE
   ========================================================================= */
@media (max-width: 380px) {
    .incident-modal {
        left: 6px !important;
        right: 6px !important;
        width: auto !important;
        max-width: calc(100vw - 12px) !important;
        bottom: calc(65px + var(--safe-bottom)) !important;
        padding: 8px 10px !important;
    }

    .modal-body {
        padding: 8px 0 0 0 !important;
    }

    .modal-title {
        font-size: 0.88rem !important;
        line-height: 1.25 !important;
    }

    .modal-desc {
        font-size: 0.76rem !important;
        max-height: 48px !important;
    }

    .modal-actions-row-primary,
    .modal-actions-row-secondary {
        gap: 4px !important;
    }

    .modal-action-btn {
        padding: 6px 8px !important;
        min-height: 32px !important;
        font-size: 0.68rem !important;
    }

    .hud-bottom-bar {
        left: 6px !important;
        right: 6px !important;
        width: auto !important;
        gap: 3px !important;
    }

    .hud-bottom-bar .ctrl-btn {
        width: 33px !important;
        height: 33px !important;
    }

    .timeline-scrubber-wrapper {
        padding: 4px 6px !important;
        gap: 6px !important;
    }

    .timeline-btn {
        font-size: 0.60rem !important;
        padding: 2px 4px !important;
    }
}



