:root {
  color-scheme: dark;
  --background: #08131e;
  --surface: #102337;
  --text: #edf5f8;
  --muted: #9aafbf;
  --line: #d8eaff16;
  --gold: #f1cd86;
  --blue: #a4d8ef;
  --success: #98dbc1;
  --warning: #f3cda1;
  --radius: 24px;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; color: var(--text); background: var(--background); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 12% 8%, #24496180 0, transparent 42%), radial-gradient(ellipse at 95% 70%, #233a524d 0, transparent 45%), linear-gradient(160deg, #0d1d2c, #06101a); }
.page-shell { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 20px; font-weight: 700; letter-spacing: .1em; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .18em; }
.brand-mark { width: 27px; height: 35px; background: linear-gradient(145deg, #fff0c4 0 36%, #d5ac60 37% 65%, #ad8241 66%); clip-path: polygon(50% 0, 100% 35%, 77% 78%, 50% 100%, 23% 78%, 0 35%); }
.secure-label { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.checkout { width: min(100%, 510px); margin: 34px auto 0; animation: appear .45s ease both; }
.sandbox-notice { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--gold); font-size: 12px; letter-spacing: .04em; }
.sandbox-notice > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px #f1cd8655; }
.payment-card { position: relative; padding: 38px; background: linear-gradient(150deg, #173149c9, #0d1d2ee8); border: 1px solid #b9d8f023; border-radius: var(--radius); box-shadow: 0 30px 90px #00000035, inset 0 1px 0 #ffffff08; backdrop-filter: blur(22px); }
.payment-card::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 1px; background: linear-gradient(90deg, transparent, #b8d9ef77, transparent); }
.eyebrow { margin-bottom: 10px; color: var(--gold); font-size: 11px; letter-spacing: .15em; }
h1 { font-size: 29px; font-weight: 600; letter-spacing: .02em; }
.intro { margin-top: 9px; color: var(--muted); font-size: 13px; }
.order-summary { margin-top: 30px; padding: 25px 0 0; border-top: 1px solid var(--line); }
.product { display: flex; align-items: center; gap: 20px; }
.gem { flex-shrink: 0; width: 49px; height: 44px; background: linear-gradient(135deg, #e4ffff 0 24%, #9ae7f6 25% 42%, #3e91c5 43% 65%, #70c2e2 66%); clip-path: polygon(22% 0, 78% 0, 100% 36%, 50% 100%, 0 36%); filter: drop-shadow(0 4px 10px #7cd5ff30); }
.product-label { color: var(--muted); font-size: 11px; }
.product h2 { margin-top: 1px; font-size: 30px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.product h2 small { color: var(--blue); font-size: 13px; font-weight: 400; }
.order-details { margin: 24px 0 0; }
.order-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.order-details dt { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.order-details dd { margin: 0; font-size: 11px; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.order-details .recipient { margin-bottom: 12px; }
.recipient dd { color: var(--text); }
.order-details .total { margin-top: 20px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.total dd { display: flex; align-items: baseline; gap: 7px; color: var(--text); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.4; }
.total .currency { font-size: 16px; color: var(--gold); font-weight: 500; }
.total small { margin-left: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.status-panel { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin: 26px 0 22px; border: 1px solid #a4d8ef16; background: #07142355; border-radius: 12px; }
.status-mark { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; border: 1px solid #a4d8ef45; border-top-color: var(--blue); border-radius: 50%; }
.status-panel h2 { font-size: 13px; font-weight: 600; color: var(--blue); }
.status-panel p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.actions { display: grid; gap: 10px; }
.button { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; width: 100%; padding: 13px 18px; border-radius: 11px; border: 1px solid transparent; font-size: 14px; font-weight: 600; transition: transform .18s, box-shadow .18s, background .18s, opacity .18s; }
.button-primary { color: #352814; background: linear-gradient(135deg, #f8dfac, #dfb76d); border-color: #ffebbc55; box-shadow: 0 6px 22px #d5a75a12; }
.button-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 9px 25px #d5a75a25; }
.button-primary:disabled { opacity: .38; }
.button-primary > span { font-size: 19px; font-weight: 400; }
.button-secondary { color: var(--blue); background: transparent; border-color: #a4d8ef30; }
.button-secondary:not(:disabled):hover { background: #a4d8ef0c; }
.button-secondary:disabled { opacity: .5; }
.action-note { margin-top: 16px; font-size: 11px; text-align: center; color: var(--muted); }
.journey { display: flex; justify-content: space-between; gap: 10px; padding: 0 8px; margin: 27px 0 0; list-style: none; color: #7d95a8; font-size: 11px; }
.journey li { display: flex; align-items: center; gap: 7px; }
.journey span { display: inline-flex; justify-content: center; align-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; font-size: 9px; }
.journey-order { color: var(--gold); }
.support-note { margin-top: 24px; text-align: center; font-size: 11px; line-height: 1.9; color: #7d95a8; }
.page-footer { padding: 38px 0 30px; text-align: center; color: #7890a2; }
.page-footer nav { display: flex; justify-content: center; gap: 25px; font-size: 11px; }
.page-footer a { transition: color .18s; }
.page-footer a:hover { color: var(--gold); }
.page-footer p { margin-top: 17px; font-size: 9px; letter-spacing: .12em; color: #5c7487; }
.noscript-notice { margin-top: 18px; color: var(--warning); font-size: 12px; }
.checkout[data-state="loading"] .status-mark, .checkout[data-state="creating"] .status-mark, .checkout[data-state="redirecting"] .status-mark, .checkout[data-state="confirming"] .status-mark { animation: spin .9s linear infinite; }
.checkout[data-state="paid"] .status-mark { border-color: var(--success); background: #98dbc122; }
.checkout[data-state="paid"] .status-panel h2 { color: var(--success); }
.checkout[data-state="paid"] .journey-payment { color: var(--success); }
.checkout[data-state="error"] .status-mark { border-color: var(--warning); }
.checkout[data-state="error"] .status-panel h2 { color: var(--warning); }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .page-shell { width: calc(100% - 32px); }
  .page-header { padding: 24px 0; }
  .brand { font-size: 18px; gap: 10px; }
  .brand small { font-size: 8px; }
  .secure-label { font-size: 10px; padding: 4px 9px; }
  .checkout { margin-top: 15px; }
  .payment-card { padding: 27px 22px; border-radius: 20px; }
  h1 { font-size: 26px; }
  .order-summary { margin-top: 25px; }
  .order-details > div { gap: 15px; }
  .status-panel { padding: 14px 12px; }
  .journey { padding: 0; gap: 5px; font-size: 10px; }
  .journey li { gap: 5px; }
  .page-footer nav { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
