:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-glass: rgba(30, 41, 59, 0.6);
    --border-glass: rgba(148, 163, 184, 0.2);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --threat-critical: #EF4444;
    --threat-elevated: #F59E0B;
    --threat-secure: #10B981;
    --accent-blue: #3B82F6;
    
    --font-display: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --glow-critical: 0 0 20px rgba(239, 68, 68, 0.4),
                     0 0 40px rgba(239, 68, 68, 0.3),
                     0 0 60px rgba(239, 68, 68, 0.2),
                     0 0 80px rgba(239, 68, 68, 0.1);
    --glow-critical-intense: 0 0 30px rgba(239, 68, 68, 0.6),
                              0 0 60px rgba(239, 68, 68, 0.5),
                              0 0 90px rgba(239, 68, 68, 0.3),
                              0 0 120px rgba(239, 68, 68, 0.2);
    
    --glow-secure: 0 0 20px rgba(16, 185, 129, 0.4),
                   0 0 40px rgba(16, 185, 129, 0.3),
                   0 0 60px rgba(16, 185, 129, 0.2);
    --glow-secure-intense: 0 0 30px rgba(16, 185, 129, 0.5),
                           0 0 60px rgba(16, 185, 129, 0.4),
                           0 0 90px rgba(16, 185, 129, 0.3);
    
    --glow-elevated: 0 0 20px rgba(245, 158, 11, 0.4),
                     0 0 40px rgba(245, 158, 11, 0.3),
                     0 0 60px rgba(245, 158, 11, 0.2);
    --glow-elevated-intense: 0 0 30px rgba(245, 158, 11, 0.6),
                              0 0 60px rgba(245, 158, 11, 0.4),
                              0 0 90px rgba(245, 158, 11, 0.3);
}

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

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.war-room {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: 
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.war-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-glass);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.war-room-title {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

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

.system-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.time-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.time-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.1em;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 9999px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse-dot 2s ease-in-out infinite;
}

.connection-status.connected .status-dot {
    background: var(--threat-secure);
    box-shadow: 0 0 10px var(--threat-secure);
}

.connection-status.error .status-dot {
    background: var(--threat-critical);
    box-shadow: 0 0 10px var(--threat-critical);
}

.connection-status.syncing .status-dot {
    background: var(--threat-elevated);
    box-shadow: 0 0 10px var(--threat-elevated);
    animation: pulse-syncing 1s ease-in-out infinite;
}

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

.status-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

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

.command-deck {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.defcon-module {
    display: flex;
    align-items: stretch;
}

.defcon-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.defcon-card.threat-critical {
    border-color: rgba(239, 68, 68, 0.5);
    animation: breathe-critical 2s ease-in-out infinite;
}

.defcon-card.threat-elevated {
    border-color: rgba(245, 158, 11, 0.5);
    animation: breathe-elevated 2.5s ease-in-out infinite;
}

.defcon-card.threat-secure {
    border-color: rgba(16, 185, 129, 0.5);
    animation: breathe-secure 3s ease-in-out infinite;
}

@keyframes breathe-critical {
    0%, 100% {
        box-shadow: var(--glow-critical);
    }
    50% {
        box-shadow: var(--glow-critical-intense);
    }
}

@keyframes breathe-elevated {
    0%, 100% {
        box-shadow: var(--glow-elevated);
    }
    50% {
        box-shadow: var(--glow-elevated-intense);
    }
}

@keyframes breathe-secure {
    0%, 100% {
        box-shadow: var(--glow-secure);
    }
    50% {
        box-shadow: var(--glow-secure-intense);
    }
}

.defcon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.defcon-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.defcon-badge {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.defcon-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--threat-critical);
    border-color: rgba(239, 68, 68, 0.4);
}

.defcon-badge.elevated {
    background: rgba(245, 158, 11, 0.2);
    color: var(--threat-elevated);
    border-color: rgba(245, 158, 11, 0.4);
}

.defcon-badge.secure {
    background: rgba(16, 185, 129, 0.2);
    color: var(--threat-secure);
    border-color: rgba(16, 185, 129, 0.4);
}

.defcon-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.threat-level-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.threat-icon {
    font-size: 4rem;
    line-height: 1;
}

