.visualization-container {
    flex-wrap: nowrap;
    flex-direction: column;
}

.world-map {
    width: 100%;
    height: 230px;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 20px 20px;
}

.cdn-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cdn-lines .hub-line {
    stroke: color-mix(in srgb, #22D3EE 45%, transparent);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.hub-node {
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hub-node .viz-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.hub-node .viz-badge svg {
    width: 22px;
    height: 22px;
}

.server {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.server .viz-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.server .viz-badge svg {
    width: 20px;
    height: 20px;
}

.server .viz-label {
    margin-top: 0.3rem;
    font-size: 0.65rem;
    white-space: nowrap;
}

.server.origin {
    top: 42%;
    left: 20%;
}

.server.edge.eu {
    top: 42%;
    left: 50%;
    opacity: 0.3;
}

.server.edge.asia {
    top: 42%;
    left: 80%;
    opacity: 0.3;
}

.user {
    position: absolute;
    font-size: 0.7rem;
    color: var(--text-muted);
    transform: translateX(-50%);
}

.user-us {
    top: 78%;
    left: 20%;
}

.user-eu {
    top: 78%;
    left: 50%;
}

.user-asia {
    top: 78%;
    left: 80%;
}

.packet {
    position: absolute;
    font-size: 1.1rem;
    opacity: 0;
    z-index: 20;
}

.mode-switch {
    display: flex;
    gap: 0.5rem;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
    margin-right: 1rem;
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.mode-btn.active {
    background: #22D3EE;
    color: #0f172a;
}
