:root {
  --bg: #0b0d10;
  --panel: #14181d;
  --panel-2: #1b2128;
  --text: #e7ecf3;
  --muted: #8a95a5;
  --accent: #5b8def;
  --accent-hover: #7aa1ff;
  --accent-text: #0b0d10;
  --ok: #3ecf8e;
  --border: #232a33;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

main {
  width: 100%;
  max-width: 520px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.18);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 24px 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.step-marker {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
}

.step.done .step-marker {
  background: var(--ok);
  color: var(--accent-text);
  border-color: var(--ok);
}

.step.active .step-marker {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-weight: 600;
  margin: 2px 0 2px 0;
}

.step-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 120ms ease,
    transform 60ms ease;
}

.cta:hover {
  background: var(--accent-hover);
}

.cta:active {
  transform: translateY(1px);
}

.cta-secondary {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.cta-secondary:hover {
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.error {
  background: rgba(239, 91, 91, 0.08);
  border: 1px solid rgba(239, 91, 91, 0.32);
  color: #ffd6d6;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}

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

footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
}

@media (max-width: 480px) {
  .card {
    padding: 24px 20px;
  }
  h1 {
    font-size: 1.3rem;
  }
}
