/* ═════════════════════════════════════════════════════════════════════
   C4ISR TACTICAL OPERATIONS CONTROL ROOM DESIGN SYSTEM
   Professional Military / Security Command & Control Interface
   Strictly Zero Emojis — High Contrast Tactical Aesthetic
   ═════════════════════════════════════════════════════════════════════ */

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

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

:root {
    --c2-bg:             #02050e;
    --c2-bg-surface:     #060b19;
    --c2-bg-card:        rgba(10, 18, 38, 0.88);
    --c2-bg-card-hover:  rgba(15, 26, 56, 0.95);
    --c2-border:         rgba(255, 255, 255, 0.08);
    --c2-border-light:   rgba(255, 255, 255, 0.15);
    --c2-border-focus:   rgba(0, 240, 255, 0.45);

    /* Tactical Accent Palette */
    --c2-cyan:           #00f0ff;
    --c2-cyan-dim:       rgba(0, 240, 255, 0.12);
    --c2-red:            #ef233c;
    --c2-red-dim:        rgba(239, 35, 60, 0.14);
    --c2-amber:          #ffb703;
    --c2-amber-dim:      rgba(255, 183, 3, 0.12);
    --c2-green:          #10b981;
    --c2-green-dim:      rgba(16, 185, 129, 0.12);
    --c2-blue:           #3b82f6;
    --c2-purple:         #8b5cf6;

    /* Typography */
    --text-pure:         #ffffff;
    --text-primary:      #e2e8f0;
    --text-muted:        #8492a6;
    --text-dim:          #4b5563;

    --font-ui:           'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
    --font-mono:         'JetBrains Mono', monospace;

    /* Layout metrics */
    --c2-header-h:       68px;
    --c2-ticker-h:       36px;
    --c2-sidebar-w:      320px;
    --c2-feed-w:         300px;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--c2-bg);
    color: var(--text-primary);
    font-family: var(--font-ui);
    direction: rtl;
    text-align: right;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c2-cyan); }

/* ── MAIN C2 SHELL ──────────────────────────────────────────────────── */
.c2-app {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(10,25,60,0.4) 0%, var(--c2-bg) 70%);
}

/* ── COMMAND HEADER (C2 BAR) ────────────────────────────────────────── */
.c2-header {
    height: var(--c2-header-h);
    background: linear-gradient(180deg, rgba(6, 13, 30, 0.98), rgba(2, 6, 17, 0.94));
    border-bottom: 1px solid var(--c2-border-light);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    flex-shrink: 0;
    position: relative;
}

.c2-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c2-cyan), transparent);
    opacity: 0.5;
}

.c2-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.c2-badge-icon {
    width: 40px;
    height: 40px;
    background: var(--c2-cyan-dim);
    border: 1px solid var(--c2-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c2-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.c2-title h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.c2-title .c2-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

/* Status Indicator Pulse */
.c2-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.68rem;
    color: var(--c2-green);
    font-weight: 700;
    font-family: var(--font-mono);
}

.c2-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c2-green);
    box-shadow: 0 0 8px var(--c2-green);
    animation: c2Pulse 2s infinite;
}

@keyframes c2Pulse {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Header Telemetry Stat Counters */
.c2-telemetry-chips {
    display: flex;
    align-items: center;
    gap: 10px;
}

.c2-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c2-border);
    border-radius: 8px;
    padding: 6px 12px;
}

.c2-chip-val {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.c2-chip-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Header Action Buttons */
.c2-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.c2-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    line-height: 1;
}

.c2-btn svg {
    flex-shrink: 0;
}

.c2-btn-amber {
    background: linear-gradient(135deg, rgba(239, 35, 60, 0.95), rgba(185, 28, 28, 0.95));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(239, 35, 60, 0.35);
}
.c2-btn-amber:hover {
    background: #ef233c;
    box-shadow: 0 0 20px rgba(239, 35, 60, 0.55);
}

.c2-btn-lockdown {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.9), rgba(15, 118, 110, 0.9));
    color: #fff;
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.c2-btn-lockdown:hover {
    background: #0d9488;
    box-shadow: 0 0 18px rgba(20, 184, 166, 0.45);
}

.c2-btn-tactical {
    background: rgba(0, 240, 255, 0.08);
    color: var(--c2-cyan);
    border-color: rgba(0, 240, 255, 0.3);
}
.c2-btn-tactical:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: var(--c2-cyan);
}

