/* ============================================================
   SkillBank Design System
   skillbank.app
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Background levels */
  --bg-base:       #080d16;
  --bg-surface:    #0e1520;
  --bg-panel:      #131d2e;
  --bg-raised:     #1a2640;
  --bg-input:      #0f1929;
  --bg-hover:      #1e2e45;

  /* Borders */
  --border:        #1e2d42;
  --border-bright: #2a3f5c;

  /* Text */
  --text-primary:   #e8f0f8;
  --text-secondary: #8ba4c0;
  --text-muted:     #4a6380;
  --text-code:      #a8d8ff;

  /* Accent palette */
  --accent:         #00c8ff;
  --accent-dim:     rgba(0, 200, 255, 0.15);
  --accent-glow:    rgba(0, 200, 255, 0.08);
  --accent-hover:   #33d4ff;
  --purple:         #8b5cf6;
  --purple-dim:     rgba(139, 92, 246, 0.15);
  --green:          #10d98a;
  --green-dim:      rgba(16, 217, 138, 0.12);
  --amber:          #f59e0b;
  --amber-dim:      rgba(245, 158, 11, 0.12);
  --red:            #ef4444;
  --red-dim:        rgba(239, 68, 68, 0.12);

  /* Tier colors */
  --tier-simple:        #10d98a;
  --tier-comprehensive: #00c8ff;
  --tier-complete:      #8b5cf6;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow:     0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 24px rgba(0, 200, 255, 0.12);

  /* Transitions */
  --transition: 0.15s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }
code, pre { font-family: var(--font-mono); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 0 16px rgba(0,200,255,0.4);
}

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text-primary);
  border-color: var(--border-bright);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-raised); }

.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: var(--radius-lg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,200,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139,92,246,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  margin-bottom: 28px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-value span { color: var(--accent); }

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ── Section ───────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-sm { padding: 48px 0; }

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow);
}

.card-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--shadow-glow);
}

/* ── Skill Card ────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--shadow-glow);
  color: inherit;
}

.skill-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.skill-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  line-height: 1.3;
}

.skill-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.skill-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-simple      { background: var(--green-dim);  color: var(--tier-simple); border: 1px solid rgba(16,217,138,0.2); }
.badge-comprehensive { background: var(--accent-dim); color: var(--tier-comprehensive); border: 1px solid rgba(0,200,255,0.2); }
.badge-complete    { background: var(--purple-dim); color: var(--tier-complete); border: 1px solid rgba(139,92,246,0.2); }
.badge-tag         { background: var(--bg-raised); color: var(--text-muted); border: 1px solid var(--border); }
.badge-platform    { background: var(--bg-raised); color: var(--text-secondary); border: 1px solid var(--border-bright); }
.badge-new         { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.badge-sponsor-premier { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.08)); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }

/* ── Feature Blocks ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-icon-cyan   { background: var(--accent-dim);  border: 1px solid rgba(0,200,255,0.2); }
.feature-icon-purple { background: var(--purple-dim);  border: 1px solid rgba(139,92,246,0.2); }
.feature-icon-green  { background: var(--green-dim);   border: 1px solid rgba(16,217,138,0.2); }
.feature-icon-amber  { background: var(--amber-dim);   border: 1px solid rgba(245,158,11,0.2); }

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Code Block ────────────────────────────────────────────── */
.code-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-code);
  overflow-x: auto;
  line-height: 1.7;
}

.code-block .comment { color: var(--text-muted); }
.code-block .key     { color: var(--accent); }
.code-block .string  { color: var(--green); }
.code-block .number  { color: var(--amber); }

