:root {
  --bg: #0a0b0f;
  --bg2: #12141c;
  --card: #16181f;
  --border: #24273180;
  --text: #e8eaf0;
  --muted: #8b90a0;
  --accent: #6d5efc;
  --accent2: #9d7bff;
  --ok: #35c98a;
  --err: #ff5a6a;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 50% -10%, #1c1836 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 110%, #12233a 0%, transparent 55%),
    var(--bg);
  min-height: 100%;
  display: flex;
}

.shell {
  margin: auto;
  width: 100%;
  max-width: 460px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.card {
  width: 100%;
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 24px 60px -20px #000000cc, inset 0 1px 0 #ffffff0a;
  animation: rise .5s cubic-bezier(.2,.7,.2,1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.logo {
  font-weight: 800;
  letter-spacing: 5px;
  font-size: 14px;
  color: var(--accent2);
  margin-bottom: 18px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #0c0d12;
  border: 1px solid var(--border);
}

.step.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  box-shadow: 0 6px 16px -6px var(--accent);
}

.step.done {
  color: #fff;
  background: var(--ok);
  border-color: transparent;
}

.bar {
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}

.bar.done { background: var(--ok); }

.title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 65px;
}

.btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 10px 26px -10px var(--accent);
  text-decoration: none;
  display: inline-block;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -12px var(--accent); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hint {
  margin-top: 14px;
  font-size: 13px;
  min-height: 18px;
  color: var(--muted);
}

.hint.err { color: var(--err); }
.hint.ok { color: var(--ok); }

.keybox {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 15px;
  letter-spacing: 1px;
  word-break: break-all;
  background: #0c0d12;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0 18px;
  color: var(--accent2);
  user-select: all;
}

.foot {
  color: #565b6b;
  font-size: 12px;
  letter-spacing: 1px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff55;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }
