/* --- PROJECT RAGNAR: Mission Control UI --- */

:root {
    --mc-bg: #050505;
    --mc-panel-bg: rgba(10, 10, 10, 0.85);
    --mc-border: rgba(212, 175, 55, 0.2);
    --mc-border-active: rgba(212, 175, 55, 0.5);
    --mc-gold-text: #D4AF37;
    --mc-gold-glow: rgba(212, 175, 55, 0.3);
    --mc-dim-text: rgba(255, 255, 255, 0.4);
    --mc-header-height: 80px;
    --mc-footer-height: 50px;
    --panel-header-height: 40px;
}

.attacks-page {
    margin: 0;
    padding: 0;
    background: var(--mc-bg);
    color: #fff;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* --- Unified Taskbar (Ported from Home) --- */
.taskbar {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px 32px;
    border-radius: 100px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: auto;
    max-width: 90vw;
}

.taskbar-logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a.active {
    color: var(--mc-gold-text);
    font-weight: 700;
}

.lang-selector {
    display: flex;
    gap: 15px;
    align-items: center;
}

.flag {
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.flag.active {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--mc-gold-glow));
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-close {
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

.background-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.scanline {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(212, 175, 55, 0.03);
    top: -2px;
    animation: scanline 8s linear infinite;
    z-index: 10;
}

@keyframes scanline {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

/* Dashboard Wrapper */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 100px 30px 20px;
    box-sizing: border-box;
    gap: 20px;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
}

.system-code {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--mc-gold-text);
    margin-bottom: 5px;
    opacity: 0.8;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.header-status {
    display: flex;
    gap: 30px;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
    position: relative;
}

.pulse-dot.gold {
    background: var(--mc-gold-text);
    box-shadow: 0 0 10px var(--mc-gold-text);
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--mc-dim-text);
}

.current-time {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: #fff;
}

/* Dashboard Layout (Main Grid) */
.dashboard-layout {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    grid-template-areas: "left center right";
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.panel {
    background: var(--mc-panel-bg);
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.panel:hover {
    border-color: var(--mc-border-active);
}

.panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    height: var(--panel-header-height);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--mc-border);
    background: rgba(255, 255, 255, 0.02);
}

.panel-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--mc-gold-text);
    text-transform: uppercase;
}

/* Left Panel: Log */
.log-viewer {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* Changed from column-reverse to work with prepend() correctly */
    scrollbar-width: thin;
    scrollbar-color: var(--mc-border) transparent;
}

.log-entry {
    font-size: 0.7rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.01);
    animation: entry-fade 0.5s ease-out forwards;
    /* Added forwards */
    opacity: 1 !important;
    /* Force override style.css opacity:0 */
    transform: translateX(0) !important;
}

/* Starlink Marker Styles */
.starlink-marker {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.starlink-marker:hover {
    transform: scale(1.5) !important;
    filter: drop-shadow(0 0 15px var(--mc-gold-text)) brightness(1.2);
}

.starlink-marker.inactive {
    filter: grayscale(1) opacity(0.5) drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}

.starlink-marker.out-of-range {
    filter: sepia(1) hue-rotate(-50deg) opacity(0.6);
}

.log-entry.log-exit {
    opacity: 0 !important;
    transform: translateX(-10px) !important;
    transition: all 0.5s ease;
}

@keyframes entry-fade {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-time {
    color: var(--mc-gold-text);
    font-weight: 700;
    margin-right: 10px;
}

/* Center Panel: Map */
.panel-center {
    grid-area: center;
}

.map-header {
    background: rgba(212, 175, 55, 0.03);
}

.map-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.3s;
}

.nav-item.active {
    color: var(--mc-gold-text);
    font-weight: 700;
}

.map-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#attack-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

/* Hide Google Maps default controls to keep hacker look */
.gm-style-cc,
.gmnoprint,
.gm-bundled-control {
    display: none !important;
}

.map-ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    /* Disable by default to allow map dragging */
    background: rgba(0, 0, 0, 0);
    cursor: default;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: cursor 0.3s ease;
}

.map-ui-overlay.starlink-inspect-mode {
    pointer-events: auto;
    /* Enable event capture only for inspection */
    cursor: crosshair;
}

.map-ui-overlay .map-filters,
.map-ui-overlay .map-header,
.map-ui-overlay .coordinate-display {
    pointer-events: auto;
    /* Always allow interaction with UI elements */
}

.map-ui-overlay.interaction-drag {
    pointer-events: none;
}

.map-ui-overlay.interaction-drag .map-filters {
    pointer-events: auto;
}

.coordinate-display {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--mc-gold-text);
    opacity: 0.6;
}

.scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--mc-gold-text), transparent);
    animation: map-scan 10s linear infinite;
    opacity: 0.2;
}

