.datacenters {
    padding: 8rem 0;
    background: #030303;
    /* Deep dark background */
    position: relative;
    overflow: hidden;
}

/* Background glow effect like HostX */
.datacenters::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.contentWrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.statusGrid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.statusCard {
    background: transparent;
    border: none;
    padding: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.statusCard:hover {
    opacity: 0.8;
    transform: none;
    background: transparent;
    border: none;
}

.statusHeader {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0;
}

.flagWrapper {
    width: 24px;
    height: 18px;
    overflow: hidden;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.flagImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.locationName {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.ping {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    background: transparent;
    padding: 0;
}

.refreshIcon {
    color: #4facfe;
    font-size: 1rem;
    cursor: pointer;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.progressFill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary);
}

.mapContainer {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    /* Add a subtle border/glow around the map area */
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.mapImage {
    width: 100%;
    height: auto;
    opacity: 0.6;
    /* Slight transparency to blend with dark theme */
    display: block;
    mix-blend-mode: screen;
    /* Helps pop against dark bg */
}

/* Pulsing markers */
.marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    transform: translate(-50%, -50%);
}

.marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}