/* ── Search ────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  gap: 12px;
  transition: border-color var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  padding: 14px 0;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-icon { color: var(--text-muted); font-size: 18px; }

/* ── Filters ───────────────────────────────────────────────── */
.filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover   { border-color: var(--border-bright); color: var(--text-primary); }
.filter-btn.active  { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ── Sponsor Section ───────────────────────────────────────── */
.sponsors-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.sponsor-premier {
  background: linear-gradient(135deg, var(--bg-raised), var(--bg-panel));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sponsor-premier::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(245,158,11,0.06), transparent);
  pointer-events: none;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.sponsor-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sponsor-card:hover { border-color: var(--border-bright); color: var(--text-primary); }

/* ── How It Works ──────────────────────────────────────────── */
.steps-row {
  display: flex;
  gap: 0;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0.3;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── Tier Selector ─────────────────────────────────────────── */
.tier-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
}

.tier-tab {
  padding: 6px 16px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  border: none;
  background: none;
  font-family: var(--font-sans);
}

.tier-tab:hover { color: var(--text-secondary); }
.tier-tab.active-simple        { background: var(--green-dim);  color: var(--tier-simple); }
.tier-tab.active-comprehensive { background: var(--accent-dim); color: var(--tier-comprehensive); }
.tier-tab.active-complete      { background: var(--purple-dim); color: var(--tier-complete); }

/* ── Procedure ─────────────────────────────────────────────── */
.procedure {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.procedure:hover { border-color: var(--border-bright); }

.procedure-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--bg-panel);
  user-select: none;
}

.procedure-header:hover { background: var(--bg-hover); }

.procedure-title { font-size: 14px; font-weight: 600; flex: 1; }
.procedure-meta  { display: flex; gap: 8px; align-items: center; }

.procedure-body {
  padding: 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

textarea { min-height: 140px; resize: vertical; font-family: var(--font-mono); font-size: 13px; }
select option { background: var(--bg-panel); }

/* ── Donate Cards ──────────────────────────────────────────── */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .donate-grid { grid-template-columns: 1fr; }
}

.donate-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.donate-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.donate-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.donate-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.amount-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-mono);
}

.amount-btn:hover, .amount-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── API Docs ──────────────────────────────────────────────── */
.api-endpoint {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.endpoint-header:hover { background: var(--bg-hover); }

.method-badge {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 52px;
  text-align: center;
}

.method-get  { background: rgba(16,217,138,0.15);  color: var(--green); }
.method-post { background: rgba(0,200,255,0.12);   color: var(--accent); }
.method-put  { background: rgba(245,158,11,0.12);  color: var(--amber); }
.method-del  { background: rgba(239,68,68,0.12);   color: var(--red); }

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
}

.endpoint-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.endpoint-body {
  border-top: 1px solid var(--border);
  padding: 20px;
  background: var(--bg-surface);
}

/* ── Table ─────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  text-align: left;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.table tbody tr:hover td { background: var(--bg-hover); }
.table td code { font-family: var(--font-mono); color: var(--text-code); font-size: 12px; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Utility ───────────────────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-mono    { font-family: var(--font-mono); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.text-center  { text-align: center; }

.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mt-48  { margin-top: 48px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.hidden { display: none !important; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { flex-direction: column; gap: 24px; }
  .steps-row::before { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 60px 0 48px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 24px; }
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease forwards; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(0,200,255,0.2); }
  50%       { box-shadow: 0 0 20px rgba(0,200,255,0.5); }
}

.pulse { animation: pulse-glow 2.5s ease-in-out infinite; }


/* ============================================================
   Auth UI — Login Modal + Nav User Widget
   Added: Stage 1 OAuth Account System
   ============================================================ */

/* ── Login Modal ────────────────────────────────────────────── */
#sb-auth-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
#sb-auth-modal.active { display: flex; }

.sb-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(4px);
}

.sb-modal-box {
  position: relative; z-index: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.sb-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-muted); font-size: 22px;
  cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.sb-modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }

.sb-modal-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 20px;
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
}

.sb-modal-box h2 {
  font-size: 1.4rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}

.sb-modal-sub {
  color: var(--text-secondary); font-size: 0.875rem;
  margin-bottom: 28px; line-height: 1.5;
}

