:root {
  --bg: #0b0f1a;
  --card: #111827;
  --border: #1f2a3d;
  --text: #e7ecf5;
  --muted: #8b98ad;
  --blue: #4d8cff;
  --blue-dark: #2f6ae0;
  --green: #34d399;
  --red: #f87171;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, #16223c 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

header { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #7c5cff);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
h1 { font-size: 19px; font-weight: 650; }
h2 { font-size: 18px; margin-bottom: 8px; }
.lead { color: var(--muted); line-height: 1.55; font-size: 14.5px; margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }

.error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; }

.status { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.status-title { font-weight: 600; font-size: 15px; }
.spinner {
  width: 26px; height: 26px; flex: 0 0 26px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.steps { list-style: none; display: grid; gap: 10px; }
.steps li {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  position: relative;
  padding-left: 34px;
}
.steps li::before {
  content: "";
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}
.steps li.active { color: var(--text); }
.steps li.active::before { background: var(--blue); }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--green); }

.ok {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
#step-done { text-align: center; }

footer { margin-top: 22px; text-align: center; }

.captcha-overlay {
  position: fixed; inset: 0; z-index: 10;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.captcha-box {
  width: min(360px, 90vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}
.captcha-icon { margin-bottom: 14px; }
.captcha-title { font-weight: 650; font-size: 16px; margin-bottom: 6px; }
.captcha-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.captcha-bar {
  height: 6px; background: var(--border); border-radius: 4px; overflow: hidden;
}
.captcha-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 4px;
  transition: width 0.25s ease;
}
