:root {
    --bg: #0b0d12;
    --surface: #121722;
    --surface-2: #191f2d;
    --line: rgba(255, 255, 255, 0.10);
    --text: #f6f7fb;
    --muted: #9ea7b8;
    --accent: #7c5cff;
    --accent-2: #9a85ff;
    --success: #58d68d;
    --danger: #ff7676;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 15% 0%, rgba(124, 92, 255, 0.18), transparent 34rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 40px;
}

.hero {
    max-width: 760px;
    margin-bottom: 48px;
}

.compact-hero {
    margin-bottom: 28px;
}

.brand {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 8px;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.muted {
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

section[aria-labelledby="plans-title"] {
    width: 100%;
    max-width: 738px;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center;
    gap: 18px;
}

.product-card,
.checkout-card,
.result-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent), var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-card {
    min-height: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 160ms ease, border-color 160ms ease;
}

    .product-card:hover {
        transform: translateY(-3px);
        border-color: rgba(154, 133, 255, 0.5);
    }

    .product-card.is-selected {
        border-color: var(--accent-2);
        outline: 2px solid rgba(124, 92, 255, 0.15);
    }

.product-kicker,
.product-duration {
    color: var(--muted);
    font-size: 0.88rem;
}

.product-description {
    color: var(--muted);
    line-height: 1.6;
    min-height: 3.2em;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.product-price,
.selected-price {
    font-size: 1.35rem;
    font-weight: 850;
}

.select-button,
.primary-button,
.copy-button {
    border: 0;
    border-radius: 14px;
    font-weight: 800;
}

.select-button,
.copy-button {
    padding: 11px 16px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
}

    .select-button:hover,
    .copy-button:hover {
        border-color: rgba(154, 133, 255, 0.55);
    }

.checkout-card,
.result-card {
    margin-top: 28px;
    padding: 28px;
}

.checkout-card {
    width: 100%;
    max-width: 738px;
    margin-left: auto;
    margin-right: auto;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #0d1119;
    color: var(--text);
    outline: none;
}

    .field input:focus {
        border-color: var(--accent-2);
        box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
    }

.message {
    min-height: 24px;
    margin: 18px 0 8px;
    color: var(--danger);
}

.refund-notice {
    margin: 6px 0 16px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.primary-button {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}

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

.footer {
    width: 100%;
    max-width: 738px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.result-shell {
    max-width: 820px;
}

.state-block {
    text-align: center;
    padding: 24px 8px;
}

.spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent-2);
    animation: spin 0.8s linear infinite;
}

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

.code-box {
    margin: 24px auto;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0d1119;
}

    .code-box code {
        flex: 1;
        min-width: 0;
        overflow-wrap: anywhere;
        color: var(--success);
        font-size: clamp(1rem, 4vw, 1.45rem);
        font-weight: 900;
        letter-spacing: 0.04em;
    }

.notice {
    color: var(--muted);
    line-height: 1.6;
}

[hidden] {
    display: none !important;
}

@media (max-width: 680px) {
    .shell {
        padding-top: 34px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .checkout-card, .result-card {
        padding: 20px;
    }

    .code-box {
        flex-direction: column;
    }

    .copy-button {
        width: 100%;
    }
}

/* ===== Front-end-only branding extension ===== */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    letter-spacing: .04em;
}

.brand-logo {
    display: block;
    width: auto;
    height: 38px;
    max-width: 180px;
    object-fit: contain;
}

.site-header {
    width: 100%;
    max-width: 738px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.support-link,
.secondary-link {
    color: inherit;
    text-underline-offset: 4px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.hero-media img {
    display: block;
    max-width: min(420px, 38vw);
    max-height: 260px;
    object-fit: contain;
}

.email-only-field {
    max-width: 720px;
}

.field small {
    display: block;
    margin-top: 8px;
    opacity: .72;
    line-height: 1.45;
}

.selected-heading {
    align-items: end;
}

.result-shell {
    max-width: 900px;
}

.result-card {
    border: 1px solid var(--border, #293241);
    border-radius: 22px;
    padding: clamp(24px, 5vw, 48px);
    background: var(--panel, #151b26);
}

.result-state {
    text-align: center;
}

.result-product {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0;
}

.activation-box {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

    .activation-box code {
        display: block;
        width: 100%;
        padding: 18px;
        border-radius: 14px;
        overflow-wrap: anywhere;
        font-size: clamp(18px, 4vw, 28px);
        font-weight: 800;
        background: rgba(0,0,0,.22);
    }

.spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255,255,255,.18);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: gameriya-spin .8s linear infinite;
}

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

@media (max-width: 720px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-media img {
        max-width: 100%;
    }

    .result-product {
        flex-direction: column;
    }
}

/* Final route/layout normalization */
.site-header .brand {
    margin-bottom: 0;
}

.hero {
    width: 100%;
    max-width: 738px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}


/* ===== Optional visual assets (front-end only) ===== */
body {
    background-color: var(--bg);
    background-image: linear-gradient(rgba(91, 7, 99, 0), rgba(11, 13, 18, 0)), radial-gradient(circle at 15% 0%, rgba(124, 92, 255, 0.18), transparent 34rem), var(--gameriya-page-background, none);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: cover, auto, cover;
    background-position: center, 15% 0%, center;
    background-attachment: fixed, fixed, fixed;
}

.product-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

    .product-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-card:has(.product-media:not([hidden])) {
    padding-top: 16px;
}

@media (max-width: 680px) {
    body {
        background-attachment: scroll, scroll, scroll;
    }
}
