/* ═══════════════════════════════════════════════════════
   Payment system — Stripe-inspired theme
   ═══════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:           #f6f9fc;
    --bg-card:      #ffffff;
    --text:         #1a1f36;
    --text-dim:     #4f566b;
    --text-muted:   #8792a2;
    --border:       #e3e8ee;
    --border-dark:  #cbd2d9;
    --primary:      #635bff;
    --primary-hover:#5851eb;
    --primary-light:#f0effe;
    --green:        #00d924;
    --red:          #ff5757;
    --orange:       #ff9f1c;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-xs:    6px;

    --shadow-sm:    0 1px 3px rgba(50, 50, 93, .08), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow:       0 2px 5px rgba(50, 50, 93, .1), 0 1px 2px rgba(0, 0, 0, .07);
    --shadow-md:    0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .07);
    --shadow-lg:    0 15px 35px rgba(50, 50, 93, .1), 0 5px 15px rgba(0, 0, 0, .07);

    --transition:   .2s cubic-bezier(.4, 0, .2, 1);
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--primary-hover); }

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
}

/* ═════════════════ Layout ═════════════════ */

.pay-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pay-container {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px;
}

@media (max-width: 880px) {
    .pay-container {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 16px;
    }
}

/* ═════════════════ Header ═════════════════ */

.pay-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.pay-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.pay-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}
.pay-logo__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.pay-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 100px;
    font-variant-numeric: tabular-nums;
}
.pay-timer svg {
    flex-shrink: 0;
}
.pay-timer.is-warning {
    background: #fff3e6;
    color: var(--orange);
}
.pay-timer.is-danger {
    background: #ffe9e9;
    color: var(--red);
}

@media (max-width: 540px) {
    .pay-header__inner {
        padding: 12px 16px;
    }
    .pay-logo {
        font-size: 15px;
    }
    .pay-timer {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ═════════════════ Order summary (left column) ═════════════════ */

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    align-self: start;
}

.order-eyebrow {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.order-amount {
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}
.order-amount__currency {
    color: var(--text-dim);
    font-weight: 600;
    margin-left: 4px;
}

.order-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    font-size: 14px;
}
.order-row__label {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}
.order-row__value {
    color: var(--text);
    text-align: right;
    font-weight: 500;
    word-break: break-word;
    max-width: 70%;
}

/* ═════════════════ Form panel (right column) ═════════════════ */

.pay-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    animation: panel-in .3s cubic-bezier(.4, 0, .2, 1);
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pay-panel__header {
    margin-bottom: 24px;
}
.pay-panel__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color var(--transition);
}
.pay-panel__back:hover {
    color: var(--primary);
}
.pay-panel__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.pay-panel__subtitle {
    font-size: 14px;
    color: var(--text-dim);
}
.pay-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #d8e7ff;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #f7fbff 0%, #fffbe8 100%);
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}
.pay-notice__flag {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 540px) {
    .pay-panel,
    .order-card {
        padding: 20px;
        border-radius: var(--radius-sm);
    }
    .order-amount {
        font-size: 32px;
        margin-bottom: 18px;
    }
    .pay-panel__title {
        font-size: 19px;
    }
    .pay-notice {
        align-items: flex-start;
        padding: 11px 12px;
        font-size: 13px;
    }
    .pay-notice__flag {
        margin-top: 1px;
    }
}

/* ═════════════════ Payment methods list ═════════════════ */

.method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
}
.method:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
    transform: translateY(-1px);
}
.method__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.method__body {
    flex: 1;
    min-width: 0;
}
.method__title {
    font-weight: 600;
    margin-bottom: 2px;
}
.method__desc {
    font-size: 13px;
    color: var(--text-muted);
}
.method__arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition), color var(--transition);
}
.method:hover .method__arrow {
    transform: translateX(3px);
    color: var(--primary);
}

