/* ==========================================================================
   Steam topup page — redesign 2026
   Sits on the site's dark body (#1e252d); cards are white like the rest of
   elfmoney.net. Gold (#FFD307) = Elfmoney, Steam-blue = Steam signal.
   Monospace display for figures/pipeline (the page's job is automation).
   Verdana body for consistency with elfmoney.net. Prefix .st- isolates styles.
   ========================================================================== */

.st-section {
    --st-surface: #ffffff;
    --st-surface-2: #f7f7f7;
    --st-border: #e5e5e5;
    --st-border-strong: #ccc;
    --st-gold: #FFD307;
    --st-gold-deep: #E8B100;
    --st-steam: #1F67AF;
    --st-err: #B10000;
    --st-ok: #1c8b1c;
    --st-text: #1E252D;
    --st-text-muted: #555;
    --st-text-dim: #999;
    --st-sans: 'Roboto', 'Helvetica', Arial, sans-serif;

    padding: 36px 0 56px;
    font-family: var(--st-sans);
}

/* Hero --------------------------------------------------------------------*/
.st-hero {
    margin-bottom: 28px;
}

.st-hero__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.st-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(33, 174, 33, .4);
    border-radius: 999px;
    background: rgba(33, 174, 33, .12);
    color: #21ae21;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.st-hero__badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #21ae21;
    animation: st-pulse 1.6s ease-in-out infinite;
}

@keyframes st-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.st-hero__title {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: #ffffff;
    font-family: 'Roboto', 'Helvetica', Arial, sans-serif;
    font-size: 34px;
    line-height: 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.st-hero__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--st-gold);
    border-radius: 2px;
}

.st-hero__subtitle {
    max-width: 620px;
    margin: 0;
    padding-left: 16px;
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, .7);
}

@media (max-width: 768px) {
    .st-hero__title {
        font-size: 26px;
        line-height: 32px;
    }
    .st-hero__subtitle {
        font-size: 13px;
        line-height: 20px;
    }
}

/* Layout grid -------------------------------------------------------------*/
.st-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.st-grid__main {
    flex: 2 1 520px;
    min-width: 0;
}

.st-grid__side {
    flex: 1 1 300px;
    min-width: 0;
}

@media (max-width: 992px) {
    .st-grid__main,
    .st-grid__side {
        flex: 1 1 100%;
    }
}

/* Card shell --------------------------------------------------------------*/
.st-card {
    background-color: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 6px;
    padding: 26px;
}

.st-card + .st-card {
    margin-top: 18px;
}

.st-card__title {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--st-border);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--st-text);
}

@media (max-width: 768px) {
    .st-card {
        padding: 20px;
    }
}

/* Form --------------------------------------------------------------------*/
.st-field {
    margin-bottom: 20px;
}

.st-field__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--st-text);
}

.st-field__label-hint {
    font-family: var(--st-sans);
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--st-text-dim);
}

.st-field__required {
    color: var(--st-gold);
}

.st-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.st-input-wrap__icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--st-text-dim);
    pointer-events: none;
}

.st-input-wrap__badge {
    position: absolute;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--st-surface-2);
    font-family: var(--st-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--st-text-dim);
}

.st-input-wrap__badge.is-ok {
    background: rgba(111, 183, 255, .15);
    color: var(--st-steam);
}

.st-input-wrap__badge.is-err {
    background: rgba(255, 107, 107, .12);
    color: var(--st-err);
}

.st-input {
    width: 100%;
    height: 50px;
    padding: 10px 16px;
    border: 1px solid var(--st-border);
    border-radius: 5px;
    background-color: var(--st-surface-2);
    color: var(--st-text);
    font-family: var(--st-sans);
    font-size: 15px;
    line-height: 20px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.st-input::placeholder {
    color: var(--st-text-dim);
}

.st-input--with-icon {
    padding-left: 44px;
}

.st-input--with-badge {
    padding-right: 110px;
    font-family: var(--st-sans);
}

.st-input:focus {
    outline: none;
    border-color: var(--st-gold);
    box-shadow: 0 0 0 2px rgba(255, 211, 7, .2);
    background-color: var(--st-surface);
}

.st-input.is-ok {
    border-color: var(--st-steam);
}

.st-input.is-ok:focus {
    box-shadow: 0 0 0 2px rgba(111, 183, 255, .22);
}

.st-input.is-err {
    border-color: var(--st-err);
}

.st-input.is-err:focus {
    box-shadow: 0 0 0 2px rgba(255, 107, 107, .22);
}

.st-field__help {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 17px;
    color: var(--st-text-muted);
}

.st-field__help-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--st-gold);
    margin-top: 1px;
}

