/* scd-nav.css — Unified navigation + auth modal styles for ALL pages
 * Single source of truth — loaded by every HTML page via <link>
 * SCD Labs © 2026
 */

/* ── Fallback CSS variables (for pages that don't load app.css) ── */
:root {
  --bg-0: #090b10;
  --bg-1: #0d1017;
  --bg-2: #141820;
  --bg-3: #1a1f2b;
  --bg-4: #222838;
  --border: #1e2433;
  --border-hover: #2a3244;
  --text-0: #ffffff;
  --text-1: #c9d1d9;
  --text-2: #8b949e;
  --text-3: #484f58;
  --green: #2ea043;
  --green-bright: #3fb950;
  --green-dim: #1a3a2a;
  --green-b: var(--green-bright);
  --red: #da3633;
  --red-bright: #f85149;
  --blue: #388bfd;
  --blue-dim: #1a2a3a;
  --purple: #8b5cf6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --mono: var(--font-mono);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-1: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-3: 0 8px 24px rgba(0,0,0,0.5);
  --scout-gradient: linear-gradient(135deg, #2ea043 0%, #388bfd 100%);
  --amber: #d29a22;
  --amber-bright: #e3b341;
  --amber-dim: #3a2a1a;
  --purple-dim: #2a1a3a;
  --teal: #2dd4bf;
  --magenta: #e879f9;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ── Unified Nav ──────────────────────────────────────────────── */
.scd-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9,11,16,0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.scd-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ── Logo ── */
.scd-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.scd-nav-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #0d1117;
  border: 1.5px solid rgba(0,230,118,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scd-nav-mark svg {
  width: 15px;
  height: 15px;
  color: var(--green-bright, #00e676);
}
.scd-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.3px;
}
.scd-nav-sub {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0;
}

/* ── Desktop Nav Links ── */
.scd-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.scd-nav-link {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.scd-nav-link:hover { color: var(--text-0); background: var(--bg-2); }
.scd-nav-link.active { color: var(--green-b); }

/* More dropdown */
.scd-nav-dropdown { position: relative; }
.scd-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  padding-top: 12px;
  min-width: 160px;
  box-shadow: var(--shadow-2);
  z-index: 200;
}
.scd-nav-dropdown:hover .scd-nav-dropdown-menu { display: block; }
.scd-nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}
.scd-nav-dropdown-menu a:hover { color: var(--text-0); background: var(--bg-2); }

/* ── Right-side controls ── */
.scd-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Scout bubble mount — chat-widget.js injects here */
#scd-scout-bubble-mount {
  display: flex;
  align-items: center;
}

/* Theme toggle */
.scd-nav-theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.scd-nav-theme-btn:hover { border-color: var(--border-hover); background: var(--bg-3); }

/* ── Auth buttons (logged-out state) ── */
.scd-nav-login-btn {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}
.scd-nav-login-btn:hover { color: var(--text-0); background: var(--bg-2); }

.scd-nav-signup-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #2ea043 0%, #388bfd 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(46, 160, 67, 0.2);
  white-space: nowrap;
}
.scd-nav-signup-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── User dropdown (logged-in state) ── */
.scd-nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.scd-nav-user:hover { background: var(--bg-2); }
.scd-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--scout-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.scd-nav-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scd-nav-user-tier {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
}
.scd-nav-user-tier.free { background: var(--bg-3); color: var(--text-3); }
.scd-nav-user-tier.pro { background: var(--green-dim); color: var(--green-bright); }
.scd-nav-user-tier.trial { background: var(--blue-dim); color: var(--blue); }

.scd-nav-user-chevron {
  font-size: 10px;
  color: var(--text-3);
  transition: transform 0.2s;
}
.scd-nav-user.open .scd-nav-user-chevron { transform: rotate(180deg); }

.scd-nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 180px;
  box-shadow: var(--shadow-2);
  z-index: 200;
}
.scd-nav-user.open .scd-nav-user-dropdown { display: block; }
.scd-nav-user-dropdown a,
.scd-nav-user-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}
.scd-nav-user-dropdown a:hover,
.scd-nav-user-dropdown button:hover { color: var(--text-0); background: var(--bg-2); }
.scd-nav-user-dropdown .scd-nav-logout {
  color: var(--text-3);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
  border-radius: 0 0 6px 6px;
}
.scd-nav-user-dropdown .scd-nav-logout:hover { color: var(--red-bright); }