.threat-text {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.threat-text.critical {
    color: var(--threat-critical);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.threat-text.elevated {
    color: var(--threat-elevated);
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.threat-text.secure {
    color: var(--threat-secure);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.threat-description {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 400px;
}

.aggression-module {
    display: flex;
    align-items: stretch;
}

.aggression-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aggression-header {
    margin-bottom: 1.5rem;
}

.aggression-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.aggression-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.aggression-gauge {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.aggression-value {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.aggression-value.low {
    color: var(--threat-secure);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.aggression-value.medium {
    color: var(--threat-elevated);
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.aggression-value.high {
    color: var(--threat-critical);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.aggression-unit {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.aggression-bar-container {
    width: 100%;
    max-width: 200px;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.aggression-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--threat-secure), var(--threat-elevated), var(--threat-critical));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.aggression-description {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.ticker-tape {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
}

.ticker-tape::before,
.ticker-tape::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 10;
    pointer-events: none;
}

.ticker-tape::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-secondary), transparent);
}

.ticker-tape::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-secondary), transparent);
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.ticker-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

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

.battlefield-section {
    padding: 0 2rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mission-control {
    padding: 1.5rem 2rem;
}

.mission-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mission-control-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.mission-control-status {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-glass);
}

.mission-control-selectors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 280px;
}

.selector-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.selector-group.friendly .selector-label {
    color: var(--accent-blue);
}

.selector-group.hostile .selector-label {
    color: var(--threat-critical);
}

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tactical-select {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-glass);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
}

.tactical-select:focus {
    outline: none;
}

.tactical-select.friendly {
    border-color: rgba(59, 130, 246, 0.5);
}

.tactical-select.friendly:hover,
.tactical-select.friendly:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3),
                0 0 40px rgba(59, 130, 246, 0.2);
}

.tactical-select.hostile {
    border-color: rgba(239, 68, 68, 0.5);
}

.tactical-select.hostile:hover,
.tactical-select.hostile:focus {
    border-color: var(--threat-critical);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3),
                0 0 40px rgba(239, 68, 68, 0.2);
}

.tactical-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-secondary);
}

.custom-select-wrapper.friendly .select-arrow {
    border-top-color: var(--accent-blue);
}

.custom-select-wrapper.hostile .select-arrow {
    border-top-color: var(--threat-critical);
}

.versus-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.versus-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-shadow: 0 0 20px rgba(148, 163, 184, 0.3);
}

.battlefield-chart {
    display: flex;
    flex-direction: column;
}

