/* ==========================================================================
   Stav registra – počty v indexe a v databáze, zloženie indexu
   ========================================================================== */

/* --------------------------------------------------------------------------
   Veľké čísla v hlavičke
   -------------------------------------------------------------------------- */

.stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    margin-top: clamp(32px, 5vw, 56px);
}

.stat-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--color-glass-1);
    box-shadow: inset 0 0 0 1px var(--color-glass-2);
}

.stat-tile__value {
    font-family: var(--font-mono);
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.stat-tile__label {
    color: var(--color-text-on-dark-muted-2);
    font-size: var(--fs-small);
}

.stat-tile--pending .stat-tile__value {
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats-hero__notices {
    max-width: 880px;
    margin-top: 20px;
}

/* Stav clustra: green / yellow / red */
.health {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--health-color, var(--color-text-muted));
}

.health::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--health-dot, var(--color-text-muted-3));
}

.health--green {
    --health-color: var(--color-success-strong);
    --health-dot: var(--color-success-on-light);
}

.health--yellow {
    --health-color: var(--color-warning-strong);
    --health-dot: var(--color-warning);
}

.health--red {
    --health-color: var(--color-error-strong);
    --health-dot: var(--color-error-on-light);
}

.tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--color-warning-bg);
    color: var(--color-warning-strong);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Zloženie – súhrnné počty a podiely
   -------------------------------------------------------------------------- */

.totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
}

.total {
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    box-shadow: var(--shadow-card);
}

.total__value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.total__label {
    margin-top: 4px;
    color: var(--color-text-muted-2);
    font-size: var(--fs-small);
}

.breakdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 48px;
}

.breakdowns--spaced {
    margin-top: 48px;
}

.breakdown__title {
    color: var(--color-text-muted-2);
    font-size: 15px;
    font-weight: 500;
}

.shares {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.share {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    align-items: baseline;
}

.share__name {
    font-size: 15px;
    line-height: 1.35;
}

.share__count {
    font-family: var(--font-mono);
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.share__percent {
    display: inline-block;
    min-width: 52px;
    color: var(--color-text-muted-3);
}

/* Pruh podielu – <meter>, šírka ide z atribútu value, nie z inline štýlu */
.share__meter {
    grid-column: 1 / -1;
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-meter-track);
    -webkit-appearance: none;
    appearance: none;
}

.share__meter::-webkit-meter-bar {
    height: 6px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-meter-track);
}

.share__meter::-webkit-meter-optimum-value {
    border-radius: var(--radius-pill);
    background: var(--gradient-dot);
}

.share__meter::-moz-meter-bar {
    border-radius: var(--radius-pill);
    background: var(--gradient-dot);
}
