.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.purchase-page .skip-link { transform: translateY(-220%); }
.purchase-page .skip-link:focus { transform: none; }

.purchase-page {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 60% 55% at 82% 14%, rgba(255, 113, 17, .2), transparent 68%),
    radial-gradient(ellipse 45% 40% at 4% 82%, rgba(174, 52, 9, .12), transparent 70%),
    linear-gradient(135deg, #0d0907 0%, #19100c 53%, #0b0908 100%);
}

.purchase-page::before { position: fixed; z-index: -1; inset: 0; content: ""; opacity: .2; background-image: radial-gradient(rgba(255, 205, 118, .4) .7px, transparent .8px); background-size: 20px 20px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.purchase-nav, .purchase-shell, .checkout-shell, .purchase-footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.purchase-nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.purchase-nav__back { display: inline-flex; align-items: center; gap: 8px; color: #e5bd8b; font-size: .88rem; font-weight: 900; text-decoration: none; }
.purchase-nav__back:hover, .purchase-nav__back:focus-visible, .purchase-footer a:hover, .purchase-footer a:focus-visible { color: var(--orange-light); outline: 2px solid var(--orange-light); outline-offset: 4px; }

.purchase-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .86fr); gap: clamp(40px, 7vw, 88px); align-items: start; padding: 68px 0 82px; }
.purchase-intro, .payment-panel, .checkout-form-card, .order-card { min-width: 0; }
.purchase-intro > h1, .checkout-form-card > h1 { margin: 16px 0 22px; max-width: 650px; color: var(--cream); font-size: clamp(3.2rem, 6vw, 5.3rem); line-height: .91; letter-spacing: -.075em; }
.purchase-intro > h1 em, .checkout-form-card > h1 em { color: var(--orange); font-style: normal; }
.purchase-intro > p:not(.section-kicker), .checkout-lead { max-width: 590px; margin: 0; color: #e0bd91; font-weight: 700; line-height: 1.65; }

.plan-switcher { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 32px 0 18px; padding: 6px; border: 1px solid rgba(255, 181, 79, .18); border-radius: 18px; background: rgba(255, 255, 255, .045); }
.plan-choice { position: relative; cursor: pointer; }
.plan-choice input { position: absolute; opacity: 0; pointer-events: none; }
.plan-choice > span { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; padding: 10px 14px; border: 1px solid transparent; border-radius: 13px; color: #cda980; transition: .2s ease; }
.plan-choice b { color: inherit; font-size: 1rem; }
.plan-choice small { font-weight: 800; }
.plan-choice input:checked + span { color: #251208; border-color: #ffb45b; background: linear-gradient(135deg, #ffd28f, #ff8a26); box-shadow: 0 8px 24px rgba(255, 106, 13, .22); }
.plan-choice input:focus-visible + span { outline: 3px solid var(--cream); outline-offset: 3px; }

.plan-perks { overflow: hidden; border: 1px solid rgba(255, 181, 79, .18); border-radius: 22px; background: rgba(20, 13, 9, .76); box-shadow: 0 24px 70px rgba(0, 0, 0, .2); }
.plan-perks__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid rgba(255, 181, 79, .14); background: linear-gradient(110deg, rgba(255, 129, 25, .14), transparent); }
.plan-perks__heading span { color: #cda980; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.plan-perks__heading h2 { margin: 2px 0 0; font-size: 1.35rem; }
.plan-perks__heading p { display: flex; align-items: baseline; gap: 5px; margin: 0; }
.plan-perks__heading p b { color: #ffbd72; font-size: 1.45rem; }
.plan-perks__heading p span { letter-spacing: 0; text-transform: none; }
.perk-list { margin: 0; }
.perk-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, auto); align-items: center; gap: 18px; padding: 11px 22px; border-bottom: 1px solid rgba(255, 255, 255, .055); }
.perk-list > div:last-child { border-bottom: 0; }
.perk-list dt { color: #dfc19b; font-size: .82rem; font-weight: 700; }
.perk-list code { color: #ffbd72; }
.perk-list dd { margin: 0; color: #fff0ce; font-size: .82rem; font-weight: 900; text-align: right; }

.payment-panel, .checkout-form-card, .order-card { border: 1px solid rgba(255, 181, 79, .2); border-radius: 26px; background: radial-gradient(circle at 90% 5%, rgba(255, 125, 25, .15), transparent 35%), linear-gradient(145deg, rgba(43, 25, 16, .96), rgba(17, 12, 9, .98)); box-shadow: 0 30px 80px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .06); }
.payment-panel { position: sticky; top: 28px; padding: 28px; }
.payment-panel__step { display: inline-flex; align-items: center; gap: 8px; color: #cda980; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.payment-panel__step span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #241107; background: var(--orange-light); }
.payment-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 0; }
.payment-panel__heading p { margin: 0 0 3px; color: #d3ad80; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.payment-panel__heading h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.035em; }
.secure-pill { display: inline-flex; gap: 6px; align-items: center; padding: 7px 9px; border: 1px solid rgba(123, 217, 141, .2); border-radius: 999px; color: #9be0a8; background: rgba(67, 160, 84, .08); font-size: .66rem; font-weight: 900; }
.secure-pill span { color: #52cf6d; font-size: .55rem; }

.method-list { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.method-choice { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) 70px; align-items: center; gap: 13px; min-height: 72px; padding: 12px 14px; overflow: hidden; cursor: pointer; border: 1px solid rgba(255, 255, 255, .085); border-radius: 15px; background: rgba(255, 255, 255, .035); transition: border-color .2s, background .2s, transform .2s; }
.method-choice:hover { transform: translateY(-1px); border-color: rgba(255, 179, 87, .34); background: rgba(255, 133, 31, .06); }
.method-choice input { position: absolute; opacity: 0; pointer-events: none; }
.method-choice__radio { width: 20px; height: 20px; border: 2px solid #78563b; border-radius: 50%; box-shadow: inset 0 0 0 4px #1b110c; transition: .2s; }
.method-choice input:checked ~ .method-choice__radio { border-color: #ff9b3b; background: #ff8a26; box-shadow: inset 0 0 0 4px #24130b; }
.method-choice:has(input:checked) { border-color: rgba(255, 153, 55, .65); background: linear-gradient(100deg, rgba(255, 129, 25, .13), rgba(255, 255, 255, .035)); box-shadow: inset 3px 0 #ff841f; }
.method-choice:has(input:focus-visible) { outline: 3px solid var(--cream); outline-offset: 3px; }
.method-choice__copy { display: grid; gap: 2px; }
.method-choice__copy b { color: #fff0ce; font-size: .91rem; }
.method-choice__copy small { color: #b99470; font-size: .7rem; font-weight: 700; }
.method-choice img { justify-self: end; width: 66px; max-height: 30px; object-fit: contain; filter: saturate(.9); }
.payment-panel__total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 14px; color: #d5b187; font-weight: 800; }
.payment-panel__total strong { color: var(--cream); font-size: 1.55rem; }
.purchase-button { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 13px 18px; border: 0; border-radius: 14px; color: #231008; background: linear-gradient(135deg, #ffbd64, #ff7317); box-shadow: 0 13px 28px rgba(203, 69, 5, .25); font: 900 .94rem Nunito, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.purchase-button:hover { transform: translateY(-2px); box-shadow: 0 17px 35px rgba(255, 111, 12, .36); }
.purchase-button:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.payment-panel__fineprint { margin: 12px 0 0; color: #a98464; font-size: .69rem; font-weight: 700; line-height: 1.5; text-align: center; }
.powered-by-stripe { margin: 13px 0 0; color: #94755d; font-size: .7rem; font-weight: 800; letter-spacing: .02em; text-align: center; }
.powered-by-stripe strong { margin-left: 3px; color: #c7b5ff; font-size: .84rem; letter-spacing: -.025em; }
.discord-purchase-note { margin: 20px 0 13px; padding: 12px 14px; border: 1px solid rgba(88, 101, 242, .28); border-radius: 13px; color: #d7dafa; background: rgba(88, 101, 242, .1); font-size: .75rem; font-weight: 800; line-height: 1.45; }

.checkout-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .72fr); gap: 26px; align-items: start; padding: 56px 0 96px; }
.checkout-form-card { padding: clamp(25px, 4vw, 42px); }
.checkout-form-card { animation: checkout-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.checkout-progress { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; }
.checkout-progress__step { display: inline-flex; align-items: center; gap: 7px; color: #80634d; font-size: .66rem; font-weight: 900; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; transition: color .35s ease; }
.checkout-progress__step span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255, 181, 79, .18); border-radius: 50%; color: #8b6a50; background: rgba(255, 255, 255, .035); transition: .35s ease; }
.checkout-progress__step.is-active, .checkout-progress__step.is-complete { color: #ffd092; }
.checkout-progress__step.is-active span, .checkout-progress__step.is-complete span { border-color: #ff9c3d; color: #241107; background: #ffad58; box-shadow: 0 0 0 5px rgba(255, 142, 47, .1); }
.checkout-progress > i { flex: 1; height: 1px; min-width: 12px; background: rgba(255, 181, 79, .18); }
.checkout-form-card > h1 { margin-top: 22px; font-size: clamp(3rem, 5.5vw, 4.7rem); }
.checkout-form { display: grid; gap: 18px; margin-top: 32px; }
.checkout-customer-fields { display: grid; gap: 18px; animation: checkout-step-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.discord-auth { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px; border: 1px solid rgba(88, 101, 242, .35); border-radius: 16px; background: rgba(88, 101, 242, .1); }
.discord-auth__mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: white; background: #5865f2; font-weight: 1000; }
.discord-auth span, .discord-account span { color: #a99cff; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.discord-auth h2 { margin: 2px 0 4px; color: var(--cream); font-size: 1rem; }
.discord-auth p { margin: 0; color: #b89c83; font-size: .74rem; line-height: 1.45; }
.discord-login-button { grid-column: 1 / -1; display: inline-flex; width: fit-content; max-width: 320px; min-height: 48px; align-items: center; justify-content: center; margin-top: 2px; padding: .5rem 1.4rem; border: 1px solid rgba(86, 98, 246, .25); border-radius: .5rem; gap: .75rem; color: #fff; background: #5662f6; font-size: .875rem; font-weight: 700; line-height: 1.25rem; text-align: center; text-decoration: none; text-transform: uppercase; transition: all .6s ease; }
.discord-login-button svg { width: 24px; height: 24px; flex: 0 0 24px; fill: currentColor; }
.discord-login-button:hover, .discord-login-button:focus-visible { transform: scale(1.02); background: #7785cc; box-shadow: 0 8px 24px rgba(86, 98, 246, .28); outline: 3px solid rgba(140, 150, 255, .3); outline-offset: 2px; }
.discord-login-button:active { transform: scale(.98); }
.discord-account { display: grid; gap: 2px; padding: 15px 16px; border: 1px solid rgba(88, 101, 242, .3); border-radius: 13px; background: rgba(88, 101, 242, .08); }
.discord-account strong { color: var(--cream); font-size: .94rem; }
.discord-account small { color: #9b8069; font-size: .7rem; }
[data-checkout-actions] { display: grid; gap: 18px; animation: checkout-step-in .55s .08s cubic-bezier(.2, .8, .2, 1) both; }
[hidden] { display: none !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.checkout-form label:not(.terms-check) { display: grid; gap: 8px; color: #e3c096; font-size: .76rem; font-weight: 900; }
.checkout-form input[type="email"], .checkout-form input[type="text"] { width: 100%; min-height: 51px; padding: 12px 14px; border: 1px solid rgba(255, 181, 79, .18); border-radius: 12px; outline: 0; color: var(--cream); background: rgba(7, 5, 4, .5); font: 800 .9rem Nunito, system-ui, sans-serif; }
.checkout-form input::placeholder { color: #745c48; }
.checkout-form input:focus { border-color: var(--orange-light); box-shadow: 0 0 0 3px rgba(255, 129, 25, .13); }
.field-help { margin: -10px 0 0; color: #98775b; font-size: .7rem; font-weight: 700; line-height: 1.5; }
.provider-card { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 16px; padding: 17px; border: 1px solid rgba(255, 181, 79, .16); border-radius: 16px; background: rgba(255, 133, 31, .055); }
.provider-card img { width: 68px; max-height: 34px; object-fit: contain; }
.provider-card span { color: #a98464; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.provider-card h2 { margin: 2px 0 3px; font-size: 1rem; }
.provider-card p { margin: 0; color: #c8a47d; font-size: .72rem; font-weight: 700; line-height: 1.45; }
.terms-check { display: grid; grid-template-columns: 19px 1fr; align-items: start; gap: 10px; color: #b99570; font-size: .72rem; font-weight: 700; line-height: 1.45; }
.terms-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--orange); }
.terms-check a, .order-card > a { color: #ffad5c; font-weight: 900; }
.purchase-button--submit { margin-top: 2px; }
.checkout-status { min-height: 0; margin: 0; color: #ffca87; font-size: .78rem; font-weight: 800; line-height: 1.5; text-align: center; }
.checkout-result { display: grid; width: min(620px, calc(100% - 40px)); min-height: 100svh; margin: auto; place-content: center; justify-items: start; gap: 18px; text-align: left; }
.checkout-result h1 { margin: 0; color: var(--cream); font-size: clamp(3rem, 10vw, 5.5rem); line-height: .95; letter-spacing: -.065em; }
.checkout-result p:not(.section-kicker) { margin: 0 0 8px; color: #d7b18a; font-weight: 700; line-height: 1.65; }
.checkout-result > a:last-child { color: #ffad5c; font-weight: 900; }

.order-card { position: sticky; top: 28px; padding: 26px; }
.order-card__top { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 181, 79, .15); }
.order-card__top img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(255, 99, 9, .15)); }
.order-card__top span { color: #a98464; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.order-card__top h2 { margin: 2px 0 0; font-size: 1.25rem; }
.order-card__line, .order-card__total { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0; color: #dcb98d; font-size: .84rem; font-weight: 800; }
.order-card__line > *, .order-card__total > * { min-width: 0; overflow-wrap: anywhere; }
.order-card__line b { color: #fff0ce; }
.order-card__line--muted { padding-top: 0; color: #96765b; }
.order-card__line--muted b { color: inherit; font-size: .73rem; }
.order-card__total { margin-top: 3px; border-top: 1px solid rgba(255, 181, 79, .15); color: #fff0ce; font-size: 1rem; }
.order-card__total b { color: #ffbd72; font-size: 1.45rem; }
.order-highlights { display: grid; gap: 10px; margin: 9px 0 24px; padding: 18px; list-style: none; border-radius: 15px; background: rgba(255, 255, 255, .035); }
.order-highlights li { position: relative; padding-left: 21px; color: #d2af85; font-size: .78rem; font-weight: 800; }
.order-highlights li::before { position: absolute; left: 0; content: "✓"; color: #ff9c3d; font-weight: 900; }
.order-card > a { display: block; font-size: .76rem; text-align: center; }

@keyframes checkout-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes checkout-step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .checkout-form-card, .checkout-customer-fields, [data-checkout-actions] { animation: none; }
  .discord-login-button, .checkout-progress__step, .checkout-progress__step span { transition: none; }
}

.purchase-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 38px; color: #8f6d52; font-size: .76rem; font-weight: 800; }
.purchase-footer nav { display: flex; gap: 20px; }
.purchase-footer a { color: #b48d69; text-decoration: none; }

@media (max-width: 900px) {
  .purchase-shell, .checkout-shell { grid-template-columns: 1fr; }
  .payment-panel, .order-card { position: static; }
  .purchase-shell { padding-top: 38px; }
  .order-card { order: -1; }
}

@media (max-width: 600px) {
  .purchase-nav, .purchase-shell, .checkout-shell, .purchase-footer { width: min(100% - 32px, 540px); }
  .purchase-nav { padding: 20px 0; }
  .purchase-nav__back { font-size: .76rem; }
  .purchase-shell, .checkout-shell { padding: 34px 0 64px; gap: 22px; }
  .purchase-intro > h1, .checkout-form-card > h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .checkout-form-card > h1 { overflow-wrap: anywhere; }
  .plan-choice > span { display: grid; gap: 0; }
  .plan-perks__heading { align-items: center; }
  .perk-list > div { grid-template-columns: minmax(0, 1fr) minmax(90px, 42%); padding-inline: 16px; }
  .payment-panel, .checkout-form-card, .order-card { padding: 21px; border-radius: 21px; }
  .payment-panel__heading { align-items: flex-start; }
  .secure-pill { margin-top: 2px; }
  .method-choice { grid-template-columns: 20px minmax(0, 1fr) 52px; padding-inline: 12px; }
  .method-choice img { width: 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .provider-card { grid-template-columns: 56px 1fr; }
  .provider-card img { width: 52px; }
  .purchase-footer { align-items: center; flex-direction: column; }
}
