:root {
  --pay-bg: #09090b;
  --pay-surface: rgba(17, 17, 22, .88);
  --pay-surface-strong: #15151b;
  --pay-border: rgba(255, 255, 255, .1);
  --pay-muted: #a1a1aa;
  --pay-faint: #71717a;
  --pay-ink: #fafafa;
  --pay-indigo: #818cf8;
  --pay-violet: #a78bfa;
  --pay-green: #34d399;
  --pay-orange: #fbbf24;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 7% -5%, rgba(99, 102, 241, .24), transparent 31rem),
    radial-gradient(circle at 96% 25%, rgba(139, 92, 246, .16), transparent 28rem),
    var(--pay-bg);
  color: var(--pay-muted);
  font-family: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; }
.pay-shell { width: min(100% - 32px, 1040px); margin: auto; padding: 28px 0 60px; }
.pay-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 30px; place-items: center; border: 1px solid rgba(129, 140, 248, .25); border-radius: 10px; background: rgba(99, 102, 241, .1); }
.brand-mark svg { width: 26px; height: 20px; }
.brand-name { margin: 0; color: var(--pay-ink); font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.brand-subtitle { margin: 0; color: var(--pay-faint); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.step-progress { display: inline-flex; align-items: center; gap: 10px; color: var(--pay-faint); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.step-progress-item.is-active { color: var(--pay-violet); }
.step-progress-line { width: 30px; height: 1px; background: var(--pay-border); }
.pay-step { display: none; }
.pay-step.is-active { display: block; animation: step-in .35s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
.hero { max-width: 690px; margin-bottom: 35px; }
.eyebrow { margin: 0 0 10px; color: var(--pay-indigo); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; color: var(--pay-ink); font-size: clamp(37px, 7vw, 64px); font-weight: 900; letter-spacing: -.065em; line-height: .98; }
.hero-copy { max-width: 580px; margin: 19px 0 0; color: var(--pay-muted); font-size: 16px; line-height: 1.65; }
.hero-copy.compact { margin-top: 12px; font-size: 14px; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 16px; }
.section-title { margin: 0; color: var(--pay-ink); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.subscription-check-action { margin: 22px 0 14px; }
.subscription-check-action .secondary-button { width: 100%; max-width: 540px; }
.section-hint { margin: 0; color: var(--pay-faint); font-size: 12px; }
.package-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.package-card { position: relative; min-height: 192px; padding: 20px; border: 1px solid var(--pay-border); border-radius: 18px; background: linear-gradient(150deg, rgba(24, 24, 32, .93), rgba(15, 15, 20, .8)); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.package-card:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, .48); box-shadow: 0 18px 40px rgba(0, 0, 0, .23); }
.package-card.is-selected { border-color: var(--pay-indigo); background: linear-gradient(150deg, rgba(49, 46, 129, .44), rgba(24, 24, 32, .92)); box-shadow: 0 0 0 1px rgba(129, 140, 248, .18), 0 18px 45px rgba(67, 56, 202, .14); }
.package-card.is-selected::after { position: absolute; top: 14px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--pay-green); box-shadow: 0 0 0 5px rgba(52, 211, 153, .13); content: ""; }
.package-name { margin: 0; color: var(--pay-ink); font-size: 15px; font-weight: 800; }
.package-validity { margin: 7px 0 0; color: var(--pay-muted); font-size: 12px; }
.package-price { margin: 30px 0 0; color: #fff; font-size: 25px; font-weight: 900; letter-spacing: -.05em; }
.package-currency { margin-left: 3px; color: var(--pay-violet); font-size: 11px; letter-spacing: .03em; }
.package-action { display: block; margin-top: 7px; color: var(--pay-indigo); font-size: 11px; font-weight: 800; }
.package-note { display: block; margin-top: 9px; color: var(--pay-orange); font-size: 10px; font-weight: 700; line-height: 1.35; }
.package-state { min-height: 120px; display: grid; place-items: center; border: 1px dashed var(--pay-border); border-radius: 18px; color: var(--pay-faint); font-size: 13px; text-align: center; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 16px; align-items: start; margin-top: 44px; }
.panel { border: 1px solid var(--pay-border); border-radius: 20px; background: var(--pay-surface); box-shadow: 0 24px 70px rgba(0, 0, 0, .16); }
.panel-body { padding: 25px; }
.form-header { margin-bottom: 22px; }
.form-title { margin: 0; color: var(--pay-ink); font-size: 20px; font-weight: 850; letter-spacing: -.035em; }
.form-copy { margin: 7px 0 0; color: var(--pay-muted); font-size: 13px; }
.field { margin-top: 15px; }
.field-label { display: block; margin-bottom: 7px; color: var(--pay-body, #d4d4d8); font-size: 12px; font-weight: 800; }
.field input { width: 100%; padding: 12px 13px; border: 1px solid var(--pay-border); border-radius: 11px; outline: none; background: rgba(9, 9, 11, .58); color: var(--pay-ink); font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input::placeholder { color: #52525b; }
.field input:focus { border-color: var(--pay-indigo); box-shadow: 0 0 0 3px rgba(99, 102, 241, .13); }
.field-hint { display: block; margin-top: 5px; color: var(--pay-faint); font-size: 10px; }
.field-error { display: block; min-height: 17px; margin-top: 4px; color: #fca5a5; font-size: 11px; }
.primary-button { width: 100%; margin-top: 8px; padding: 13px 16px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; cursor: pointer; font-size: 14px; font-weight: 850; box-shadow: 0 12px 24px rgba(79, 70, 229, .2); transition: opacity .15s ease, transform .15s ease; }
.primary-button:hover { transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .55; transform: none; }
.secondary-button, .ghost-button { border: 1px solid var(--pay-border); border-radius: 11px; background: rgba(24, 24, 31, .66); color: var(--pay-muted); cursor: pointer; font-size: 13px; font-weight: 800; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.secondary-button { padding: 13px 16px; }
.secondary-button:hover, .ghost-button:hover { border-color: rgba(129, 140, 248, .45); background: rgba(99, 102, 241, .1); color: var(--pay-ink); }
.package-actions { display: flex; align-items: center; gap: 11px; max-width: 540px; margin-top: 20px; }
.package-continue { flex: 1; margin-top: 0; }
.details-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 34px; }
.ghost-button { padding: 8px 11px; font-size: 12px; }
.step-label { color: var(--pay-faint); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.details-hero { margin-bottom: 27px; }
.safe-note { display: flex; gap: 9px; margin: 17px 0 0; color: var(--pay-faint); font-size: 11px; line-height: 1.5; }
.safe-icon { color: var(--pay-green); }
.selection-panel { min-height: 100%; }
.selected-empty { color: var(--pay-faint); font-size: 13px; line-height: 1.6; }
.selected-package { display: none; }
.selected-package.is-visible { display: block; }
.selected-kicker { margin: 0 0 9px; color: var(--pay-indigo); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.selected-name { margin: 0; color: var(--pay-ink); font-size: 21px; font-weight: 850; letter-spacing: -.04em; }
.selected-price { margin: 7px 0 22px; color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -.05em; }
.selected-price span { color: var(--pay-violet); font-size: 12px; letter-spacing: .04em; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--pay-border); color: var(--pay-muted); font-size: 12px; }
.summary-row strong { color: var(--pay-body, #d4d4d8); text-align: right; }
.notice { display: none; margin-top: 16px; padding: 13px 14px; border-radius: 12px; font-size: 12px; line-height: 1.55; }
.notice.is-visible { display: block; }
.notice.warning { border: 1px solid rgba(251, 191, 36, .22); background: rgba(245, 158, 11, .08); color: #fcd34d; }
.notice.error { border: 1px solid rgba(248, 113, 113, .22); background: rgba(239, 68, 68, .08); color: #fca5a5; }
.notice.success { border: 1px solid rgba(52, 211, 153, .2); background: rgba(16, 185, 129, .08); color: #6ee7b7; }
.notice ul { margin: 7px 0 0; padding-left: 18px; }
.mango-result-serial { margin: 5px 0 0; color: var(--pay-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.mango-result-list { display: grid; gap: 8px; margin-top: 12px; }
.mango-result-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid rgba(52, 211, 153, .18); border-radius: 10px; background: rgba(16, 185, 129, .06); }
.mango-result-row strong, .mango-result-row span { display: block; }
.mango-result-row strong { color: var(--pay-ink); font-size: 12px; }
.mango-result-row span { margin-top: 3px; color: var(--pay-muted); font-size: 11px; }
.mango-result-row b { flex: 0 0 auto; color: #6ee7b7; font-size: 11px; }
.mango-result-empty { margin: 10px 0 0; color: var(--pay-muted); }
.status-panel { display: none; margin-top: 18px; }
.status-panel.is-visible { display: block; }
.status-title { margin: 0; color: var(--pay-ink); font-size: 16px; font-weight: 800; }
.status-copy { margin: 7px 0 0; color: var(--pay-muted); font-size: 13px; line-height: 1.6; }
.receipt-link-button { display: inline-flex; margin-top: 14px; padding: 10px 13px; border: 1px solid rgba(129, 140, 248, .35); border-radius: 9px; color: #c4b5fd; font-size: 12px; font-weight: 800; text-decoration: none; }
.footer-note { margin-top: 31px; color: var(--pay-faint); font-size: 11px; text-align: center; }
@media (max-width: 880px) { .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .checkout-layout { grid-template-columns: 1fr; } .selection-panel { order: -1; } }
@media (max-width: 560px) { .pay-shell { width: min(100% - 20px, 1040px); padding-top: 20px; } .pay-nav { margin-bottom: 40px; } .step-progress { gap: 6px; font-size: 8px; } .step-progress-line { width: 16px; } .hero-copy { font-size: 14px; } .package-grid { grid-template-columns: 1fr 1fr; gap: 9px; } .package-card { min-height: 172px; padding: 15px; } .package-price { margin-top: 22px; font-size: 21px; } .package-actions { display: grid; grid-template-columns: 1fr; } .panel-body { padding: 19px; } }
