.cyber-map {
    height: 70vh;
    border: 2px solid var(--primary);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 0 40px rgba(112,0,255,0.2);
    background: rgba(16,16,26,0.9);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.color-box {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    margin-right: 1rem;
    background: var(--color);
}

.server-controls {
    padding: 2rem;
    background: linear-gradient(145deg, #13131A, #0D0D12);
    border: 2px solid var(--primary);
    border-radius: 20px;
    margin-bottom: 2rem;
}

#serverSelect, #refreshButton {
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
}

.leaflet-popup-content-wrapper {
    background: rgba(16,16,26,0.95) !important;
    border: 2px solid var(--primary) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(10px);
}

.nickname-container {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid var(--primary) !important;
}

.status-hero {
    position: relative;
    height: 60vh;
    background: radial-gradient(ellipse at bottom, #0a0a12 0%, #06060a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--primary);
}

.hologram-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0%,
        transparent 2%,
        rgba(112,0,255,0.1) 3%,
        transparent 5%
    );
    animation: scan 4s linear infinite;
}

.data-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(112,0,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112,0,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cyber-legend {
    background: rgba(16,16,26,0.9);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.legend-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.hologram-text {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(112,0,255,0.3);
}

.scan-line {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 50%, 
        transparent 100%);
    animation: scan 3s linear infinite;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(112,0,255,0.2);
}

.color-indicator {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    background: var(--color);
}

.color-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color);
    opacity: 0.5;
}

.inner-glow {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(255,255,255,0.3) 0%,
        transparent 70%);
}

.legend-text {
    color: #fff;
    font-size: 0.9rem;
    flex-grow: 1;
}

.data-line {
    width: 30px;
    height: 2px;
    background: var(--color);
    margin-left: 1rem;
    opacity: 0.5;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 768px) {
    .cyber-map {
        height: 50vh;
    }
    
    .server-controls {
        flex-direction: column;
        gap: 1rem;
    }
}