:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08080c;
  color: #f5f5f7;
  --bg: #08080c;
  --surface: #16161e;
  --pink: #ff2e7e;
  --pink-soft: #ff9ec4;
  --text: #f5f5f7;
  --muted: #a19ba8;
  --line: rgba(255,255,255,.09);
  --danger: #ffb4b4;
  --ok: #ffb1d0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-weight: 300; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden, [hidden] { display: none !important; }

button:focus-visible, a:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 4px; }

.store-page { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 64px 0 30px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.eyebrow { margin: 0 0 17px; color: var(--pink-soft); font-size: 10px; letter-spacing: 3px; }
h1 { margin: 0 0 13px; font-size: 38px; font-weight: 500; letter-spacing: -1.4px; }
.lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.one-off { margin: 0 0 5px; color: #a49aa5; font-size: 11px; }
.one-off span { margin-right: 7px; color: var(--pink-soft); }

.packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.packages[data-count="1"] { grid-template-columns: minmax(280px, 360px); justify-content: center; }
.packages[data-count="2"] { grid-template-columns: repeat(2, minmax(280px, 360px)); justify-content: center; }
.package { position: relative; min-height: 292px; padding: 23px; overflow: hidden; color: inherit; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .18s, transform .18s, background .18s; }
.package:hover { border-color: #9c7888; transform: translateY(-3px); }
.package[aria-pressed="true"] { border-color: var(--pink); background: linear-gradient(145deg, rgba(255,46,126,.12), var(--surface) 78%); box-shadow: inset 0 0 0 1px rgba(255,46,126,.13); }
.package-top { display: flex; align-items: center; justify-content: space-between; }
.package-seq { color: #948996; font-size: 10px; letter-spacing: 2px; }
.package-radio { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #5c4f5b; border-radius: 50%; }
.package[aria-pressed="true"] .package-radio { border-color: var(--pink); background: var(--pink); }
.package[aria-pressed="true"] .package-radio::after { content: "✓"; color: white; font-size: 11px; }
.package-art { display: flex; height: 96px; align-items: center; gap: 7px; }
.package-gem { display: block; width: 33px; height: 47px; border-radius: 11px; background: linear-gradient(145deg,#ffb1d0,#ff2e7e); box-shadow: inset 1px 1px 0 rgba(255,222,237,.5),0 8px 24px rgba(255,46,126,.08); transform: rotate(-15deg); }
.package-gem:nth-child(2) { transform: rotate(0); }
.package-gem:nth-child(3) { background: linear-gradient(145deg,#ff91b9,#ce1b63); transform: rotate(15deg); }
.package-gem:nth-child(4) { transform: rotate(-10deg); }
.package[data-index="1"] .package-gem { width: 36px; height: 49px; }
.package[data-index="4"] .package-art { gap: 4px; }
.package[data-index="4"] .package-gem { width: 28px; height: 43px; }
.package-points { display: block; font-size: 43px; font-weight: 450; letter-spacing: -2px; line-height: 1.1; }
.package-points small { margin-left: 7px; color: #d5bdce; font-size: 12px; letter-spacing: 0; }
.package-description { display: block; margin: 8px 0 22px; color: var(--muted); font-size: 11px; }
.package-price { display: flex; justify-content: space-between; align-items: baseline; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.055); }
.package-price strong { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.package-price span { color: var(--muted); font-size: 10px; }

.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.checkout > div { display: grid; grid-template-rows: 24px 50px minmax(24px, auto); gap: 10px; }
.checkout .order-action { grid-template-rows: auto 24px 50px minmax(24px, auto); }
label { align-self: center; color: #d3c6d1; font-size: 12px; }
input { width: 100%; height: 50px; padding: 0 16px; color: #f0e4ed; background: #111118; border: 1px solid #3b3441; border-radius: 9px; outline: none; }
input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,126,.09); }
input::placeholder { color: #716977; }
.hint, .status { margin: 0; color: #8f8592; font-size: 11px; line-height: 1.7; }
.payment-channel { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; color: #9e929f; font-size: 11px; border: 1px solid rgba(255,46,126,.18); border-radius: 9px; background: rgba(255,46,126,.045); }
.payment-channel strong { color: #f4dbe5; font-weight: 500; text-align: right; }
.total { display: flex; align-self: center; justify-content: space-between; align-items: center; color: #afa0ae; font-size: 12px; }
.total strong { color: var(--text); font-size: 23px; font-weight: 500; }
.total strong[data-currency]:not([data-currency=""])::after { content: " " attr(data-currency); color: #958b99; font-size: 10px; font-weight: 400; }
.pay-button { position: relative; display: flex; width: 100%; height: 50px; align-items: center; justify-content: center; padding: 0 18px; color: white; font-size: 13px; font-weight: 600; border: 0; border-radius: 10px; background: var(--pink); box-shadow: 0 4px 18px rgba(255,46,126,.14); }
.pay-button:hover { background: #f9458b; }
.pay-button:disabled { opacity: .55; cursor: wait; }
.pay-button span { position: absolute; top: 50%; right: 18px; font-size: 19px; font-weight: 400; transform: translateY(-50%); }
.status[role="alert"] { color: var(--danger); }
footer { padding: 36px 0 12px; color: #847b88; text-align: center; font-size: 10px; line-height: 1.8; }
footer p { margin: 0 0 6px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
footer a { color: #847b88; text-underline-offset: 3px; }

.claim-page { width: min(540px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 30px; }
.claim-icon { display: grid; width: 56px; height: 56px; margin-bottom: 27px; place-items: center; color: var(--pink-soft); font-size: 26px; border: 1px solid rgba(255,46,126,.28); border-radius: 50%; background: rgba(255,46,126,.08); }
.claim-page h1 { font-size: 32px; letter-spacing: -.7px; }
.claim-card { margin: 28px 0 20px; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.claim-summary { display: grid; gap: 12px; }
.claim-row { display: flex; justify-content: space-between; gap: 18px; color: #b8acbe; font-size: 12px; }
.claim-row strong { min-width: 0; color: #f4edf2; font-size: 13px; font-weight: 400; text-align: right; overflow-wrap: anywhere; }
.claim-row:first-child strong { color: white; font-size: 27px; font-weight: 500; }
.claim-code-area { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.065); }
.code-label { margin: 0 0 10px; color: #a99aad; font-size: 11px; }
.claim-code { color: #ffb1d0; font: 400 19px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; overflow-wrap: anywhere; }
.claim-actions { display: grid; gap: 10px; margin-top: 19px; }
.claim-button { display: flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; color: white; border: 0; border-radius: 10px; background: var(--pink); text-decoration: none; }
.claim-button.secondary { color: var(--pink-soft); border: 1px solid rgba(255,46,126,.45); background: rgba(255,46,126,.04); }
.claim-button.ghost { color: #aaa0b2; border: 1px solid var(--line); background: transparent; }
.claim-button:disabled { opacity: .55; cursor: wait; }
.claim-help { margin: 18px 0 24px; color: #b4a7bb; font-size: 12px; line-height: 1.9; }
.state-pill { display: inline-flex; margin-bottom: 16px; color: #a99aad; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.state-pill.ok { color: var(--ok); }
.recover { margin-top: 24px; }
.recover h2 { margin: 0 0 10px; font-size: 20px; font-weight: 500; }
.recover label { display: block; margin: 16px 0 8px; }
.recover .claim-button { width: 100%; margin-top: 16px; }
.claim-footer { padding-top: 14px; }

@media (max-width: 650px) {
  .store-page { width: 100%; padding: 28px 20px 16px; }
  .intro { margin-bottom: 25px; }
  .eyebrow { margin-bottom: 12px; font-size: 9px; }
  h1 { margin-bottom: 9px; font-size: 29px; }
  .lead { font-size: 12px; }
  .one-off { display: none; }
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .packages[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
  .packages[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package { min-height: 218px; padding: 17px; border-radius: 14px; }
  .package-art { height: 67px; gap: 5px; }
  .package-gem { width: 23px; height: 34px; border-radius: 8px; }
  .package[data-index="1"] .package-gem { width: 26px; height: 37px; }
  .package[data-index="4"] .package-gem { width: 20px; height: 31px; }
  .package-points { font-size: 34px; }
  .package-points small { font-size: 11px; }
  .package-description { margin: 6px 0 14px; font-size: 10px; }
  .package-price { padding-top: 12px; }
  .package-price strong { font-size: 18px; }
  .checkout { grid-template-columns: 1fr; gap: 20px; margin-top: 25px; padding-top: 24px; }
  .checkout > div { grid-template-rows: 24px 50px minmax(24px, auto); }
  .pay-button { font-size: 14px; }
  footer { padding-top: 25px; }
  .claim-page { width: 100%; padding: 28px 20px 20px; }
  .claim-card { padding: 22px; }
  .claim-code { font-size: 18px; }
  .claim-page h1 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) { .package { transition: none; } }