.c2-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--c2-border);
}
.c2-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--c2-border-light);
    color: #fff;
}

/* ── MAP-FIRST WORKSPACE: MAP FILLS ALL — SIDEBARS FLOAT ─────────────── */
.c2-workspace {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--c2-header-h) - var(--c2-ticker-h));
    overflow: hidden;
}

/* ── COLUMN 1: ACTIVE NOTICES SIDEBAR (FLOATING OVERLAY) ─────────────── */
.c2-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--c2-sidebar-w);
    height: 100%;
    background: rgba(5, 10, 22, 0.96);
    border-left: 1px solid var(--c2-border-light);
    backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 500;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -6px 0 28px rgba(0,0,0,0.45);
}

.c2-sidebar.collapsed {
    transform: translateX(var(--c2-sidebar-w));
}

/* Sidebar toggle tab */
.c2-sidebar-toggle {
    position: absolute;
    top: 50%;
    left: -28px;
    transform: translateY(-50%);
    width: 28px;
    height: 80px;
    background: rgba(5, 10, 22, 0.96);
    border: 1px solid var(--c2-border-light);
    border-right: none;
    backdrop-filter: blur(16px);
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.65rem;
    writing-mode: vertical-rl;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: var(--font-mono);
    transition: all 0.2s;
    z-index: 501;
}
.c2-sidebar-toggle:hover {
    color: var(--c2-cyan);
    border-color: rgba(0,240,255,0.5);
    background: rgba(0,240,255,0.06);
}


/* ── SIDEBAR TABS & NAVIGATION ─────────────────────────────────── */
.c2-sidebar-tabs {
    display: flex;
    background: rgba(4, 9, 22, 0.98);
    border-bottom: 1px solid var(--c2-border);
    flex-shrink: 0;
}

.c2-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--font-ui);
    position: relative;
}

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

.c2-tab-btn.active {
    color: var(--c2-cyan);
    border-bottom-color: var(--c2-cyan);
    background: rgba(0, 240, 255, 0.04);
}

.c2-tab-badge {
    background: rgba(0, 240, 255, 0.15);
    color: var(--c2-cyan);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    font-family: var(--font-mono);
}

.c2-tab-badge.green {
    background: rgba(16, 185, 129, 0.18);
    color: var(--c2-green);
}

.c2-tab-badge.purple {
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
}

/* ── SEARCH & FILTER CONTROLS ────────────────────────────────────── */
.c2-filter-bar {
    padding: 10px 12px;
    border-bottom: 1px solid var(--c2-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.c2-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c2-border);
    border-radius: 6px;
    padding: 7px 12px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    outline: none;
    transition: all 0.15s;
}
.c2-search-input:focus {
    border-color: var(--c2-cyan);
    background: rgba(0, 240, 255, 0.02);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.c2-filter-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.c2-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c2-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-ui);
    white-space: nowrap;
}
.c2-filter-btn:hover {
    color: #fff;
    border-color: var(--c2-border-light);
}
.c2-filter-btn.active {
    background: var(--c2-cyan-dim);
    color: var(--c2-cyan);
    border-color: rgba(0, 240, 255, 0.4);
}

