.stats-hero,
.stats-section {
    color: var(--text-color);
}

.stats-hero {
    padding: 4rem 0 2.5rem;
    background: var(--bg-color);
}

.stats-hero-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 992px) {
    .stats-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
    }
}

.stats-hero-copy,
.stats-hero-panel,
.stats-panel {
    border: 1px solid rgba(12, 193, 185, 0.16);
    background: var(--theme-white);
    box-shadow: 0 18px 45px rgba(15, 18, 34, 0.08);
}

[data-theme="dark"] .stats-hero-copy,
[data-theme="dark"] .stats-hero-panel,
[data-theme="dark"] .stats-panel {
    background: rgba(26, 28, 34, 0.94);
    border-color: rgba(12, 193, 185, 0.24);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.stats-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 18px;
}

.stats-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(12, 193, 185, 0.13);
    color: #068b85;
    font-size: 0.82rem;
    font-weight: 700;
}

.stats-hero h1 {
    margin: 1.1rem 0 0.85rem;
    color: var(--theme-black);
    font-size: clamp(2.15rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0;
}

[data-theme="dark"] .stats-hero h1,
[data-theme="dark"] .stats-section-title h2,
[data-theme="dark"] .stats-panel-heading h3,
[data-theme="dark"] .stats-rank-list strong,
[data-theme="dark"] .stats-kpi strong,
[data-theme="dark"] .stats-card-list strong,
[data-theme="dark"] .stats-chip-row strong {
    color: #f5f7f8;
}

.stats-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(31, 35, 41, 0.76);
    font-size: 1.04rem;
    line-height: 1.7;
}

[data-theme="dark"] .stats-hero p,
[data-theme="dark"] .stats-panel-heading span,
[data-theme="dark"] .stats-rank-list small,
[data-theme="dark"] .stats-kpi span,
[data-theme="dark"] .stats-card-list span,
[data-theme="dark"] .stats-empty,
[data-theme="dark"] .stats-privacy-note span {
    color: rgba(239, 244, 246, 0.68);
}

.stats-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.stats-hero-actions .btn {
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
}

.stats-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 18px;
}

.stats-privacy-note {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(12, 193, 185, 0.1);
}

.stats-privacy-note i {
    color: #068b85;
    font-size: 1.35rem;
}

.stats-privacy-note strong,
.stats-privacy-note span {
    display: block;
}

.stats-privacy-note strong {
    margin-bottom: 0.2rem;
    color: var(--theme-black);
}

.stats-privacy-note span {
    line-height: 1.55;
}

.stats-cache-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    background: rgba(79, 124, 255, 0.09);
    color: rgba(31, 35, 41, 0.72);
    font-size: 0.86rem;
    line-height: 1.45;
}

.stats-cache-note i {
    color: #4f7cff;
    font-size: 1rem;
}

[data-theme="dark"] .stats-cache-note {
    color: rgba(239, 244, 246, 0.7);
    background: rgba(79, 124, 255, 0.14);
}

.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    flex: 1;
}

.stats-kpi {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(12, 193, 185, 0.08);
}

.stats-kpi span {
    color: rgba(31, 35, 41, 0.66);
    font-size: 0.88rem;
}

.stats-kpi strong {
    color: var(--theme-black);
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    line-height: 1;
}

.stats-section {
    padding: 3.25rem 0;
    background: var(--bg-color);
}

.stats-section-muted {
    background: rgba(12, 193, 185, 0.045);
}

[data-theme="dark"] .stats-section-muted {
    background: rgba(12, 193, 185, 0.07);
}

.stats-section-title {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.stats-section-title h2 {
    margin: 0 0 0.55rem;
    color: var(--theme-black);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0;
}

.stats-section-title p {
    margin: 0;
    color: rgba(31, 35, 41, 0.68);
    line-height: 1.65;
}

.stats-panel {
    position: relative;
    padding: 1.25rem;
    border-radius: 14px;
}

.stats-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stats-panel-heading.compact {
    margin-bottom: 0.6rem;
}

.stats-panel-heading h3 {
    margin: 0;
    color: var(--theme-black);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.stats-panel-heading span {
    flex: 0 0 auto;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(12, 193, 185, 0.12);
    color: #068b85;
    font-size: 0.76rem;
    font-weight: 700;
}

.stats-chart {
    min-height: 320px;
}

.stats-chart-balance {
    min-height: 250px;
}

.stats-chart-sm {
    min-height: 260px;
}

.stats-sub-chart {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.stats-axis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-axis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stats-axis-chart {
    min-width: 0;
    padding: 0.9rem;
    border-radius: 10px;
    background: rgba(12, 193, 185, 0.055);
}

.stats-axis-chart h4 {
    margin: 0 0 0.4rem;
    color: var(--theme-black);
    font-size: 0.98rem;
    font-weight: 800;
}

[data-theme="dark"] .stats-axis-chart h4 {
    color: #f5f7f8;
}

.stats-rank-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stats-rank-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 64px;
    padding: 0.7rem;
    border-radius: 10px;
    background: rgba(12, 193, 185, 0.07);
}

.stats-rank-list.compact li {
    min-height: 56px;
}

.stats-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0cc1b9;
    color: #ffffff;
    font-weight: 800;
}

.stats-rank-list strong,
.stats-rank-list small {
    display: block;
}

.stats-rank-list strong {
    color: var(--theme-black);
    font-size: 1rem;
}

.stats-rank-list small {
    color: rgba(31, 35, 41, 0.62);
    font-size: 0.82rem;
    line-height: 1.35;
}

.stats-rank-list em,
.stats-chip-row em,
.stats-card-list em {
    color: #068b85;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.stats-chip-list,
.stats-card-list {
    display: grid;
    gap: 0.75rem;
}

.stats-chip-row,
.stats-card-list article {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: 10px;
    background: rgba(12, 193, 185, 0.07);
}

.stats-chip-row {
    grid-template-columns: minmax(70px, 0.75fr) minmax(0, 1fr) auto;
    align-items: center;
}

.stats-chip-row span,
.stats-card-list span {
    color: rgba(31, 35, 41, 0.64);
    font-size: 0.86rem;
}

.stats-chip-row strong,
.stats-card-list strong {
    color: var(--theme-black);
}

.stats-card-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stats-card-list-four {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats-card-list-one-line {
    grid-template-columns: 1fr;
}

.stats-card-list article {
    min-height: 118px;
    align-content: space-between;
}

.stats-card-list-one-line article {
    grid-template-columns: minmax(48px, 0.42fr) minmax(0, 1fr) auto;
    align-items: center;
    min-height: 58px;
}

.stats-card-list-one-line strong {
    overflow-wrap: anywhere;
}

.stats-grid-four {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .stats-grid-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stats-empty {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(31, 35, 41, 0.62);
    text-align: center;
}

@media (max-width: 575.98px) {
    .stats-kpi-grid,
    .stats-chip-row {
        grid-template-columns: 1fr;
    }

    .stats-rank-list li {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .stats-rank-list em {
        grid-column: 2;
    }
}