.st-field__help.is-err {
    color: var(--st-err);
}

.st-field__help.is-err .st-field__help-icon {
    color: var(--st-err);
}

.st-field__help b {
    color: var(--st-text);
}

.st-error-box {
    display: none;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 5px;
    background-color: rgba(255, 107, 107, .08);
    border: 1px solid rgba(255, 107, 107, .3);
    color: var(--st-err);
    font-size: 13px;
    line-height: 18px;
}

.st-error-box.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.st-error-box__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

/* Buttons -----------------------------------------------------------------*/
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to bottom, #ffca30 0%, #ffa000 100%);
    color: #1E252D;
    font-family: var(--st-sans);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
    box-shadow: 0 2px 1px rgba(0, 0, 0, .25), inset 0 -3px 0 rgba(70, 70, 70, .35);
    cursor: pointer;
    transition: filter .2s, transform .05s;
    text-decoration: none;
}

.st-btn:hover {
    filter: brightness(1.05);
    text-decoration: none;
}

.st-btn:active {
    transform: translateY(1px);
}

.st-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.st-btn:focus-visible {
    outline: 2px solid var(--st-gold);
    outline-offset: 3px;
}

.st-btn--ghost {
    background: var(--st-surface-2);
    border: 1px solid var(--st-border-strong);
    box-shadow: none;
    text-shadow: none;
    color: var(--st-text);
}

.st-agreement {
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    line-height: 16px;
    color: var(--st-text-dim);
}

.st-agreement a {
    color: var(--st-steam);
}

/* Calculator / receipt ----------------------------------------------------*/
.st-calc__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--st-border);
    font-size: 13px;
}

.st-calc__row:last-of-type {
    border-bottom: none;
}

.st-calc__row--total {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 2px solid var(--st-gold);
    border-bottom: none;
}

.st-calc__label {
    color: var(--st-text-muted);
    font-weight: 300;
}

.st-calc__value {
    color: var(--st-text);
    font-family: var(--st-sans);
    font-weight: 700;
    white-space: nowrap;
    font-size: 13px;
}

.st-calc__value--gold {
    color: #c8960a;
    font-size: 18px;
}

.st-calc__value--truncate {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Why list ----------------------------------------------------------------*/
.st-why__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.st-why__list li {
    position: relative;
    padding: 8px 0 8px 30px;
    font-size: 13px;
    line-height: 19px;
    color: var(--st-text-muted);
    border-bottom: 1px dashed var(--st-border);
}

.st-why__list li:last-child {
    border-bottom: none;
}

.st-why__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD307'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2L5.8 11.4l1.4-1.4 3.4 3.4 6-6 1.4 1.4-7.4 7.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* FAQ ---------------------------------------------------------------------*/
#faq {
    margin-top: 36px;
}

.st-faq__title {
    position: relative;
    margin: 0 0 22px;
    padding-left: 16px;
    font-family: 'Roboto', 'Helvetica', Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.st-faq__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--st-gold);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .st-faq__title {
        font-size: 17px;
    }
}

.st-faq__item {
    margin-bottom: 8px;
    border: 1px solid var(--st-border);
    border-radius: 5px;
    background-color: var(--st-surface);
    transition: border-color .2s, background-color .2s;
}

.st-faq__item.is-active {
    border-color: var(--st-border-strong);
    background-color: var(--st-surface-2);
}

.st-faq__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--st-text);
    user-select: none;
}

.st-faq__chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--st-gold);
    transition: transform .3s;
}

.st-faq__item.is-active .st-faq__chevron {
    transform: rotate(180deg);
}

.st-faq__content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height .3s ease-out, padding .3s ease;
}

