/* ================================================= */
/* STEAM WALLET TOP-UP PAGE                          */
/* ================================================= */

.steam-page {
    padding-top: 24px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.steam-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ── Header ── */
.steam-header {
    margin-bottom: 28px;
}

.steam-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.steam-brand-icon {
    font-size: 28px;
    color: #66c0f4;
}

.steam-brand-text {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #66c0f4;
}

.steam-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #66c0f4, #c7d5e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steam-subtitle {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
    font-weight: 600;
}

/* ── Form Fields ── */
.steam-field {
    margin-bottom: 24px;
}

.steam-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-2);
    margin-bottom: 10px;
}

.steam-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
    box-sizing: border-box;
    outline: none;
}

.steam-input::placeholder {
    color: var(--text-3);
    font-weight: 600;
}

.steam-input:focus {
    background: rgba(255,255,255,0.07);
    border-color: #66c0f4;
    box-shadow: 0 0 0 3px rgba(102,192,244,0.15);
}

/* ── Selector Buttons (Region + Payment Method) ── */
.steam-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.steam-selector--pay {
    grid-template-columns: repeat(2, 1fr);
}

.steam-sel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    padding: 0 14px;
}

.steam-sel-btn:hover {
    background: rgba(102,192,244,0.08);
    border-color: rgba(102,192,244,0.3);
}

.steam-sel-btn.active {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border-color: #66c0f4;
    color: #66c0f4;
    box-shadow: 0 4px 16px rgba(102,192,244,0.2);
}

.steam-sel-flag {
    font-size: 16px;
    line-height: 1;
}

.steam-sel-icon {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: inherit;
}

.steam-sel-sbp-icon {
    height: 18px;
    width: auto;
    filter: grayscale(0.3);
}

.steam-sel-btn.active .steam-sel-sbp-icon {
    filter: none;
}

.steam-sel-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--text-3);
    margin-left: auto;
}

.steam-sel-btn.active .steam-sel-badge {
    background: rgba(102,192,244,0.2);
    color: #66c0f4;
}

/* ── Custom Amount ── */
.steam-custom-wrap {
    position: relative;
}

.steam-custom-wrap .steam-input {
    padding-right: 40px;
}

.steam-custom-currency {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-weight: 700;
    font-size: 15px;
    pointer-events: none;
}

/* ── Balance Calculator ── */
.steam-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.15);
    color: #34d399;
    font-size: 13px;
    font-weight: 600;
}

.steam-balance-icon {
    font-size: 15px;
    opacity: 0.8;
}

.steam-balance strong {
    font-weight: 800;
    margin-left: auto;
}

/* ── Range Info ── */
.steam-range-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
}

/* ── Sidebar Checkout ── */
.steam-sidebar {
    position: sticky;
    top: 80px;
}

.steam-checkout {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.steam-co-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.steam-co-icon {
    font-size: 36px;
    color: #66c0f4;
}

.steam-co-store {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.steam-co-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    margin-top: 2px;
}

.steam-co-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steam-co-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.steam-co-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.steam-co-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.steam-co-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.steam-co-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 24px;
}

.steam-co-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: #66c0f4;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.steam-co-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #2a475e, #1b2838);
    box-shadow: 0 6px 24px rgba(102,192,244,0.25);
    transform: translateY(-1px);
}

.steam-co-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.steam-co-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.steam-co-note {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    margin-top: 16px;
}

/* ── Error ── */
.steam-error {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f87171;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* ================================================= */
/* RESPONSIVE                                         */
/* ================================================= */
@media (max-width: 900px) {
    .steam-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steam-sidebar {
        position: static;
    }
}

@media (max-width: 500px) {
    .steam-page {
        padding-top: 70px;
    }

    .steam-layout {
        padding: 0 16px;
    }

    .steam-selector {
        grid-template-columns: 1fr;
    }

    .steam-selector--pay {
        grid-template-columns: repeat(2, 1fr);
    }

    .steam-checkout {
        padding: 20px;
        border-radius: 20px;
    }
}
