:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  background: #070d1c;
  color: #f8fbff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background-color: #070d1c;
  background-image: linear-gradient(rgba(53, 91, 160, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 91, 160, .08) 1px, transparent 1px), radial-gradient(circle at 50% -20%, rgba(35, 82, 166, .32), transparent 45%);
  background-size: 36px 36px, 36px 36px, auto;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { width: min(940px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 34px; }
.hero { text-align: center; margin-bottom: 30px; }
.trust-badge { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(0, 195, 255, .34); border-radius: 999px; padding: 7px 15px; color: #58d8ff; background: rgba(0, 146, 255, .08); font-size: 12px; letter-spacing: .06em; }
.trust-badge span { width: 7px; height: 7px; border-radius: 50%; background: #00c6ff; box-shadow: 0 0 12px #00c6ff; }
h1 { margin: 22px 0 8px; font-size: clamp(38px, 7vw, 64px); line-height: 1.02; letter-spacing: -.055em; }
h1 span { color: #10cfff; }
h1 strong { background: linear-gradient(90deg, #26c9ff, #a982ff); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero-copy { margin: 0; color: #7888a7; font-size: 16px; letter-spacing: .18em; }

.stepper { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: start; gap: 12px; width: min(760px, 100%); margin: 0 auto 28px; }
.step-node { display: grid; justify-items: center; gap: 9px; min-width: 74px; color: #637291; font-size: 12px; white-space: nowrap; }
.step-node span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid #27375d; background: #111c3a; color: #7384a8; font-size: 15px; font-weight: 800; transition: .2s ease; }
.step-node.active span { border-color: #00c8ff; background: linear-gradient(135deg, #0ab9ff, #4a72ff); color: #fff; box-shadow: 0 0 26px rgba(0, 190, 255, .5); }
.step-node.active b { color: #22cfff; }
.step-node.completed span { border-color: #4f79d3; background: #20386d; color: #c9dcff; }
.step-node.completed b { color: #a5b7df; }
.step-line { height: 2px; margin-top: 21px; background: #26375d; transition: .2s ease; }
.step-line.completed { background: linear-gradient(90deg, #39baff, #617fff); }

.wizard-card { border: 1px solid #263866; border-radius: 22px; padding: 34px 42px 38px; background: rgba(10, 19, 45, .9); box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .025); }
.wizard-step { min-height: 330px; }
.section-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 25px; }
.section-heading i { display: block; width: 4px; height: 25px; border-radius: 3px; background: linear-gradient(#23d5ff, #6f78ff); box-shadow: 0 0 15px rgba(35, 213, 255, .6); }
.section-heading h2 { margin: 0 0 6px; font-size: 21px; }
.section-heading p { margin: 0; color: #7d8cac; font-size: 13px; }
label { display: block; margin: 18px 0 9px; color: #b7c4df; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #2b4170; border-radius: 13px; outline: 0; background: rgba(5, 13, 34, .88); color: #f4f8ff; padding: 14px 16px; transition: .2s ease; }
input { height: 50px; }
textarea { min-height: 200px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #63708d; }
input:focus, textarea:focus { border-color: #1dbdff; box-shadow: 0 0 0 3px rgba(29, 189, 255, .13); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; padding: 0 20px; border: 0; cursor: pointer; font-weight: 800; transition: .2s ease; }
.primary-button { background: linear-gradient(105deg, #2c8dff, #5c65ff); color: #fff; box-shadow: 0 10px 24px rgba(64, 115, 255, .25); }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.secondary-button { border: 1px solid #304a79; background: #132348; color: #c5d5f3; }
.secondary-button:hover { border-color: #5f7fbe; background: #1a2d5b; }
form > .primary-button { width: 100%; margin-top: 17px; }
button:disabled, .disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }
.button-link { text-decoration: none; }
.action-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: center; margin-top: 22px; }
.action-row .primary-button, .action-row .secondary-button { width: 100%; }
.summary-box { display: grid; gap: 5px; min-height: 70px; border: 1px solid #304775; border-radius: 14px; background: #0d1a39; padding: 14px 16px; color: #a9b9d8; }
.summary-box strong { color: #f0f5ff; }
.summary-box small { color: #7484a6; font-size: 12px; }
.token-action-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 9px; }
.token-action-row label { margin: 0; }
.token-fetch-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid #2e7cff; border-radius: 11px; padding: 0 15px; color: #45cfff; background: rgba(20, 72, 160, .22); font-size: 13px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.token-fetch-link:hover { border-color: #5bcfff; background: rgba(31, 104, 217, .3); transform: translateY(-1px); }
.login-guide { display: flex; gap: 14px; align-items: center; margin-top: 18px; border: 1px dashed #2b4b81; border-radius: 14px; padding: 16px; background: rgba(18, 46, 92, .26); }
.guide-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #12326c; color: #5fd6ff; font-size: 24px; }
.login-guide strong { font-size: 14px; }
.login-guide p { margin: 4px 0 0; color: #8192b3; font-size: 12px; }
.notice { margin-top: 15px; border-radius: 11px; padding: 12px 14px; font-size: 13px; }
.notice.info { color: #b8cdf1; background: #122344; border: 1px solid #2d4777; }
.notice.error { color: #ffb9c8; background: #321a31; border: 1px solid #733556; }
.notice.success { color: #a7f0ce; background: #103225; border: 1px solid #2a694d; }
.hidden { display: none !important; }
.confirm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.confirm-item { min-height: 74px; display: grid; align-content: center; gap: 7px; padding: 13px 15px; border: 1px solid #2a406a; border-radius: 13px; background: #0d1934; }
.confirm-item span { color: #7384a4; font-size: 12px; }
.confirm-item strong { color: #eaf2ff; font-size: 14px; overflow-wrap: anywhere; }
.confirm-note { margin-top: 16px; border-radius: 11px; padding: 12px 14px; color: #93a5c4; background: rgba(31, 54, 99, .35); font-size: 12px; }
.progress-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid #273b67; }
.progress-top { display: flex; justify-content: space-between; color: #dbe8ff; font-size: 13px; }
.progress-top span { color: #69d5ff; }
.progress-track { height: 10px; margin: 12px 0; border-radius: 999px; overflow: hidden; background: #17284c; }
#progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #21d0ff, #7673ff); transition: width .35s ease; }
#progress-message { min-height: 20px; margin: 0 0 12px; color: #98aaca; font-size: 13px; }
.step-list { display: grid; gap: 7px; }
.step-row { display: flex; justify-content: space-between; gap: 12px; border-radius: 9px; padding: 9px 11px; background: #0c1730; color: #9aaacc; font-size: 12px; }
.step-row b { color: #70d5ff; }
.success-panel { border-top-color: #2d765d; }
.error-panel { border-top-color: #7b3a57; }
.reset-button { width: 100%; margin-top: 16px; }
@media (max-width: 700px) {
  .page-shell { width: min(100% - 22px, 560px); padding-top: 18px; }
  .stepper { gap: 6px; }
  .step-node { min-width: 50px; font-size: 10px; }
  .step-node span { width: 34px; height: 34px; font-size: 13px; }
  .step-line { margin-top: 17px; }
  .wizard-card { padding: 25px 18px 28px; }
  .action-row { grid-template-columns: 1fr; }
  .action-row .secondary-button { order: 3; }
  .token-action-row { align-items: stretch; flex-direction: column; }
  .token-fetch-link { width: 100%; }
  .confirm-grid { grid-template-columns: 1fr; }
}
