:root {
    --bg-a: #160021;
    --bg-b: #24115f;
    --bg-c: #8f35ff;
    --bg-d: #b64dff;
    --card: rgba(255, 255, 255, 0.11);
    --card-border: rgba(255, 255, 255, 0.08);
    --field: rgba(27, 18, 62, 0.72);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --muted-strong: rgba(255, 255, 255, 0.86);
    --accent: #b84cff;
    --accent-2: #8b2cff;
    --accent-3: #d755f4;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-a);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 39% 21%, rgba(209, 108, 255, 0.2), transparent 3.5rem),
        radial-gradient(circle at 51% 24%, rgba(170, 65, 255, 0.18), transparent 4rem),
        linear-gradient(132deg, var(--bg-a) 0%, #23063b 23%, var(--bg-b) 48%, var(--bg-c) 79%, var(--bg-d) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.08), transparent 4.5rem),
        radial-gradient(circle at 76% 66%, rgba(167, 87, 255, 0.34), transparent 22rem),
        linear-gradient(115deg, rgba(0, 0, 0, 0.28), transparent 55%);
}

.checkout-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 162px 24px 40px;
}

.checkout-wrap {
    width: min(100%, 374px);
}

.page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 34px;
    text-align: center;
}

.brand-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(19, 7, 49, 0.74);
    box-shadow:
        0 0 0 14px rgba(255, 255, 255, 0.035),
        0 12px 38px rgba(126, 40, 244, 0.46);
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(142, 44, 255, 0.38));
}

.success-orbit {
    background: rgba(34, 7, 61, 0.8);
}

.page-hero h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 800;
    color: var(--accent-3);
}

.page-hero p {
    margin: 12px 0 0;
    color: var(--muted-strong);
    font-size: 16px;
    line-height: 1.45;
}

.trust-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 700;
}

.trust-icon {
    width: 14px;
    height: 16px;
    border-radius: 8px 8px 10px 10px;
    background: rgba(255, 255, 255, 0.66);
    clip-path: polygon(50% 0, 94% 18%, 82% 78%, 50% 100%, 18% 78%, 6% 18%);
}

.checkout-panel {
    width: 100%;
    min-height: 236px;
    padding: 28px;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: var(--card);
    box-shadow:
        0 22px 60px rgba(23, 0, 49, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.amount-form {
    margin: 0;
}

label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 800;
}

label span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 18px;
    line-height: 1;
}

.amount-input,
.copy-box {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: var(--field);
    box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.12);
}

input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 16px;
    font-weight: 650;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.primary-button,
.copy-box button {
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: linear-gradient(100deg, #8b36ff 0%, #a73cff 52%, #c34cf0 100%);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    box-shadow:
        0 18px 40px rgba(142, 50, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.button-icon {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 3px;
    clip-path: polygon(72% 0, 100% 28%, 32% 96%, 0 100%, 4% 68%);
}

.is-hidden {
    display: none !important;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 8px;
    color: #fff2fb;
    background: rgba(255, 81, 143, 0.2);
    font-size: 14px;
}

.payment-view {
    text-align: center;
}

.payment-view h2 {
    margin: 4px 0 8px;
    color: var(--accent-3);
    font-size: 30px;
    line-height: 1.15;
}

.panel-copy {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 18px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.qr-card {
    display: grid;
    place-items: center;
    width: 100%;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
}

.qr-card img {
    width: min(100%, 230px);
    height: auto;
}

.copy-box {
    gap: 10px;
    padding-right: 8px;
}

.copy-box input {
    font-size: 16px;
    font-weight: 600;
}

.copy-box button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

.status-pill {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(199, 81, 244, 0.28);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(37, 17, 70, 0.46);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.success-panel {
    min-height: 150px;
}

.link-button {
    text-decoration: none;
}

@media (max-width: 640px) {
    .checkout-shell {
        padding: 96px 20px 32px;
    }

    .checkout-wrap {
        width: min(100%, 374px);
    }

    .page-hero h1 {
        font-size: 29px;
    }

    .page-hero p {
        font-size: 15px;
    }
}
