:root {
  --bg: #0a0c0f;
  --panel: #11161b;
  --panel-2: #0d1216;
  --line: #27323b;
  --line-soft: #1c252c;
  --text: #f0f3f2;
  --muted: #8b98a1;
  --green: #35e67b;
  --green-deep: #12c95d;
  --green-dark: #0b9e4c;
  --amber: #d9a520;
  --amber-bg: #29220f;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 86% 0%, rgba(53, 230, 123, .06), transparent 28rem),
    radial-gradient(circle at 0% 46%, rgba(53, 230, 123, .035), transparent 25rem),
    var(--bg);
  overflow-x: hidden;
}
.ambient {
  position: fixed;
  pointer-events: none;
  border: 1px solid rgba(53, 230, 123, .07);
  transform: rotate(25deg);
}
.ambient-one { width: 32rem; height: 32rem; right: -22rem; top: 14rem; }
.ambient-two { width: 20rem; height: 20rem; left: -14rem; top: 60rem; }
.shell {
  position: relative;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 28px 0 42px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; letter-spacing: .2px; }
.brand b { color: var(--green); font-weight: 600; }
.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #35414a;
  border-radius: 7px;
}
.brand-mark svg { width: 17px; fill: none; stroke: var(--green); stroke-width: 1.6; }
.status-dot {
  color: var(--green);
  font: 11px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.status-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.hero { padding: 42px 2px 28px; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font: 11px var(--mono);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(27px, 5.2vw, 42px);
  line-height: 1.22;
  letter-spacing: -.8px;
  font-weight: 600;
}
.hero h1 span:not(.box) { color: #d6f8e2; }
.hero h1 .box { color: #d9a85f; font-size: .83em; margin-right: 4px; }
.hero p { margin: 15px 0 0; color: #aab4bb; font-size: 14px; line-height: 1.85; }
.warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid #725d26;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(217, 165, 32, .11), rgba(217, 165, 32, .045));
}
.warning-icon {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font: 700 12px var(--mono);
}
.warning p { margin: 0; color: #d9bf76; font-size: 13px; line-height: 1.7; }
.warning strong { color: #f2d98f; font-weight: 600; }
.panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(19, 26, 31, .96), rgba(12, 17, 21, .96));
  box-shadow: 0 24px 50px rgba(0, 0, 0, .2);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 19px;
  font-weight: 500;
}
.step-dot {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  font: 12px var(--mono);
}
.book { color: #d9a85f; font-size: 21px; }
.panel-title em { color: #a4b0b7; font-size: 13px; font-style: normal; font-weight: 400; }
form label { display: block; margin-bottom: 10px; color: #aab5bc; font-size: 13px; }
.input-wrap { position: relative; }
input {
  width: 100%;
  padding: 16px 70px 16px 16px;
  border: 1px solid #34414b;
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: #0b1014;
  font: 17px var(--mono);
  letter-spacing: 1.5px;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder { color: #65727c; letter-spacing: .3px; font-family: var(--sans); }
input:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(53, 230, 123, .08); }
input.invalid { border-color: #d45d5d; }
#digit-count {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #66737c;
  font: 11px var(--mono);
}
.hint { margin: 8px 0 18px; color: #68767f; font-size: 11px; }
button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: #041009;
  background: linear-gradient(180deg, #40ef85, #24d568);
  box-shadow: 0 10px 28px rgba(25, 202, 92, .14), inset 0 1px rgba(255, 255, 255, .35);
  font: 600 18px var(--sans);
  transition: transform .16s, filter .16s, opacity .16s;
}
button:hover { filter: brightness(1.06); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { cursor: wait; opacity: .78; transform: none; }
.bolt { font-size: 25px; line-height: 1; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(0, 0, 0, .25); border-top-color: #06200f; border-radius: 50%; animation: spin .8s linear infinite; }
button.loading .spinner { display: block; }
button.loading .bolt { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-box {
  margin-top: 16px;
  padding: 17px 16px;
  border: 1px solid #2a353d;
  border-radius: 8px;
  color: #b8c1c6;
  background: #0b1014;
  font-size: 13px;
  line-height: 1.55;
  transition: color .2s, border-color .2s;
}
.status-box.error { color: #ef9b9b; border-color: #603a3a; }
.status-box.success { color: #8eeeb1; border-color: #23633d; }
.result { margin-top: 15px; animation: reveal .35s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: #84929a; font: 11px var(--mono); }
.download {
  display: block;
  padding: 14px 16px;
  border: 1px solid #2a7547;
  border-radius: 8px;
  color: var(--green);
  background: rgba(53, 230, 123, .06);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}
.download:hover { background: rgba(53, 230, 123, .12); }
.expiry { margin: 9px 0 0; color: #68767f; font-size: 11px; }
.steps-panel { margin-top: 16px; }
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 13px; }
.steps li > span {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #06200f;
  background: var(--green);
  font: 600 12px var(--mono);
}
.steps p { margin: 0; color: #c5ced3; font-size: 13px; line-height: 1.75; }
.steps b { color: #eef2f0; font-weight: 500; }
code { padding: 1px 5px; border: 1px solid #34414a; border-radius: 4px; color: var(--green); background: #0a0f12; font: 12px var(--mono); }
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 27px;
  color: #58656d;
  font-size: 10px;
}
.footer-mark { color: #44515a; font: 10px var(--mono); letter-spacing: .8px; }
@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 760px); padding-top: 18px; }
  .topbar { padding-bottom: 16px; }
  .hero { padding: 32px 0 22px; }
  .hero h1 { font-size: 27px; letter-spacing: -.5px; }
  .hero p { font-size: 12px; line-height: 1.8; }
  .panel { padding: 19px 16px; border-radius: 12px; }
  .panel-title { gap: 8px; font-size: 17px; }
  .panel-title em { font-size: 11px; }
  .warning { padding: 14px; }
  .warning p { font-size: 12px; }
  button { font-size: 16px; }
  footer { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