.battlefield-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.battlefield-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.battlefield-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.friendly {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.legend-dot.hostile {
    background: var(--threat-critical);
    box-shadow: 0 0 10px var(--threat-critical);
}

.battlefield-canvas-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.battlefield-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.battlefield-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.frontline-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    padding: 0.25rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.battlefield-container {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 1.5rem;
}

.battlefield-chart {
    flex: 1;
}

.battlefield-legend-custom {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-group.friendly-legends {
    color: var(--accent-blue);
}

.legend-group.hostile-legends {
    color: var(--threat-critical);
}

.legend-divider {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.legend-item.paid {
    font-weight: 600;
}

.legend-item.organic {
    font-weight: 400;
    opacity: 0.7;
}

.legend-swatch {
    width: 14px;
    height: 10px;
    border-radius: 2px;
}

.legend-swatch.friendly-paid {
    background: #3B82F6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.legend-swatch.friendly-organic {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.legend-swatch.hostile-paid {
    background: #EF4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.legend-swatch.hostile-organic {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.intel-feed {
    display: flex;
    flex-direction: column;
    min-height: 380px;
    max-height: 450px;
}

.intel-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.intel-feed-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.intel-feed-status {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--threat-secure);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.intel-feed-status.active {
    background: rgba(239, 68, 68, 0.15);
    color: var(--threat-critical);
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse-status 2s ease-in-out infinite;
}

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

.intel-feed-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.intel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.intel-loading-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.intel-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.intel-card:hover {
    border-color: var(--threat-critical);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.intel-card.friendly:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.intel-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.intel-thumbnail-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.intel-thumbnail-placeholder span {
    font-size: 1.5rem;
    opacity: 0.5;
}

.intel-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.intel-source {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intel-source.facebook { color: #1877F2; }
.intel-source.google { color: #4285F4; }
.intel-source.instagram { color: #E4405F; }

.intel-text {
    font-size: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.intel-meta {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
}

.intel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.5rem;
}

.intel-empty-icon {
    font-size: 2rem;
    opacity: 0.4;
}

.intel-empty-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.surveillance-section {
    padding: 0 2rem 2rem;
}

.surveillance-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.surveillance-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.surveillance-subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.surveillance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tech-radar {
    display: flex;
    flex-direction: column;
}

.tech-radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.tech-radar-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.tech-radar-status {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 4px;
    color: #3B82F6;
}

.tech-radar-status.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10B981;
    animation: pulse-glow 2s ease-in-out infinite;
}

.tech-radar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item.detected {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.tech-item.detected[data-tech="meta"] {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.tech-item.detected[data-tech="gtm"] {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.tech-item.detected[data-tech="tiktok"] {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.tech-item.detected[data-tech="hotjar"] {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.tech-item:not(.detected) {
    opacity: 0.5;
}

.tech-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: 8px;
}

.tech-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tech-name {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-desc {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
}

.tech-badge.inactive {
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: var(--text-muted);
}

.tech-badge.active {
    animation: badge-glow 2s ease-in-out infinite;
}

.tech-badge.active.meta {
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.6);
    color: #60A5FA;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.tech-badge.active.gtm {
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #FBBF24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.tech-badge.active.tiktok {
    background: rgba(236, 72, 153, 0.25);
    border: 1px solid rgba(236, 72, 153, 0.6);
    color: #F472B6;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.tech-badge.active.hotjar {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #F87171;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

@keyframes badge-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tech-badge.inferred {
    background: rgba(100, 116, 139, 0.15);
    border: 2px dashed rgba(148, 163, 184, 0.5);
    color: #94A3B8;
    opacity: 0.7;
    position: relative;
    cursor: help;
}

.tech-badge.inferred.meta {
    border-color: rgba(59, 130, 246, 0.4);
    color: rgba(96, 165, 250, 0.7);
}

.tech-badge.inferred.tiktok {
    border-color: rgba(236, 72, 153, 0.4);
    color: rgba(244, 114, 182, 0.7);
}

.tech-badge.inferred.hotjar {
    border-color: rgba(239, 68, 68, 0.4);
    color: rgba(248, 113, 113, 0.7);
}

.tech-item.inferred {
    opacity: 0.65;
    border-style: dashed;
}

.tech-item.inferred[data-tech="meta"] {
    border-color: rgba(59, 130, 246, 0.3);
}

.tech-item.inferred[data-tech="tiktok"] {
    border-color: rgba(236, 72, 153, 0.3);
}

.tech-item.inferred[data-tech="hotjar"] {
    border-color: rgba(239, 68, 68, 0.3);
}

.ghost-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.625rem;
    white-space: nowrap;
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    max-width: 220px;
    white-space: normal;
    text-align: center;
}

.ghost-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

.tech-badge.inferred:hover .ghost-tooltip {
    opacity: 1;
    visibility: visible;
}

.other-scripts-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.other-scripts-header {
    margin-bottom: 0.75rem;
}

.other-scripts-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.other-scripts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.script-pill {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.script-pill:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60A5FA;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.visual-intercept {
    display: flex;
    flex-direction: column;
}

.visual-intercept-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.visual-intercept-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.visual-intercept-status {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 4px;
    color: var(--text-muted);
}

.visual-intercept-status.comparing {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
}

.visual-intercept-status.baseline {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #F59E0B;
}

.visual-intercept-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.visual-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 1rem;
}

.visual-loading-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.diff-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    cursor: ew-resize;
}

.diff-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-primary);
}

.diff-image.before {
    z-index: 1;
}

.diff-image.after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.diff-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #EF4444;
    z-index: 10;
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.diff-slider-handle::before,
.diff-slider-handle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.diff-slider-handle::before {
    top: 50%;
    margin-top: -15px;
    border-width: 8px 6px 8px 0;
    border-color: transparent #EF4444 transparent transparent;
    margin-left: -10px;
}

.diff-slider-handle::after {
    top: 50%;
    margin-top: -15px;
    border-width: 8px 0 8px 6px;
    border-color: transparent transparent transparent #EF4444;
    margin-left: 6px;
}

.diff-labels {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 5;
    pointer-events: none;
}

.diff-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.9);
}

.diff-label.before {
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.diff-label.after {
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.single-screenshot {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.single-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-primary);
}

.baseline-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 4px;
    color: #FBBF24;
}

.no-intel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 1rem;
}

.no-intel-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.no-intel-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Time Glider Styles */
.time-glider-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-glider-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-primary);
}

.time-glider-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    display: block;
}

.time-glider-date-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 4px;
    color: #22D3EE;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.time-glider-scrubber {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.25rem;
}

.time-glider-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(100, 116, 139, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
}

.time-glider-slider::-webkit-slider-track {
    height: 6px;
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.3) 0%, rgba(6, 182, 212, 0.4) 100%);
    border-radius: 3px;
}

.time-glider-slider::-moz-range-track {
    height: 6px;
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.3) 0%, rgba(6, 182, 212, 0.4) 100%);
    border-radius: 3px;
    border: none;
}

