/* NextGen — Hosting Server Statistics (dark theme) */

#section-stats {
    padding: 0 !important;
    background: transparent !important;
}

.ng-stats {
    position: relative;
    padding: 72px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 55%),
        linear-gradient(180deg, #101224 0%, #0c0e1a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ng-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 30% at 50% 0%, rgba(var(--primary-color-rgb), 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.ng-stats-head {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto 52px;
}

.ng-stats-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    border-radius: 50px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.35);
    background: rgba(var(--primary-color-rgb), 0.08);
    box-shadow: 0 0 24px rgba(var(--primary-color-rgb), 0.12);
}

.ng-stats__title {
    margin: 0 0 16px;
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff;
}

.ng-stats__subtitle {
    margin: 0 auto;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 17px;
    line-height: 1.65;
}

.ng-stats__subtitle::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 28px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 16px rgba(var(--primary-color-rgb), 0.45);
}

.ng-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ng-stats__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    padding: 32px 22px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ng-stats__card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-color-rgb), 0.4);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(var(--primary-color-rgb), 0.12);
}

.ng-stats__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 18px;
    font-size: 32px;
    line-height: 1;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.12);
    border: 1px solid rgba(var(--primary-color-rgb), 0.25);
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.15);
}

.ng-stats__card p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 991px) {
    .ng-stats {
        padding: 56px 0 64px;
    }

    .ng-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        max-width: 560px;
    }

    .ng-stats-head {
        margin-bottom: 40px;
    }
}

@media (max-width: 479px) {
    .ng-stats__grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .ng-stats__card {
        aspect-ratio: auto;
        min-height: 200px;
    }
}
