.auth-home-shell {
    --home-gold: #f5c518;
    --home-gold-soft: rgba(245, 197, 24, 0.16);
    --home-border: rgba(245, 197, 24, 0.28);
    --home-card: rgba(18, 18, 20, 0.92);
    min-height: calc(100vh - 86px);
    padding: 22px 0 34px;
    color: #f8fafc;
    background:
        radial-gradient(circle at 82% 0%, rgba(245, 197, 24, 0.12), transparent 32%),
        linear-gradient(180deg, #080809 0%, #0d0e12 54%, #080809 100%);
}

.auth-home-container {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
}

.auth-home-heading {
    display: block;
    margin-bottom: 14px;
}

.auth-home-kicker,
.auth-home-card span,
.auth-home-section-title span,
.auth-home-upgrade span {
    display: block;
    margin-bottom: 5px;
    color: var(--home-gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-home-heading h1 {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.45vw, 2.15rem);
    font-weight: 900;
    line-height: 1.08;
}

.auth-home-heading p {
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.auth-home-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.auth-home-card,
.auth-home-upgrade,
.auth-home-events-card {
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(245, 197, 24, 0.08), rgba(255, 255, 255, 0.025) 44%, rgba(0, 0, 0, 0.12)),
        var(--home-card);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.auth-home-card {
    min-height: 104px;
    padding: 15px 16px;
}

.auth-home-tier-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.auth-home-card-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 10px;
    color: #111111;
    background: linear-gradient(135deg, #fff5bd 0%, var(--home-gold) 58%, #d99b0f 100%);
    box-shadow: 0 10px 24px rgba(245, 197, 24, 0.22);
}

.auth-home-card-icon i {
    font-size: 1.22rem;
}

.auth-home-tier-card.tier-bronze .auth-home-card-icon {
    background: linear-gradient(135deg, #f1b56c, #b86a1e);
}

.auth-home-tier-card.tier-silver .auth-home-card-icon {
    background: linear-gradient(135deg, #f8fbff, #9bb7d8);
}

.auth-home-tier-card.tier-gold .auth-home-card-icon {
    background: linear-gradient(135deg, #fff3ad, var(--home-gold));
}

.auth-home-tier-card.tier-platinum .auth-home-card-icon {
    background: linear-gradient(135deg, #ffffff, #8fe7ff);
}

.auth-home-tier-card.tier-diamond .auth-home-card-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #dff7ff, #7b61ff 70%);
}

.auth-home-card strong {
    display: block;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 900;
    line-height: 1.05;
}

.auth-home-card strong.is-positive {
    color: #4ade80;
}

.auth-home-card strong.is-negative {
    color: #fb7185;
}

.auth-home-card strong.is-neutral {
    color: #ffffff;
}

.auth-home-card p {
    margin: 7px 0 0;
    color: #d7dde8;
    font-size: 0.93rem;
    line-height: 1.35;
}

.auth-home-events {
    padding: 18px;
    border: 1px solid rgba(245, 197, 24, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(245, 197, 24, 0.075), rgba(255, 255, 255, 0.02)),
        #101114;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 34px rgba(0, 0, 0, 0.22);
}

.auth-home-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px;
}

.auth-home-section-title h2,
.auth-home-upgrade h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.05;
}

.auth-home-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(98px, 1fr));
    gap: 5px;
    padding: 4px;
    border: 1px solid rgba(245, 197, 24, 0.28);
    border-radius: 8px;
    background: rgba(8, 9, 12, 0.7);
}

.auth-home-tab {
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    color: #d8deea;
    background: transparent;
    font-weight: 900;
}

.auth-home-tab b {
    margin-left: 5px;
    font-size: 0.82rem;
}

.auth-home-tab.is-active {
    color: #111111;
    background: linear-gradient(135deg, #fff3ad 0%, var(--home-gold) 60%, #d99b0f 100%);
}

.auth-home-events-status {
    min-height: 30px;
    display: flex;
    align-items: center;
    color: #d7dde8;
    font-weight: 700;
}

.auth-home-events-status:empty {
    display: none;
}

.auth-home-events-status.is-error {
    color: #fca5a5;
}

.auth-home-events-grid {
    --event-card-height: 156px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: var(--event-card-height);
    gap: 12px;
    max-height: calc((var(--event-card-height) * 2) + 12px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.auth-home-events-grid::-webkit-scrollbar {
    width: 7px;
}

.auth-home-events-grid::-webkit-scrollbar-track {
    background: rgba(245, 197, 24, 0.08);
    border-radius: 999px;
}

.auth-home-events-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--home-gold);
}

.auth-home-events-card {
    min-width: 0;
    height: var(--event-card-height);
    padding: 13px 13px 15px;
    overflow: hidden;
}

.auth-home-event-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-home-event-league {
    min-width: 0;
    color: var(--home-gold);
    font-size: 0.78rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-home-event-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-weight: 900;
    white-space: nowrap;
}

.auth-home-event-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 66px;
}

.auth-home-event-team {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.auth-home-event-team:last-child {
    justify-content: end;
}

.auth-home-team-flag {
    display: grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    place-items: center;
    border-radius: 7px;
    color: #9fc9ff;
    background: rgba(37, 99, 235, 0.22);
}

.auth-home-event-team:last-child .auth-home-team-flag {
    color: #f7a7d2;
    background: rgba(190, 24, 93, 0.24);
}

.auth-home-event-name {
    min-width: 0;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.auth-home-versus {
    align-self: center;
    padding: 2px 8px;
    border-radius: 999px;
    color: #111111;
    background: var(--home-gold);
    font-size: 0.68rem;
    font-weight: 900;
}

.auth-home-event-meta {
    margin-top: 9px;
    padding-top: 8px;
    padding-bottom: 1px;
    border-top: 1px solid rgba(245, 197, 24, 0.2);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-home-upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 22px;
    border-color: rgba(245, 197, 24, 0.45);
}

.auth-home-upgrade p {
    margin: 9px 0 0;
    color: #cbd5e1;
}

@media (max-width: 991px) {
    .auth-home-metrics,
    .auth-home-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .auth-home-shell {
        padding: 20px 0 34px;
    }

    .auth-home-container {
        width: min(100% - 24px, 1240px);
    }

    .auth-home-heading h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .auth-home-metrics,
    .auth-home-events-grid {
        grid-template-columns: 1fr;
    }

    .auth-home-section-title,
    .auth-home-upgrade {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-home-tabs {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-home-events-grid {
        max-height: calc((var(--event-card-height) * 3) + 24px);
        overflow-y: auto;
        padding-right: 6px;
    }
}