.method.is-locked {
    cursor: not-allowed;
    opacity: .55;
}
.method.is-locked:hover {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}
.method.is-locked .method__icon {
    background: #f5f5f7;
    color: var(--text-muted);
}
.method.is-locked .method__arrow {
    display: none;
}
.method__lock {
    flex-shrink: 0;
    color: var(--text-muted);
}

/* ═════════════════ Crypto payment ═════════════════ */

.crypto-section {
    margin-top: 6px;
}
.crypto-section__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.js-crypto-page.is-crypto-collapsed .crypto-grid {
    grid-template-columns: 1fr;
}
.crypto-option {
    min-height: 78px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    gap: 4px 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    text-align: left;
    transition: all var(--transition);
}
.crypto-option:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
    transform: translateY(-1px);
}
.crypto-option.is-selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
}
.js-crypto-page.is-crypto-waiting .crypto-option.is-selected {
    cursor: default;
    pointer-events: none;
}
.crypto-option.is-disabled {
    opacity: .52;
    cursor: not-allowed;
}
.crypto-option.is-disabled:hover {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}
.crypto-option.is-hidden,
.crypto-option[hidden] {
    display: none !important;
}
.crypto-option__icon {
    width: 38px;
    height: 38px;
    grid-row: 1 / span 2;
    border-radius: 50%;
    object-fit: contain;
}
.crypto-option__body {
    min-width: 0;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.crypto-option__name {
    display: block;
    line-height: 1.2;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
}
.crypto-option__meta {
    display: block;
    margin-top: 3px;
    line-height: 1.25;
    font-size: 12px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.crypto-option__status {
    grid-column: 2;
    font-size: 11px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.crypto-change {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: color var(--transition);
}
.crypto-change:hover {
    color: var(--primary-hover);
}
.crypto-change[hidden] {
    display: none;
}
.js-crypto-continue[hidden],
.js-crypto-other-method[hidden] {
    display: none !important;
}
.crypto-transfer {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fbfdff;
}
.crypto-transfer__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.crypto-transfer__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.crypto-transfer__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.crypto-transfer__network {
    font-size: 13px;
    color: var(--text-muted);
}
.crypto-field {
    margin-top: 14px;
}
.crypto-field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.crypto-field__value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.crypto-rate {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.crypto-address {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.crypto-address__code {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
    word-break: break-all;
}
.crypto-address__copy {
    min-width: 106px;
    height: auto;
}
.crypto-waiting {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
}
.crypto-waiting__pulse {
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(99, 91, 255, .42);
    animation: crypto-pulse 1.45s ease-out infinite;
    flex-shrink: 0;
}
.crypto-waiting__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.crypto-waiting__text {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 2px;
}
@keyframes crypto-pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 91, 255, .42); }
    80% { box-shadow: 0 0 0 12px rgba(99, 91, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0); }
}
@media (max-width: 540px) {
    .crypto-grid {
        grid-template-columns: 1fr;
    }
    .crypto-transfer {
        padding: 14px;
    }
    .crypto-address {
        flex-direction: column;
    }
    .crypto-address__copy {
        width: 100%;
        height: 44px;
    }
}

/* ═════════════════ Form inputs ═════════════════ */

.field {
    margin-bottom: 18px;
}
.field__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.field__row {
    display: flex;
    gap: 12px;
}
.field__row > * { flex: 1; }

.input {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: all var(--transition);
    font-variant-numeric: tabular-nums;
}
.input::placeholder { color: var(--text-muted); }
.input:hover  { border-color: var(--border-dark); }
.input:focus  {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .15);
}
.input.is-error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 87, 87, .12);
}
.input--center {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .25em;
    height: 64px;
}
.input--center::placeholder {
    letter-spacing: .25em;
    font-weight: 500;
    color: #d1d5db;
}

