﻿.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    margin: 28px 0 12px;
}

.hero-stat-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border: 1px solid rgba(15, 92, 58, 0.08);
    border-radius: 20px;
    padding: 26px 18px 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 146px;
}

    .hero-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(16, 24, 40, 0.10);
    }

    .hero-stat-card::before {
        content: "";
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #0d8b5f 0%, #28b487 100%);
        opacity: 0.95;
    }

.hero-stat-number {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #0d8b5f;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    color: #5b6470;
}

.hero-stat-card.stat-updated {
    animation: statPulse 0.6s ease;
}

@keyframes statPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    }

    40% {
        transform: translateY(-2px) scale(1.015);
        box-shadow: 0 14px 32px rgba(13, 139, 95, 0.14);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .hero-stat-card {
        padding: 22px 14px 18px;
        min-height: 128px;
        border-radius: 16px;
    }

    .hero-stat-number {
        font-size: 2.15rem;
    }

    .hero-stat-label {
        font-size: 0.95rem;
    }
}

.hero-stat-card.stat-updated {
    transform: scale(1.03);
    transition: transform .25s ease;
}

/* ===== Homepage visitor IP ===== */
.hero-visitor-ip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 1.2rem;
    color: #4f5b56;
}

.hero-visitor-ip__label {
    font-weight: 700;
    color: #0d8b5f;
}

.hero-visitor-ip__value {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(13, 139, 95, 0.08);
    border: 1px solid rgba(13, 139, 95, 0.14);
    color: #174f38;
    font-weight: 700;
    letter-spacing: 0.2px;
}