.sb-modal-providers { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.sb-oauth-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.sb-oauth-btn:hover { transform: translateY(-1px); color: inherit; }
.sb-oauth-btn svg { flex-shrink: 0; }

.sb-oauth-google {
  background: #fff; color: #3c4043;
  border: 1px solid #dadce0;
}
.sb-oauth-google:hover { background: #f8f9fa; color: #3c4043; }

.sb-oauth-microsoft {
  background: var(--bg-raised); color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.sb-oauth-microsoft:hover { background: var(--bg-hover); }

.sb-modal-note {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.4;
}
.sb-modal-note a { color: var(--text-muted); text-decoration: underline; }

/* ── Age gate ───────────────────────────────────────────────── */
.sb-age-gate {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sb-age-gate:hover { border-color: var(--border-bright); }
.sb-age-gate input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 15px; height: 15px;
  cursor: pointer;
}
.sb-age-gate span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.sb-age-gate span strong { color: var(--text-primary); }
.sb-age-gate span a { color: var(--accent); text-decoration: underline; }

/* ── Locked OAuth button ────────────────────────────────────── */
.sb-oauth-locked {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

/* ── Nav User Widget ────────────────────────────────────────── */
.sb-nav-user {
  position: relative; display: flex; align-items: center;
  gap: 8px; cursor: pointer; padding: 6px 10px;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
  user-select: none;
}
.sb-nav-user:hover { background: var(--bg-hover); border-color: var(--border-bright); }

.sb-nav-avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.sb-nav-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.sb-nav-avatar-initials {
  width: 100%; height: 100%; background: var(--accent-dim);
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--accent-dim);
}

.sb-nav-name {
  font-size: 0.85rem; font-weight: 500; color: var(--text-primary);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.sb-nav-chevron { color: var(--text-muted); flex-shrink: 0; }

.sb-nav-dropdown {
  display: none !important;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-panel); border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg); min-width: 200px;
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 200;
  flex-direction: column;
}
.sb-nav-dropdown.open { display: flex !important; }

.sb-dropdown-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.sb-dropdown-email { font-size: 0.8rem; color: var(--text-secondary); }
.sb-dropdown-tier  { font-size: 0.75rem; color: var(--accent); margin-top: 2px; }

.sb-dropdown-item {
  display: block; width: 100%; padding: 10px 16px;
  font-size: 0.875rem; color: var(--text-primary);
  text-decoration: none; background: none; border: none;
  text-align: left; cursor: pointer;
  transition: background var(--transition);
}
.sb-dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sb-dropdown-signout { color: var(--red) !important; border-top: 1px solid var(--border); }

/* ── Account Dashboard Page ─────────────────────────────────── */
.account-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.account-profile {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 2px solid var(--border-bright);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar-large {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border-bright);
}
.account-info h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.account-info .account-email { color: var(--text-secondary); font-size: 0.9rem; }
.account-badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.badge-tier-free { background: var(--bg-raised); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-tier-pro  { background: var(--amber-dim);  color: var(--amber);  border: 1px solid var(--amber-dim); }

.rep-score {
  margin-left: auto; text-align: center; padding: 16px 24px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.rep-score-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.rep-score-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.account-tabs {
  display: flex; gap: 4px; margin: 32px 0 0;
  border-bottom: 1px solid var(--border);
}
.account-tab {
  padding: 10px 20px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  border: none; background: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.account-tab:hover { color: var(--text-primary); }
.account-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.account-panel { display: none; padding: 32px 0; }
.account-panel.active { display: block; }

.activity-feed { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.activity-icon {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.activity-icon.positive { background: var(--green-dim); }
.activity-icon.neutral  { background: var(--accent-dim); }
.activity-body { flex: 1; }
.activity-title { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.activity-date  { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.activity-points {
  font-size: 0.9rem; font-weight: 700;
  color: var(--green); flex-shrink: 0;
}
.activity-points.negative { color: var(--red); }

.downloads-list { display: flex; flex-direction: column; gap: 10px; }
.download-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: border-color var(--transition), background var(--transition);
}
.download-item:hover { border-color: var(--border-bright); background: var(--bg-raised); }
.download-skill-name { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); flex: 1; }
.download-meta { font-size: 0.78rem; color: var(--text-muted); }

.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; }
