* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #050811;
    color: #e2e8f0;
    overflow: hidden;
    display: flex;
    height: 100vh;
}

#globeViz {
    flex: 1;
    height: 100%;
    cursor: grab;
    position: relative;
}

#globeViz:active {
    cursor: grabbing;
}

.hud-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
    background: rgba(10, 15, 28, 0.85);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    backdrop-filter: blur(6px);
}

.filter-btn {
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.filter-btn:hover {
    border-color: #05d9e8;
    color: #fff;
}

.filter-btn.active {
    background: #05d9e8;
    color: #050811;
    border-color: #05d9e8;
}

.filter-btn.active.gta-mode {
    background: #ff2a6d;
    color: #fff;
    border-color: #ff2a6d;
}

#sidebar {
    width: 420px;
    background: rgba(10, 15, 28, 0.95);
    border-left: 1px solid #1e293b;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
    overflow-y: auto;
}

.header h1 {
    font-size: 1.15rem;
    color: #05d9e8;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 9px;
    height: 9px;
    background: #ff2a6d;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ff2a6d;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.header p {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 4px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kpi-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 12px;
    border-radius: 8px;
}

.kpi-card span {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.kpi-card strong {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    margin-top: 4px;
}

.kpi-card.alert strong {
    color: #ff2a6d;
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 6px;
    letter-spacing: 0.5px;
}

.service-item {
    background: #0f172a;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #05d9e8;
}

.service-item.gta {
    border-left-color: #ff2a6d;
    background: rgba(255, 42, 109, 0.1);
}

.service-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.83rem;
    font-weight: 600;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: #94a3b8;
    margin-top: 4px;
}

.trend-up {
    color: #ff2a6d;
    font-weight: bold;
}

.feed-list {
    font-size: 0.76rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-item {
    background: #0b1120;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #1e293b;
}

.feed-item.gta-route {
    border-left: 2px solid #ff2a6d;
}

.feed-route {
    color: #e2e8f0;
    font-weight: 600;
}

.legend {
    display: flex;
    gap: 15px;
    font-size: 0.74rem;
    color: #94a3b8;
    margin-top: 4px;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot-gta { width: 8px; height: 8px; background: #ff2a6d; border-radius: 50%; }
.dot-gen { width: 8px; height: 8px; background: #05d9e8; border-radius: 50%; }

@media (max-width: 900px) {
    body { flex-direction: column; overflow-y: auto; height: auto; }
    #globeViz { height: 55vh; }
    #sidebar { width: 100%; border-left: none; border-top: 1px solid #1e293b; }
}
