﻿.payment-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0 64px;
    background: var(--bg);
    overflow: hidden;
}

.payment-page::before,
.payment-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.payment-page::before {
    width: min(420px, 92vw);
    height: min(420px, 92vw);
    top: -12%;
    right: -16%;
    background: radial-gradient(circle, rgba(123, 156, 255, 0.14), transparent 68%);
}

.payment-page::after {
    width: min(320px, 82vw);
    height: min(320px, 82vw);
    left: -10%;
    bottom: -18%;
    background: radial-gradient(circle, rgba(255, 220, 70, 0.1), transparent 72%);
}

.payment-card {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 32px;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(10, 10, 10, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}

.payment-card--narrow {
    max-width: 760px;
}

.payment-card--missing {
    min-height: 300px;
}

.payment-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.payment-logo.logo {
    margin: 0;
}

.payment-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(123, 156, 255, 0.18);
    border: 1px solid rgba(123, 156, 255, 0.22);
}

.standalone-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.standalone-lang-option {
    min-width: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.standalone-lang-option--active {
    background: rgba(123, 156, 255, 0.18);
    color: var(--text);
}

.standalone-lang-option:hover {
    color: var(--text);
}

.standalone-lang-option:focus,
.standalone-lang-option:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 156, 255, 0.14);
}

.payment-eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    max-width: 660px;
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.payment-title--wide {
    max-width: none;
}

.payment-subtitle {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-help-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(123, 156, 255, 0.08);
    border: 1px solid rgba(123, 156, 255, 0.18);
}

