body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--space-bg);
  background-image: radial-gradient(circle at 50% 0, #24344e, #000 73%, var(--space-bg) 99%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--brand-cyan); text-decoration: none; }
a:hover { color: #34d9f0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ── Navbar — Glassmorphism HUD bar ─────────────────────────── */
.navbar {
  background: rgba(9,13,24,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-brand { font-size: 1.25rem; font-weight: 700; color: var(--brand-cyan); letter-spacing: 0.02em; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { font-size: 0.875rem; font-weight: 400; color: var(--text-muted); cursor: pointer; transition: color 0.15s; }
.navbar-links a:hover { color: var(--text-main); }
.navbar-user { font-size: 0.875rem; color: var(--text-dim); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; border: none; cursor: pointer;
  transition: all 0.2s; text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--brand-cyan); color: #050b14; font-weight: 600; }
.btn-primary:hover { background: #34d9f0; box-shadow: 0 0 20px rgba(11,198,234,0.35); }
.btn-secondary { background: rgba(11,198,234,0.08); color: var(--brand-cyan); border: 1px solid rgba(11,198,234,0.35); }
.btn-secondary:hover { background: rgba(11,198,234,0.16); border-color: rgba(11,198,234,0.55); }
.btn-outline { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.12); }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); color: var(--text-main); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: rgba(15,23,42,0.70);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.5rem;
}
.card-highlight {
  border: 1px solid rgba(11,198,234,0.40);
  position: relative;
  box-shadow: 0 0 28px rgba(11,198,234,0.08);
}
.card-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--brand-cyan); color: #050b14;
  font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem;
  border-radius: 999px; white-space: nowrap;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.25rem; }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.5rem; font-size: 1rem;
  outline: none; transition: border 0.15s, box-shadow 0.15s;
  background: rgba(0,0,0,0.35); color: var(--text-main);
  font-family: inherit;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--brand-cyan); box-shadow: 0 0 0 3px rgba(11,198,234,0.15); }

/* ── Feedback ────────────────────────────────────────────────── */
.success-icon { width: 64px; height: 64px; margin: 0 auto 1rem; }
.success-icon svg { width: 100%; height: 100%; stroke: var(--brand-emerald); fill: none; stroke-width: 1.5; }
.error-text {
  background: rgba(239,68,68,0.10); color: #f87171;
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: 0.5rem; padding: 0.75rem; font-size: 0.875rem; margin-bottom: 1rem;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--brand-cyan);
  border-radius: 50%; animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