/* Native select wrapped to match .input look */
.select-wrap {
    position: relative;
}
.select-wrap select.input,
select.input {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238792a2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

/* Section divider — used inside forms (e.g. between card data and billing address) */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.field__error {
    display: none;
    color: var(--red);
    font-size: 13px;
    margin-top: 6px;
}
.field.is-error .field__error { display: block; }
.field.is-error .input { border-color: var(--red); }

/* Form-level error (above the submit button) */
.form-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff5f5;
    border: 1px solid #ffd5d5;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #c92a2a;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 14px;
    animation: form-error-in .25s cubic-bezier(.4, 0, .2, 1);
}
.form-error[hidden] { display: none; }
.form-error svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--red);
}
@keyframes form-error-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* PIN / SMS code blocks */
.code-input {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.code-input input {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    transition: all var(--transition);
    font-variant-numeric: tabular-nums;
}
.code-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .15);
}
.code-input input.is-filled {
    border-color: var(--primary);
}
@media (max-width: 480px) {
    .code-input { gap: 6px; }
    .code-input input {
        width: 44px;
        height: 56px;
        font-size: 20px;
    }
}

/* ═════════════════ Buttons ═════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(99, 91, 255, .3);
    color: #fff;
}
.btn--primary:active {
    transform: translateY(1px);
}
.btn--primary:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}
.btn--secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}
.btn--secondary:hover {
    border-color: var(--text-muted);
    color: var(--text);
}
.btn--ghost {
    background: transparent;
    color: var(--text-dim);
}
.btn--ghost:hover { color: var(--text); }
.btn--block { width: 100%; }

/* ═════════════════ Loader ═════════════════ */

.loader {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loader-spin .8s linear infinite;
}
.loader--lg { width: 48px; height: 48px; border-width: 4px; }

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

.loader-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 16px;
    text-align: center;
}
.loader-block__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-top: 4px;
}
.loader-block__text {
    font-size: 14px;
    color: var(--text-dim);
    max-width: 300px;
}
.loader-block__countdown {
    font-size: 13px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ═════════════════ Modal ═════════════════ */

.pay-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 54, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
    animation: overlay-in .25s ease;
}
.pay-modal-overlay.is-open { display: flex; }

@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pay-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    animation: modal-in .3s cubic-bezier(.4, 0, .2, 1);
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pay-modal__header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.pay-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pay-modal__icon--error {
    background: #ffe9e9;
    color: var(--red);
}
.pay-modal__icon--info {
    background: var(--primary-light);
    color: var(--primary);
}
.pay-modal__icon--success {
    background: #e6fff0;
    color: var(--green);
}
.pay-modal__close {
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    margin-left: auto;
    background: none;
}
.pay-modal__close:hover {
    background: #f5f5f7;
    color: var(--text);
}
.pay-modal__body {
    padding: 16px 24px 8px;
}
.pay-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.pay-modal__text {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}
.pay-modal__actions {
    padding: 20px 24px 24px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.pay-modal__actions .btn { min-width: 100px; }
@media (max-width: 480px) {
    .pay-modal__actions {
        flex-direction: column-reverse;
    }
    .pay-modal__actions .btn { width: 100%; }
}

/* ═════════════════ Footer ═════════════════ */

.pay-footer {
    text-align: center;
    padding: 24px 16px 32px;
    color: var(--text-muted);
    font-size: 12px;
}
.pay-footer__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.pay-footer__lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ═════════════════ Utility ═════════════════ */

.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }

.fade-enter {
    animation: fade-enter .3s cubic-bezier(.4, 0, .2, 1);
}
@keyframes fade-enter {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═════════════════ Reconnect overlay ═════════════════ */

.pay-reconnect-overlay {
    position: fixed;
    inset: 0;
    background: rgba(246, 249, 252, .94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
    animation: overlay-in .2s ease;
}
.pay-reconnect-overlay.is-active {
    display: flex;
}
.pay-reconnect-box {
    text-align: center;
    max-width: 360px;
}
.pay-reconnect-box .loader {
    margin: 0 auto 20px;
}
.pay-reconnect-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.pay-reconnect-text {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}