.time-glider-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #22D3EE;
    border: 2px solid #0E7490;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 
        0 0 15px rgba(6, 182, 212, 0.6),
        0 0 30px rgba(6, 182, 212, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.time-glider-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #22D3EE;
    border: 2px solid #0E7490;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 
        0 0 15px rgba(6, 182, 212, 0.6),
        0 0 30px rgba(6, 182, 212, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.time-glider-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.8),
        0 0 40px rgba(6, 182, 212, 0.4);
}

.time-glider-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.8),
        0 0 40px rgba(6, 182, 212, 0.4);
}

.time-glider-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.time-glider-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

.time-glider-track-labels {
    display: flex;
    justify-content: space-between;
}

.track-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.track-label.oldest {
    color: #64748B;
}

.track-label.newest {
    color: #22D3EE;
}

.visual-intercept-status.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    color: #22D3EE;
    animation: statusGlow 2s ease-in-out infinite;
}

@keyframes statusGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(6, 182, 212, 0.3); }
    50% { box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }
}

/* AI Tactical Insight Panel */
.ai-tactical-insight {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: aiInsightGlow 3s ease-in-out infinite;
}

@keyframes aiInsightGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(59, 130, 246, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(59, 130, 246, 0.2),
            0 0 60px rgba(59, 130, 246, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
}

.ai-insight-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ai-insight-icon {
    font-size: 1rem;
}

.ai-insight-title {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #60A5FA;
    text-transform: uppercase;
}

.ai-insight-pulse {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    margin-left: auto;
    animation: aiPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@keyframes aiPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
    }
}

.ai-insight-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-insight-headline {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.ai-insight-subtext {
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.5;
}

.market-intel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.market-intel-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.market-intel-status {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 4px;
    color: var(--text-muted);
}

.market-intel-status.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10B981;
}

.market-intel-status.no-promo {
    background: rgba(100, 116, 139, 0.2);
    border-color: rgba(100, 116, 139, 0.3);
    color: var(--text-muted);
}

.market-intel-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 120px;
}

.market-intel-headline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 4px 4px 0;
    display: none;
}

.market-intel-headline.visible {
    display: block;
}

.promo-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.promo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
}

.promo-loading-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid;
    transition: all 0.2s ease;
    cursor: default;
}

.promo-pill:hover {
    transform: translateY(-1px);
}

.promo-pill-icon {
    font-size: 0.85rem;
}

.promo-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-secondary);
    white-space: normal;
    max-width: 280px;
    min-width: 150px;
    text-align: left;
    line-height: 1.4;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.promo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

.promo-pill:hover .promo-tooltip {
    opacity: 1;
    visibility: visible;
}

.promo-pill {
    position: relative;
}

.promo-pill.money {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34D399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.promo-pill.money:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.promo-pill.spins {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
    color: #C084FC;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.promo-pill.spins:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.promo-pill.chips {
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.5);
    color: #FB923C;
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.2);
}

.promo-pill.chips:hover {
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.4);
}

.promo-pill.events {
    background: rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.5);
    color: #FDE047;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.promo-pill.events:hover {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.no-promo-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    width: 100%;
}

.no-promo-icon {
    font-size: 2rem;
    opacity: 0.3;
}

.no-promo-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 1024px) {
    .command-deck {
        grid-template-columns: 1fr;
    }
    
    .battlefield-section {
        padding: 0 1rem 1rem;
    }
    
    .battlefield-container {
        grid-template-columns: 1fr;
    }
    
    .intel-feed {
        min-height: 250px;
        max-height: 300px;
    }
    
    .surveillance-section {
        padding: 0 1rem 1rem;
    }
    
    .surveillance-grid {
        grid-template-columns: 1fr;
    }
    
    .visual-intercept-content {
        min-height: 250px;
    }
    
    .battlefield-legend-custom {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .legend-divider {
        display: none;
    }
    
    .mission-control-selectors {
        flex-direction: column;
        gap: 1rem;
    }
    
    .selector-group {
        min-width: 100%;
    }
    
    .versus-divider {
        padding: 0.5rem;
    }
    
    .threat-text {
        font-size: 2rem;
    }
    
    .aggression-value {
        font-size: 4rem;
    }
}

@media (max-width: 640px) {
    .war-room-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-left {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Keep back arrow on the left side */
    .header-left .back-link {
        position: absolute;
        left: 1rem;
    }
    
    .war-room-title {
        font-size: 1.25rem;
    }
    
    .subtitle {
        display: none;
    }
    
    .header-right {
        flex-direction: row;
        gap: 1rem;
    }
    
    .command-deck {
        padding: 1rem;
        gap: 1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .threat-text {
        font-size: 1.5rem;
    }
    
    .aggression-value {
        font-size: 3rem;
    }
    
    .battlefield-canvas-container {
        height: 250px;
    }
    
    .mission-control {
        padding: 1rem;
    }
}
