/* Dedicated balance / top-up page */

.page-topup {
    background-color: var(--onyx, #0a0a0a);
}

.topup-page {
    padding: 28px 0 56px;
}

.topup-page__head {
    margin-bottom: 28px;
}

.topup-page__title {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.topup-page__title .lime {
    color: var(--acid, #b8e85a);
}

.topup-page__sub {
    margin: 0;
    color: var(--txt-mut, #9a938b);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 52ch;
}

.topup-success-banner {
    display: none;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(184, 232, 90, 0.45);
    background: rgba(184, 232, 90, 0.08);
    color: #d8f0a8;
    font-size: 0.9rem;
    line-height: 1.45;
}

.topup-success-banner.is-visible {
    display: block;
}

.topup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.topup-balance-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    padding: 22px 20px;
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1px solid rgba(184, 232, 90, 0.28);
    background:
        radial-gradient(120% 90% at 0% -20%, rgba(184, 232, 90, 0.12), transparent 55%),
        rgba(255, 255, 255, 0.02);
}

.topup-balance-card__label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 4px;
}

.topup-balance-card__value {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    color: var(--acid, #b8e85a);
    line-height: 1;
}

.topup-balance-card__meta {
    font-size: 0.86rem;
    color: var(--txt-mut, #9a938b);
    margin: 6px 0 0;
}

.topup-balance-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topup-section-title {
    margin: 0 0 12px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
}

.topup-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
}

.topup-pkg {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    min-height: 108px;
}

.topup-pkg:hover {
    border-color: rgba(184, 232, 90, 0.35);
    background: rgba(184, 232, 90, 0.04);
}

.topup-pkg.is-selected {
    border-color: rgba(184, 232, 90, 0.65);
    background: rgba(184, 232, 90, 0.08);
    box-shadow: 0 0 0 1px rgba(184, 232, 90, 0.2);
}

.topup-pkg.is-promo {
    border-color: rgba(255, 154, 60, 0.45);
}

.topup-pkg.is-promo.is-selected {
    border-color: rgba(255, 154, 60, 0.75);
    box-shadow: 0 0 0 1px rgba(255, 154, 60, 0.25);
}

.topup-pkg__promo {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ff9a3c;
}

.topup-pkg__credits {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
}

.topup-pkg__badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
    color: #39ff14;
    background: rgba(57, 255, 20, 0.18);
    border: 1px solid rgba(57, 255, 20, 0.45);
}

.topup-pkg__price {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--acid, #b8e85a);
}

.topup-pkg.is-promo .topup-pkg__price {
    color: #39ff14;
}

.topup-checkout {
    position: sticky;
    top: 76px;
    padding: 20px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 12, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.topup-gateway-tabs,
.topup-method-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.topup-chip {
    flex: 1 1 calc(50% - 4px);
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: #ccc;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.topup-chip:hover {
    border-color: rgba(184, 232, 90, 0.35);
}

.topup-chip.is-active {
    border-color: rgba(184, 232, 90, 0.65);
    color: var(--acid, #b8e85a);
    background: rgba(184, 232, 90, 0.08);
}

.topup-chip--platega.is-active {
    border-color: rgba(90, 160, 255, 0.55);
    color: #8ec5ff;
    background: rgba(90, 160, 255, 0.08);
}

.topup-chip__fee {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
}

.topup-chip__fee--zero {
    color: #7cff7c;
}

.topup-chip__fee--plus {
    color: #ffb86b;
}

.topup-chip__fee--discount {
    color: #7cff7c;
}

.topup-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 16px;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.topup-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: #aaa;
}

.topup-summary__row strong {
    color: #eee;
    font-weight: 700;
}

.topup-summary__row--total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    color: #eee;
}

.topup-summary__row--total strong {
    color: var(--acid, #b8e85a);
    font-size: 1.15rem;
}

.topup-pay-btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 800;
}

.topup-pay-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.topup-hint {
    margin: 12px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #777;
    text-align: center;
}

.topup-fee-legend {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.topup-fee-legend li {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.4;
}

.topup-fee-legend b {
    color: #ccc;
    font-weight: 700;
}

.topup-empty {
    padding: 24px 16px;
    text-align: center;
    color: #888;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .topup-layout {
        grid-template-columns: 1fr;
    }

    .topup-checkout {
        position: static;
    }
}

@media (max-width: 720px) {
    .topup-page {
        padding: 18px 0 40px;
    }

    .topup-balance-card {
        padding: 18px 16px;
    }

    .topup-packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topup-chip {
        flex: 1 1 100%;
    }
}
