:root {
  color-scheme: dark;
  --bg: #09090f;
  --card: #14141c;
  --muted: #9aa0ae;
  --line: #2a2a36;
  --text: #f5f5f7;
  --acc: #f7931a;
  --acc-dim: #c4b5fd;
  --ok: #34d399;
  --bad: #f87171;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(247, 147, 26, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
}
a { color: var(--acc-dim); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell {
  max-width: 440px;
  margin: 0 auto;
  padding: 2.2rem 1.15rem 3.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.brand svg { width: 36px; height: 36px; flex: 0 0 auto; }
.brand .name { font-weight: 700; letter-spacing: -0.03em; font-size: 1.05rem; }
.brand .sub { color: var(--muted); font-size: 0.8rem; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 0.4rem; letter-spacing: -0.03em; }
.lead { color: var(--muted); margin: 0 0 1.3rem; line-height: 1.5; }
.amount {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}
.amount b { font-size: 2.2rem; letter-spacing: -0.04em; }
.amount span { color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; }
input[type="text"], textarea {
  width: 100%;
  background: #0c0c12;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
}
input[type="text"]:focus, textarea:focus {
  outline: 2px solid rgba(247, 147, 26, 0.45);
  border-color: var(--acc);
}
.hint { color: var(--muted); font-size: 0.78rem; margin-top: 0.4rem; }
.row-btns { display: flex; gap: 0.5rem; margin-top: 0.55rem; flex-wrap: wrap; }
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.78rem 1rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-acc { background: var(--acc); color: #1a1208; width: 100%; }
.btn-ghost {
  background: #1c1c26;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost.grow { flex: 1; }
.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.9rem 0 1.1rem;
  color: #d4d4d8;
  font-size: 0.9rem;
  line-height: 1.45;
}
.check input { margin-top: 0.2rem; }
.facts { display: grid; gap: 0.55rem; margin: 0 0 1.2rem; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: #d4d4d8;
}
.fact code, .copybox {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: #e5e7eb;
  word-break: break-all;
}
.foot {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 1.4rem;
}
.qr-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem;
  width: 268px;
  height: 268px;
  margin: 0 auto 0.9rem;
}
.qr-wrap img, .qr-wrap canvas { width: 100% !important; height: 100% !important; }
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0.8rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--acc);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.ok-mark {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--ok);
  margin: 0.4rem auto 0.8rem;
  position: relative;
}
.ok-mark:after {
  content: "";
  position: absolute;
  left: 18px; top: 12px;
  width: 16px; height: 28px;
  border: solid var(--ok);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.center { text-align: center; }
.success h2 { color: var(--ok); margin: 0 0 0.35rem; }
.hidden, .d-none { display: none !important; }
.nwc-box textarea { min-height: 4.4rem; }
.err { color: var(--bad); font-size: 0.85rem; margin-top: 0.45rem; }
.steps {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
  color: #d4d4d8;
  line-height: 1.55;
  font-size: 0.92rem;
}
.legal { max-width: 40rem; }
.legal h3, .legal h2 { margin-top: 1.4rem; }
.legal li, .legal p { color: #d4d4d8; line-height: 1.55; }
@media (max-width: 480px) {
  .shell { padding-top: 1.4rem; }
  h1 { font-size: 1.45rem; }
}