.st-faq__item.is-active .st-faq__content {
    max-height: 600px;
    padding-bottom: 18px;
}

.st-faq__content-inner {
    font-size: 13px;
    line-height: 21px;
    color: var(--st-text-muted);
}

.st-faq__content-inner p {
    margin: 0 0 10px;
}

.st-faq__content-inner p:last-child {
    margin-bottom: 0;
}

.st-faq__content-inner b {
    color: var(--st-text);
}

.st-faq__content-inner ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.st-faq__content-inner li {
    margin-bottom: 6px;
}

.st-faq__content-inner a {
    color: var(--st-steam);
}

/* Status pages ------------------------------------------------------------*/
.st-status-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 0 60px;
}

.st-status {
    max-width: 560px;
    width: 100%;
    text-align: center;
    background-color: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 6px;
    padding: 40px 35px;
}

@media (max-width: 575px) {
    .st-status {
        padding: 28px 20px;
    }
}

.st-status__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    border-radius: 50%;
}

.st-status__icon svg {
    width: 44px;
    height: 44px;
}

.st-status__icon--ok {
    background-color: rgba(79, 192, 79, .15);
    color: var(--st-ok);
}

.st-status__icon--err {
    background-color: rgba(255, 107, 107, .12);
    color: var(--st-err);
}

.st-status__icon--wait {
    background-color: rgba(255, 211, 7, .15);
    color: var(--st-gold);
}

.st-status__icon--spin svg {
    animation: st-spin 1.2s linear infinite;
}

@keyframes st-spin {
    to { transform: rotate(360deg); }
}

.st-status__tag {
    display: block;
    margin-bottom: 8px;
    font-family: var(--st-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.st-status__tag--ok { color: var(--st-ok); }
.st-status__tag--err { color: var(--st-err); }
.st-status__tag--wait { color: var(--st-gold); }

.st-status__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--st-text);
}

.st-status__text {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 22px;
    color: var(--st-text-muted);
}

.st-status__text b,
.st-status__text strong {
    color: var(--st-text);
}

.st-status__text a {
    color: var(--st-steam);
}

.st-status__details {
    margin: 0 0 24px;
    padding: 20px 22px;
    background-color: var(--st-surface-2);
    border: 1px solid var(--st-border);
    border-radius: 5px;
    text-align: left;
}

.st-status__details-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--st-border);
    font-size: 13px;
}

.st-status__details-row:last-child {
    border-bottom: none;
}

.st-status__details-label {
    color: var(--st-text-muted);
}

.st-status__details-value {
    color: var(--st-text);
    font-family: var(--st-sans);
    font-weight: 700;
}

.st-status__details-value--mono {
    font-family: var(--st-sans);
}

.st-status__details-value--gold {
    color: #c8960a;
}

.st-status__details-value--ok {
    color: var(--st-ok);
}

.st-status__details-value--err {
    color: var(--st-err);
}

.st-status__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.st-status__support {
    margin-top: 4px;
    font-size: 12px;
    color: var(--st-text-dim);
}

.st-status__support a {
    color: var(--st-steam);
}

/* Mock payment page -------------------------------------------------------*/
.st-mock-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 0 60px;
}

.st-mock {
    max-width: 460px;
    width: 100%;
    text-align: center;
}

.st-mock__tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    background-color: rgba(255, 211, 7, .15);
    color: var(--st-gold);
    border: 1px solid rgba(255, 211, 7, .3);
    border-radius: 999px;
    font-family: var(--st-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.st-mock__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--st-text);
}

.st-mock__subtitle {
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--st-text-muted);
}

.st-mock__btn--ok {
    background: linear-gradient(to bottom, #58c858 0%, #2a8a2a 100%);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.st-mock__btn--err {
    background: linear-gradient(to bottom, #e85e5e 0%, #a52a2a 100%);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.st-mock__note {
    margin-top: 16px;
    font-size: 11px;
    color: var(--st-text-dim);
}

/* Reduced motion ----------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
    .st-hero__badge::before,
    .st-status__icon--spin svg {
        animation: none;
    }
    .st-faq__chevron,
    .st-faq__content,
    .st-input {
        transition: none;
    }
}
