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

        :root {
            --bg: #0a0a0a;
            --surface: #141414;
            --border: #2a2a2a;
            --text: #e8e8e8;
            --text-dim: #888;
            --accent: #fff;
            --red: #ff4444;
            --green: #44ff88;
            --yellow: #ffaa00;
        }

        body {
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
            background: var(--bg);
            color: var(--text);
            font-size: 12px;
            line-height: 1.5;
        }

        .header {
            position: sticky;
            top: 0;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            padding: 0.75rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
        }

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

        .title {
            font-size: 0.8rem;
            font-weight: bold;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .status {
            font-size: 0.7rem;
            color: var(--text-dim);
        }

        .status.loading {
            color: var(--accent);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .refresh-btn, .settings-btn {
            background: var(--accent);
            color: var(--bg);
            border: none;
            padding: 0.4rem 1.2rem;
            font-family: inherit;
            font-size: 0.7rem;
            font-weight: bold;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .settings-btn {
            background: var(--surface);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .monitors-btn {
            background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
            color: var(--bg);
            border: none;
            font-weight: bold;
            position: relative;
            overflow: hidden;
        }

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

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

        .refresh-btn:hover, .settings-btn:hover, .monitors-btn:hover {
            opacity: 0.8;
        }

        .refresh-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Settings Modal */
        .settings-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .settings-modal.open {
            display: flex;
        }

        .settings-content {
            background: var(--bg);
            border: 1px solid var(--border);
            padding: 1.5rem;
            max-width: 400px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .settings-title {
            font-size: 0.8rem;
            font-weight: bold;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }

        .settings-section {
            margin-bottom: 1rem;
        }

        .settings-section-title {
            font-size: 0.65rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.5rem;
        }

        .panel-toggle-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border);
        }

        .panel-toggle-item label {
            font-size: 0.75rem;
            cursor: pointer;
        }

        .toggle-switch {
            position: relative;
            width: 36px;
            height: 20px;
            background: var(--surface);
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .toggle-switch.on {
            background: var(--green);
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background: var(--text);
            border-radius: 50%;
            transition: transform 0.2s;
        }

        .toggle-switch.on::after {
            transform: translateX(16px);
        }

        .settings-input {
            width: 100%;
            padding: 0.5rem;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            font-family: inherit;
            font-size: 0.7rem;
            margin-bottom: 0.25rem;
        }

        .settings-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .settings-hint {
            font-size: 0.6rem;
            color: var(--text-dim);
        }

        .settings-reset {
            width: 100%;
            padding: 0.5rem;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-dim);
            font-family: inherit;
            font-size: 0.65rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .settings-reset:hover {
            border-color: var(--red);
            color: var(--red);
        }

        .settings-close {
            margin-top: 1rem;
            width: 100%;
            padding: 0.6rem;
            background: var(--accent);
            color: var(--bg);
            border: none;
            font-family: inherit;
            font-size: 0.7rem;
            font-weight: bold;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            cursor: pointer;
        }

        .dashboard {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: auto auto;
            gap: 1px;
            background: var(--border);
        }

        .panel {
            background: var(--bg);
            display: flex;
            flex-direction: column;
            min-height: 300px;
            transition: min-height 0.2s, opacity 0.2s, transform 0.15s;
        }

        .panel.hidden {
            min-height: 0;
            display: none;
        }

        .panel.wide {
            grid-column: span 2;
        }

        .panel.dragging {
            opacity: 0.5;
            transform: scale(0.98);
        }

        .panel.drag-over {
            outline: 2px dashed var(--accent);
            outline-offset: -2px;
        }

        /* Resizable panels */
        .panel {
            position: relative;
            resize: none;
        }

        .panel-resize-handle {
            position: absolute;
            background: transparent;
            z-index: 10;
        }

        .panel-resize-handle.corner {
            width: 16px;
            height: 16px;
            bottom: 0;
            right: 0;
            cursor: nwse-resize;
        }

        .panel-resize-handle.corner::before {
            content: '';
            position: absolute;
            bottom: 3px;
            right: 3px;
            width: 8px;
            height: 8px;
            border-right: 2px solid var(--border);
            border-bottom: 2px solid var(--border);
            opacity: 0.5;
            transition: all 0.2s ease;
        }

        .panel:hover .panel-resize-handle.corner::before {
            opacity: 1;
            border-color: var(--text-dim);
        }

        .panel-resize-handle.corner:hover::before {
            border-color: var(--accent);
            width: 10px;
            height: 10px;
        }

        .panel-resize-handle.bottom {
            height: 6px;
            left: 0;
            right: 16px;
            bottom: 0;
            cursor: ns-resize;
        }

        .panel-resize-handle.right {
            width: 6px;
            top: 0;
            bottom: 16px;
            right: 0;
            cursor: ew-resize;
        }

        .panel.resizing {
            user-select: none;
            transition: none;
        }

        .panel.resizing * {
            pointer-events: none;
        }

        .panel-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: grab;
            user-select: none;
        }

        .panel-header:active {
            cursor: grabbing;
        }

        .panel-header:hover {
            background: var(--surface);
        }

        .drag-handle {
            color: var(--text-dim);
            margin-right: 0.5rem;
            font-size: 0.7rem;
            opacity: 0.5;
        }

        .panel-header:hover .drag-handle {
            opacity: 1;
        }

        .panel-header-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .panel-toggle {
            font-size: 0.6rem;
            color: var(--text-dim);
            transition: transform 0.2s;
        }

        .panel.collapsed .panel-toggle {
            transform: rotate(-90deg);
        }

        .panel-title {
            font-size: 0.65rem;
            font-weight: bold;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-dim);
        }

        .panel-count {
            font-size: 0.65rem;
            color: var(--text-dim);
        }

        .panel-content {
            flex: 1;
            overflow-y: auto;
            max-height: 380px;
            transition: max-height 0.2s;
        }

        .panel.collapsed .panel-content {
            max-height: 0;
            overflow: hidden;
        }

        .panel.collapsed {
            min-height: auto;
        }

        .item {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: background 0.2s;
        }

        .item:hover {
            background: var(--surface);
        }

        .item.alert {
            border-left: 2px solid var(--yellow);
        }

        .item-source {
            font-size: 0.55rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.15rem;
        }

        .item-title {
            font-size: 0.75rem;
            font-weight: normal;
            color: var(--text);
            text-decoration: none;
            display: block;
        }

        .item-title:hover {
            color: var(--accent);
        }

        .item-time {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.3rem;
        }

        .alert-tag {
            font-size: 0.5rem;
            background: var(--yellow);
            color: var(--bg);
            padding: 0.1rem 0.3rem;
            margin-left: 0.5rem;
            font-weight: bold;
        }

        /* Markets Panel */
        .market-item {
            padding: 0.5rem 1rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .market-name {
            font-size: 0.7rem;
            font-weight: bold;
        }

        .market-symbol {
            font-size: 0.55rem;
            color: var(--text-dim);
        }

        .market-data {
            text-align: right;
        }

        .market-price {
            font-size: 0.75rem;
            font-weight: bold;
        }

        .market-change {
            font-size: 0.65rem;
        }

        .market-change.up {
            color: var(--green);
        }

        .market-change.down {
            color: var(--red);
        }

        /* Sector Heatmap */
        .heatmap {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2px;
            padding: 0.5rem;
        }

        .heatmap-cell {
            padding: 0.6rem 0.4rem;
            text-align: center;
            font-size: 0.6rem;
            font-weight: bold;
            border-radius: 2px;
        }

        .heatmap-cell .sector-name {
            font-size: 0.55rem;
            opacity: 0.9;
            margin-bottom: 0.2rem;
        }

        .heatmap-cell .sector-change {
            font-size: 0.7rem;
        }

        .heatmap-cell.up-3 { background: #0d5a2d; color: #fff; }
        .heatmap-cell.up-2 { background: #157a3c; color: #fff; }
        .heatmap-cell.up-1 { background: #1d9a4b; color: #fff; }
        .heatmap-cell.up-0 { background: #2a4a35; color: #fff; }
        .heatmap-cell.down-0 { background: #4a2a2a; color: #fff; }
        .heatmap-cell.down-1 { background: #8a3a3a; color: #fff; }
        .heatmap-cell.down-2 { background: #aa3333; color: #fff; }
        .heatmap-cell.down-3 { background: #cc2222; color: #fff; }

        /* Polymarket */
        .prediction-item {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

        .prediction-question {
            font-size: 0.75rem;
            flex: 1;
            color: var(--text);
        }

        .prediction-odds {
            display: flex;
            gap: 0.5rem;
            flex-shrink: 0;
        }

        .prediction-yes, .prediction-no {
            padding: 0.25rem 0.5rem;
            font-size: 0.65rem;
            font-weight: bold;
            border-radius: 2px;
        }

        .prediction-yes {
            background: var(--green);
            color: var(--bg);
        }

        .prediction-no {
            background: var(--red);
            color: #fff;
        }

        .prediction-volume {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.25rem;
        }

        .error-msg {
            padding: 1rem;
            color: var(--text-dim);
            font-size: 0.7rem;
        }

        /* Global Map - Situation Room Style */
        .world-map {
            width: 100%;
            height: 550px;
            position: relative;
            background: #020a08;
            overflow: hidden;
            border: 1px solid #0a3020;
        }

        .world-map::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 2px,
                rgba(0, 40, 30, 0.03) 2px,
                rgba(0, 40, 30, 0.03) 4px
            );
            pointer-events: none;
            z-index: 10;
        }

        .world-map svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* Zoomable map container */
        .map-zoom-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transform-origin: center center;
            transition: transform 0.3s ease;
        }

        .map-zoom-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            z-index: 50;
        }

        .map-zoom-btn {
            width: 28px;
            height: 28px;
            background: rgba(0, 30, 20, 0.9);
            border: 1px solid #0f6040;
            color: #00ff88;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-family: 'SF Mono', monospace;
        }

        .map-zoom-btn:hover {
            background: rgba(0, 60, 40, 0.9);
            border-color: #00ff88;
            box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
        }

        .map-zoom-btn:active {
            transform: scale(0.95);
        }

        .map-zoom-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .map-zoom-level {
            font-size: 0.55rem;
            color: #0f6040;
            text-align: center;
            padding: 2px 0;
            font-family: 'SF Mono', monospace;
        }

        .map-zoom-reset {
            font-size: 0.6rem;
            padding: 4px 6px;
            width: auto;
            height: auto;
        }

        /* Pan hint */
        .map-pan-hint {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.5rem;
            color: #0f6040;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 50;
            pointer-events: none;
        }

        .world-map:hover .map-pan-hint.show {
            opacity: 0.7;
        }

        /* Map View Toggle (Global/US) */
        .map-view-toggle {
            position: absolute;
            top: 10px;
            left: 10px;
            display: flex;
            gap: 0;
            z-index: 50;
            border: 1px solid #0f6040;
            overflow: hidden;
        }

        .map-view-btn {
            padding: 6px 12px;
            background: rgba(0, 30, 20, 0.9);
            border: none;
            color: #0f6040;
            font-size: 0.55rem;
            font-weight: bold;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'SF Mono', monospace;
        }

        .map-view-btn:first-child {
            border-right: 1px solid #0f6040;
        }

        .map-view-btn:hover {
            background: rgba(0, 60, 40, 0.9);
            color: #00ff88;
        }

        .map-view-btn.active {
            background: rgba(0, 255, 136, 0.2);
            color: #00ff88;
        }

        /* US City Markers */
        .us-city {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 25;
            cursor: pointer;
        }

        .us-city-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00aaff;
            border: 1px solid #00ddff;
            transition: all 0.3s ease;
            box-shadow: 0 0 6px rgba(0, 170, 255, 0.4);
        }

        .us-city.capital .us-city-dot {
            width: 10px;
            height: 10px;
            background: #ffcc00;
            border-color: #ffee66;
            box-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
        }

        .us-city.major .us-city-dot {
            width: 9px;
            height: 9px;
            background: #00ff88;
            border-color: #66ffaa;
            box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
        }

        .us-city-label {
            position: absolute;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.5rem;
            color: #00aaff;
            white-space: nowrap;
            opacity: 0;
            transition: all 0.3s ease;
            text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
            pointer-events: none;
        }

        .us-city.capital .us-city-label {
            color: #ffcc00;
        }

        .us-city.major .us-city-label {
            color: #00ff88;
        }

        .us-city:hover .us-city-label {
            opacity: 1;
        }

        .us-city:hover .us-city-dot {
            transform: scale(1.5);
            box-shadow: 0 0 15px currentColor;
        }

        .us-city::before {
            content: '';
            position: absolute;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 1px solid transparent;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }

        .us-city:hover::before {
            border-color: currentColor;
            opacity: 0.4;
            animation: city-ping 1.5s ease-out infinite;
        }

        @keyframes city-ping {
            0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
            100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
        }

        .us-city-info {
            font-size: 0.4rem;
            color: rgba(0, 170, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* US City activity indicators */
        .us-city.high-activity .us-city-dot {
            animation: city-pulse 1.5s ease-in-out infinite;
        }

        .us-city.high-activity::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 100, 100, 0.3) 0%, transparent 70%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: activity-glow 2s ease-in-out infinite;
        }

        @keyframes city-pulse {
            0%, 100% { box-shadow: 0 0 6px currentColor; }
            50% { box-shadow: 0 0 15px currentColor; }
        }

        @keyframes activity-glow {
            0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
            50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
        }

        /* US Breaking News Hotspots */
        .us-hotspot {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 30;
            cursor: pointer;
        }

        .us-hotspot-marker {
            position: relative;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            z-index: 2;
        }

        .us-hotspot-ring {
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: hotspot-pulse 2s ease-out infinite;
        }

        .us-hotspot.high .us-hotspot-ring {
            border-color: #ff4444;
        }

        .us-hotspot.elevated .us-hotspot-ring {
            border-color: #ffaa00;
        }

        .us-hotspot.medium .us-hotspot-ring {
            border-color: #44aaff;
        }

        .us-hotspot-glow {
            position: absolute;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 0;
        }

        .us-hotspot.high .us-hotspot-glow {
            background: radial-gradient(circle, rgba(255, 68, 68, 0.4) 0%, transparent 70%);
            animation: glow-pulse 1.5s ease-in-out infinite;
        }

        .us-hotspot.elevated .us-hotspot-glow {
            background: radial-gradient(circle, rgba(255, 170, 0, 0.3) 0%, transparent 70%);
            animation: glow-pulse 2s ease-in-out infinite;
        }

        .us-hotspot.medium .us-hotspot-glow {
            background: radial-gradient(circle, rgba(68, 170, 255, 0.25) 0%, transparent 70%);
        }

        @keyframes hotspot-pulse {
            0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
            100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
        }

        @keyframes glow-pulse {
            0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
            50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
        }

        .us-hotspot-label {
            position: absolute;
            top: 28px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.55rem;
            font-weight: bold;
            white-space: nowrap;
            text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
            opacity: 0;
            transition: opacity 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .us-hotspot.high .us-hotspot-label {
            color: #ff6666;
        }

        .us-hotspot.elevated .us-hotspot-label {
            color: #ffcc44;
        }

        .us-hotspot.medium .us-hotspot-label {
            color: #66bbff;
        }

        .us-hotspot:hover .us-hotspot-label {
            opacity: 1;
        }

        .us-hotspot-category {
            font-size: 0.4rem;
            opacity: 0.7;
            font-weight: normal;
        }

        /* US Hotspot Popup */
        .us-hotspot-popup {
            display: none;
            position: absolute;
            z-index: 100;
            background: rgba(10, 20, 30, 0.95);
            border: 1px solid rgba(255, 100, 100, 0.4);
            border-radius: 4px;
            width: 320px;
            max-height: 400px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            pointer-events: auto;
        }

        .us-hotspot-popup.visible {
            display: block;
        }

        .us-hotspot-popup-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid rgba(255, 100, 100, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .us-hotspot-popup.high .us-hotspot-popup-header {
            background: rgba(255, 68, 68, 0.15);
        }

        .us-hotspot-popup.elevated .us-hotspot-popup-header {
            background: rgba(255, 170, 0, 0.15);
            border-color: rgba(255, 170, 0, 0.3);
        }

        .us-hotspot-popup.medium .us-hotspot-popup-header {
            background: rgba(68, 170, 255, 0.1);
            border-color: rgba(68, 170, 255, 0.3);
        }

        .us-hotspot-popup-title {
            font-size: 0.8rem;
            font-weight: bold;
            color: #ff8888;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .us-hotspot-popup.elevated .us-hotspot-popup-title {
            color: #ffcc44;
        }

        .us-hotspot-popup.medium .us-hotspot-popup-title {
            color: #66bbff;
        }

        .us-hotspot-popup-level {
            font-size: 0.5rem;
            padding: 0.2rem 0.5rem;
            border-radius: 2px;
            text-transform: uppercase;
            font-weight: bold;
        }

        .us-hotspot-popup-level.high {
            background: rgba(255, 68, 68, 0.3);
            color: #ff8888;
        }

        .us-hotspot-popup-level.elevated {
            background: rgba(255, 170, 0, 0.3);
            color: #ffcc44;
        }

        .us-hotspot-popup-level.medium {
            background: rgba(68, 170, 255, 0.2);
            color: #66bbff;
        }

        .us-hotspot-popup-meta {
            padding: 0.6rem 1rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.4rem;
            border-bottom: 1px solid rgba(255, 100, 100, 0.2);
            font-size: 0.55rem;
        }

        .us-hotspot-popup-meta-label {
            color: #664444;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .us-hotspot-popup-meta-value {
            color: #cc8888;
        }

        .us-hotspot-popup-desc {
            padding: 0.75rem 1rem;
            font-size: 0.65rem;
            color: #ccaaaa;
            line-height: 1.5;
            border-bottom: 1px solid rgba(255, 100, 100, 0.2);
        }

        .us-hotspot-popup-headlines-title {
            font-size: 0.5rem;
            color: #664444;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 0.5rem 1rem 0.3rem;
        }

        .us-hotspot-popup-headlines {
            max-height: 150px;
            overflow-y: auto;
        }

        .us-hotspot-popup-headline {
            padding: 0.5rem 1rem;
            border-bottom: 1px solid rgba(255, 100, 100, 0.15);
            font-size: 0.6rem;
            color: #ddbbbb;
            line-height: 1.4;
            transition: background 0.2s;
        }

        .us-hotspot-popup-headline:hover {
            background: rgba(255, 100, 100, 0.1);
        }

        .us-hotspot-popup-headline a {
            color: inherit;
            text-decoration: none;
        }

        .us-hotspot-popup-headline a:hover {
            color: #ff9999;
        }

        .us-hotspot-popup-headline-source {
            font-size: 0.45rem;
            color: #664444;
            text-transform: uppercase;
            margin-bottom: 0.15rem;
        }

        .us-hotspot-popup-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: #886666;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
            transition: color 0.2s;
        }

        .us-hotspot-popup-close:hover {
            color: #ff8888;
        }

        /* US City Popup */
        .us-city-popup {
            display: none;
            position: absolute;
            z-index: 100;
            background: rgba(5, 15, 25, 0.98);
            border: 1px solid #0066aa;
            min-width: 300px;
            max-width: 380px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 100, 200, 0.15);
            pointer-events: auto;
        }

        .us-city-popup.visible {
            display: block;
        }

        .us-city-popup-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid rgba(0, 100, 170, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0, 100, 170, 0.1);
        }

        .us-city-popup-title {
            font-size: 0.8rem;
            font-weight: bold;
            color: #00aaff;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .us-city-popup-state {
            font-size: 0.55rem;
            padding: 0.2rem 0.5rem;
            background: rgba(0, 170, 255, 0.2);
            color: #00ccff;
            border-radius: 2px;
        }

        .us-city-popup-meta {
            padding: 0.6rem 1rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.4rem;
            border-bottom: 1px solid rgba(0, 100, 170, 0.2);
            font-size: 0.55rem;
        }

        .us-city-popup-meta-label {
            color: #336688;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .us-city-popup-meta-value {
            color: #66aacc;
        }

        .us-city-popup-desc {
            padding: 0.6rem 1rem;
            font-size: 0.6rem;
            color: #99bbcc;
            line-height: 1.5;
            border-bottom: 1px solid rgba(0, 100, 170, 0.2);
        }

        .us-city-popup-headlines-title {
            font-size: 0.5rem;
            color: #336688;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 0.5rem 1rem 0.3rem;
        }

        .us-city-popup-headlines {
            max-height: 180px;
            overflow-y: auto;
        }

        .us-city-popup-headline {
            padding: 0.5rem 1rem;
            border-bottom: 1px solid rgba(0, 100, 170, 0.15);
            font-size: 0.6rem;
            color: #99bbcc;
            cursor: pointer;
            transition: background 0.2s;
        }

        .us-city-popup-headline:hover {
            background: rgba(0, 100, 170, 0.15);
        }

        .us-city-popup-headline a {
            color: inherit;
            text-decoration: none;
        }

        .us-city-popup-headline a:hover {
            color: #00ccff;
        }

        .us-city-popup-headline-source {
            font-size: 0.45rem;
            color: #336688;
            text-transform: uppercase;
            margin-bottom: 0.15rem;
        }

        .us-city-popup-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: #336688;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
            transition: color 0.2s;
        }

        .us-city-popup-close:hover {
            color: #00aaff;
        }

        .map-overlays {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 15;
        }

        .map-overlays > * {
            pointer-events: auto;
        }

        .coord-label {
            position: absolute;
            font-size: 0.55rem;
            color: #0f6040;
            font-family: 'SF Mono', monospace;
            pointer-events: none;
            z-index: 5;
        }

        .coord-label.lat {
            transform: translateY(-50%);
        }

        .coord-label.lon {
            transform: translateX(-50%);
        }

        .map-corner-label {
            position: absolute;
            font-size: 0.5rem;
            color: #0f6040;
            font-family: 'SF Mono', monospace;
            letter-spacing: 0.1em;
            z-index: 15;
        }

        .map-corner-label.tl { top: 8px; left: 10px; }
        .map-corner-label.tr { top: 8px; right: 10px; }
        .map-corner-label.bl { bottom: 8px; left: 10px; }
        .map-corner-label.br { bottom: 8px; right: 10px; }

        .hotspot {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 20;
        }

        .hotspot-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            position: relative;
            border: 1px solid;
        }

        .hotspot-dot::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            border-radius: 50%;
            animation: pulse-ring 2s ease-out infinite;
        }

        .hotspot-dot::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 1px solid;
            opacity: 0.4;
        }

        .hotspot.low .hotspot-dot {
            background: #00ff88;
            border-color: #00ff88;
            box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0,255,136,0.3);
        }
        .hotspot.low .hotspot-dot::before { background: #00ff88; }
        .hotspot.low .hotspot-dot::after { border-color: #00ff88; }

        .hotspot.elevated .hotspot-dot {
            background: #ffcc00;
            border-color: #ffcc00;
            box-shadow: 0 0 10px #ffcc00, 0 0 20px rgba(255,204,0,0.3);
        }
        .hotspot.elevated .hotspot-dot::before { background: #ffcc00; }
        .hotspot.elevated .hotspot-dot::after { border-color: #ffcc00; }

        .hotspot.high .hotspot-dot {
            background: #ff3333;
            border-color: #ff3333;
            box-shadow: 0 0 15px #ff3333, 0 0 30px rgba(255,51,51,0.4);
            animation: glow-high 1s ease-in-out infinite alternate;
        }
        .hotspot.high .hotspot-dot::before { background: #ff3333; }
        .hotspot.high .hotspot-dot::after { border-color: #ff3333; animation: target-lock 1.5s linear infinite; }

        @keyframes pulse-ring {
            0% { width: 100%; height: 100%; opacity: 0.6; }
            100% { width: 250%; height: 250%; opacity: 0; }
        }

        @keyframes glow-high {
            from { box-shadow: 0 0 10px #ff3333, 0 0 20px rgba(255,51,51,0.3); }
            to { box-shadow: 0 0 20px #ff3333, 0 0 40px rgba(255,51,51,0.5); }
        }

        @keyframes target-lock {
            from { transform: translate(-50%, -50%) rotate(0deg); }
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .hotspot-label {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.55rem;
            font-family: 'SF Mono', monospace;
            color: #00ff88;
            white-space: nowrap;
            text-shadow: 0 0 5px rgba(0,255,136,0.5);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .hotspot.elevated .hotspot-label { color: #ffcc00; text-shadow: 0 0 5px rgba(255,204,0,0.5); }
        .hotspot.high .hotspot-label { color: #ff3333; text-shadow: 0 0 5px rgba(255,51,51,0.5); }

        .hotspot-info {
            font-size: 0.45rem;
            color: #0a8060;
            text-transform: none;
        }

        /* Hotspot Popup */
        .hotspot-popup {
            display: none;
            position: absolute;
            z-index: 100;
            background: rgba(5, 10, 8, 0.95);
            border: 1px solid #0f5040;
            min-width: 280px;
            max-width: 350px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 136, 0.1);
            pointer-events: auto;
        }

        .hotspot-popup.visible {
            display: block;
        }

        .hotspot-popup-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #0f5040;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .hotspot-popup-title {
            font-size: 0.75rem;
            font-weight: bold;
            color: #00ff88;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .hotspot-popup.elevated .hotspot-popup-title { color: #ffcc00; }
        .hotspot-popup.high .hotspot-popup-title { color: #ff3333; }

        .hotspot-popup-level {
            font-size: 0.55rem;
            padding: 0.2rem 0.5rem;
            border-radius: 2px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .hotspot-popup-level.low { background: #00ff88; color: #000; }
        .hotspot-popup-level.elevated { background: #ffcc00; color: #000; }
        .hotspot-popup-level.high { background: #ff3333; color: #fff; animation: pulse-level 1s infinite; }

        @keyframes pulse-level {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .hotspot-popup-subtext {
            font-size: 0.55rem;
            color: #0a8060;
            padding: 0.5rem 1rem;
            border-bottom: 1px solid #0a3020;
        }

        .hotspot-popup-headlines {
            max-height: 200px;
            overflow-y: auto;
        }

        .hotspot-popup-headline {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid #0a3020;
            font-size: 0.65rem;
            color: #e8e8e8;
            cursor: pointer;
            transition: background 0.2s;
        }

        .hotspot-popup-headline:last-child {
            border-bottom: none;
        }

        .hotspot-popup-headline:hover {
            background: rgba(0, 255, 136, 0.1);
        }

        .hotspot-popup-headline a {
            color: inherit;
            text-decoration: none;
        }

        .hotspot-popup-headline a:hover {
            color: #00ff88;
        }

        .hotspot-popup-source {
            font-size: 0.5rem;
            color: #0a8060;
            text-transform: uppercase;
            margin-bottom: 0.2rem;
        }

        .hotspot-popup-empty {
            padding: 1rem;
            font-size: 0.6rem;
            color: #0a8060;
            text-align: center;
            font-style: italic;
        }

        .hotspot-popup-coords {
            font-size: 0.5rem;
            color: #0a6050;
            padding: 0 1rem 0.5rem;
            font-family: 'SF Mono', monospace;
        }

        .hotspot-popup-desc {
            padding: 0.6rem 1rem;
            font-size: 0.6rem;
            color: #aaccbb;
            line-height: 1.5;
            border-bottom: 1px solid #0a3020;
        }

        .hotspot-popup-meta {
            padding: 0.5rem 1rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.4rem;
            border-bottom: 1px solid #0a3020;
        }

        .hotspot-popup-meta-item {
            font-size: 0.5rem;
        }

        .hotspot-popup-meta-label {
            color: #0a6050;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: block;
            margin-bottom: 0.1rem;
        }

        .hotspot-popup-meta-value {
            color: #00ff88;
        }

        .hotspot-popup-agencies {
            padding: 0.5rem 1rem;
            border-bottom: 1px solid #0a3020;
        }

        .hotspot-popup-agencies-title {
            font-size: 0.45rem;
            color: #0a6050;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.3rem;
        }

        .hotspot-popup-agency {
            display: inline-block;
            font-size: 0.5rem;
            padding: 0.1rem 0.3rem;
            margin: 0.1rem 0.15rem 0.1rem 0;
            background: rgba(0, 255, 136, 0.1);
            border: 1px solid rgba(0, 255, 136, 0.2);
            color: #00cc77;
        }

        .hotspot-popup-headlines-title {
            font-size: 0.45rem;
            color: #0a6050;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 0.4rem 1rem 0.2rem;
        }

        .hotspot-popup-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: #0a8060;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
        }

        .hotspot-popup-close:hover {
            color: #00ff88;
        }

        .hotspot-popup-coords {
            font-size: 0.5rem;
            color: #0a6040;
            padding: 0.4rem 1rem;
            background: #030805;
            font-family: 'SF Mono', monospace;
        }

        /* Make hotspots clickable */
        .hotspot {
            cursor: pointer;
            pointer-events: auto;
        }

        .hotspot:hover .hotspot-dot {
            transform: scale(1.4);
        }

        .hotspot:hover .hotspot-label {
            transform: translateX(-50%) scale(1.1);
            text-shadow: 0 0 10px currentColor;
        }

        .hotspot.low:hover .hotspot-dot { box-shadow: 0 0 25px #00ff88, 0 0 40px rgba(0,255,136,0.5); }
        .hotspot.elevated:hover .hotspot-dot { box-shadow: 0 0 25px #ffcc00, 0 0 40px rgba(255,204,0,0.5); }
        .hotspot.high:hover .hotspot-dot { box-shadow: 0 0 30px #ff3333, 0 0 50px rgba(255,51,51,0.6); }

        /* Shipping Chokepoints */
        .chokepoint {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 18;
            cursor: pointer;
        }

        .chokepoint::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 28px;
            height: 28px;
            border: 1px solid transparent;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .chokepoint:hover::before {
            border-color: #00aaff;
            animation: chokepoint-scan 1.5s ease-in-out infinite;
        }

        @keyframes chokepoint-scan {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .chokepoint:hover .chokepoint-icon {
            transform: scale(1.3);
            box-shadow: 0 0 15px rgba(0,170,255,0.8);
        }

        .chokepoint:hover .chokepoint-label {
            color: #00ffff;
            text-shadow: 0 0 8px rgba(0,255,255,0.6);
        }

        .chokepoint.alert:hover .chokepoint-icon {
            box-shadow: 0 0 20px rgba(255,170,0,1);
        }

        .chokepoint-icon {
            width: 14px;
            height: 14px;
            background: #0066cc;
            border: 2px solid #00aaff;
            border-radius: 2px;
            transition: all 0.2s ease;
            position: relative;
            box-shadow: 0 0 8px rgba(0,170,255,0.5);
        }

        .chokepoint-icon::after {
            content: '⚓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 8px;
        }

        .chokepoint.alert .chokepoint-icon {
            background: #cc6600;
            border-color: #ffaa00;
            box-shadow: 0 0 12px rgba(255,170,0,0.6);
            animation: pulse-ship 1.5s ease-in-out infinite;
        }

        @keyframes pulse-ship {
            0%, 100% { box-shadow: 0 0 8px rgba(255,170,0,0.4); }
            50% { box-shadow: 0 0 16px rgba(255,170,0,0.8); }
        }

        .chokepoint-label {
            position: absolute;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.45rem;
            color: #00aaff;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Chokepoint Popup */
        .chokepoint-popup {
            display: none;
            position: absolute;
            z-index: 100;
            background: rgba(5, 8, 15, 0.95);
            border: 1px solid #0066cc;
            min-width: 260px;
            max-width: 320px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 170, 255, 0.15);
            pointer-events: auto;
        }

        .chokepoint-popup.visible {
            display: block;
        }

        .chokepoint-popup.alert {
            border-color: #ffaa00;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 170, 0, 0.2);
        }

        .chokepoint-popup-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #0a3050;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chokepoint-popup-title {
            font-size: 0.75rem;
            font-weight: bold;
            color: #00aaff;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .chokepoint-popup.alert .chokepoint-popup-title {
            color: #ffaa00;
        }

        .chokepoint-popup-status {
            font-size: 0.55rem;
            padding: 0.2rem 0.5rem;
            border-radius: 2px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .chokepoint-popup-status.normal { background: #00aaff; color: #000; }
        .chokepoint-popup-status.alert { background: #ffaa00; color: #000; }

        .chokepoint-popup-info {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid #0a3050;
        }

        .chokepoint-popup-stat {
            display: flex;
            justify-content: space-between;
            font-size: 0.6rem;
            padding: 0.25rem 0;
        }

        .chokepoint-popup-stat-label {
            color: #0a8090;
        }

        .chokepoint-popup-stat-value {
            color: #e8e8e8;
            font-weight: bold;
        }

        .chokepoint-popup-desc {
            font-size: 0.6rem;
            color: #8090a0;
            padding: 0.6rem 1rem;
            border-bottom: 1px solid #0a3050;
            line-height: 1.5;
        }

        .chokepoint-popup-headlines {
            max-height: 150px;
            overflow-y: auto;
        }

        .chokepoint-popup-headline {
            padding: 0.5rem 1rem;
            border-bottom: 1px solid #0a3050;
            font-size: 0.6rem;
            color: #e8e8e8;
        }

        .chokepoint-popup-headline:last-child {
            border-bottom: none;
        }

        .chokepoint-popup-headline a {
            color: inherit;
            text-decoration: none;
        }

        .chokepoint-popup-headline a:hover {
            color: #00aaff;
        }

        .chokepoint-popup-empty {
            padding: 0.75rem 1rem;
            font-size: 0.55rem;
            color: #0a8090;
            text-align: center;
            font-style: italic;
        }

        .chokepoint-popup-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: #0a8090;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
        }

        .chokepoint-popup-close:hover {
            color: #00aaff;
        }

        /* Earthquake markers */
        .quake {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 17;
            cursor: pointer;
        }

        .quake::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 1px solid transparent;
            transition: all 0.3s ease;
        }

        .quake:hover::before {
            border-color: #ff6600;
            animation: quake-ring 0.5s ease-out infinite;
        }

        @keyframes quake-ring {
            0% { width: 20px; height: 20px; opacity: 1; }
            100% { width: 40px; height: 40px; opacity: 0; }
        }

        .quake:hover .quake-icon {
            filter: brightness(1.5);
            transform: scale(1.3);
        }

        .quake:hover .quake-label {
            color: #ff9944;
            text-shadow: 0 0 8px rgba(255, 102, 0, 0.8);
            transform: translateX(-50%) scale(1.1);
        }

        .quake-icon {
            width: 12px;
            height: 12px;
            background: radial-gradient(circle, #ff6600 0%, #ff3300 100%);
            border-radius: 50%;
            animation: quake-pulse 1s ease-out infinite;
            transition: transform 0.2s, filter 0.2s;
        }

        .quake.major .quake-icon {
            width: 18px;
            height: 18px;
            background: radial-gradient(circle, #ff0000 0%, #cc0000 100%);
            animation: quake-pulse-major 0.8s ease-out infinite;
        }

        .quake.major:hover .quake-icon {
            box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
        }

        @keyframes quake-pulse {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }

        @keyframes quake-pulse-major {
            0% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px #ff0000; }
            100% { transform: scale(2.5); opacity: 0; box-shadow: 0 0 30px #ff0000; }
        }

        .quake-label {
            position: absolute;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.45rem;
            color: #ff6600;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        /* Earthquake Popup */
        .quake-popup {
            display: none;
            position: absolute;
            z-index: 100;
            background: rgba(15, 5, 5, 0.95);
            border: 1px solid #ff4400;
            min-width: 240px;
            max-width: 300px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 68, 0, 0.2);
            pointer-events: auto;
        }

        .quake-popup.visible {
            display: block;
        }

        .quake-popup.major {
            border-color: #ff0000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 0, 0, 0.3);
        }

        .quake-popup-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #401010;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .quake-popup-mag {
            font-size: 1.5rem;
            font-weight: bold;
            color: #ff6600;
        }

        .quake-popup.major .quake-popup-mag {
            color: #ff0000;
        }

        .quake-popup-severity {
            font-size: 0.55rem;
            padding: 0.2rem 0.5rem;
            border-radius: 2px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .quake-popup-severity.minor { background: #ff6600; color: #000; }
        .quake-popup-severity.moderate { background: #ff4400; color: #fff; }
        .quake-popup-severity.major { background: #ff0000; color: #fff; animation: pulse-level 1s infinite; }

        .quake-popup-location {
            padding: 0.6rem 1rem;
            font-size: 0.7rem;
            color: #e8e8e8;
            border-bottom: 1px solid #401010;
        }

        .quake-popup-info {
            padding: 0.6rem 1rem;
        }

        .quake-popup-stat {
            display: flex;
            justify-content: space-between;
            font-size: 0.6rem;
            padding: 0.25rem 0;
        }

        .quake-popup-stat-label {
            color: #804030;
        }

        .quake-popup-stat-value {
            color: #e8e8e8;
        }

        .quake-popup-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: #804030;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
        }

        .quake-popup-close:hover {
            color: #ff6600;
        }

        .quake-popup-link {
            display: block;
            padding: 0.5rem 1rem;
            font-size: 0.55rem;
            color: #ff6600;
            text-decoration: none;
            border-top: 1px solid #401010;
            text-align: center;
        }

        .quake-popup-link:hover {
            background: rgba(255, 102, 0, 0.1);
        }

        /* Cyber threat indicators */
        .cyber-zone {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 16;
            cursor: pointer;
        }

        .cyber-zone::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: 1px solid transparent;
            transition: all 0.3s ease;
        }

        .cyber-zone:hover::before {
            border-color: #ff00ff;
            background: radial-gradient(circle, rgba(255,0,255,0.1) 0%, transparent 70%);
            animation: cyber-expand 1.5s ease-out infinite;
        }

        @keyframes cyber-expand {
            0% { width: 25px; height: 25px; opacity: 1; }
            100% { width: 50px; height: 50px; opacity: 0; }
        }

        .cyber-zone:hover .cyber-icon {
            opacity: 1;
            box-shadow: 0 0 25px rgba(255,0,255,0.9);
            transform: scale(1.2);
            animation: cyber-scan 1s linear infinite;
        }

        .cyber-zone:hover .cyber-label {
            opacity: 1;
            color: #ff66ff;
            text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
            transform: translateX(-50%) scale(1.1);
        }

        .cyber-icon {
            width: 20px;
            height: 20px;
            border: 1px dashed #ff00ff;
            border-radius: 50%;
            opacity: 0.4;
            animation: cyber-scan 3s linear infinite;
            transition: all 0.3s ease;
        }

        .cyber-zone.active .cyber-icon {
            opacity: 0.8;
            border-color: #ff00ff;
            box-shadow: 0 0 15px rgba(255,0,255,0.4);
            animation: cyber-active 1s ease-in-out infinite;
        }

        .cyber-zone.active:hover .cyber-icon {
            box-shadow: 0 0 30px rgba(255,0,255,1);
        }

        @keyframes cyber-scan {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes cyber-active {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        .cyber-label {
            position: absolute;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.45rem;
            color: #ff00ff;
            opacity: 0.6;
            transition: all 0.2s ease;
        }

        /* Cyber Popup */
        .cyber-popup {
            display: none;
            position: absolute;
            z-index: 100;
            background: rgba(10, 5, 15, 0.95);
            border: 1px solid #ff00ff;
            min-width: 260px;
            max-width: 320px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 0, 255, 0.2);
            pointer-events: auto;
        }

        .cyber-popup.visible {
            display: block;
        }

        .cyber-popup.active {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 0, 255, 0.4);
        }

        .cyber-popup-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #301030;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cyber-popup-title {
            font-size: 0.8rem;
            font-weight: bold;
            color: #ff00ff;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .cyber-popup-status {
            font-size: 0.5rem;
            padding: 0.2rem 0.5rem;
            border-radius: 2px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .cyber-popup-status.dormant { background: #404; color: #a0a; }
        .cyber-popup-status.active { background: #ff00ff; color: #000; animation: pulse-level 1s infinite; }

        .cyber-popup-apt {
            padding: 0.5rem 1rem;
            font-size: 0.65rem;
            color: #ff80ff;
            border-bottom: 1px solid #301030;
            font-family: 'SF Mono', monospace;
        }

        .cyber-popup-desc {
            padding: 0.6rem 1rem;
            font-size: 0.6rem;
            color: #a080a0;
            line-height: 1.5;
            border-bottom: 1px solid #301030;
        }

        .cyber-popup-info {
            padding: 0.6rem 1rem;
        }

        .cyber-popup-stat {
            display: flex;
            justify-content: space-between;
            font-size: 0.55rem;
            padding: 0.2rem 0;
        }

        .cyber-popup-stat-label {
            color: #604060;
        }

        .cyber-popup-stat-value {
            color: #e8e8e8;
        }

        .cyber-popup-targets {
            padding: 0.5rem 1rem;
            border-top: 1px solid #301030;
        }

        .cyber-popup-targets-label {
            font-size: 0.5rem;
            color: #604060;
            text-transform: uppercase;
            margin-bottom: 0.3rem;
        }

        .cyber-popup-target-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
        }

        .cyber-popup-target-tag {
            font-size: 0.5rem;
            padding: 0.15rem 0.4rem;
            background: #301030;
            color: #ff80ff;
            border-radius: 2px;
        }

        .cyber-popup-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: #604060;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
        }

        .cyber-popup-close:hover {
            color: #ff00ff;
        }

        /* Layoff tracker */
        .layoff-item {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
        }

        .layoff-company {
            font-size: 0.75rem;
            font-weight: bold;
            color: var(--text);
        }

        .layoff-count {
            font-size: 0.8rem;
            color: var(--red);
            font-weight: bold;
            float: right;
        }

        .layoff-meta {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.2rem;
        }

        /* Situation panels */
        .situation-header {
            padding: 0.75rem 1rem;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
        }

        .situation-title {
            font-size: 0.8rem;
            font-weight: bold;
            margin-bottom: 0.3rem;
        }

        .situation-subtitle {
            font-size: 0.6rem;
            color: var(--text-dim);
        }

        .situation-status {
            display: inline-block;
            padding: 0.15rem 0.4rem;
            font-size: 0.55rem;
            font-weight: bold;
            border-radius: 2px;
            margin-left: 0.5rem;
        }

        .situation-status.critical { background: var(--red); color: #fff; }
        .situation-status.elevated { background: var(--yellow); color: var(--bg); }
        .situation-status.monitoring { background: var(--green); color: var(--bg); }

        .situation-item {
            padding: 0.5rem 1rem;
            border-bottom: 1px solid var(--border);
            font-size: 0.7rem;
        }

        .situation-item .label {
            color: var(--text-dim);
            font-size: 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .loading-msg {
            padding: 1rem;
            color: var(--text-dim);
            font-size: 0.7rem;
            animation: pulse 1.5s ease-in-out infinite;
        }

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

        /* Livestream */
        .panel-wide {
            grid-column: span 2;
        }

        .panel-livestream {
            min-height: auto;
        }

        .livestream-container {
            padding: 0 !important;
            aspect-ratio: 16 / 9;
            max-height: none;
            overflow: hidden;
        }

        .livestream-container iframe {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }

        .live-indicator {
            background: var(--red);
            color: #fff;
            padding: 0.15rem 0.4rem;
            border-radius: 3px;
            font-size: 0.55rem;
            font-weight: bold;
            animation: live-pulse 2s ease-in-out infinite;
        }

        @keyframes live-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        @media (max-width: 900px) {
            .panel-wide {
                grid-column: span 1;
            }
        }

        /* Congressional Trades */
        .congress-item {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 0.75rem;
        }

        .congress-info {
            flex: 1;
            min-width: 0;
        }

        .congress-name {
            font-size: 0.7rem;
            font-weight: bold;
            color: var(--text);
        }

        .congress-party {
            font-size: 0.55rem;
            padding: 0.1rem 0.3rem;
            border-radius: 2px;
            margin-left: 0.4rem;
        }

        .congress-party.D { background: #2266cc; color: #fff; }
        .congress-party.R { background: #cc2222; color: #fff; }
        .congress-party.I { background: #666; color: #fff; }

        .congress-ticker {
            font-size: 0.75rem;
            font-weight: bold;
            color: var(--accent);
            margin-top: 0.2rem;
        }

        .congress-meta {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.15rem;
        }

        .congress-type {
            text-align: right;
        }

        .congress-action {
            font-size: 0.65rem;
            font-weight: bold;
            padding: 0.2rem 0.4rem;
            border-radius: 2px;
        }

        .congress-action.buy { background: var(--green); color: var(--bg); }
        .congress-action.sell { background: var(--red); color: #fff; }

        .congress-amount {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.25rem;
        }

        /* Whale Watch */
        .whale-item {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
        }

        .whale-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .whale-coin {
            font-size: 0.7rem;
            font-weight: bold;
        }

        .whale-amount {
            font-size: 0.75rem;
            font-weight: bold;
            color: var(--accent);
        }

        .whale-usd {
            font-size: 0.55rem;
            color: var(--text-dim);
        }

        .whale-flow {
            font-size: 0.6rem;
            color: var(--text-dim);
            margin-top: 0.2rem;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .whale-flow .arrow {
            color: var(--yellow);
        }

        /* Main Character */
        .main-char-display {
            padding: 1.5rem 1rem;
            text-align: center;
        }

        .main-char-label {
            font-size: 0.6rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.5rem;
        }

        .main-char-name {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent);
            margin-bottom: 0.3rem;
        }

        .main-char-count {
            font-size: 0.7rem;
            color: var(--text-dim);
        }

        .main-char-list {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .char-row {
            display: flex;
            justify-content: space-between;
            padding: 0.35rem 1rem;
            font-size: 0.7rem;
        }

        .char-row .rank {
            color: var(--text-dim);
            width: 1.5rem;
        }

        .char-row .name {
            flex: 1;
        }

        .char-row .mentions {
            color: var(--text-dim);
        }

        /* Contracts */
        .contract-item {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
        }

        .contract-agency {
            font-size: 0.55rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .contract-desc {
            font-size: 0.75rem;
            color: var(--text);
            margin-top: 0.2rem;
        }

        .contract-meta {
            display: flex;
            justify-content: space-between;
            margin-top: 0.3rem;
        }

        .contract-vendor {
            font-size: 0.6rem;
            color: var(--text-dim);
        }

        .contract-value {
            font-size: 0.7rem;
            font-weight: bold;
            color: var(--green);
        }

        /* AI Tracker */
        .ai-item {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
        }

        .ai-source {
            font-size: 0.55rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .ai-title {
            font-size: 0.75rem;
            color: var(--text);
            margin-top: 0.15rem;
        }

        .ai-date {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.2rem;
        }

        /* Intel Feed */
        .intel-item {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
        }

        .intel-item.priority {
            border-left: 2px solid var(--red);
            background: rgba(255, 68, 68, 0.05);
        }

        .intel-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 0.5rem;
            margin-bottom: 0.2rem;
        }

        .intel-source {
            font-size: 0.55rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .intel-tags {
            display: flex;
            gap: 0.3rem;
            flex-wrap: wrap;
        }

        .intel-tag {
            font-size: 0.5rem;
            padding: 0.1rem 0.35rem;
            border-radius: 2px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .intel-tag.region {
            background: #1a3a5a;
            color: #6ab0ff;
        }

        .intel-tag.topic {
            background: #3a2a4a;
            color: #b090d0;
        }

        .intel-tag.osint {
            background: #2a4a3a;
            color: #60d090;
        }

        .intel-tag.govt {
            background: #4a3a2a;
            color: #d0a060;
        }

        .intel-title {
            font-size: 0.75rem;
            color: var(--text);
            text-decoration: none;
            display: block;
            line-height: 1.4;
        }

        .intel-title:hover {
            color: var(--accent);
        }

        .intel-meta {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.25rem;
            display: flex;
            gap: 0.75rem;
        }

        /* Correlation Engine */
        .correlation-panel {
            padding: 0.5rem;
        }

        .correlation-sections {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        @media (max-width: 1200px) {
            .correlation-sections {
                grid-template-columns: 1fr;
            }
        }

        .correlation-section {
            background: rgba(0, 20, 40, 0.5);
            border: 1px solid var(--border);
            border-radius: 4px;
            overflow: hidden;
        }

        .correlation-section-header {
            padding: 0.5rem 0.75rem;
            background: rgba(0, 40, 60, 0.5);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .correlation-icon {
            font-size: 0.9rem;
        }

        .correlation-section-title {
            font-size: 0.65rem;
            font-weight: bold;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .correlation-content {
            padding: 0.5rem;
            max-height: 200px;
            overflow-y: auto;
        }

        .correlation-item {
            padding: 0.5rem;
            border-radius: 3px;
            margin-bottom: 0.4rem;
            background: rgba(0, 30, 50, 0.5);
            border-left: 3px solid var(--accent);
        }

        .correlation-item.high {
            border-left-color: #ff4444;
            background: rgba(255, 68, 68, 0.1);
        }

        .correlation-item.elevated {
            border-left-color: #ffaa00;
            background: rgba(255, 170, 0, 0.08);
        }

        .correlation-item.emerging {
            border-left-color: #44ff88;
            background: rgba(68, 255, 136, 0.08);
        }

        .correlation-item-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 0.3rem;
        }

        .correlation-topic {
            font-size: 0.7rem;
            font-weight: bold;
            color: var(--text);
        }

        .correlation-score {
            font-size: 0.55rem;
            padding: 0.15rem 0.4rem;
            border-radius: 2px;
            font-weight: bold;
        }

        .correlation-score.high {
            background: rgba(255, 68, 68, 0.3);
            color: #ff8888;
        }

        .correlation-score.elevated {
            background: rgba(255, 170, 0, 0.3);
            color: #ffcc44;
        }

        .correlation-score.emerging {
            background: rgba(68, 255, 136, 0.3);
            color: #88ffaa;
        }

        .correlation-meta {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-bottom: 0.3rem;
        }

        .correlation-sources {
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
            margin-top: 0.3rem;
        }

        .correlation-source-tag {
            font-size: 0.45rem;
            padding: 0.1rem 0.3rem;
            background: rgba(0, 100, 150, 0.3);
            color: #66aacc;
            border-radius: 2px;
            text-transform: uppercase;
        }

        .correlation-headlines {
            margin-top: 0.4rem;
            padding-top: 0.4rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .correlation-headline {
            font-size: 0.55rem;
            color: var(--text-dim);
            padding: 0.2rem 0;
            display: flex;
            gap: 0.3rem;
        }

        .correlation-headline::before {
            content: '→';
            color: var(--accent);
        }

        .correlation-headline a {
            color: inherit;
            text-decoration: none;
        }

        .correlation-headline a:hover {
            color: var(--accent);
        }

        .prediction-confidence {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            margin-top: 0.3rem;
        }

        .confidence-bar {
            flex: 1;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            overflow: hidden;
        }

        .confidence-fill {
            height: 100%;
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .confidence-fill.high {
            background: linear-gradient(90deg, #ff4444, #ff8888);
        }

        .confidence-fill.medium {
            background: linear-gradient(90deg, #ffaa00, #ffcc44);
        }

        .confidence-fill.low {
            background: linear-gradient(90deg, #44aaff, #88ccff);
        }

        .confidence-label {
            font-size: 0.5rem;
            color: var(--text-dim);
            min-width: 35px;
            text-align: right;
        }

        .momentum-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            font-size: 0.55rem;
            padding: 0.1rem 0.3rem;
            border-radius: 2px;
        }

        .momentum-indicator.rising {
            background: rgba(68, 255, 136, 0.2);
            color: #66ff99;
        }

        .momentum-indicator.surging {
            background: rgba(255, 68, 68, 0.2);
            color: #ff8888;
            animation: pulse-surge 1s ease-in-out infinite;
        }

        .momentum-indicator.stable {
            background: rgba(100, 100, 100, 0.2);
            color: #999;
        }

        @keyframes pulse-surge {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        .time-delta {
            font-size: 0.5rem;
            color: var(--text-dim);
        }

        .no-correlations {
            font-size: 0.6rem;
            color: var(--text-dim);
            text-align: center;
            padding: 1rem;
        }

        /* Narrative Tracker Styles */
        .narrative-panel {
            padding: 0.5rem;
        }

        .narrative-sections {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        @media (max-width: 600px) {
            .narrative-sections {
                grid-template-columns: 1fr;
            }
        }

        .narrative-section {
            background: rgba(40, 0, 40, 0.3);
            border: 1px solid rgba(180, 80, 180, 0.3);
            border-radius: 4px;
            overflow: hidden;
        }

        .narrative-section-header {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.4rem 0.6rem;
            background: rgba(100, 50, 100, 0.2);
            border-bottom: 1px solid rgba(180, 80, 180, 0.2);
        }

        .narrative-icon {
            font-size: 0.8rem;
        }

        .narrative-section-title {
            font-size: 0.6rem;
            font-weight: bold;
            color: #cc88cc;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .narrative-content {
            padding: 0.5rem;
            max-height: 200px;
            overflow-y: auto;
        }

        .narrative-item {
            padding: 0.4rem;
            margin-bottom: 0.4rem;
            background: rgba(80, 40, 80, 0.2);
            border-radius: 3px;
            border-left: 3px solid transparent;
        }

        .narrative-item:last-child {
            margin-bottom: 0;
        }

        .narrative-item.viral {
            border-left-color: #ff4488;
            background: rgba(255, 68, 136, 0.1);
        }

        .narrative-item.spreading {
            border-left-color: #ffaa44;
            background: rgba(255, 170, 68, 0.1);
        }

        .narrative-item.emerging {
            border-left-color: #44ff88;
            background: rgba(68, 255, 136, 0.1);
        }

        .narrative-item.watch {
            border-left-color: #8888ff;
            background: rgba(136, 136, 255, 0.1);
        }

        .narrative-item.disinfo {
            border-left-color: #ff4444;
            background: rgba(255, 68, 68, 0.1);
        }

        .narrative-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 0.3rem;
            margin-bottom: 0.2rem;
        }

        .narrative-title {
            font-size: 0.65rem;
            font-weight: bold;
            color: #dda0dd;
        }

        .narrative-badge {
            font-size: 0.45rem;
            padding: 0.1rem 0.3rem;
            border-radius: 2px;
            text-transform: uppercase;
            font-weight: bold;
        }

        .narrative-badge.viral {
            background: rgba(255, 68, 136, 0.3);
            color: #ff88aa;
        }

        .narrative-badge.spreading {
            background: rgba(255, 170, 68, 0.3);
            color: #ffcc88;
        }

        .narrative-badge.emerging {
            background: rgba(68, 255, 136, 0.3);
            color: #88ffaa;
        }

        .narrative-badge.disinfo {
            background: rgba(255, 68, 68, 0.3);
            color: #ff8888;
        }

        .narrative-description {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-bottom: 0.3rem;
        }

        .narrative-metrics {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .narrative-metric {
            font-size: 0.5rem;
            color: #aa88aa;
        }

        .narrative-metric-value {
            font-weight: bold;
            color: #cc88cc;
        }

        .narrative-sources {
            display: flex;
            flex-wrap: wrap;
            gap: 0.2rem;
            margin-top: 0.3rem;
        }

        .narrative-source-tag {
            font-size: 0.45rem;
            padding: 0.1rem 0.3rem;
            background: rgba(150, 80, 150, 0.3);
            color: #bb99bb;
            border-radius: 2px;
        }

        .narrative-crossover {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            margin-top: 0.3rem;
            padding-top: 0.3rem;
            border-top: 1px dashed rgba(180, 80, 180, 0.2);
        }

        .crossover-arrow {
            font-size: 0.6rem;
            color: #cc88cc;
        }

        .crossover-source {
            font-size: 0.5rem;
            padding: 0.1rem 0.3rem;
            border-radius: 2px;
        }

        .crossover-source.fringe {
            background: rgba(255, 100, 100, 0.2);
            color: #ff9999;
        }

        .crossover-source.mainstream {
            background: rgba(100, 200, 100, 0.2);
            color: #88cc88;
        }

        .no-narratives {
            font-size: 0.6rem;
            color: var(--text-dim);
            text-align: center;
            padding: 1rem;
        }

        /* Money Printer Gauge */
        .printer-gauge {
            padding: 1.5rem 1rem;
            text-align: center;
        }

        .printer-label {
            font-size: 0.6rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.75rem;
        }

        .printer-value {
            font-size: 2rem;
            font-weight: bold;
            color: var(--accent);
        }

        .printer-unit {
            font-size: 0.8rem;
            color: var(--text-dim);
            margin-left: 0.3rem;
        }

        .printer-change {
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }

        .printer-change.up { color: var(--red); }
        .printer-change.down { color: var(--green); }

        .printer-bar {
            margin-top: 1rem;
            height: 8px;
            background: var(--surface);
            border-radius: 4px;
            overflow: hidden;
        }

        .printer-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
            transition: width 0.5s ease;
        }

        .printer-status {
            margin-top: 0.75rem;
            font-size: 0.65rem;
            color: var(--text-dim);
        }

        .printer-indicator {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 0.4rem;
            animation: blink 1s infinite;
        }

        .printer-indicator.on { background: var(--red); }
        .printer-indicator.off { background: var(--green); }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .section-divider {
            padding: 0.4rem 1rem;
            background: var(--surface);
            font-size: 0.55rem;
            font-weight: bold;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-dim);
        }

        @media (max-width: 1400px) {
            .dashboard {
                grid-template-columns: repeat(2, 1fr);
            }
            .panel.wide {
                grid-column: span 1;
            }
        }

        @media (max-width: 768px) {
            .dashboard {
                grid-template-columns: 1fr;
            }

            .header {
                padding: 0.75rem 1rem;
            }

            .panel-content {
                max-height: 350px;
            }
        }

        /* Conflict Zone Boundaries - Enhanced Overlays */
        .conflict-zone-path {
            fill: none;
            stroke: #ff3333;
            stroke-width: 2;
            stroke-dasharray: 8, 4;
            stroke-linecap: round;
            opacity: 0.8;
            animation: conflict-march 1s linear infinite;
        }

        .conflict-zone-path.high-intensity {
            stroke: #ff0000;
            stroke-width: 3;
            filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.8));
            animation: conflict-march 0.8s linear infinite, conflict-pulse 2s ease-in-out infinite;
        }

        .conflict-zone-fill {
            fill: rgba(255, 50, 50, 0.08);
            stroke: none;
            animation: conflict-fill-pulse 3s ease-in-out infinite;
        }

        .conflict-zone-fill.high-intensity {
            fill: rgba(255, 30, 30, 0.15);
            animation: conflict-fill-pulse 2s ease-in-out infinite;
        }

        /* Conflict zone inner glow effect */
        .conflict-zone-glow {
            fill: none;
            stroke: rgba(255, 50, 50, 0.4);
            stroke-width: 8;
            filter: blur(4px);
            animation: conflict-glow-pulse 2s ease-in-out infinite;
        }

        .conflict-zone-label {
            position: absolute;
            font-size: 0.55rem;
            color: #ff4444;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            background: rgba(20, 0, 0, 0.85);
            padding: 0.2rem 0.5rem;
            border: 1px solid #ff3333;
            pointer-events: auto;
            cursor: pointer;
            white-space: nowrap;
            animation: conflict-label-pulse 2s ease-in-out infinite;
            transition: all 0.2s ease;
            box-shadow: 0 0 10px rgba(255, 50, 50, 0.3), inset 0 0 8px rgba(255, 50, 50, 0.1);
        }

        .conflict-zone-label::before {
            content: '⚠';
            margin-right: 4px;
            font-size: 0.6rem;
        }

        .conflict-zone-label.high-intensity {
            border-color: #ff0000;
            color: #ff0000;
            box-shadow: 0 0 15px rgba(255, 0, 0, 0.5), inset 0 0 10px rgba(255, 0, 0, 0.2);
            animation: conflict-label-pulse-high 1.5s ease-in-out infinite;
        }

        .conflict-zone-label.high-intensity::before {
            content: '🔴';
            animation: rotate 4s linear infinite;
        }

        .conflict-zone-label:hover {
            background: rgba(60, 0, 0, 0.95);
            transform: scale(1.15);
            box-shadow: 0 0 20px rgba(255, 51, 51, 0.7), inset 0 0 15px rgba(255, 50, 50, 0.3);
            animation: none;
            z-index: 100;
        }

        @keyframes conflict-march {
            to { stroke-dashoffset: -12; }
        }

        @keyframes conflict-pulse {
            0%, 100% { stroke-width: 3; }
            50% { stroke-width: 4; }
        }

        @keyframes conflict-fill-pulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        @keyframes conflict-glow-pulse {
            0%, 100% { opacity: 0.3; stroke-width: 8; }
            50% { opacity: 0.6; stroke-width: 12; }
        }

        @keyframes conflict-label-pulse {
            0%, 100% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 50, 50, 0.3), inset 0 0 8px rgba(255, 50, 50, 0.1); }
            50% { opacity: 1; box-shadow: 0 0 15px rgba(255, 50, 50, 0.5), inset 0 0 10px rgba(255, 50, 50, 0.2); }
        }

        @keyframes conflict-label-pulse-high {
            0%, 100% { opacity: 0.9; box-shadow: 0 0 15px rgba(255, 0, 0, 0.5), inset 0 0 10px rgba(255, 0, 0, 0.2); }
            50% { opacity: 1; box-shadow: 0 0 25px rgba(255, 0, 0, 0.7), inset 0 0 15px rgba(255, 0, 0, 0.3); }
        }

        /* Conflict Zone Popup */
        .conflict-popup {
            display: none;
            position: absolute;
            z-index: 100;
            background: rgba(20, 5, 5, 0.98);
            border: 1px solid #ff3333;
            min-width: 320px;
            max-width: 400px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 50, 50, 0.2);
            pointer-events: auto;
        }

        .conflict-popup.visible {
            display: block;
        }

        .conflict-popup-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid rgba(255, 50, 50, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 50, 50, 0.1);
        }

        .conflict-popup-title {
            font-size: 0.8rem;
            font-weight: bold;
            color: #ff4444;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .conflict-popup-intensity {
            font-size: 0.55rem;
            padding: 0.2rem 0.5rem;
            border-radius: 2px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .conflict-popup-intensity.high {
            background: #ff0000;
            color: #fff;
            animation: pulse-level 1s infinite;
        }
        .conflict-popup-intensity.medium {
            background: #ff6600;
            color: #fff;
        }
        .conflict-popup-intensity.watch {
            background: #ffcc00;
            color: #000;
        }

        .conflict-popup-meta {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid rgba(255, 50, 50, 0.2);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
        }

        .conflict-popup-meta-item {
            font-size: 0.55rem;
        }

        .conflict-popup-meta-label {
            color: #884444;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: block;
            margin-bottom: 0.15rem;
        }

        .conflict-popup-meta-value {
            color: #ff8888;
        }

        .conflict-popup-desc {
            padding: 0.75rem 1rem;
            font-size: 0.65rem;
            color: #ccaaaa;
            line-height: 1.5;
            border-bottom: 1px solid rgba(255, 50, 50, 0.2);
        }

        .conflict-popup-parties {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid rgba(255, 50, 50, 0.2);
        }

        .conflict-popup-parties-title {
            font-size: 0.5rem;
            color: #884444;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.4rem;
        }

        .conflict-popup-party {
            display: inline-block;
            font-size: 0.55rem;
            padding: 0.15rem 0.4rem;
            margin: 0.15rem 0.2rem 0.15rem 0;
            background: rgba(255, 50, 50, 0.2);
            border: 1px solid rgba(255, 50, 50, 0.3);
            color: #ff8888;
        }

        .conflict-popup-events {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid rgba(255, 50, 50, 0.2);
        }

        .conflict-popup-events-title {
            font-size: 0.5rem;
            color: #884444;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.4rem;
        }

        .conflict-popup-event {
            font-size: 0.55rem;
            color: #ff8888;
            padding: 0.2rem 0;
            padding-left: 0.75rem;
            position: relative;
        }

        .conflict-popup-event::before {
            content: '•';
            position: absolute;
            left: 0;
            color: #ff4444;
        }

        .conflict-popup-headlines {
            max-height: 150px;
            overflow-y: auto;
        }

        .conflict-popup-headlines-title {
            font-size: 0.5rem;
            color: #884444;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 0.5rem 1rem 0.3rem;
        }

        .conflict-popup-headline {
            padding: 0.5rem 1rem;
            border-bottom: 1px solid rgba(255, 50, 50, 0.15);
            font-size: 0.6rem;
            color: #ccaaaa;
            cursor: pointer;
            transition: background 0.2s;
        }

        .conflict-popup-headline:hover {
            background: rgba(255, 50, 50, 0.15);
        }

        .conflict-popup-headline a {
            color: inherit;
            text-decoration: none;
        }

        .conflict-popup-headline a:hover {
            color: #ff8888;
        }

        .conflict-popup-headline-source {
            font-size: 0.45rem;
            color: #884444;
            text-transform: uppercase;
            margin-bottom: 0.15rem;
        }

        .conflict-popup-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: #884444;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
            transition: color 0.2s;
        }

        .conflict-popup-close:hover {
            color: #ff4444;
        }

        /* Military Base Markers */
        .military-base {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 19;
            cursor: pointer;
        }

        .military-base::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid transparent;
            transition: all 0.3s ease;
        }

        .military-base:hover::before {
            border-color: currentColor;
            animation: base-ping 1s ease-out infinite;
        }

        .military-base:hover .base-icon {
            transform: scale(1.5);
        }

        .military-base.us-nato:hover::before { border-color: #4488ff; }
        .military-base.china:hover::before { border-color: #ff4444; }
        .military-base.russia:hover::before { border-color: #ff8800; }

        @keyframes base-ping {
            0% { width: 20px; height: 20px; opacity: 1; }
            100% { width: 35px; height: 35px; opacity: 0; }
        }

        .base-icon {
            width: 8px;
            height: 8px;
            border-radius: 1px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .base-icon.us-nato {
            background: #4488ff;
            border: 1px solid #66aaff;
            box-shadow: 0 0 6px rgba(68, 136, 255, 0.5);
        }

        .base-icon.china {
            background: #ff4444;
            border: 1px solid #ff6666;
            box-shadow: 0 0 6px rgba(255, 68, 68, 0.5);
        }

        .base-icon.russia {
            background: #ff8800;
            border: 1px solid #ffaa44;
            box-shadow: 0 0 6px rgba(255, 136, 0, 0.5);
        }

        .military-base:hover .base-icon.us-nato {
            box-shadow: 0 0 15px rgba(68, 136, 255, 0.9);
        }

        .military-base:hover .base-icon.china {
            box-shadow: 0 0 15px rgba(255, 68, 68, 0.9);
        }

        .military-base:hover .base-icon.russia {
            box-shadow: 0 0 15px rgba(255, 136, 0, 0.9);
        }

        .base-label {
            position: absolute;
            top: 12px;
            left: 50%;
            transform: translateX(-50%) translateY(5px);
            font-size: 0.45rem;
            white-space: nowrap;
            opacity: 0;
            transition: all 0.2s ease;
            background: rgba(0, 0, 0, 0.8);
            padding: 0.15rem 0.4rem;
            border-radius: 2px;
        }

        .military-base:hover .base-label {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .base-label.us-nato { color: #4488ff; border: 1px solid #4488ff; }
        .base-label.china { color: #ff4444; border: 1px solid #ff4444; }
        .base-label.russia { color: #ff8800; border: 1px solid #ff8800; }

        /* Nuclear Facility Markers */
        .nuclear-facility {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 18;
            cursor: pointer;
        }

        .nuclear-facility::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 1px dashed transparent;
            transition: all 0.3s ease;
        }

        .nuclear-facility:hover::before {
            border-color: #ffcc00;
            animation: nuclear-rotate 3s linear infinite;
        }

        .nuclear-facility:hover .nuclear-icon {
            transform: scale(1.4);
            box-shadow: 0 0 20px rgba(255, 255, 0, 1);
        }

        .nuclear-facility:hover .nuclear-icon.weapons {
            box-shadow: 0 0 25px rgba(255, 0, 0, 1);
        }

        @keyframes nuclear-rotate {
            from { transform: translate(-50%, -50%) rotate(0deg); }
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .nuclear-icon {
            width: 10px;
            height: 10px;
            background: #ffcc00;
            border: 2px solid #ffff00;
            border-radius: 50%;
            position: relative;
            box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .nuclear-icon::before {
            content: '☢';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 6px;
            color: #000;
        }

        .nuclear-icon.weapons {
            background: #ff0000;
            border-color: #ff4444;
            box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
            animation: nuclear-pulse 1.5s ease-in-out infinite;
        }

        @keyframes nuclear-pulse {
            0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 0, 0.5); }
            50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.9); }
        }

        .nuclear-label {
            position: absolute;
            top: 16px;
            left: 50%;
            transform: translateX(-50%) translateY(5px);
            font-size: 0.45rem;
            color: #ffcc00;
            white-space: nowrap;
            opacity: 0;
            transition: all 0.2s ease;
            background: rgba(0, 0, 0, 0.85);
            padding: 0.15rem 0.4rem;
            border: 1px solid #ffcc00;
            border-radius: 2px;
        }

        .nuclear-facility:hover .nuclear-label {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* Undersea Cables */
        .cable-path {
            fill: none;
            stroke: #00ffff;
            stroke-width: 1.5;
            stroke-opacity: 0.4;
            stroke-linecap: round;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .cable-path:hover {
            stroke-opacity: 1;
            stroke-width: 3;
            stroke: #00ffff;
            filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
            stroke-dasharray: 8, 4;
            animation: cable-flow 0.5s linear infinite;
        }

        @keyframes cable-flow {
            to { stroke-dashoffset: -12; }
        }

        .cable-path.major {
            stroke-width: 2;
            stroke-opacity: 0.6;
        }

        .cable-path.major:hover {
            stroke-width: 4;
        }

        .cable-endpoint {
            fill: #00ffff;
            stroke: #00aaaa;
            stroke-width: 1;
        }

        /* Sanctions Heat Map - Country fills */
        .country-sanctioned-severe {
            fill: #660000 !important;
        }

        .country-sanctioned-high {
            fill: #442200 !important;
        }

        .country-sanctioned-moderate {
            fill: #333300 !important;
        }

        .country-sanctioned-low {
            fill: #223322 !important;
        }

        /* Breaking News Pulse */
        .news-pulse {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 25;
        }

        .news-pulse-ring {
            position: absolute;
            width: 40px;
            height: 40px;
            border: 2px solid #ff0000;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: news-pulse-expand 2s ease-out infinite;
        }

        .news-pulse-ring:nth-child(2) {
            animation-delay: 0.5s;
        }

        .news-pulse-ring:nth-child(3) {
            animation-delay: 1s;
        }

        @keyframes news-pulse-expand {
            0% {
                width: 10px;
                height: 10px;
                opacity: 1;
                border-width: 3px;
            }
            100% {
                width: 80px;
                height: 80px;
                opacity: 0;
                border-width: 1px;
            }
        }

        .news-pulse-label {
            position: absolute;
            top: 50px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.5rem;
            color: #ff0000;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            animation: blink 1s ease-in-out infinite;
            background: rgba(0, 0, 0, 0.8);
            padding: 0.2rem 0.5rem;
            border: 1px solid #ff0000;
        }

        /* 24-Hour Flashback Slider */
        .flashback-control {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 1rem;
            background: rgba(0, 0, 0, 0.85);
            padding: 0.5rem 1rem;
            border: 1px solid #0f5040;
            z-index: 50;
        }

        .flashback-label {
            font-size: 0.55rem;
            color: #0a8060;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            transition: color 0.2s;
        }

        .flashback-control:hover .flashback-label {
            color: #00ff88;
        }

        .flashback-slider {
            width: 200px;
            height: 4px;
            -webkit-appearance: none;
            appearance: none;
            background: #0a3020;
            border-radius: 2px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .flashback-slider:hover {
            background: #0f5040;
            height: 6px;
        }

        .flashback-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            background: #00ff88;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
            transition: all 0.2s;
        }

        .flashback-slider:hover::-webkit-slider-thumb {
            width: 18px;
            height: 18px;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.9);
        }

        .flashback-slider::-moz-range-thumb {
            width: 14px;
            height: 14px;
            background: #00ff88;
            border-radius: 50%;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }

        .flashback-slider:hover::-moz-range-thumb {
            width: 18px;
            height: 18px;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.9);
        }

        .flashback-time {
            font-size: 0.65rem;
            color: #00ff88;
            font-family: 'SF Mono', monospace;
            min-width: 60px;
            transition: all 0.2s;
        }

        .flashback-control:hover .flashback-time {
            text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
        }

        .flashback-mode-indicator {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 170, 0, 0.9);
            color: #000;
            padding: 0.3rem 1rem;
            font-size: 0.6rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            z-index: 50;
            display: none;
        }

        .flashback-mode-indicator.active {
            display: block;
            animation: blink 1s ease-in-out infinite;
        }

        /* News Density Heatmap */
        .density-blob {
            position: absolute;
            border-radius: 50%;
            pointer-events: auto;
            z-index: 12;
            mix-blend-mode: screen;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .density-blob.low {
            background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
        }

        .density-blob.medium {
            background: radial-gradient(circle, rgba(255, 204, 0, 0.35) 0%, transparent 70%);
        }

        .density-blob.high {
            background: radial-gradient(circle, rgba(255, 68, 68, 0.4) 0%, transparent 70%);
            animation: density-glow 2s ease-in-out infinite;
        }

        .density-blob:hover {
            transform: translate(-50%, -50%) scale(1.3) !important;
            filter: brightness(1.5);
        }

        .density-blob.low:hover {
            background: radial-gradient(circle, rgba(0, 255, 136, 0.5) 0%, transparent 70%);
        }

        .density-blob.medium:hover {
            background: radial-gradient(circle, rgba(255, 204, 0, 0.55) 0%, transparent 70%);
        }

        .density-blob.high:hover {
            background: radial-gradient(circle, rgba(255, 68, 68, 0.6) 0%, transparent 70%);
        }

        @keyframes density-glow {
            0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
            50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
        }

        /* Map Layer Toggle */
        .map-layer-toggle {
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 2px;
            background: rgba(0, 0, 0, 0.85);
            padding: 4px;
            border: 1px solid #0f5040;
            z-index: 50;
            backdrop-filter: blur(4px);
        }

        .layer-btn {
            background: transparent;
            border: 1px solid #0a3020;
            color: #0a8060;
            font-size: 0.5rem;
            padding: 0.3rem 0.6rem;
            cursor: pointer;
            font-family: 'SF Mono', monospace;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .layer-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
            transition: left 0.4s ease;
        }

        .layer-btn:hover::before {
            left: 100%;
        }

        .layer-btn:hover {
            border-color: #00ff88;
            color: #00ff88;
            text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
            transform: translateY(-1px);
        }

        .layer-btn.active {
            background: #0f5040;
            color: #00ff88;
            border-color: #00ff88;
            box-shadow: 0 0 10px rgba(0, 255, 136, 0.3), inset 0 0 10px rgba(0, 255, 136, 0.1);
        }

        .layer-btn.active:hover {
            background: #0a3020;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
        }

        /* Flight Radar Aircraft Markers */
        .aircraft-marker {
            position: absolute;
            width: 16px;
            height: 16px;
            transform: translate(-50%, -50%);
            cursor: pointer;
            z-index: 50;
            transition: transform 0.3s ease;
        }

        .aircraft-icon {
            width: 100%;
            height: 100%;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffaa00;
            text-shadow: 0 0 4px rgba(255, 170, 0, 0.5);
            transition: all 0.2s ease;
        }

        .aircraft-marker:hover .aircraft-icon {
            color: #ffcc44;
            transform: scale(1.3);
            text-shadow: 0 0 8px rgba(255, 204, 68, 0.8);
        }

        .aircraft-marker.military .aircraft-icon {
            color: #ff4444;
            text-shadow: 0 0 4px rgba(255, 68, 68, 0.5);
        }

        .aircraft-marker.cargo .aircraft-icon {
            color: #44aaff;
            text-shadow: 0 0 4px rgba(68, 170, 255, 0.5);
        }

        .aircraft-marker.helicopter .aircraft-icon {
            color: #44ff88;
            text-shadow: 0 0 4px rgba(68, 255, 136, 0.5);
        }

        .aircraft-trail {
            position: absolute;
            width: 2px;
            height: 20px;
            background: linear-gradient(to bottom, rgba(255, 170, 0, 0.4), transparent);
            transform-origin: top center;
            pointer-events: none;
        }

        .aircraft-popup {
            position: absolute;
            background: rgba(0, 20, 15, 0.95);
            border: 1px solid #0a8060;
            border-radius: 4px;
            padding: 0.75rem;
            min-width: 200px;
            max-width: 280px;
            z-index: 200;
            display: none;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.1);
        }

        .aircraft-popup.visible {
            display: block;
        }

        .aircraft-popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(0, 255, 136, 0.2);
        }

        .aircraft-callsign {
            font-size: 0.9rem;
            font-weight: bold;
            color: #00ff88;
            font-family: 'SF Mono', monospace;
        }

        .aircraft-type-badge {
            font-size: 0.5rem;
            padding: 0.15rem 0.4rem;
            background: rgba(255, 170, 0, 0.2);
            color: #ffaa00;
            border-radius: 2px;
            text-transform: uppercase;
        }

        .aircraft-details {
            font-size: 0.65rem;
            color: var(--text-dim);
        }

        .aircraft-detail-row {
            display: flex;
            justify-content: space-between;
            padding: 0.2rem 0;
        }

        .aircraft-detail-label {
            color: #0a8060;
        }

        .aircraft-detail-value {
            color: #88ccaa;
            font-family: 'SF Mono', monospace;
        }

        .aircraft-origin-dest {
            margin-top: 0.5rem;
            padding-top: 0.5rem;
            border-top: 1px solid rgba(0, 255, 136, 0.2);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.6rem;
        }

        .aircraft-airport {
            color: #66aacc;
            font-family: 'SF Mono', monospace;
        }

        .aircraft-route-arrow {
            color: #0a8060;
        }

        .flight-count-badge {
            font-size: 0.5rem;
            padding: 0.1rem 0.3rem;
            background: rgba(255, 170, 0, 0.2);
            color: #ffaa00;
            border-radius: 2px;
            margin-left: 0.3rem;
        }

        /* Satellite Imagery Layer */
        .satellite-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: 0;
            transition: opacity 0.5s ease;
            pointer-events: none;
        }

        .satellite-canvas.visible {
            opacity: 0.85;
        }

        .satellite-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.7rem;
            color: #00ff88;
            background: rgba(0, 20, 15, 0.9);
            padding: 0.5rem 1rem;
            border-radius: 4px;
            border: 1px solid #0a8060;
            z-index: 5;
            display: none;
        }

        .satellite-loading.visible {
            display: block;
        }

        .satellite-attribution {
            position: absolute;
            bottom: 5px;
            left: 5px;
            font-size: 0.45rem;
            color: rgba(255, 255, 255, 0.5);
            background: rgba(0, 0, 0, 0.5);
            padding: 0.1rem 0.3rem;
            border-radius: 2px;
            z-index: 10;
            display: none;
        }

        .satellite-attribution.visible {
            display: block;
        }

        .layer-btn.satellite-btn {
            background: rgba(80, 60, 20, 0.3);
            border-color: #806020;
            color: #aa8844;
        }

        .layer-btn.satellite-btn.active {
            background: rgba(120, 100, 40, 0.5);
            border-color: #bbaa44;
            color: #ffdd66;
            box-shadow: 0 0 10px rgba(255, 220, 100, 0.3);
        }

        /* Custom Monitors */
        .monitors-section {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .monitors-list {
            max-height: 200px;
            overflow-y: auto;
            margin-bottom: 0.75rem;
        }

        .monitor-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem;
            background: var(--surface);
            border: 1px solid var(--border);
            margin-bottom: 0.5rem;
            border-radius: 2px;
        }

        .monitor-item-info {
            flex: 1;
            min-width: 0;
        }

        .monitor-item-name {
            font-size: 0.7rem;
            font-weight: bold;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .monitor-item-color {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .monitor-item-keywords {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.2rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .monitor-item-location {
            font-size: 0.5rem;
            color: var(--green);
            margin-top: 0.15rem;
        }

        .monitor-item-actions {
            display: flex;
            gap: 0.25rem;
        }

        .monitor-item-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-dim);
            width: 22px;
            height: 22px;
            font-size: 0.6rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .monitor-item-btn:hover {
            border-color: var(--text);
            color: var(--text);
        }

        .monitor-item-btn.delete:hover {
            border-color: var(--red);
            color: var(--red);
        }

        .add-monitor-btn {
            width: 100%;
            padding: 0.5rem;
            background: transparent;
            border: 1px dashed var(--border);
            color: var(--text-dim);
            font-family: inherit;
            font-size: 0.65rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .add-monitor-btn:hover {
            border-color: var(--green);
            color: var(--green);
        }

        /* Monitor Form Modal */
        .monitor-form-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.9);
            z-index: 1100;
            justify-content: center;
            align-items: center;
        }

        .monitor-form-overlay.open {
            display: flex;
        }

        .monitor-form {
            background: var(--bg);
            border: 1px solid var(--border);
            padding: 1.5rem;
            width: 90%;
            max-width: 400px;
        }

        .monitor-form-title {
            font-size: 0.8rem;
            font-weight: bold;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }

        .monitor-form-field {
            margin-bottom: 1rem;
        }

        .monitor-form-label {
            font-size: 0.65rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.4rem;
            display: block;
        }

        .monitor-form-input {
            width: 100%;
            padding: 0.5rem;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            font-family: inherit;
            font-size: 0.75rem;
        }

        .monitor-form-input:focus {
            outline: none;
            border-color: var(--green);
        }

        .monitor-form-hint {
            font-size: 0.55rem;
            color: var(--text-dim);
            margin-top: 0.3rem;
        }

        .monitor-form-colors {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .monitor-color-option {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
        }

        .monitor-color-option:hover {
            transform: scale(1.2);
        }

        .monitor-color-option.selected {
            border-color: var(--text);
            box-shadow: 0 0 10px currentColor;
        }

        .monitor-form-location {
            display: flex;
            gap: 0.5rem;
        }

        .monitor-form-location input {
            flex: 1;
        }

        .monitor-form-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 1.5rem;
        }

        .monitor-form-actions button {
            flex: 1;
            padding: 0.6rem;
            font-family: inherit;
            font-size: 0.7rem;
            font-weight: bold;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s;
        }

        .monitor-save-btn {
            background: var(--green);
            color: var(--bg);
            border: none;
        }

        .monitor-save-btn:hover {
            opacity: 0.8;
        }

        .monitor-cancel-btn {
            background: transparent;
            color: var(--text-dim);
            border: 1px solid var(--border);
        }

        .monitor-cancel-btn:hover {
            border-color: var(--text);
            color: var(--text);
        }

        /* Custom Hotspot (user-created) */
        .custom-hotspot {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 21;
            cursor: pointer;
        }

        .custom-hotspot-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            position: relative;
            border: 2px solid;
            box-shadow: 0 0 10px currentColor;
            transition: all 0.2s;
        }

        .custom-hotspot-dot::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            border-radius: 50%;
            animation: custom-pulse 2s ease-out infinite;
            background: currentColor;
        }

        @keyframes custom-pulse {
            0% { width: 100%; height: 100%; opacity: 0.6; }
            100% { width: 250%; height: 250%; opacity: 0; }
        }

        .custom-hotspot:hover .custom-hotspot-dot {
            transform: scale(1.4);
            box-shadow: 0 0 20px currentColor;
        }

        .custom-hotspot-label {
            position: absolute;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.5rem;
            font-family: 'SF Mono', monospace;
            white-space: nowrap;
            text-shadow: 0 0 5px currentColor;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: all 0.2s;
        }

        .custom-hotspot:hover .custom-hotspot-label {
            transform: translateX(-50%) scale(1.1);
        }

        .custom-hotspot-count {
            font-size: 0.4rem;
            opacity: 0.7;
        }

        /* My Monitors Panel */
        .monitor-match {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: background 0.2s;
        }

        .monitor-match:hover {
            background: var(--surface);
        }

        .monitor-match-header {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            margin-bottom: 0.3rem;
        }

        .monitor-match-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .monitor-match-name {
            font-size: 0.6rem;
            font-weight: bold;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .monitor-match-title {
            font-size: 0.75rem;
            color: var(--text);
            text-decoration: none;
            display: block;
        }

        .monitor-match-title:hover {
            color: var(--accent);
        }

        .monitor-match-source {
            font-size: 0.5rem;
            color: var(--text-dim);
            margin-top: 0.2rem;
        }

        .monitors-empty {
            padding: 1.5rem 1rem;
            text-align: center;
            color: var(--text-dim);
            font-size: 0.7rem;
        }

        .monitors-empty-hint {
            font-size: 0.6rem;
            margin-top: 0.5rem;
            opacity: 0.7;
        }

        /* Custom Hotspot Popup */
        .custom-hotspot-popup {
            display: none;
            position: absolute;
            z-index: 100;
            background: rgba(5, 10, 8, 0.95);
            border: 1px solid var(--border);
            min-width: 280px;
            max-width: 350px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }

        .custom-hotspot-popup.visible {
            display: block;
        }

        .custom-hotspot-popup-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .custom-hotspot-popup-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .custom-hotspot-popup-name {
            font-size: 0.85rem;
            font-weight: bold;
        }

        .custom-hotspot-popup-count {
            margin-left: auto;
            font-size: 0.65rem;
            padding: 0.2rem 0.5rem;
            border-radius: 3px;
            background: var(--surface);
        }

        .custom-hotspot-popup-keywords {
            padding: 0.5rem 1rem;
            font-size: 0.6rem;
            color: var(--text-dim);
            border-bottom: 1px solid var(--border);
        }

        .custom-hotspot-popup-coords {
            padding: 0.4rem 1rem;
            font-size: 0.55rem;
            color: var(--text-dim);
            font-family: 'SF Mono', monospace;
            border-bottom: 1px solid var(--border);
        }

        .custom-hotspot-popup-matches {
            max-height: 200px;
            overflow-y: auto;
        }

        .custom-hotspot-popup-match {
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--border);
        }

        .custom-hotspot-popup-match:last-child {
            border-bottom: none;
        }

        .custom-hotspot-popup-match a {
            font-size: 0.7rem;
            color: var(--text);
            text-decoration: none;
            display: block;
        }

        .custom-hotspot-popup-match a:hover {
            color: var(--accent);
        }

        .custom-hotspot-popup-match-source {
            font-size: 0.5rem;
            color: var(--text-dim);
            margin-top: 0.2rem;
        }

        .custom-hotspot-popup-empty {
            padding: 1rem;
            text-align: center;
            font-size: 0.7rem;
            color: var(--text-dim);
        }

        .custom-hotspot-popup-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
        }

        .custom-hotspot-popup-close:hover {
            color: var(--text);
        }

/* ==========================================
   MOBILE RESPONSIVE STYLES
   ========================================== */

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 8px;
    z-index: 1001;
    box-sizing: border-box;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    margin: 2px 0;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
    min-width: 180px;
    max-width: 90vw;
    box-shadow: -2px 4px 12px rgba(0,0,0,0.5);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu button {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
}

/* Desktop navigation wrapper */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Header right needs relative position for mobile menu */
.header-right {
    position: relative;
}

/* ==========================================
   TABLET BREAKPOINT (768px)
   ========================================== */
@media (max-width: 768px) {
    /* === CRITICAL: Prevent horizontal scroll === */
    html {
        overflow-x: hidden !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* === CRITICAL: Force single column layout === */
    .dashboard {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    /* Override ALL inline grid-column styles */
    .dashboard > * {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .panel,
    .panel.wide,
    section.panel,
    .panel[data-panel="map"],
    [style*="grid-column"] {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* === Header === */
    .header {
        padding: 0.5rem 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-left {
        gap: 0.75rem;
    }

    .title {
        font-size: 0.7rem;
    }

    .status {
        display: none;
    }

    /* Show hamburger, hide desktop nav */
    .hamburger-btn {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    /* === Map Panel === */
    .panel[data-panel="map"] {
        height: 280px !important;
        min-height: 280px !important;
    }

    .panel[data-panel="map"] .panel-content,
    #mapPanel {
        height: calc(100% - 44px) !important;
        max-height: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        position: relative !important;
    }

    #mapSvg {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* Hide map legend on mobile */
    #mapLegend {
        display: none !important;
    }

    /* Touch-friendly item targets */
    .item {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

    .item-title {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .item-source,
    .item-time {
        font-size: 0.6rem;
    }

    /* Panel header touch targets */
    .panel-header {
        padding: 0.6rem 1rem;
        min-height: 44px;
        cursor: default;
    }

    .panel-title {
        font-size: 0.6rem;
    }

    .panel-count {
        font-size: 0.55rem;
    }

    /* Hide resize handles on mobile */
    .panel-resize-handle {
        display: none;
    }

    /* === Modals === */
    .settings-content {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        padding: 1rem;
    }

    .settings-close {
        min-height: 48px;
        font-size: 0.75rem;
    }

    .monitor-form {
        width: 95%;
        max-width: none;
        padding: 1rem;
    }

    .monitor-form-input {
        font-size: 16px;
        padding: 0.6rem;
        min-height: 44px;
    }

    .monitor-form-actions button {
        min-height: 48px;
    }

    /* Toggle switch size increase for touch */
    .toggle-switch {
        width: 44px;
        height: 24px;
        border-radius: 12px;
    }

    .toggle-switch::after {
        width: 20px;
        height: 20px;
    }

    .toggle-switch.on::after {
        transform: translateX(20px);
    }

    /* Market items */
    .market-item {
        padding: 0.6rem 1rem;
        min-height: 40px;
    }

    /* Grid sections - single column on mobile */
    .correlation-sections,
    .narrative-sections {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }

    .correlation-section-header,
    .narrative-section-header {
        padding: 0.5rem;
    }

    /* === HORIZONTAL SCROLL FOR ITEMS (condensed view) === */
    /* Exclude map panel from horizontal scroll */
    .panel:not([data-panel="map"]) > .panel-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        max-height: none;
        padding-bottom: 0.5rem;
    }

    /* Subtle scrollbar */
    .panel:not([data-panel="map"]) > .panel-content::-webkit-scrollbar {
        height: 3px;
    }

    .panel:not([data-panel="map"]) > .panel-content::-webkit-scrollbar-track {
        background: var(--surface);
    }

    .panel:not([data-panel="map"]) > .panel-content::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
    }

    /* Panels are compact */
    .panel:not([data-panel="map"]) {
        min-height: auto !important;
    }

    /* Individual items as horizontal cards */
    .panel:not([data-panel="map"]) .item {
        flex: 0 0 80vw !important;
        max-width: 80vw !important;
        min-width: 260px;
        scroll-snap-align: start;
        border-right: 1px solid var(--border);
        border-bottom: none;
        box-sizing: border-box;
        padding: 0.75rem 1rem;
    }

    .panel:not([data-panel="map"]) .item:last-child {
        border-right: none;
    }

    /* Market items */
    .market-item {
        flex: 0 0 150px !important;
        min-width: 150px;
        scroll-snap-align: start;
        border-right: 1px solid var(--border);
        padding: 0.75rem 1rem;
    }

    /* Sector heatmap - wrapped grid */
    #heatmapPanel {
        flex-wrap: wrap !important;
        justify-content: flex-start;
        gap: 0.25rem;
        padding: 0.5rem;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    #heatmapPanel .sector-item {
        flex: 0 0 auto;
    }

    /* Polymarket items */
    .polymarket-item {
        flex: 0 0 80vw !important;
        max-width: 80vw !important;
        min-width: 260px;
        scroll-snap-align: start;
        border-right: 1px solid var(--border);
        padding: 0.75rem 1rem;
    }

    /* Contract items */
    .contract-item {
        flex: 0 0 80vw !important;
        max-width: 80vw !important;
        min-width: 260px;
        scroll-snap-align: start;
        border-right: 1px solid var(--border);
        padding: 0.75rem 1rem;
    }

    /* Intel items */
    .intel-item {
        flex: 0 0 80vw !important;
        max-width: 80vw !important;
        min-width: 260px;
        scroll-snap-align: start;
        border-right: 1px solid var(--border);
        padding: 0.75rem 1rem;
    }

    /* Whale items */
    .whale-item {
        flex: 0 0 260px !important;
        scroll-snap-align: start;
        border-right: 1px solid var(--border);
        padding: 0.75rem 1rem;
    }

    /* Commodities */
    .commodity-item {
        flex: 0 0 110px !important;
        scroll-snap-align: start;
    }

    /* Correlation/Narrative sections */
    .correlation-sections,
    .narrative-sections {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0 !important;
        padding-bottom: 0.5rem;
    }

    .correlation-section,
    .narrative-section {
        flex: 0 0 80vw !important;
        max-width: 80vw !important;
        min-width: 260px;
        scroll-snap-align: start;
        border-right: 1px solid var(--border);
    }
}

/* ==========================================
   SMALL PHONE BREAKPOINT (480px)
   ========================================== */
@media (max-width: 480px) {
    /* Header compact mode */
    .header {
        padding: 0.5rem 0.75rem;
    }

    .title {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    .header-left {
        gap: 0.5rem;
    }

    /* Map smaller on phones */
    .panel[data-panel="map"] {
        height: 280px !important;
    }

    /* Tighter panel content */
    .panel-content {
        max-height: 280px;
    }

    /* Items */
    .item {
        padding: 0.6rem 0.75rem;
    }

    .item-title {
        font-size: 0.7rem;
    }

    /* Mobile menu full width */
    .mobile-menu {
        left: 0;
        min-width: 100%;
        border-inline: none;
    }

    /* Full-screen modals on small phones */
    .settings-modal.open,
    .monitor-form-overlay.open {
        align-items: flex-start;
        padding-top: 0;
    }

    .settings-content,
    .monitor-form {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border: none;
        border-radius: 0;
    }

    /* Wide panel items */
    .polymarket-item,
    .contract-item,
    .intel-item {
        padding: 0.5rem 0.75rem;
    }

    /* Sector heatmap adjustments */
    .sector-item {
        min-width: 50px;
        font-size: 0.55rem;
        padding: 0.4rem 0.3rem;
    }

    /* Commodity items */
    .commodity-item {
        min-width: 70px;
    }
}

/* ==========================================
   TOUCH DEVICE ENHANCEMENTS
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover states, enable active states for touch feedback */
    .item:hover,
    .panel-header:hover {
        background: transparent;
    }

    .item:active,
    .panel-header:active {
        background: var(--surface);
    }

    /* Hide map tooltip on touch - unusable */
    #mapTooltip {
        display: none !important;
    }

    /* Larger touch targets */
    button,
    .toggle-switch,
    [onclick] {
        min-height: 44px;
    }
}