@keyframes map-scan {
    0% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

/* Map Filters UI */
.map-filters {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    padding: 20px;
    z-index: 10;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.map-filters.collapsed {
    transform: translateX(calc(100% - 10px));
    opacity: 0.8;
}

.panel-toggle {
    position: absolute;
    left: -30px;
    top: 20px;
    width: 30px;
    height: 40px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--mc-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--mc-gold-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.panel-toggle:hover {
    background: var(--mc-gold-text);
    color: #000;
}

.map-filters.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.panel-group-title {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--mc-gold-text);
    opacity: 0.7;
    margin-bottom: 8px;
}

.mc-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--mc-border);
    border-radius: 4px;
    color: #fff;
    padding: 8px 12px;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath stroke='%23D4AF37' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.mc-select:focus {
    border-color: var(--mc-border-active);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.mc-select option {
    background: #0a0a0a;
    color: #fff;
}

.interaction-controls {
    display: flex;
    gap: 8px;
}

.interaction-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--mc-border);
    border-radius: 6px;
    padding: 8px;
    color: var(--mc-dim-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.interaction-btn .btn-icon {
    font-size: 1.1rem;
}

.interaction-btn .btn-text {
    font-size: 0.55rem;
    font-weight: 700;
}

.interaction-btn.active {
    background: rgba(212, 175, 55, 0.25) !important;
    border-color: var(--mc-gold-text) !important;
    color: var(--mc-gold-text) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(212, 175, 55, 0.2);
    text-shadow: 0 0 10px var(--mc-gold-text);
}

.interaction-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--mc-dim-text);
    color: #fff;
}

.filter-item.soon {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.soon-badge {
    position: absolute;
    right: 0;
    background: var(--mc-gold-text);
    color: #000;
    font-size: 0.45rem;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 900;
    letter-spacing: 0.05em;
    transform: rotate(10deg);
}

.new-tag {
    position: absolute;
    top: -12px;
    right: -15px;
    background: #FFD700;
    color: #000;
    font-size: 0.5rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    letter-spacing: 0.05em;
    animation: new-tag-pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    pointer-events: none;
}

@keyframes new-tag-pulse {
    0% {
        transform: scale(1) rotate(5deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1) rotate(10deg);
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }

    100% {
        transform: scale(1) rotate(5deg);
        opacity: 0.8;
    }
}

.starlink-nav {
    position: relative;
}

.map-viewport.starlink-inspect-mode {
    cursor: crosshair !important;
}

.status-bar-fill.blink-red {
    background: #FF0000;
    box-shadow: 0 0 10px #FF0000;
    animation: status-blink-red 1s infinite;
}

@keyframes status-blink-red {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        background: #FF3333;
        box-shadow: 0 0 15px #FF0000;
    }

    100% {
        opacity: 0.5;
    }
}

.version-note {
    font-size: 0.7rem;
    color: rgba(255, 215, 0, 0.7);
    margin-top: 15px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 10px;
    font-style: italic;
}

.map-filters:hover {
    border-color: var(--mc-border-active);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.filter-item input {
    display: none;
}

.checkbox-custom {
    width: 14px;
    height: 14px;
    border: 1px solid var(--mc-border);
    position: relative;
    transition: all 0.3s;
}

.filter-item input:checked+.checkbox-custom {
    background: var(--mc-gold-text);
    border-color: var(--mc-gold-text);
    box-shadow: 0 0 10px var(--mc-gold-glow);
}

.filter-item input:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 10px;
    font-weight: bold;
}

.filter-label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--mc-dim-text);
    font-weight: 600;
}

.filter-item:hover .filter-label {
    color: #fff;
}

.filter-divider {
    height: 1px;
    background: var(--mc-border);
    margin: 4px 0;
}

.filter-group.categories {
    flex-direction: row;
    gap: 6px;
    justify-content: space-between;
}

.cat-filter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--mc-border);
    border-radius: 4px;
    padding: 6px;
    color: var(--mc-dim-text);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 50px;
}

.cat-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--mc-border-active);
    color: #fff;
}

.cat-filter.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--mc-gold-text);
    color: var(--mc-gold-text);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.cat-icon {
    font-size: 1rem;
}

