:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: #111620;
  --panel-soft: #171d29;
  --line: #2a3241;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #98a2b3;
  --accent: #b9ff5a;
  --accent-dark: #7fca21;
  --danger: #ff6b76;
  --warning: #ffc65c;
  --success: #5cf2b2;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 5%, rgba(185, 255, 90, 0.10), transparent 27rem),
    radial-gradient(circle at 91% 39%, rgba(85, 106, 255, 0.09), transparent 30rem),
    var(--bg);
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.brand-mark svg path:last-child { fill: currentColor; stroke: none; }
.brand-logo { display: block; width: auto; height: 34px; max-width: 180px; object-fit: contain; }

.service-state { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(92, 242, 178, 0.09); }

main { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1fr); gap: 76px; align-items: center; min-height: calc(100vh - 164px); padding: 68px 0 48px; }

.hero { align-self: start; padding-top: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.13em; font-size: 12px; font-weight: 700; }
.eyebrow span { width: 30px; height: 1px; background: var(--accent); }
.hero h1 { margin: 22px 0 24px; font-size: clamp(52px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.065em; font-weight: 680; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero > p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.8; font-size: 16px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 16px 25px; margin-top: 42px; color: #c5ccd8; font-size: 12px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { color: #687386; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.recharge-card { position: relative; background: linear-gradient(155deg, rgba(25, 31, 43, 0.96), rgba(14, 18, 27, 0.98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38); padding: 28px; overflow: hidden; }
.recharge-card::before { content: ""; position: absolute; width: 230px; height: 230px; right: -120px; top: -125px; border-radius: 50%; background: var(--accent); filter: blur(85px); opacity: 0.08; pointer-events: none; }

.stepper { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; gap: 12px; margin-bottom: 35px; }
.step { text-align: center; color: #5f6878; min-width: 68px; }
.step > span { display: grid; place-items: center; width: 29px; height: 29px; margin: 0 auto; border: 1px solid #394152; border-radius: 50%; font-size: 12px; font-weight: 750; transition: 180ms ease; }
.step p { margin: 8px 0 0; font-size: 11px; white-space: nowrap; }
.step.is-active, .step.is-complete { color: var(--text); }
.step.is-active > span { color: #10150b; border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(185, 255, 90, 0.08); }
.step.is-complete > span { color: var(--accent); border-color: var(--accent-dark); }
.step-line { height: 29px; display: flex; align-items: center; }
.step-line > span { display: block; height: 1px; width: 100%; background: #303848; position: relative; overflow: hidden; }
.step-line > span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-101%); transition: transform 300ms ease; }
.step-line.is-complete > span::after { transform: translateX(0); }

.panel { animation: fade-up 260ms ease both; }
.panel[hidden] { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.panel-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.panel-number { color: var(--accent); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding-top: 7px; }
.panel-heading h2 { margin: 0; font-size: 23px; letter-spacing: -0.025em; }
.panel-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

label { display: block; margin: 0 0 9px; color: #d4dae4; font-size: 12px; font-weight: 650; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; fill: #697487; pointer-events: none; }
input, textarea { width: 100%; color: var(--text); background: #0a0e16; border: 1px solid #303849; border-radius: 12px; outline: none; transition: 160ms ease; }
input { height: 52px; padding: 0 16px 0 45px; letter-spacing: 0.03em; }
textarea { padding: 14px 15px; resize: vertical; min-height: 142px; line-height: 1.55; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
input:focus, textarea:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 4px rgba(185, 255, 90, 0.07); }
input::placeholder, textarea::placeholder { color: #576172; }
.field-hint { margin: 8px 0 20px; color: #6f7989; font-size: 11px; }

button { border: 0; cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.65; }
.primary-button, .secondary-button { min-height: 50px; border-radius: 12px; font-weight: 750; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.primary-button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #11160d; background: var(--accent); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #c7ff7d; }
.primary-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secondary-button { padding: 0 20px; color: #d8dee8; background: transparent; border: 1px solid #394253; }
.secondary-button:hover:not(:disabled) { border-color: #626d80; background: rgba(255, 255, 255, 0.025); }
.full-width { width: 100%; margin-top: 22px; }
.button-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 20px; }

.plan-summary { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; margin-bottom: 18px; padding: 16px; background: rgba(185, 255, 90, 0.045); border: 1px solid rgba(185, 255, 90, 0.14); border-radius: 13px; }
.plan-summary > div { padding: 0 13px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.plan-summary > div:first-child { padding-left: 0; }
.plan-summary > div:last-child { border-right: 0; padding-right: 0; }
.plan-summary span { display: block; margin-bottom: 6px; color: #778194; font-size: 10px; }
.plan-summary strong { display: block; overflow: hidden; color: #e8ecf2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.session-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding: 13px 15px; color: var(--accent); border: 1px dashed #46513c; border-radius: 11px; text-decoration: none; font-size: 12px; }
.session-link:hover { background: rgba(185, 255, 90, 0.04); }
.session-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.privacy-note { display: flex; gap: 11px; margin-top: 11px; color: #8e98a8; }
.privacy-note svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; fill: none; stroke: var(--success); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.privacy-note strong { color: #cfd6df; }

.progress-ring-wrap { display: flex; align-items: center; gap: 25px; margin: 8px 0 26px; padding: 20px; background: #0b0f17; border: 1px solid #252d3a; border-radius: 15px; }
.progress-ring { --progress: 0; flex: 0 0 auto; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--progress) * 1%), #293140 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 7px; background: #0b0f17; border-radius: 50%; }
.progress-ring > div { position: relative; z-index: 1; }
.progress-ring strong { font-size: 25px; letter-spacing: -0.04em; }
.progress-ring span { margin-left: 2px; color: var(--muted); font-size: 11px; }
.order-meta span, .order-meta small { display: block; color: #707b8c; font-size: 10px; }
.order-meta strong { display: block; max-width: 300px; margin: 6px 0 10px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.order-meta small { width: fit-content; padding: 4px 8px; color: var(--warning); background: rgba(255, 198, 92, 0.08); border-radius: 5px; }
.order-meta small.is-success { color: var(--success); background: rgba(92, 242, 178, 0.08); }
.order-meta small.is-error { color: var(--danger); background: rgba(255, 107, 118, 0.08); }

.timeline { display: grid; gap: 9px; }
.timeline-item { display: flex; align-items: center; gap: 11px; color: #8791a1; font-size: 12px; }
.timeline-item::before { content: ""; width: 8px; height: 8px; border: 1px solid #4a5363; border-radius: 50%; }
.timeline-item.is-complete { color: #dce2ea; }
.timeline-item.is-complete::before { border-color: var(--success); background: var(--success); box-shadow: 0 0 0 4px rgba(92, 242, 178, 0.08); }
.timeline-item.is-processing::before { border-color: var(--accent); animation: pulse 1.2s ease infinite; }
.timeline-item.is-failed { color: var(--danger); }
.timeline-item.is-failed::before { border-color: var(--danger); background: var(--danger); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(185, 255, 90, 0); background: var(--accent); } }

.alert { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px 14px; color: #ffc6ca; background: rgba(255, 107, 118, 0.075); border: 1px solid rgba(255, 107, 118, 0.22); border-radius: 11px; font-size: 12px; line-height: 1.5; }
.alert svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--danger); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.process-note { grid-column: 2; text-align: center; }
.process-note p { margin: -46px 25px 0; color: #626c7c; font-size: 11px; line-height: 1.65; }

footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; color: #586172; border-top: 1px solid var(--line-soft); font-size: 11px; }

@media (max-width: 920px) {
  main { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding-top: 52px; }
  .hero { max-width: 650px; padding-top: 0; }
  .hero h1 { font-size: clamp(52px, 12vw, 78px); }
  .recharge-card { width: 100%; max-width: 640px; }
  .process-note { grid-column: 1; max-width: 640px; }
  .process-note p { margin-top: -22px; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 24px, 1180px); }
  .site-header { height: 68px; }
  .service-state { font-size: 0; }
  main { padding: 38px 0; }
  .hero h1 { margin-top: 17px; font-size: 50px; }
  .hero > p { font-size: 14px; }
  .trust-row { margin-top: 28px; gap: 10px 16px; }
  .recharge-card { padding: 21px 17px; border-radius: 18px; }
  .stepper { gap: 5px; margin-bottom: 28px; }
  .step { min-width: 58px; }
  .step p { font-size: 10px; }
  .panel-heading h2 { font-size: 20px; }
  .plan-summary { grid-template-columns: 1fr; gap: 11px; }
  .plan-summary > div, .plan-summary > div:first-child, .plan-summary > div:last-child { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .plan-summary > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .button-row { grid-template-columns: 1fr; }
  .button-row .secondary-button { order: 2; }
  .progress-ring-wrap { align-items: flex-start; padding: 16px; }
  .progress-ring { width: 78px; height: 78px; }
  .order-meta strong { max-width: 190px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
