/* =========================================================
   SUNUCURADAR - SERVER STATISTICS TAB
========================================================= */

.sr-statistics-panel {
    overflow: hidden;
}

.sr-stats-access {
    margin: 0 0 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(134, 239, 172, .22);
    background:
        radial-gradient(circle at 0% 0%, rgba(34,197,94,.15), transparent 34%),
        rgba(15, 23, 42, .58);
}

.sr-stats-access h3 {
    margin: 4px 0 6px;
    color: #f8fafc;
}

.sr-stats-access p {
    margin: 0;
    color: #94a3b8;
}

.sr-access-guest,
.sr-access-unverified {
    border-color: rgba(251, 191, 36, .30);
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.13), transparent 35%),
        rgba(15, 23, 42, .58);
}

.sr-stats-section {
    margin-top: 20px;
}

.sr-stats-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sr-stats-section-head h3 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 22px;
}

.sr-stats-section-head small {
    color: #64748b;
    font-weight: 800;
}

.sr-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sr-stat-card {
    position: relative;
    min-height: 142px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, .16);
    background:
        radial-gradient(circle at 15% 0%, rgba(34,197,94,.10), transparent 34%),
        rgba(15, 23, 42, .72);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.sr-stat-card.is-locked {
    filter: saturate(.78);
}

.sr-stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sr-stat-card span {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 900;
}

.sr-stat-card strong {
    display: block;
    margin-top: 10px;
    color: #f8fafc;
    font-size: 26px;
    line-height: 1.05;
}

.sr-stat-card p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.sr-lock-badge {
    padding: 5px 8px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(251, 191, 36, .12);
    border: 1px solid rgba(251, 191, 36, .25);
    font-size: 11px;
    font-weight: 1000;
}

.sr-stat-bar {
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, .86);
    border: 1px solid rgba(148, 163, 184, .12);
}

.sr-stat-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #a3e635);
}

.sr-locked-panel {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding: 20px;
    border-radius: 24px;
    border: 1px dashed rgba(251, 191, 36, .32);
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.12), transparent 35%),
        rgba(15, 23, 42, .56);
}

.sr-lock-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(251, 191, 36, .12);
    border: 1px solid rgba(251, 191, 36, .22);
    font-size: 24px;
}

.sr-locked-panel h3 {
    margin: 0 0 6px;
    color: #f8fafc;
}

.sr-locked-panel p {
    margin: 0 0 8px;
    color: #94a3b8;
}

.sr-locked-panel span {
    color: #fde68a;
    font-weight: 1000;
}

.sr-natural-activity {
    margin-top: 20px;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(34, 197, 94, .22);
    background:
        radial-gradient(circle at 100% 0%, rgba(34,197,94,.16), transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(59,130,246,.10), transparent 32%),
        rgba(15, 23, 42, .66);
}

.sr-natural-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.sr-natural-head h3 {
    margin: 4px 0 8px;
    color: #f8fafc;
    font-size: 24px;
}

.sr-natural-head p {
    margin: 0;
    color: #94a3b8;
}

.sr-natural-score {
    min-width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    border: 1px solid rgba(134,239,172,.28);
    background: rgba(2, 6, 23, .40);
}

.sr-natural-score strong {
    color: #bbf7d0;
    font-size: 30px;
}

.sr-natural-score span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
}

.sr-stats-warning {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, .46);
    border: 1px solid rgba(148, 163, 184, .14);
    line-height: 1.55;
}

@media (max-width: 980px) {
    .sr-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sr-stats-grid {
        grid-template-columns: 1fr;
    }

    .sr-stats-section-head,
    .sr-natural-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sr-natural-score {
        width: 104px;
        min-width: 104px;
        height: 104px;
    }
}

/* =========================================================
   LIVE STATS EFFECTS
========================================================= */

.sr-live-indicator {
    min-width: 112px;
    display: grid;
    justify-items: end;
    gap: 4px;
}

.sr-live-indicator span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
    animation: srLiveBeat 1.45s infinite;
}

.sr-live-indicator strong {
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 1000;
}

.sr-live-indicator small {
    color: #94a3b8;
    font-weight: 900;
}

.sr-live-card {
    overflow: hidden;
}

.sr-live-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(134,239,172,.12) 46%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}

.sr-live-pulse {
    border-color: rgba(134, 239, 172, .46) !important;
    box-shadow: 0 0 0 1px rgba(34,197,94,.18), 0 22px 55px rgba(34,197,94,.08) !important;
}

.sr-live-pulse::after {
    animation: srLiveSweep .75s ease-out;
}

.sr-live-online .sr-stats-access {
    border-color: rgba(34, 197, 94, .32);
}

.sr-live-offline .sr-live-indicator span {
    background: #fb7185;
    box-shadow: 0 0 0 0 rgba(251, 113, 133, .55);
}

@keyframes srLiveBeat {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
        transform: scale(.96);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
        transform: scale(1.06);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        transform: scale(.96);
    }
}

@keyframes srLiveSweep {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}