.cat-name {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

@media (max-width: 800px) {
    .map-filters {
        top: 10px;
        right: 10px;
        padding: 8px;
        gap: 8px;
        max-width: 250px;
    }

    .cat-name {
        display: none;
    }

    .cat-filter {
        min-width: 35px;
        padding: 8px 4px;
    }
}

/* --- Fixed Selected Event Panel --- */
.selected-event-panel {
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    padding-bottom: 4px;
}

.detail-label {
    color: var(--mc-dim-text);
    font-weight: 700;
}

.detail-value {
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.detail-value.highlight {
    color: var(--mc-gold-text);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.intel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    margin: 12px 0;
}

.intel-section {
    margin-bottom: 12px;
}

.intel-label {
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--mc-gold-text);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    opacity: 0.8;
}

.intel-content {
    font-size: 0.6rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    text-align: justify;
}

.detail-desc {
    font-size: 0.6rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    font-style: italic;
    min-height: 2.8em;
}

.simple-box {
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 10px;
    margin-top: 5px;
}

.simple-text {
    color: #fff;
    font-weight: 500;
    font-style: normal;
    font-size: 0.65rem !important;
}

/* Starlink specific panels */
.starlink-image-container {
    width: 100%;
    height: 180px;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

#starlink-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 5px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 4px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.spec-label {
    display: block;
    font-size: 0.45rem;
    color: var(--mc-dim-text);
    margin-bottom: 2px;
}

.spec-value {
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
}

.telemetry-box {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
}

.starlink-stats-box {
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.starlink-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.55rem;
    color: var(--mc-dim-text);
    letter-spacing: 0.1em;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.status-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    background: #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
}

.sub-header {
    margin-top: 10px;
    margin-bottom: 5px;
}

.panel-title.small {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Right Panel: Stats */
.stats-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.metric-item label {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--mc-dim-text);
    margin-bottom: 10px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.metric-value {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.metric-value.highlight {
    color: var(--mc-gold-text);
    text-shadow: 0 0 15px var(--mc-gold-glow);
}

.sparkline {
    flex: 1;
    height: 30px;
    opacity: 0.6;
}

.sparkline canvas {
    width: 100%;
    height: 100%;
}

.visualization-group {
    border-top: 1px solid var(--mc-border);
    padding-top: 20px;
}

.vis-header {
    font-size: 0.6rem;
    color: var(--mc-dim-text);
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    text-align: center;
}

.radar-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    position: relative;
    opacity: 0.8;
}

.alert-status-box {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--mc-border);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.alert-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--mc-gold-text);
    margin-bottom: 5px;
}

.threat-indicator {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--mc-gold-text);
    animation: alert-blink 1s infinite alternate;
}

@keyframes alert-blink {
    from {
        color: #fff;
        text-shadow: 0 0 10px #fff;
    }

    to {
        color: var(--mc-gold-text);
        text-shadow: 0 0 20px var(--mc-gold-text);
    }
}

/* Footer */
.dashboard-footer {
    height: var(--mc-footer-height);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-top: 1px solid var(--mc-border);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--mc-dim-text);
}

.footer-left span,
.footer-right span {
    margin-right: 20px;
}

.activity-bars {
    display: inline-flex;
    gap: 3px;
    margin-right: 15px;
}

.bar {
    width: 2px;
    height: 10px;
    background: var(--mc-gold-text);
    animation: bar-pulse 1s infinite alternate;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bar-pulse {
    from {
        height: 4px;
        opacity: 0.3;
    }

    to {
        height: 12px;
        opacity: 1;
    }
}

/* Responsive Overrides */
@media (max-width: 1400px) {
    .dashboard-layout {
        grid-template-columns: 280px 1fr 280px;
    }
}

@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 260px 1fr;
        grid-template-areas: "left center" "right center";
        grid-template-rows: 1fr 1fr;
    }

    .panel-center {
        grid-row: span 2;
    }
}

@media (max-width: 800px) {
    .taskbar {
        top: 20px;
        padding: 10px 20px;
        width: 90%;
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 3000;
        margin: 0;
        padding: 0;
    }

    .nav-links.mobile-active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-close {
        display: block;
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 0.3em;
    }

    .dashboard-wrapper {
        height: auto;
        overflow-y: auto;
        padding-top: 80px;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "center" "left" "right";
        grid-template-rows: auto;
        height: auto;
    }

    .panel {
        height: 500px;
    }

    .panel-center {
        height: 400px;
    }

    .attacks-page {
        overflow-y: auto;
        height: auto;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .header-status {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Gold Rush Animation --- */
.gold-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 24px;
    user-select: none;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

@keyframes gold-fall {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        transform: translate(var(--dx), var(--dy-start)) rotate(45deg) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx-end), 120vh) rotate(var(--rot)) scale(0.8);
        opacity: 0;
    }
}

.animate-gold {
    animation: gold-fall var(--dur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* --- Resource Warning Popup --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-overlay .glass-container {
    max-width: 600px;
    padding: 40px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
}

.popup-overlay.active .glass-container {
    transform: scale(1);
}

.popup-header {
    margin-bottom: 25px;
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.popup-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--mc-gold-text);
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.popup-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3em;
    font-weight: 700;
}

.popup-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    text-align: left;
}

.highlight-gold {
    color: var(--mc-gold-text);
    font-weight: 700;
}

.highlight-red {
    color: #ff3232;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.3);
}

.pulse-red {
    animation: pulse-red-icon 2s infinite;
}

@keyframes pulse-red-icon {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 50, 50, 0));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 50, 50, 0.8));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 50, 50, 0));
    }
}

.popup-body p {
    margin-bottom: 15px;
}

.popup-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.popup-signature {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.popup-overlay .pro-btn {
    padding: 15px 40px;
}

/* Desktop only check */
@media (max-width: 1024px) {
    .popup-overlay {
        display: none !important;
    }
}