/* ── PANES & SCROLLABLE LISTS ────────────────────────────────────── */
.c2-panes-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.c2-pane {
    display: none;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.c2-pane.active {
    display: flex;
}

.c2-notices-list,
.c2-radar-list,
.c2-cameras-list,
.c2-timeline-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── VOLUNTEER RADAR CARDS ────────────────────────────────────────── */
.c2-vol-card {
    background: var(--c2-bg-card);
    border: 1px solid var(--c2-border);
    border-radius: 10px;
    padding: 11px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.c2-vol-card:hover {
    background: var(--c2-bg-card-hover);
    border-color: rgba(0, 240, 255, 0.35);
    transform: translateX(-2px);
}

.c2-radar-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    animation: c2Pulse 1.8s infinite;
}

/* ── CCTV & VIDEO EVIDENCE CARDS ─────────────────────────────────── */
.c2-cam-card,
.c2-video-card {
    background: var(--c2-bg-card);
    border: 1px solid var(--c2-border);
    border-radius: 10px;
    padding: 11px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.c2-cam-card:hover,
.c2-video-card:hover {
    background: var(--c2-bg-card-hover);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(-2px);
}

/* ── TIMELINE STREAM ITEMS ───────────────────────────────────────── */
.c2-timeline-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    background: var(--c2-bg-card);
    border: 1px solid var(--c2-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.c2-timeline-item:hover {
    background: var(--c2-bg-card-hover);
    border-color: var(--c2-border-light);
}

.c2-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ── BADGE PILLS ─────────────────────────────────────────────────── */
.c2-badge-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    background: rgba(0, 240, 255, 0.12);
    color: var(--c2-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}
.c2-badge-pill.crit {
    background: rgba(239, 35, 60, 0.12);
    color: #ef233c;
    border-color: rgba(239, 35, 60, 0.3);
}
.c2-badge-pill.found {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Tactical Notice Card */
.c2-notice-card {
    background: var(--c2-bg-card);
    border: 1px solid var(--c2-border);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
}

.c2-notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: var(--text-dim);
    transition: background 0.18s;
}

.c2-notice-card.crit::before {
    background: var(--c2-red);
}
.c2-notice-card.has-vehicle::before {
    background: var(--c2-amber);
}

.c2-notice-card:hover, .c2-notice-card.selected {
    background: var(--c2-bg-card-hover);
    border-color: var(--c2-border-focus);
    transform: translateX(-2px);
}

.c2-notice-hd {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.c2-notice-code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--c2-cyan);
}

.c2-notice-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    margin: 2px 0;
}

.c2-notice-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* Vehicle Tag Badge */
.c2-vehicle-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.35);
    color: var(--c2-amber);
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.c2-notice-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.c2-card-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c2-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.c2-card-btn:hover {
    background: var(--c2-cyan-dim);
    color: var(--c2-cyan);
    border-color: rgba(0, 240, 255, 0.3);
}

/* ── COLUMN 2: TACTICAL MAP CONTAINER (FILLS FULL WORKSPACE) ─────────── */
.c2-map-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #030712;
    overflow: hidden;
    z-index: 1;
}

#c2Map {
    width: 100%;
    height: 100%;
    background: #030712;
}

/* Leaflet Dark Custom Overrides */
.leaflet-container {
    background: #030712 !important;
    font-family: var(--font-ui) !important;
}
.leaflet-bar {
    border: 1px solid var(--c2-border) !important;
    background: rgba(6, 11, 25, 0.9) !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5) !important;
}
.leaflet-bar a {
    background: rgba(6, 11, 25, 0.9) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--c2-border) !important;
}
.leaflet-bar a:hover {
    background: var(--c2-cyan-dim) !important;
    color: var(--c2-cyan) !important;
}

/* ── FLOATING MAP HUD TOP BAR ─────────────────────────────────────── */
.c2-map-hud-top {
    position: absolute;
    top: 14px;
    right: calc(var(--c2-sidebar-w) + 14px);
    left: calc(var(--c2-feed-w) + 14px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1), right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.c2-map-hud-top > * {
    pointer-events: auto;
}

.c2-map-layer-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 11, 25, 0.94);
    border: 1px solid var(--c2-border-light);
    border-radius: 10px;
    padding: 3px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.c2-layer-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-ui);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.c2-layer-btn:hover {
    color: #fff;
}
.c2-layer-btn.active {
    background: var(--c2-cyan-dim);
    color: var(--c2-cyan);
    font-weight: 800;
}

/* Radar Layer Toggle Badges Strip */
.c2-radar-toggles-strip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(6, 11, 25, 0.94);
    border: 1px solid var(--c2-border-light);
    border-radius: 10px;
    padding: 4px 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    flex-wrap: nowrap;
    overflow-x: auto;
}

.c2-toggle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all 0.15s ease;
    user-select: none;
}
.c2-toggle-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--c2-border);
}
.c2-toggle-badge input[type="checkbox"] {
    accent-color: var(--c2-cyan);
    cursor: pointer;
    width: 13px;
    height: 13px;
}
.c2-toggle-badge .c2-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* Map Quick Tools */
.c2-map-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 11, 25, 0.94);
    border: 1px solid var(--c2-border-light);
    border-radius: 10px;
    padding: 4px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.c2-tool-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c2-border);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-ui);
}
.c2-tool-btn:hover {
    background: var(--c2-cyan-dim);
    color: var(--c2-cyan);
    border-color: rgba(0, 240, 255, 0.4);
}

/* Leaflet High-Contrast Daylight Popups */
.leaflet-popup-content-wrapper {
    background: #ffffff !important;
    color: #1e293b !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.leaflet-popup-tip {
    background: #ffffff !important;
}