.payment-help-label {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-help-title {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-help-text {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-help-button {
    flex-shrink: 0;
    white-space: nowrap;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 28px;
}

.payment-form-shell {
    margin-top: 20px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-form-row {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.payment-input {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 8, 0.9);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    font-family: "Manrope", system-ui, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-input::placeholder {
    color: rgba(156, 163, 175, 0.85);
}

.payment-input:focus,
.payment-input:focus-visible {
    outline: none;
    border-color: rgba(123, 156, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(123, 156, 255, 0.12);
}

.payment-input--error {
    border-color: rgba(248, 113, 113, 0.55);
}

.payment-input--error:focus,
.payment-input--error:focus-visible {
    border-color: rgba(248, 113, 113, 0.65);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.payment-submit {
    min-width: 188px;
    padding: 16px 28px;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.payment-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

.payment-progress {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(123, 156, 255, 0.09);
    border: 1px solid rgba(123, 156, 255, 0.2);
}

.payment-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.payment-progress-label,
.payment-progress-duration {
    color: var(--text);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.payment-progress-duration {
    color: rgba(232, 233, 236, 0.72);
}

.payment-progress-track {
    position: relative;
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.28);
}

.payment-progress-fill {
    position: relative;
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7b9cff 0%, #8fc6ff 58%, #ffe08a 100%);
    box-shadow: 0 0 20px rgba(123, 156, 255, 0.28);
    animation: payment-activation-progress var(--payment-activation-duration, 33s) linear forwards;
}

.payment-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.75;
}

.payment-progress-caption {
    margin: 10px 0 0;
    color: var(--muted);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.payment-callout {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-callout--success {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.28);
}

.payment-callout--error {
    color: #fecaca;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.payment-form-message {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-form-message--error {
    color: #fca5a5;
}

.payment-form-message--success {
    color: #93c5fd;
}

.payment-instruction-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 24px;
    margin-top: 28px;
}

.payment-step-list {
    display: grid;
    gap: 14px;
}

.payment-step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-step-index {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(123, 156, 255, 0.16);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-step-title {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-step-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.payment-step-header .payment-step-title {
    margin-bottom: 0;
}

.payment-step-hint-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(123, 156, 255, 0.28);
    border-radius: 999px;
    background: rgba(123, 156, 255, 0.08);
    color: var(--accent);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.payment-step-hint-toggle:hover {
    background: rgba(123, 156, 255, 0.14);
    border-color: rgba(123, 156, 255, 0.4);
    transform: translateY(-1px);
}

.payment-step-hint-toggle:focus,
.payment-step-hint-toggle:focus-visible {
    outline: none;
    border-color: rgba(123, 156, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(123, 156, 255, 0.12);
}

.payment-step-text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-step-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.payment-step-link:hover {
    color: #a8c0ff;
}

.payment-step-hint {
    margin-top: 16px;
    padding: 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-step-hint-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.payment-step-hint-image {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
}

.payment-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 4, 6, 0.88);
    backdrop-filter: blur(8px);
}

.payment-image-lightbox-dialog {
    position: relative;
    width: min(1400px, 96vw);
    max-height: 92vh;
    padding: 18px;
    border-radius: 28px;
    background: rgba(12, 12, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.payment-image-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(22, 22, 24, 0.88);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

.payment-image-lightbox-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(92vh - 36px);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 18px;
}

.payment-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-visual::before,
.payment-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.payment-visual--suno {
    background: linear-gradient(180deg, rgba(255, 135, 91, 0.18), rgba(123, 156, 255, 0.08));
}

.payment-visual--suno::before {
    width: 180px;
    height: 180px;
    top: -50px;
    right: -50px;
    background: rgba(255, 193, 140, 0.22);
}

.payment-visual--suno::after {
    width: 120px;
    height: 120px;
    left: -30px;
    bottom: -30px;
    background: rgba(123, 156, 255, 0.18);
}

.payment-visual--venice {
    background: linear-gradient(180deg, rgba(66, 196, 184, 0.18), rgba(123, 156, 255, 0.08));
}

.payment-visual--venice::before {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
    background: rgba(77, 217, 203, 0.2);
}

.payment-visual--venice::after {
    width: 120px;
    height: 120px;
    left: -24px;
    bottom: -24px;
    background: rgba(138, 227, 218, 0.15);
}

.payment-visual--default {
    background: linear-gradient(180deg, rgba(123, 156, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.payment-visual--default::before {
    width: 170px;
    height: 170px;
    top: -50px;
    right: -50px;
    background: rgba(123, 156, 255, 0.22);
}

.payment-visual--default::after {
    width: 120px;
    height: 120px;
    left: -30px;
    bottom: -30px;
    background: rgba(255, 255, 255, 0.08);
}

.payment-visual-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.34);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-visual-title {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: var(--text);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    font-family: "Comfortaa", "Manrope", system-ui, sans-serif;
}

.payment-visual-text {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: rgba(232, 233, 236, 0.86);
    font-size: 14px;
    line-height: 1.65;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-visual-note {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.34);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.payment-actions .btn-primary,
.payment-actions .btn-ghost {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 15px;
    padding: 14px 28px;
}

.payment-important-note {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 220, 70, 0.08);
    border: 1px solid rgba(255, 220, 70, 0.18);
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-important-note strong {
    color: #ffe08a;
}

.payment-important-note--activation {
    position: relative;
    margin-top: 24px;
    padding-left: 22px;
    background: linear-gradient(135deg, rgba(255, 220, 70, 0.16), rgba(255, 154, 90, 0.12));
    border-color: rgba(255, 220, 70, 0.34);
    box-shadow: 0 16px 34px rgba(255, 196, 0, 0.10);
}

.payment-important-note--activation::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe08a 0%, #ff9a5a 100%);
}

.payment-important-note--activation strong {
    display: inline-block;
    margin-right: 4px;
    color: #fff0b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.payment-missing-state {
    margin-top: 20px;
}

.payment-ready-layout {
    display: block;
    width: 100%;
    margin-top: 20px;
}

.payment-ready-state {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.payment-ready-subtitle {
    max-width: none;
    color: var(--text);
}

.payment-ready-points {
    display: grid;
    gap: 12px;
}

.payment-ready-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    font-family: "Manrope", system-ui, sans-serif;
}

.payment-ready-check {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 999px;
    background: rgba(123, 156, 255, 0.16);
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

.payment-ready-review {
    margin-top: 4px;
    max-width: none;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.payment-ready-review strong {
    color: #86efac;
}

.payment-ready-visual {
    min-height: 100%;
}

.payment-ready-visual-check {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(123, 156, 255, 0.18);
    color: var(--text);
    font-size: 34px;
    font-weight: 800;
}

@keyframes payment-activation-progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

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

@media (max-width: 640px) {
    .payment-page {
        padding: 28px 0 40px;
    }

    .payment-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .payment-title {
        font-size: 30px;
    }

    .payment-subtitle,
    .payment-help-text,
    .payment-step-text {
        font-size: 14px;
    }

    .payment-help-card,
    .payment-form-shell {
        padding: 18px;
    }

    .payment-help-card,
    .payment-form-row {
        flex-direction: column;
    }

    .payment-progress-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-help-button,
    .payment-submit,
    .payment-actions .btn-primary,
    .payment-actions .btn-ghost {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .payment-image-lightbox {
        padding: 12px;
    }

    .payment-image-lightbox-dialog {
        width: 100%;
        padding: 12px;
        border-radius: 20px;
    }

    .payment-image-lightbox-image {
        max-height: calc(100vh - 48px);
        border-radius: 14px;
    }
}

.payment-page :focus:not(:focus-visible) {
    outline: none;
}
