/* ── Tokens ──────────────────────────────────────────────────────────────────── */
:root {
  --bg:           #09090f;
  --bg-surface:   #0e0e1a;
  --bg-card:      #13131f;
  --bg-elevated:  #1a1a2e;

  --border:       #252540;
  --border-subtle:#1c1c30;

  --text:         #f0f0ff;
  --text-muted:   #8888aa;
  --text-faint:   #44445a;

  --indigo:       #6366f1;
  --indigo-light: #818cf8;
  --indigo-dim:   rgba(99, 102, 241, 0.12);
  --indigo-glow:  rgba(99, 102, 241, 0.25);
  --purple:       #a855f7;
  --cyan:         #22d3ee;
  --green:        #22c55e;
  --amber:        #f59e0b;
  --red:          #ef4444;
  --red-dim:      rgba(239, 68, 68, 0.1);

  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    20px;

  --nav-h:        60px;
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
}

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-brand span { color: var(--indigo-light); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-email {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--indigo);
  color: #fff;
}
.btn-primary:hover { background: var(--indigo-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-dim);
}

.input::placeholder { color: var(--text-faint); }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ── Badge ───────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--indigo-dim);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--indigo-light);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Error ───────────────────────────────────────────────────────────────────── */
.error-box {
  display: none;
  font-size: 13px;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
}