/* Active Trajectory Corridor Banner */
.c2-trajectory-banner {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 900;
    background: rgba(6, 11, 25, 0.94);
    border: 1px solid var(--c2-amber);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 16px rgba(255, 183, 3, 0.25);
    backdrop-filter: blur(12px);
    display: none;
}
.c2-trajectory-banner.show {
    display: flex;
}

/* ── FLOATING FEED: LIVE EYEWITNESS SIGHTINGS (LEFT OVERLAY) ─────────── */
.c2-feed {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--c2-feed-w);
    height: 100%;
    background: rgba(5, 10, 22, 0.96);
    border-right: 1px solid var(--c2-border-light);
    backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 500;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 28px rgba(0,0,0,0.45);
}

.c2-feed.collapsed {
    transform: translateX(calc(-1 * var(--c2-feed-w)));
}

/* Feed toggle tab */
.c2-feed-toggle {
    position: absolute;
    top: 50%;
    right: -28px;
    transform: translateY(-50%);
    width: 28px;
    height: 80px;
    background: rgba(5, 10, 22, 0.96);
    border: 1px solid var(--c2-border-light);
    border-left: none;
    backdrop-filter: blur(16px);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.65rem;
    writing-mode: vertical-rl;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: var(--font-mono);
    transition: all 0.2s;
    z-index: 501;
}
.c2-feed-toggle:hover {
    color: var(--c2-cyan);
    border-color: rgba(0,240,255,0.5);
    background: rgba(0,240,255,0.06);
}


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

.c2-feed-card {
    background: var(--c2-bg-card);
    border: 1px solid var(--c2-border);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.18s;
}
.c2-feed-card:hover {
    border-color: var(--c2-border-focus);
    background: var(--c2-bg-card-hover);
}

.c2-feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.c2-feed-informant {
    font-weight: 700;
    color: #fff;
}

.c2-feed-msg {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 8px;
}

/* GPS Trust Pills */
.c2-gps-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}
.c2-gps-pill.high {
    background: rgba(16, 185, 129, 0.12);
    color: var(--c2-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.c2-gps-pill.medium {
    background: rgba(255, 183, 3, 0.12);
    color: var(--c2-amber);
    border: 1px solid rgba(255, 183, 3, 0.3);
}
.c2-gps-pill.none {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

/* ── BOTTOM AI TICKER ────────────────────────────────────────────────── */
.c2-ticker {
    height: var(--c2-ticker-h);
    background: rgba(4, 9, 22, 0.98);
    border-top: 1px solid var(--c2-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    font-size: 0.74rem;
    color: var(--text-muted);
    flex-shrink: 0;
    z-index: 1000;
}

.c2-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c2-cyan);
    font-weight: 800;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.c2-ticker-content {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #cbd5e1;
}

/* ── MODALS (TACTICAL OVERLAYS) ───────────────────────────────────────── */
.c2-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 5, 14, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.c2-modal-overlay.open {
    display: flex;
}

.c2-modal {
    background: #070d1e;
    border: 1px solid var(--c2-border-light);
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.c2-modal-hd {
    padding: 16px 20px;
    border-bottom: 1px solid var(--c2-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.c2-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.c2-modal-ft {
    padding: 14px 20px;
    border-top: 1px solid var(--c2-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.c2-form-group {
    margin-bottom: 14px;
}

.c2-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.c2-input, .c2-textarea, .c2-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c2-border);
    border-radius: 8px;
    padding: 9px 12px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    outline: none;
}
.c2-input:focus, .c2-textarea:focus, .c2-select:focus {
    border-color: var(--c2-cyan);
}

/* ── WALL HUD FULLSCREEN MODE ────────────────────────────────────────── */
body.wall-mode .c2-sidebar {
    width: 320px;
}
body.wall-mode .c2-feed {
    width: 300px;
}
body.wall-mode .c2-header {
    height: 60px;
}
body.wall-mode .c2-notice-name {
    font-size: 0.95rem;
}
body.wall-mode .c2-chip-val {
    font-size: 1.25rem;
}

/* When right sidebar is collapsed: HUD extends to the right edge */
body.sidebar-collapsed .c2-map-hud-top {
    right: 14px;
}
/* When left feed is collapsed: HUD extends to the left edge */
body.feed-collapsed .c2-map-hud-top {
    left: 14px;
}
/* Both collapsed */
body.sidebar-collapsed.feed-collapsed .c2-map-hud-top {
    right: 14px;
    left: 14px;
}