/* Extras slot — for page-specific additions (mode toggle, streak, etc.) */
#scd-nav-extras {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Hamburger (visible on mobile) ── */
.scd-nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
}
.scd-nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-1);
  margin: 5px auto;
  transition: all 0.3s;
  border-radius: 1px;
}
.scd-nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.scd-nav-hamburger.active span:nth-child(2) { opacity: 0; }
.scd-nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ── Mobile Menu ── */
.scd-nav-mobile-menu {
  display: none;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  background: rgba(9,11,16,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 0;
  z-index: 99;
  max-height: calc(100vh - 57px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.scd-nav-mobile-menu.open { display: flex; }
.scd-nav-mobile-menu a {
  font-size: 15px;
  color: var(--text-1);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.scd-nav-mobile-menu a:hover { color: var(--text-0); }
.scd-nav-mobile-menu .scd-nav-mobile-active { color: var(--green-b); }

/* Mobile More section */
.scd-nav-mobile-menu .scd-mm-more-toggle {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.scd-nav-mobile-menu .scd-mm-more-toggle:hover { color: var(--text-1); }
.scd-mm-chevron {
  font-size: 11px;
  transition: transform 0.25s ease;
}
.scd-mm-more-toggle.open .scd-mm-chevron { transform: rotate(90deg); }
.scd-mm-more-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 14px;
}
.scd-mm-more-items.open { max-height: 400px; }
.scd-mm-more-items a {
  display: block;
  font-size: 13px !important;
  color: var(--text-2) !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.scd-mm-more-items a:last-child { border-bottom: none !important; }
.scd-mm-more-items a:hover { color: var(--text-1) !important; }
.scd-mm-section-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0 4px;
  font-weight: 600;
}
.scd-mm-social-row {
  display: flex;
  gap: 12px;
  padding: 10px 0 0;
}
.scd-mm-social-row a {
  border: none !important;
  padding: 0 !important;
  font-size: 12px !important;
}
.scd-mm-social-row .discord-link { color: #5865F2 !important; font-weight: 600; }

/* Mobile auth buttons */
.scd-nav-mobile-menu .scd-mm-login {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.scd-nav-mobile-menu .scd-mm-signup {
  text-align: center;
  margin-top: 8px;
  padding: 14px 20px;
  border-radius: 8px;
  border-bottom: none;
  color: white;
  background: linear-gradient(135deg, #2ea043 0%, #388bfd 100%);
  cursor: pointer;
}

/* Mobile user section (logged in) */
.scd-mm-user-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scd-mm-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--scout-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.scd-mm-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scd-mm-user-name { font-size: 14px; font-weight: 600; color: var(--text-0); }
.scd-mm-user-email { font-size: 11px; color: var(--text-3); }
.scd-nav-mobile-menu .scd-mm-logout {
  color: var(--text-3) !important;
  font-size: 13px !important;
  cursor: pointer;
}
.scd-nav-mobile-menu .scd-mm-logout:hover { color: var(--red-bright) !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .scd-nav-links { display: none !important; }
  .scd-nav-right .scd-nav-login-btn,
  .scd-nav-right .scd-nav-signup-btn,
  .scd-nav-right .scd-nav-user { display: none !important; }
  .scd-nav-sub { display: none; }
  .scd-nav-hamburger { display: block; }
  #scd-nav-extras { display: none; }
}
@media (min-width: 769px) {
  .scd-nav-hamburger { display: none !important; }
  .scd-nav-mobile-menu { display: none !important; }
}

/* ── Auth Modal ──────────────────────────────────────────────── */
.scd-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,8,16,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scd-auth-overlay.hidden { display: none; }
.scd-auth-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
}
.scd-auth-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.scd-auth-logo svg { width: 24px; height: 24px; }
.scd-auth-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0 0 6px;
  font-family: var(--font);
}
.scd-auth-box p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0 0 24px;
}
.scd-auth-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-0);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.scd-auth-input:focus { border-color: var(--green); }
.scd-auth-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--bg-3);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  appearance: auto;
  font-family: var(--font);
  margin-bottom: 10px;
  box-sizing: border-box;
  outline: none;
}
.scd-auth-select:focus { border-color: var(--green); }
.scd-auth-submit {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: none;
  background: var(--green);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  margin-top: 4px;
}
.scd-auth-submit:hover { background: var(--green-bright); }
.scd-auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.scd-auth-error {
  color: var(--red-bright);
  font-size: 12px;
  margin-top: 8px;
  display: none;
}
.scd-auth-error.visible { display: block; }
.scd-auth-toggle {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}
.scd-auth-toggle a {
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
}
.scd-auth-subtle {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 14px;
}
.scd-auth-forgot {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
}
.scd-auth-forgot a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.scd-auth-forgot a:hover { color: var(--green); }

/* ── Password strength bar ── */
.scd-auth-pw-strength {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.scd-auth-pw-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--bg-4);
  transition: background 0.2s;
}
.scd-auth-pw-bar.weak { background: var(--red); }
.scd-auth-pw-bar.fair { background: var(--amber, #d29922); }
.scd-auth-pw-bar.good { background: var(--green); }
.scd-auth-pw-bar.strong { background: var(--green-bright); }

/* Close button (optional, for non-gated pages) */
.scd-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.scd-auth-close:hover { color: var(--text-0); border-color: var(--border-hover); }

/* ── Light Theme Overrides ── */
body.light .scd-nav { background: rgba(255,255,255,0.92); border-bottom-color: #d0d7de; }
body.light .scd-nav-mobile-menu { background: rgba(255,255,255,0.98); }
body.light .scd-nav-mobile-menu a { color: #1f2328; border-bottom-color: #d0d7de; }
body.light .scd-nav-mobile-menu a:hover { color: #000; }
body.light .scd-nav-mark { background: #f5f5f5; border-color: rgba(46,160,67,0.5); }

/* Nav text */
body.light .scd-nav-title { color: #1f2328; }
body.light .scd-nav-sub { color: #656d76; }
body.light .scd-nav-link { color: #656d76; }
body.light .scd-nav-link:hover { color: #1f2328; background: #f0f0f0; }
body.light .scd-nav-link.active { color: #1a7f37; }

/* More dropdown */
body.light .scd-nav-dropdown-menu { background: #fff; border-color: #d0d7de; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
body.light .scd-nav-dropdown-menu a { color: #656d76; }
body.light .scd-nav-dropdown-menu a:hover { color: #1f2328; background: #f0f0f0; }

/* Right-side controls */
body.light .scd-nav-theme-btn { background: #f0f0f0; border-color: #d0d7de; }
body.light .scd-nav-theme-btn:hover { background: #e0e0e0; border-color: #8b949e; }
body.light .scd-nav-login-btn { color: #656d76; }
body.light .scd-nav-login-btn:hover { color: #1f2328; background: #f0f0f0; }

/* User dropdown (logged-in) */
body.light .scd-nav-user:hover { background: #f0f0f0; }
body.light .scd-nav-avatar { color: #fff; }
body.light .scd-nav-user-name { color: #1f2328; }
body.light .scd-nav-user-chevron { color: #8b949e; }
body.light .scd-nav-user-tier.free { background: #e8e8e8; color: #656d76; }
body.light .scd-nav-user-tier.pro { background: #dafbe1; color: #1a7f37; }
body.light .scd-nav-user-tier.trial { background: #ddf4ff; color: #0969da; }
body.light .scd-nav-user-dropdown { background: #fff; border-color: #d0d7de; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
body.light .scd-nav-user-dropdown a,
body.light .scd-nav-user-dropdown button { color: #656d76; }
body.light .scd-nav-user-dropdown a:hover,
body.light .scd-nav-user-dropdown button:hover { color: #1f2328; background: #f0f0f0; }
body.light .scd-nav-user-dropdown .scd-nav-logout { color: #8b949e; border-top-color: #d0d7de; }
body.light .scd-nav-user-dropdown .scd-nav-logout:hover { color: #cf222e; }

/* Hamburger */
body.light .scd-nav-hamburger span { background: #1f2328; }

/* Mobile menu overrides */
body.light .scd-mm-more-toggle { color: #656d76; border-bottom-color: #d0d7de; }
body.light .scd-mm-more-toggle:hover { color: #1f2328; }
body.light .scd-mm-more-items a { color: #656d76 !important; border-bottom-color: rgba(0,0,0,0.06) !important; }
body.light .scd-mm-more-items a:hover { color: #1f2328 !important; }
body.light .scd-mm-user-name { color: #1f2328; }
body.light .scd-mm-user-email { color: #8b949e; }
body.light .scd-mm-logout { color: #8b949e !important; }
body.light .scd-mm-logout:hover { color: #cf222e !important; }
body.light .scd-mm-login { border-bottom-color: #d0d7de; }

/* Auth modal */
body.light .scd-auth-overlay { background: rgba(255,255,255,0.96); }
body.light .scd-auth-box { background: #fff; border-color: #e0e0e0; }
body.light .scd-auth-box h2 { color: #1f2328; }
body.light .scd-auth-box p { color: #656d76; }
body.light .scd-auth-input { background: #f5f5f5; color: #1a1a1a; border-color: #e0e0e0; }
body.light .scd-auth-select { background: #f5f5f5; color: #1a1a1a; border-color: #e0e0e0; }
body.light .scd-auth-toggle { color: #656d76; }
body.light .scd-auth-subtle { color: #8b949e; }
body.light .scd-auth-forgot a { color: #656d76; }
body.light .scd-auth-close { background: #f0f0f0; border-color: #d0d7de; color: #656d76; }
body.light .scd-auth-close:hover { color: #1f2328; border-color: #8b949e; }

/* ── noscript fallback ── */
.scd-nav-noscript {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scd-nav-noscript a { color: var(--text-0); text-decoration: none; font-weight: 700; font-size: 15px; }

/* ═══════════════════════════════════════════════════ */
/* Shared Footer (scd-footer.js)                       */
/* ═══════════════════════════════════════════════════ */
.scd-footer {
  background: var(--bg-1, #0d1017);
  border-top: 1px solid var(--border, #1a1f2e);
  padding: 48px 0 24px;
  font-family: var(--font, 'Inter', -apple-system, sans-serif);
}
.scd-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.scd-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.scd-footer-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-0, #f0f2f5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.scd-footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-2, #6e7681);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s;
}
.scd-footer-col a:hover { color: var(--text-0, #f0f2f5); }

.scd-footer-screeners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--border, #1a1f2e);
  border-bottom: 1px solid var(--border, #1a1f2e);
  margin-bottom: 24px;
}
.scd-footer-screeners a {
  font-size: 11px;
  color: var(--text-2, #6e7681);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border, #1a1f2e);
  border-radius: 20px;
  transition: all 0.15s;
}
.scd-footer-screeners a:hover { color: var(--text-1, #b8bec9); border-color: var(--text-3, #3d4250); }

.scd-footer-disclaimer {
  font-size: 11px;
  color: var(--text-3, #3d4250);
  line-height: 1.6;
  margin-bottom: 16px;
}
.scd-footer-disclaimer a { color: var(--text-2, #6e7681); text-decoration: underline; }

.scd-footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3, #3d4250);
}

/* Light theme */
body.light .scd-footer { background: #ffffff; border-color: #d0d7de; }
body.light .scd-footer-heading { color: #1f2328; }
body.light .scd-footer-col a { color: #656d76; }
body.light .scd-footer-col a:hover { color: #1f2328; }
body.light .scd-footer-screeners { border-color: #d0d7de; }
body.light .scd-footer-screeners a { color: #656d76; border-color: #d0d7de; }
body.light .scd-footer-screeners a:hover { color: #1f2328; border-color: #8b949e; }
body.light .scd-footer-disclaimer { color: #8b949e; }
body.light .scd-footer-disclaimer a { color: #656d76; }
body.light .scd-footer-bottom { color: #8b949e; }

/* Mobile */
@media (max-width: 768px) {
  .scd-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .scd-footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
  .scd-footer { padding-bottom: 80px; }
}
