/* ══════════════════════════════════════════════════════
   FASIL PLATFORM — ROYAL PARCHMENT LIGHT THEME v3
   Deep per-element overrides. data-theme="light" activates.
   Palette:
     bg        #faf6ef  (warm cream)
     surface   #f0e9d8  (parchment)
     deep      #e8dcc8  (deeper parchment)
     ink       #1a130b  (near-black)
     sand      #7a5c28  (warm brown — secondary text)
     gold      #9e6f1a  (amber — accent)
     muted     rgba(96,68,22,.45) (faint brown)
     border    rgba(150,108,40,.15)
   ══════════════════════════════════════════════════════ */

/* ── Floating Theme Toggle ─────────────────────────── */
#fasil-theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200,184,154,.25);
  background: rgba(13,26,46,.85);
  color: #d4a855;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  transition: background .3s, border-color .3s, transform .15s;
}
#fasil-theme-toggle:hover { transform: scale(1.1); }
html[data-theme="light"] #fasil-theme-toggle {
  background: rgba(250,246,239,.95);
  border-color: rgba(150,108,40,.3);
  color: #7a5c28;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* ══════════════════════════════════════════════════════
   CSS VARIABLE OVERRIDES (all 3 template groups)
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --navy:       #faf6ef;
  --navy-deep:  #f3ead8;
  --navy-mid:   #ede3cc;
  --navy-2:     #f0e9d8;
  --navy-3:     #e8dcc8;
  --bg:         #faf6ef;
  --surface:    rgba(0,0,0,.025);
  --white:      #1a130b;
  --text:       #1a130b;
  --sand:       #7a5c28;
  --sand-lt:    #5a3c18;
  --sub:        #7a5c28;
  --muted:      rgba(96,68,22,.85);
  --text-muted: rgba(96,68,22,.85);
  --gold:       #9e6f1a;
  --gold-lt:    #c18e2e;
  --gold2:      #b8892e;
  --gold-dark:  #7a5010;
  --border:     rgba(150,108,40,.15);
  --border-2:   rgba(150,108,40,.2);
  --line:       rgba(150,108,40,.18);
  --purple:     #6b4d99;
  --purple-lt:  #6b4d99;
  --green:      #1a7a38;
  --red:        #b91c1c;
  --blue:       #1a5a9e;
}

/* ── Global body ──────────────────────────────────── */
html[data-theme="light"] body {
  background: #faf6ef !important;
  color: #1a130b !important;
}

/* ── All inputs and textareas ─────────────────────── */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: rgba(240,233,216,.85) !important;
  color: #1a130b !important;
  border-color: rgba(150,108,40,.22) !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] ::placeholder {
  color: rgba(96,68,22,.7) !important;
  opacity: 1 !important;
}
html[data-theme="light"] select option {
  background: #faf6ef !important;
  color: #1a130b !important;
}

/* ══════════════════════════════════════════════════════
   STICKY/FIXED HEADERS — all templates
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .fd-header,
html[data-theme="light"] .db-header,
html[data-theme="light"] .dg-header,
html[data-theme="light"] .th-header,
html[data-theme="light"] .cd-header,
html[data-theme="light"] .rs-header,
html[data-theme="light"] .pr-header,
html[data-theme="light"] .fa-header,
html[data-theme="light"] .wr-header,
html[data-theme="light"] .tp-header,
html[data-theme="light"] .hd,
html[data-theme="light"] .lb-header,
html[data-theme="light"] .cp-header,
html[data-theme="light"] .fh {
  background: rgba(250,246,239,.96) !important;
  border-bottom-color: rgba(150,108,40,.14) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Header title text */
html[data-theme="light"] .dg-header-title,
html[data-theme="light"] .db-header-title,
html[data-theme="light"] .th-header-title,
html[data-theme="light"] .cd-header-title,
html[data-theme="light"] .fa-logo-text,
html[data-theme="light"] .fd-logo-text,
html[data-theme="light"] .db-logo-text,
html[data-theme="light"] .th-logo-text,
html[data-theme="light"] .cd-logo-text,
html[data-theme="light"] .pr-logo-text,
html[data-theme="light"] .rs-logo-text,
html[data-theme="light"] .rs-logo,
html[data-theme="light"] .wr-center-title,
html[data-theme="light"] .cp-logo,
html[data-theme="light"] .lb-logo,
html[data-theme="light"] .hd-title { color: #1a130b !important; }

/* Header nav/action buttons */
html[data-theme="light"] .fd-nav-btn,
html[data-theme="light"] .db-btn,
html[data-theme="light"] .dg-header-btn,
html[data-theme="light"] .th-header-btn,
html[data-theme="light"] .cd-header-btn,
html[data-theme="light"] .hd-btn,
html[data-theme="light"] .lb-back,
html[data-theme="light"] .cp-btn,
html[data-theme="light"] .rs-back,
html[data-theme="light"] .pr-back,
html[data-theme="light"] .tp-back,
html[data-theme="light"] .wr-header-btn {
  color: #7a5c28 !important;
  border-color: rgba(150,108,40,.22) !important;
}
html[data-theme="light"] .fd-nav-btn:hover,
html[data-theme="light"] .db-btn:hover,
html[data-theme="light"] .hd-btn:hover,
html[data-theme="light"] .lb-back:hover,
html[data-theme="light"] .cp-btn:hover,
html[data-theme="light"] .pr-back:hover {
  background: rgba(150,108,40,.08) !important;
  color: #1a130b !important;
}

/* Primary (colored bg) buttons — keep white text */
html[data-theme="light"] .fd-nav-btn.primary,
html[data-theme="light"] .db-btn.primary,
html[data-theme="light"] .dg-header-btn.primary,
html[data-theme="light"] .cp-btn.primary,
html[data-theme="light"] .wr-header-btn.primary { color: #fff !important; }

/* ══════════════════════════════════════════════════════
   CARDS — all templates
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .fd-card,
html[data-theme="light"] .fb-board-mini,
html[data-theme="light"] .fa-board-card,
html[data-theme="light"] .fa-debate-card,
html[data-theme="light"] .pr-card,
html[data-theme="light"] .rs-team-card,
html[data-theme="light"] .wr-vote-card,
html[data-theme="light"] .wr-opponent-card,
html[data-theme="light"] .tp-member,
html[data-theme="light"] .card {
  background: linear-gradient(155deg, rgba(240,233,216,.8), rgba(248,242,228,.92)) !important;
  border-color: rgba(150,108,40,.15) !important;
}
html[data-theme="light"] .fd-card:hover,
html[data-theme="light"] .fb-board-mini:hover,
html[data-theme="light"] .fa-board-card:hover {
  border-color: rgba(150,108,40,.38) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.07) !important;
}

/* Section / panel containers */
html[data-theme="light"] .pr-section,
html[data-theme="light"] .rs-score-bar,
html[data-theme="light"] .rs-goal-row,
html[data-theme="light"] .rs-quote-card,
html[data-theme="light"] .rs-chain,
html[data-theme="light"] .db-chain-ticker,
html[data-theme="light"] .db-floor-bar,
html[data-theme="light"] .db-phase-strip,
html[data-theme="light"] .db-timelocker,
html[data-theme="light"] .db-vs,
html[data-theme="light"] .db-goal-card,
html[data-theme="light"] .dg-timelocker,
html[data-theme="light"] .dg-goal-card,
html[data-theme="light"] .dg-waiting,
html[data-theme="light"] .th-reply-box,
html[data-theme="light"] .th-sidebar-card,
html[data-theme="light"] .cd-card,
html[data-theme="light"] .wr-left,
html[data-theme="light"] .wr-right,
html[data-theme="light"] .wr-rules,
html[data-theme="light"] .wr-input-wrap,
html[data-theme="light"] .fa-ticker,
html[data-theme="light"] .fd-welcome-inner,
html[data-theme="light"] .fb-pulse-inner,
html[data-theme="light"] .cp-stat,
html[data-theme="light"] .cp-card,
html[data-theme="light"] .lb-row {
  background: rgba(240,233,216,.65) !important;
  border-color: rgba(150,108,40,.14) !important;
}
html[data-theme="light"] .lb-row:hover {
  background: rgba(235,225,208,.9) !important;
  border-color: rgba(150,108,40,.3) !important;
}

/* Hero/winner banner */
html[data-theme="light"] .db-team-card {
  background: linear-gradient(155deg, rgba(240,233,216,.8), rgba(248,242,228,.92)) !important;
  border-color: rgba(150,108,40,.16) !important;
}
html[data-theme="light"] .db-winner-banner,
html[data-theme="light"] .dg-finished-banner {
  background: linear-gradient(135deg, rgba(26,122,56,.06), rgba(240,233,216,.5)) !important;
  border-color: rgba(26,122,56,.22) !important;
}
html[data-theme="light"] .rs-winner {
  background: linear-gradient(135deg, rgba(158,111,26,.07), rgba(240,233,216,.55)) !important;
  border-color: rgba(158,111,26,.22) !important;
}
html[data-theme="light"] .dg-goal-card {
  background: linear-gradient(135deg, rgba(158,111,26,.06), rgba(240,233,216,.45)) !important;
  border-color: rgba(158,111,26,.2) !important;
}
html[data-theme="light"] .wr-goal-card {
  background: linear-gradient(135deg, rgba(158,111,26,.06), rgba(240,233,216,.5)) !important;
  border-color: rgba(158,111,26,.2) !important;
}

/* Image / avatar placeholders */
html[data-theme="light"] .fd-card-img-placeholder,
html[data-theme="light"] .fb-mini-img-placeholder,
html[data-theme="light"] .fa-board-img-placeholder,
html[data-theme="light"] .pr-debate-thumb,
html[data-theme="light"] .th-debate-img-ph,
html[data-theme="light"] .th-other-thread-av,
html[data-theme="light"] .lb-avatar-ph,
html[data-theme="light"] .lb-pod-avatar-ph {
  background: linear-gradient(135deg, rgba(220,210,190,.9), rgba(235,225,208,.8)) !important;
}

/* Hero image overlays */
html[data-theme="light"] .fa-quote-hero-overlay {
  background: linear-gradient(135deg, rgba(250,246,239,.95) 0%, rgba(240,233,216,.7) 50%, rgba(235,225,208,.5) 100%) !important;
}
html[data-theme="light"] .db-hero-overlay {
  background: linear-gradient(to top, rgba(250,246,239,1) 0%, rgba(250,246,239,.75) 55%, transparent 100%) !important;
}

/* ══════════════════════════════════════════════════════
   TEXT COLORS — fixing all hardcoded #fff / rgba(255,255,255)
   ══════════════════════════════════════════════════════ */

/* Primary content text (white on dark bg → ink on light bg) */
html[data-theme="light"] .dg-goal-body,
html[data-theme="light"] .dg-header-title,
html[data-theme="light"] .dg-countdown,
html[data-theme="light"] .db-floor-speaker,
html[data-theme="light"] .th-author,
html[data-theme="light"] .th-comment-text,
html[data-theme="light"] .th-debate-title,
html[data-theme="light"] .th-feed-title,
html[data-theme="light"] .th-header-title,
html[data-theme="light"] .cd-logo-text,
html[data-theme="light"] .cd-package-name,
html[data-theme="light"] .cd-title,
html[data-theme="light"] .pr-academic-val,
html[data-theme="light"] .pr-debate-title,
html[data-theme="light"] .pr-logo-text,
html[data-theme="light"] .pr-name,
html[data-theme="light"] .pr-score-num,
html[data-theme="light"] .pr-stat-num,
html[data-theme="light"] .rs-logo-text,
html[data-theme="light"] .rs-section-title,
html[data-theme="light"] .rs-stat-num,
html[data-theme="light"] .rs-team-name,
html[data-theme="light"] .wr-member-name,
html[data-theme="light"] .wr-goal-body,
html[data-theme="light"] .wr-center-title,
html[data-theme="light"] .wr-vote-cd,
html[data-theme="light"] .fa-board-activity,
html[data-theme="light"] .cp-card-title,
html[data-theme="light"] .cp-item-title,
html[data-theme="light"] .lb-hero-title,
html[data-theme="light"] .lb-name,
html[data-theme="light"] .lb-pod-name,
html[data-theme="light"] .page-title,
html[data-theme="light"] .card-title { color: #1a130b !important; }

/* Secondary / semi-muted text */
html[data-theme="light"] .dg-waiting-title,
html[data-theme="light"] .th-empty-title,
html[data-theme="light"] .wr-empty-title,
html[data-theme="light"] .db-notif-item-body,
html[data-theme="light"] .rs-goal-body,
html[data-theme="light"] .rs-member,
html[data-theme="light"] .rs-quote-body { color: rgba(26,19,11,.85) !important; }

/* Muted / caption text */
html[data-theme="light"] .db-notif-item-time,
html[data-theme="light"] .db-notif-empty,
html[data-theme="light"] .page-sub,
html[data-theme="light"] .cp-item-sub,
html[data-theme="light"] .cp-stat-lbl,
html[data-theme="light"] .lb-hero-sub,
html[data-theme="light"] .lb-empty,
html[data-theme="light"] .lb-pod-sub,
html[data-theme="light"] .footer { color: rgba(96,68,22,.85) !important; }

/* Hardcoded sand (rgba 200,184,154) text → warm brown */
html[data-theme="light"] .fb-boards-row,
html[data-theme="light"] .fb-boards-subtitle,
html[data-theme="light"] .fb-mini-bubble,
html[data-theme="light"] .fb-mini-heat,
html[data-theme="light"] .fb-pulse-text,
html[data-theme="light"] .fd-hero-kbd,
html[data-theme="light"] .fd-hero-kbd-row,
html[data-theme="light"] .fd-hero-search-hint,
html[data-theme="light"] .fd-hero-search-label,
html[data-theme="light"] .fd-hero-stat-lbl,
html[data-theme="light"] .fd-overlay-close,
html[data-theme="light"] .fd-overlay-empty,
html[data-theme="light"] .fd-overlay-hint,
html[data-theme="light"] .wr-messages,
html[data-theme="light"] .wr-rules,
html[data-theme="light"] .wr-tip,
html[data-theme="light"] .wr-left,
html[data-theme="light"] .wr-msg-time { color: #7a5c28 !important; }

/* Numbers / stats that were white */
html[data-theme="light"] .fd-hero-stat-num,
html[data-theme="light"] .fd-card-votes,
html[data-theme="light"] .fb-mini-count { color: rgba(26,19,11,.8) !important; }

/* ══════════════════════════════════════════════════════
   SEARCH & FILTER INPUTS
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .fd-hero-search-big,
html[data-theme="light"] .fd-hero-search,
html[data-theme="light"] .fd-search,
html[data-theme="light"] .fd-overlay-input {
  background: rgba(240,233,216,.88) !important;
  border-color: rgba(150,108,40,.22) !important;
  color: #1a130b !important;
}
html[data-theme="light"] .fd-hero-search-big input {
  background: rgba(240,233,216,.88) !important;
  border-color: rgba(150,108,40,.22) !important;
  color: #1a130b !important;
}
html[data-theme="light"] .fd-hero-search-big:hover,
html[data-theme="light"] .fd-hero-search-big input:hover,
html[data-theme="light"] .fd-hero-search:hover,
html[data-theme="light"] .fd-hero-search:focus,
html[data-theme="light"] .fd-search:focus,
html[data-theme="light"] .fd-overlay-input:focus {
  background: rgba(235,225,208,.96) !important;
  border-color: rgba(158,111,26,.4) !important;
}

/* Filter tabs */
html[data-theme="light"] .fd-tab {
  background: rgba(240,233,216,.65) !important;
  border-color: rgba(150,108,40,.15) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .fd-tab:hover,
html[data-theme="light"] .fd-tab.active {
  background: rgba(235,225,208,.92) !important;
  border-color: rgba(150,108,40,.35) !important;
  color: #1a130b !important;
}

/* Stat pills */
html[data-theme="light"] .fd-stat-pill {
  background: rgba(240,233,216,.65) !important;
  border-color: rgba(150,108,40,.13) !important;
  color: #7a5c28 !important;
}

/* Divider badge */
html[data-theme="light"] .fb-divider-badge {
  background: rgba(240,233,216,.85) !important;
  color: #7a5c28 !important;
}

/* Search overlay results */
html[data-theme="light"] .fd-overlay-thumb {
  background: rgba(225,215,195,.9) !important;
}
html[data-theme="light"] .fd-overlay-item { color: #1a130b !important; }
html[data-theme="light"] .fd-overlay-item:hover,
html[data-theme="light"] .fd-overlay-item.focused {
  background: rgba(158,111,26,.07) !important;
}

/* ══════════════════════════════════════════════════════
   FORM ELEMENTS (debate_goal, thread, create_debate, team_thought)
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .cd-select,
html[data-theme="light"] .th-main-textarea,
html[data-theme="light"] .th-reply-textarea,
html[data-theme="light"] .wr-textarea,
html[data-theme="light"] .dg-whisper-input {
  background: rgba(240,233,216,.88) !important;
  border-color: rgba(150,108,40,.22) !important;
  color: #1a130b !important;
}
html[data-theme="light"] .cd-vs {
  background: rgba(240,233,216,.65) !important;
  color: #7a5c28 !important;
}

/* Step dots in create_debate */
html[data-theme="light"] .cd-step-dot {
  background: rgba(225,215,195,.9) !important;
  color: #7a5c28 !important;
  border-color: rgba(150,108,40,.2) !important;
}
html[data-theme="light"] .cd-step-dot.active {
  background: #9e6f1a !important;
  color: #faf6ef !important;
}

/* Whisper panel */
html[data-theme="light"] .dg-whisper-toggle {
  background: rgba(240,233,216,.96) !important;
  border-color: rgba(150,108,40,.2) !important;
}
html[data-theme="light"] .dg-whisper-body,
html[data-theme="light"] .dg-whisper-input-row {
  background: rgba(250,246,239,.97) !important;
  border-color: rgba(150,108,40,.14) !important;
}
html[data-theme="light"] .dg-whisper-input {
  background: rgba(240,233,216,.9) !important;
  color: #1a130b !important;
}
html[data-theme="light"] .dg-whisper-msg.other {
  background: rgba(240,233,216,.75) !important;
  color: #1a130b !important;
}

/* Thread main input sticky bar */
html[data-theme="light"] .th-main-input {
  background: rgba(250,246,239,.97) !important;
  border-top-color: rgba(150,108,40,.14) !important;
}
html[data-theme="light"] .th-toast {
  background: rgba(240,233,216,.97) !important;
  color: #1a130b !important;
  border-color: rgba(150,108,40,.2) !important;
}

/* ══════════════════════════════════════════════════════
   MESSAGES (team_thought chat)
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .wr-msg-body {
  background: rgba(240,233,216,.75) !important;
  color: rgba(26,19,11,.9) !important;
}

/* ══════════════════════════════════════════════════════
   DEBATE_GOAL — PHASE / WAITING / PROGRESS
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .dg-waiting-title { color: rgba(26,19,11,.8) !important; }
html[data-theme="light"] .dg-waiting i     { color: rgba(150,108,40,.2) !important; }

html[data-theme="light"] .dg-goal-link { color: rgba(96,68,22,.85) !important; }
html[data-theme="light"] .dg-goal-link:hover { color: #7a5c28 !important; background: rgba(150,108,40,.06) !important; }
html[data-theme="light"] .dg-goal-link.active { color: #855820 !important; background: rgba(158,111,26,.08) !important; }
html[data-theme="light"] .dg-goal-dot { background: rgba(225,215,195,.9) !important; color: rgba(96,68,22,.85) !important; }
html[data-theme="light"] .dg-goal-link.active .dg-goal-dot { background: rgba(158,111,26,.2) !important; color: #855820 !important; }

html[data-theme="light"] .dg-phase-label { color: #855820 !important; }
html[data-theme="light"] .dg-progress-track { background: rgba(150,108,40,.12) !important; }
html[data-theme="light"] .dg-countdown { color: #1a130b !important; }

/* ══════════════════════════════════════════════════════
   DEBATE — GOAL / PHASE BLOCKS
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .db-goal-num {
  background: rgba(240,233,216,.8) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .db-notif-item-title { color: #1a130b !important; }
html[data-theme="light"] .db-notif-item-body  { color: rgba(26,19,11,.8) !important; }
html[data-theme="light"] .db-notif-item-time  { color: rgba(96,68,22,.85) !important; }
html[data-theme="light"] .db-notif-empty      { color: rgba(96,68,22,.85) !important; }
html[data-theme="light"] .db-countdown-sep    { color: rgba(96,68,22,.85) !important; }

/* db-shimmer (loading skeleton) — keep dark so it still "shimmers" */
/* No override — brief loading state */

/* ══════════════════════════════════════════════════════
   THREAD PAGE
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .th-debate-link,
html[data-theme="light"] .th-login-link { color: #855820 !important; }
html[data-theme="light"] .th-comment-text { color: rgba(26,19,11,.88) !important; }

/* ══════════════════════════════════════════════════════
   ALL_DEBATES_THREADS (fa-* prefix)
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .fa-board-activity { color: rgba(26,19,11,.7) !important; }
html[data-theme="light"] .fa-ticker { color: #7a5c28 !important; }

/* ══════════════════════════════════════════════════════
   PROFILE
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .pr-bio            { color: #7a5c28 !important; }
html[data-theme="light"] .pr-section-count  {
  background: rgba(150,108,40,.1) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .pr-debate-item:hover { background: rgba(150,108,40,.04) !important; }
html[data-theme="light"] .pr-academic-item {
  background: rgba(240,233,216,.55) !important;
  border-color: rgba(150,108,40,.12) !important;
}
html[data-theme="light"] .pr-avatar-ph { color: #7a5c28 !important; }

/* ══════════════════════════════════════════════════════
   RESULTS PAGE
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .rs-section-label { color: #6b4d99 !important; }
html[data-theme="light"] .rs-ai-bar-val    { color: #1a130b !important; }
html[data-theme="light"] .rs-goal-body,
html[data-theme="light"] .rs-member,
html[data-theme="light"] .rs-quote-body   { color: rgba(26,19,11,.85) !important; }

/* ══════════════════════════════════════════════════════
   LEADERBOARD
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .lb-pod.first   {
  background: rgba(158,111,26,.07) !important;
  border-color: rgba(158,111,26,.22) !important;
}
html[data-theme="light"] .lb-pod.second,
html[data-theme="light"] .lb-pod.third  {
  background: rgba(240,233,216,.55) !important;
  border-color: rgba(150,108,40,.13) !important;
}
html[data-theme="light"] .lb-bar-wrap { background: rgba(150,108,40,.12) !important; }

/* ══════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .cp-card-head {
  border-bottom-color: rgba(150,108,40,.12) !important;
}
html[data-theme="light"] .cp-item {
  border-bottom-color: rgba(150,108,40,.07) !important;
}
html[data-theme="light"] .cp-item:hover { background: rgba(150,108,40,.04) !important; }
html[data-theme="light"] .cp-action-btn {
  color: #7a5c28 !important;
  border-color: rgba(150,108,40,.2) !important;
  background: transparent !important;
}
html[data-theme="light"] .cp-action-btn:hover { background: rgba(150,108,40,.07) !important; }
html[data-theme="light"] .cp-empty { color: #7a5c28 !important; }

/* ══════════════════════════════════════════════════════
   MY_DEBATES PAGE (all hardcoded, no CSS vars)
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .fh-logo span  { color: #1a130b !important; }
html[data-theme="light"] .fh-logo small { color: #7a5c28 !important; }
html[data-theme="light"] .fh-nav a      { color: #7a5c28 !important; }
html[data-theme="light"] .fh-nav a:hover { color: #1a130b !important; }
html[data-theme="light"] .fh-nav .btn-logout {
  background: rgba(150,108,40,.08) !important;
  border-color: rgba(150,108,40,.25) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .card:hover { border-color: rgba(150,108,40,.4) !important; }
html[data-theme="light"] .card-action a {
  background: #9e6f1a !important;
  color: #faf6ef !important;
}
html[data-theme="light"] .empty       { color: #7a5c28 !important; }
html[data-theme="light"] .empty h3    { color: #5a3c18 !important; }
html[data-theme="light"] .empty a     { background: #9e6f1a !important; color: #faf6ef !important; }

/* ══════════════════════════════════════════════════════
   GOAL_THREAD (group C — own CSS var group)
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .hd-back {
  background: rgba(240,233,216,.75) !important;
  border-color: rgba(150,108,40,.2) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .hd-back:hover {
  background: rgba(235,225,208,.95) !important;
  color: #1a130b !important;
}
html[data-theme="light"] .hd-btn { border-color: rgba(150,108,40,.22) !important; color: #7a5c28 !important; }
html[data-theme="light"] .badge.active  {
  background: rgba(26,122,56,.1) !important;
  color: #1a7a38 !important;
  border-color: rgba(26,122,56,.28) !important;
}
html[data-theme="light"] .badge.waiting {
  background: rgba(158,111,26,.1) !important;
  color: #855820 !important;
  border-color: rgba(158,111,26,.28) !important;
}
html[data-theme="light"] .badge.finished {
  background: rgba(107,77,153,.1) !important;
  color: #6b4d99 !important;
  border-color: rgba(107,77,153,.28) !important;
}
html[data-theme="light"] .badge.rejected {
  background: rgba(185,28,28,.08) !important;
  color: #b91c1c !important;
  border-color: rgba(185,28,28,.22) !important;
}
html[data-theme="light"] .ti-eta {
  background: rgba(240,233,216,.6) !important;
  border-color: rgba(158,111,26,.3) !important;
}
html[data-theme="light"] .ti-ref { border-color: rgba(150,108,40,.15) !important; }
html[data-theme="light"] .ti-ref:hover { background: rgba(150,108,40,.04) !important; }
html[data-theme="light"] .rq-item:hover { background: rgba(150,108,40,.06) !important; }
html[data-theme="light"] .cbar {
  background: rgba(250,246,239,.97) !important;
  border-top-color: rgba(150,108,40,.14) !important;
}

/* ══════════════════════════════════════════════════════
   SCROLL-TO-TOP BUTTON (all_debates, debate)
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .fd-go-top,
html[data-theme="light"] [class*="go-top"],
html[data-theme="light"] [class*="back-top"] {
  background: rgba(240,233,216,.94) !important;
  border-color: rgba(150,108,40,.22) !important;
  color: #7a5c28 !important;
}

/* ══════════════════════════════════════════════════════
   SMOOTH TRANSITIONS — theme switch animation
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] body,
html[data-theme="dark"] body {
  transition: background-color .3s ease, color .3s ease;
}
html[data-theme="light"] .fd-header,
html[data-theme="light"] .db-header,
html[data-theme="light"] .dg-header,
html[data-theme="light"] .th-header,
html[data-theme="light"] .cd-header,
html[data-theme="light"] .rs-header,
html[data-theme="light"] .fa-header,
html[data-theme="light"] .lb-header,
html[data-theme="light"] .cp-header,
html[data-theme="light"] .pr-header,
html[data-theme="light"] .hd,
html[data-theme="dark"] .fd-header,
html[data-theme="dark"] .db-header,
html[data-theme="dark"] .dg-header,
html[data-theme="dark"] .th-header,
html[data-theme="dark"] .cd-header,
html[data-theme="dark"] .rs-header,
html[data-theme="dark"] .fa-header,
html[data-theme="dark"] .lb-header,
html[data-theme="dark"] .cp-header,
html[data-theme="dark"] .pr-header,
html[data-theme="dark"] .hd {
  transition: background .3s ease, border-color .3s ease;
}
html[data-theme="light"] .fd-card,
html[data-theme="light"] .fb-board-mini,
html[data-theme="light"] .fa-board-card,
html[data-theme="light"] .pr-card,
html[data-theme="light"] .lb-row,
html[data-theme="light"] .cp-stat,
html[data-theme="light"] .cp-card,
html[data-theme="dark"] .fd-card,
html[data-theme="dark"] .fb-board-mini,
html[data-theme="dark"] .fa-board-card,
html[data-theme="dark"] .pr-card,
html[data-theme="dark"] .lb-row,
html[data-theme="dark"] .cp-stat,
html[data-theme="dark"] .cp-card {
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* ══════════════════════════════════════════════════════
   ADDENDUM — elements missed in initial pass
   ══════════════════════════════════════════════════════ */

/* ── debate.html notification panel ──────────────────── */
html[data-theme="light"] .db-notif-btn {
  background: rgba(150,108,40,.08) !important;
  border-color: rgba(150,108,40,.18) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .db-notif-btn:hover {
  background: rgba(150,108,40,.14) !important;
}
html[data-theme="light"] .db-notif-panel {
  background: rgba(250,246,239,.98) !important;
  border-color: rgba(150,108,40,.18) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.1) !important;
}
html[data-theme="light"] .db-notif-item:hover {
  background: rgba(150,108,40,.05) !important;
}
html[data-theme="light"] .db-member-chip {
  background: rgba(150,108,40,.06) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .db-member-chip:hover {
  background: rgba(150,108,40,.12) !important;
  color: #1a130b !important;
}

/* ── team_thought.html remaining ─────────────────────── */
html[data-theme="light"] .wr-member {
  background: rgba(150,108,40,.04) !important;
}
html[data-theme="light"] .wr-member:hover {
  background: rgba(150,108,40,.08) !important;
}
html[data-theme="light"] .wr-center-header {
  background: rgba(240,233,216,.55) !important;
  border-bottom-color: rgba(150,108,40,.12) !important;
}
html[data-theme="light"] .wr-left {
  background: rgba(240,233,216,.55) !important;
  border-color: rgba(150,108,40,.14) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .wr-right {
  background: rgba(240,233,216,.45) !important;
}
html[data-theme="light"] .wr-msg-body {
  background: rgba(240,233,216,.8) !important;
  color: rgba(26,19,11,.9) !important;
}

/* ── create_debate.html remaining ────────────────────── */
html[data-theme="light"] .cd-team-box,
html[data-theme="light"] .cd-package {
  background: rgba(150,108,40,.04) !important;
}
html[data-theme="light"] .cd-back:hover { color: #1a130b !important; }

/* ── thread.html remaining ───────────────────────────── */
html[data-theme="light"] .th-action-btn:hover {
  background: rgba(150,108,40,.06) !important;
}
html[data-theme="light"] .th-other-thread:hover {
  background: rgba(150,108,40,.04) !important;
}
html[data-theme="light"] .th-header-btn:hover { color: #1a130b !important; }

/* ── all_debates_threads.html fa-* remaining ─────────── */
html[data-theme="light"] .fa-debate-card {
  background: linear-gradient(155deg, rgba(240,233,216,.75), rgba(248,242,228,.9)) !important;
  border-color: rgba(150,108,40,.14) !important;
}

/* ── all_debates.html hover states ───────────────────── */
html[data-theme="light"] .fd-hero-search-big input:focus { color: #1a130b !important; }

/* ── Global: any remaining hardcoded rgba(255,255,255) text that
      is NOT inside a colored button or logo mark ──────── */
html[data-theme="light"] .db-countdown-sep { color: rgba(96,68,22,.85) !important; }
html[data-theme="light"] .db-shimmer,
html[data-theme="light"] .fa-shimmer,
html[data-theme="light"] .cd-shimmer,
html[data-theme="light"] .pr-shimmer,
html[data-theme="light"] .rs-shimmer {
  background: linear-gradient(90deg,
    rgba(235,225,208,.8) 25%,
    rgba(245,238,222,1) 50%,
    rgba(235,225,208,.8) 75%) !important;
  background-size: 200% 100% !important;
}

/* ══════════════════════════════════════════════════════
   PASS 3 — boards/threads + goal page inline-style fixes
   ══════════════════════════════════════════════════════ */

/* ── all_debates.html: boards title row ─────────────── */
html[data-theme="light"] .fb-boards-title {
  color: #1a130b !important;
}
html[data-theme="light"] .fb-boards-see-all {
  color: #855820 !important;
}
html[data-theme="light"] .fb-boards-icon {
  background: linear-gradient(135deg, rgba(158,111,26,.18), rgba(158,111,26,.09)) !important;
  border-color: rgba(158,111,26,.25) !important;
}

/* ── all_debates.html: each thread card inner text ──── */
html[data-theme="light"] .fb-mini-title {
  color: #1a130b !important;
}
html[data-theme="light"] .fb-mini-bubble {
  background: rgba(150,108,40,.05) !important;
  border-color: rgba(150,108,40,.1) !important;
  color: rgba(96,68,22,.8) !important;
}
html[data-theme="light"] .fb-mini-join {
  color: #6b4d99 !important;
}
html[data-theme="light"] .fb-board-mini:hover .fb-mini-join {
  color: #855820 !important;
}
html[data-theme="light"] .fb-mini-footer {
  border-top-color: rgba(150,108,40,.08) !important;
}

/* ── all_debates.html: live pulse strip ─────────────── */
html[data-theme="light"] .fb-pulse-inner {
  background: linear-gradient(135deg, rgba(107,77,153,.06), rgba(240,233,216,.6)) !important;
  border-color: rgba(107,77,153,.18) !important;
}
html[data-theme="light"] .fb-pulse-text {
  color: rgba(96,68,22,.8) !important;
}
html[data-theme="light"] .fb-pulse-text strong {
  color: #855820 !important;
}
html[data-theme="light"] .fb-pulse-divider {
  background: rgba(150,108,40,.15) !important;
}
html[data-theme="light"] .fb-pulse-item {
  border-left-color: rgba(150,108,40,.08) !important;
}

/* ── debate_goal.html: notification button (inline style override) */
html[data-theme="light"] #notifBtn {
  background: rgba(150,108,40,.08) !important;
  border-color: rgba(150,108,40,.2) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] #notifBtn:hover {
  background: rgba(150,108,40,.14) !important;
}

/* ── debate_goal.html: notification panel (inline style override) */
html[data-theme="light"] #notifPanel {
  background: rgba(250,246,239,.99) !important;
  border-color: rgba(150,108,40,.18) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.1) !important;
}
html[data-theme="light"] #notifPanel > div:first-child {
  color: rgba(96,68,22,.85) !important;
  border-bottom-color: rgba(150,108,40,.1) !important;
}
html[data-theme="light"] #notifPanel > div:first-child button {
  color: rgba(96,68,22,.85) !important;
}
html[data-theme="light"] #notifList > div {
  color: rgba(96,68,22,.85) !important;
}

/* ── debate_goal.html: user role badge in sidebar ───── */
html[data-theme="light"] .dg-user-badge {
  background: rgba(240,233,216,.7) !important;
  border-color: rgba(150,108,40,.15) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .dg-user-badge.member-support {
  background: rgba(26,90,158,.06) !important;
  border-color: rgba(26,90,158,.2) !important;
  color: #1a5a9e !important;
}
html[data-theme="light"] .dg-user-badge.member-opposing {
  background: rgba(185,28,28,.06) !important;
  border-color: rgba(185,28,28,.2) !important;
  color: #b91c1c !important;
}
html[data-theme="light"] .dg-user-badge.organizer {
  background: rgba(158,111,26,.08) !important;
  border-color: rgba(158,111,26,.25) !important;
  color: #855820 !important;
}
html[data-theme="light"] .dg-user-badge.sponsor {
  background: rgba(107,77,153,.07) !important;
  border-color: rgba(107,77,153,.22) !important;
  color: #6b4d99 !important;
}

/* ── debate_goal.html: filibuster cloture button (inline style) */
html[data-theme="light"] [onclick="requestCloture()"] {
  background: rgba(185,28,28,.07) !important;
  border-color: rgba(185,28,28,.25) !important;
  color: #b91c1c !important;
}

/* ── debate_goal.html: body base color (hardcoded #fff) */
html[data-theme="light"] .dg-bg {
  background: none !important;
}

/* ── all_debates.html: divider line ─────────────────── */
html[data-theme="light"] .fb-divider-line {
  background: rgba(150,108,40,.1) !important;
}

/* ── all_debates_threads.html: ticker strip bg ─────── */
html[data-theme="light"] .fa-ticker {
  background: rgba(240,233,216,.85) !important;
  border-top-color: rgba(150,108,40,.1) !important;
  border-bottom-color: rgba(150,108,40,.1) !important;
}
html[data-theme="light"] .fa-ticker-item {
  border-left-color: rgba(150,108,40,.1) !important;
}
/* ── all_debates_threads.html: section count badge ─── */
html[data-theme="light"] .fa-section-count {
  background: rgba(240,233,216,.8) !important;
  border-color: rgba(150,108,40,.12) !important;
}
/* ── all_debates_threads.html: board card arrow hover */
html[data-theme="light"] .fa-board-card:hover .fa-board-arrow {
  color: #fff !important;
}

/* ══════════════════════════════════════════════════════
   GOAL_THREAD PAGE — deep element overrides
   ══════════════════════════════════════════════════════ */

/* Goal card: replace dark gradient overlay with warm parchment fade */
html[data-theme="light"] .goal-card {
  border-color: rgba(150,108,40,.15) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.06) !important;
}
html[data-theme="light"] .goal-card-overlay,
html[data-theme="light"] .ts-overlay {
  background: linear-gradient(to bottom,
    rgba(250,246,239,.05) 0%,
    rgba(250,246,239,.25) 35%,
    rgba(250,246,239,.82) 62%,
    rgba(250,246,239,1)   100%) !important;
}
html[data-theme="light"] .goal-card-bg.no-img,
html[data-theme="light"] .ts-bg.no-img {
  background: linear-gradient(135deg, rgba(240,233,216,.9), rgba(235,225,208,.8)) !important;
  opacity: .7 !important;
}

/* Phase badge inside goal card */
html[data-theme="light"] .goal-card-phase {
  background: rgba(26,90,158,.07) !important;
  border-color: rgba(26,90,158,.2) !important;
  color: #1a5a9e !important;
}

/* Thread item avatar */
html[data-theme="light"] .ti-av {
  background: linear-gradient(135deg, rgba(220,210,190,.9), rgba(235,225,208,.8)) !important;
  border-color: rgba(150,108,40,.15) !important;
  color: #7a5c28 !important;
}
/* Thread connector line */
html[data-theme="light"] .ti-thread-line {
  background: linear-gradient(to bottom, rgba(150,108,40,.25), rgba(150,108,40,.08)) !important;
}

/* Reference card inside a thread item */
html[data-theme="light"] .ti-ref {
  background: rgba(240,233,216,.5) !important;
  border-color: rgba(150,108,40,.14) !important;
}
html[data-theme="light"] .ti-ref:hover {
  background: rgba(235,225,208,.8) !important;
}
html[data-theme="light"] .ti-ref-title {
  color: #1a5a9e !important;
}

/* Reply-quote popover */
html[data-theme="light"] .rq-pop {
  background: rgba(250,246,239,.99) !important;
  border-color: rgba(150,108,40,.18) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}
html[data-theme="light"] .rq-item:hover {
  background: rgba(150,108,40,.06) !important;
}

/* Mobile topic strip */
html[data-theme="light"] .topic-strip {
  border-bottom-color: rgba(150,108,40,.12) !important;
}

/* Side card */
html[data-theme="light"] .side-card {
  background: rgba(240,233,216,.65) !important;
  border-color: rgba(150,108,40,.14) !important;
}
html[data-theme="light"] .side-head {
  border-bottom-color: rgba(150,108,40,.1) !important;
}

/* Repost items */
html[data-theme="light"] .rp-item:hover {
  background: rgba(150,108,40,.04) !important;
}
html[data-theme="light"] .rp-item {
  border-bottom-color: rgba(150,108,40,.08) !important;
}

/* Composer reference input */
html[data-theme="light"] .c-ri {
  background: rgba(240,233,216,.7) !important;
  border-color: rgba(150,108,40,.18) !important;
  color: #1a130b !important;
}
html[data-theme="light"] .c-ri::placeholder {
  color: rgba(96,68,22,.85) !important;
}

/* Column border */
html[data-theme="light"] .col-main {
  border-right-color: rgba(150,108,40,.12) !important;
}

/* ══════════════════════════════════════════════════════
   PASS 4 — Gold text contrast: #9e6f1a (4.11:1 FAILS)
   → #855820 (5.71:1 PASSES) for all text-only gold uses.
   Decorative icons use var(--gold) at 4.11:1 which meets
   the 3:1 non-text threshold — those are left untouched.
   ══════════════════════════════════════════════════════ */

/* all_debates.html — page badge, stats, verify link */
html[data-theme="light"] .fd-page-badge       { color: #855820 !important; }
html[data-theme="light"] .fd-stat-val          { color: #855820 !important; }
html[data-theme="light"] .fd-verify-inner a    { color: #855820 !important; }
html[data-theme="light"] .fd-footer-links a:hover { color: #855820 !important; }

/* debate.html — phase, timelocker, goal tag, sponsor, winner labels, footer */
html[data-theme="light"] .db-phase-current     { color: #855820 !important; }
html[data-theme="light"] .db-timelocker-label  { color: #855820 !important; }
html[data-theme="light"] .db-goal-tag.active   { color: #855820 !important; }
html[data-theme="light"] .db-sponsor-name      { color: #855820 !important; }
html[data-theme="light"] .db-winner-label      { color: #855820 !important; }
html[data-theme="light"] .db-footer a          { color: #855820 !important; }

/* debate_goal.html — result link */
html[data-theme="light"] .dg-result-link       { color: #855820 !important; }

/* goal_thread.html — topic label, notice link, sidebar label, goal card label */
html[data-theme="light"] .ts-label             { color: #855820 !important; }
html[data-theme="light"] .side-label           { color: #855820 !important; }
html[data-theme="light"] .goal-card-label      { color: #855820 !important; }
html[data-theme="light"] .notice a             { color: #855820 !important; }
html[data-theme="light"] .hd-btn:hover         { color: #855820 !important; }

/* thread.html — sidebar head icon, gold link */
html[data-theme="light"] .th-sidebar-head i    { color: #855820 !important; }

/* all_debates_threads.html — section label (was purple-lt = 3.64:1) */
html[data-theme="light"] .fa-section-label    { color: #6b4d99 !important; }

/* debate_goal.html — speaker badge vote state (was purple-lt) */
html[data-theme="light"] .dg-speaker-badge.vote { color: #6b4d99 !important; }

/* ── Global: any remaining var(--gold) TEXT spans / anchors ── */
html[data-theme="light"] a[style*="color:var(--gold)"],
html[data-theme="light"] span[style*="color:var(--gold)"],
html[data-theme="light"] div[style*="color:var(--gold)"] { color: #855820 !important; }

/* ══════════════════════════════════════════════════════
   PASS 4 — Muted text: any remaining direct rgba < .80
   var(--muted) and var(--text-muted) are now .85 via vars
   These are residual explicit rules that need tightening.
   ══════════════════════════════════════════════════════ */

/* debate_goal.html — goal dot (small badge, large-text threshold ok at .75) */
html[data-theme="light"] .dg-goal-dot {
  color: rgba(96,68,22,.85) !important;
}

/* debate_goal.html — countdown separator (decorative, .75 ≥ 3:1 large-text) */
html[data-theme="light"] .db-countdown-sep {
  color: rgba(96,68,22,.8) !important;
}

/* All visible captions / metadata text — boost to .85 if inherited from vars */
html[data-theme="light"] .fd-stat-lbl,
html[data-theme="light"] .fd-card-meta,
html[data-theme="light"] .fd-card-cat,
html[data-theme="light"] .db-hero-meta-item,
html[data-theme="light"] .db-chain-item-label,
html[data-theme="light"] .db-floor-meta,
html[data-theme="light"] .dg-waiting-sub,
html[data-theme="light"] .th-other-thread-meta,
html[data-theme="light"] .th-comment-meta,
html[data-theme="light"] .rs-stat-lbl,
html[data-theme="light"] .rs-member-role,
html[data-theme="light"] .pr-stat-lbl,
html[data-theme="light"] .pr-debate-meta,
html[data-theme="light"] .lb-score { color: rgba(96,68,22,.85) !important; }

/* ══════════════════════════════════════════════════════
   SEARCH OVERLAY BACKDROP & RESULTS (all_debates.html)
   ══════════════════════════════════════════════════════ */
html[data-theme="light"] .fd-search-overlay {
  background: rgba(250,246,235,.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
html[data-theme="light"] .fd-overlay-results {
  background: rgba(247,242,232,.98) !important;
  border-color: rgba(150,108,40,.15) !important;
}
html[data-theme="light"] .fd-overlay-item-title  { color: #1a130b !important; }
html[data-theme="light"] .fd-overlay-item-desc   { color: #7a5c28 !important; }
html[data-theme="light"] .fd-overlay-section-head {
  color: #7a5c28 !important;
  border-color: rgba(150,108,40,.08) !important;
}
html[data-theme="light"] .fd-overlay-spinner     { color: #7a5c28 !important; }
html[data-theme="light"] .fd-overlay-badge.active   { background: rgba(26,122,56,.1) !important;  color: #1a7a38 !important; }
html[data-theme="light"] .fd-overlay-badge.finished { background: rgba(26,90,158,.1) !important;   color: #1a5a9e !important; }
html[data-theme="light"] .fd-overlay-badge.waiting  { background: rgba(158,111,26,.1) !important;  color: #855820 !important; }
html[data-theme="light"] .fd-overlay-close {
  background: rgba(150,108,40,.1) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .fd-overlay-close:hover {
  background: rgba(185,28,28,.12) !important;
  color: #b91c1c !important;
}

/* ── debate_goal.html: whisper "mine" bubble (white text on purple tint) */
html[data-theme="light"] .dg-whisper-msg.mine {
  background: rgba(107,77,153,.14) !important;
  color: #1a130b !important;
}

/* ══════════════════════════════════════════════════════
   SPONSEE DEBATE PAGE (sponsee_debate.html) — sp-*
   ══════════════════════════════════════════════════════ */

/* Sticky header */
html[data-theme="light"] .sp-header {
  background: rgba(250,246,239,.96) !important;
  border-bottom-color: rgba(150,108,40,.14) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
html[data-theme="light"] .sp-logo-text  { color: #1a130b !important; }
html[data-theme="light"] .sp-back       { color: #7a5c28 !important; border-color: rgba(150,108,40,.22) !important; }
html[data-theme="light"] .sp-back:hover { background: rgba(150,108,40,.08) !important; color: #1a130b !important; }

/* Hero debate card */
html[data-theme="light"] .sp-hero {
  background: linear-gradient(155deg, rgba(240,233,216,.85), rgba(248,242,228,.9)) !important;
  border-color: rgba(158,111,26,.22) !important;
}
html[data-theme="light"] .sp-hero-img-ph {
  background: linear-gradient(135deg, rgba(220,210,190,.9), rgba(235,225,208,.8)) !important;
}
html[data-theme="light"] .sp-hero-title { color: #1a130b !important; }
html[data-theme="light"] .sp-hero-desc  { color: rgba(96,68,22,.85) !important; }

/* Team cards */
html[data-theme="light"] .sp-team {
  background: rgba(240,233,216,.65) !important;
  border-color: rgba(150,108,40,.14) !important;
}
html[data-theme="light"] .sp-team.support  { border-color: rgba(26,122,56,.2) !important; }
html[data-theme="light"] .sp-team.opposing { border-color: rgba(185,28,28,.2) !important; }
html[data-theme="light"] .sp-team-header   { border-bottom-color: rgba(150,108,40,.1) !important; }
html[data-theme="light"] .sp-member        { color: #7a5c28 !important; }
html[data-theme="light"] .sp-member-av.support  { background: rgba(26,122,56,.1) !important; }
html[data-theme="light"] .sp-member-av.opposing { background: rgba(185,28,28,.1) !important; }
html[data-theme="light"] .sp-member-order  { color: rgba(96,68,22,.7) !important; }

/* Sponsor form section */
html[data-theme="light"] .sp-form-section {
  background: linear-gradient(135deg, rgba(158,111,26,.06), rgba(240,233,216,.55)) !important;
  border-color: rgba(158,111,26,.2) !important;
}
html[data-theme="light"] .sp-form-title { color: #1a130b !important; }
html[data-theme="light"] .sp-form-sub   { color: rgba(96,68,22,.85) !important; }
html[data-theme="light"] .sp-label      { color: #7a5c28 !important; }
html[data-theme="light"] .sp-perk {
  background: rgba(240,233,216,.6) !important;
  border-color: rgba(150,108,40,.12) !important;
  color: #7a5c28 !important;
}

/* ══════════════════════════════════════════════════════
   VERIFY EMAIL PAGE (verify_email.html) — pg-*
   ══════════════════════════════════════════════════════ */

/* Card */
html[data-theme="light"] .pg-card {
  background: linear-gradient(155deg, rgba(248,242,228,.92), rgba(240,233,216,.88)) !important;
  border-color: rgba(150,108,40,.18) !important;
  box-shadow: 0 12px 40px rgba(96,68,22,.1) !important;
}
html[data-theme="light"] .pg-top {
  border-bottom-color: rgba(150,108,40,.1) !important;
}

/* Text */
html[data-theme="light"] .pg-eyebrow  { color: #6b4d99 !important; }
html[data-theme="light"] .pg-title    { color: #1a130b !important; }
html[data-theme="light"] .pg-sub      { color: rgba(96,68,22,.85) !important; }
html[data-theme="light"] .pg-info-label { color: rgba(96,68,22,.85) !important; }
html[data-theme="light"] .pg-info-value { color: #7a5c28 !important; }
html[data-theme="light"] .pg-footer   { color: rgba(96,68,22,.55) !important; }

/* Info box */
html[data-theme="light"] .pg-info {
  background: rgba(158,111,26,.06) !important;
  border-color: rgba(158,111,26,.2) !important;
}
html[data-theme="light"] .pg-info-row { border-bottom-color: rgba(150,108,40,.08) !important; }

/* Buttons */
html[data-theme="light"] .pg-btn.secondary {
  background: rgba(240,233,216,.7) !important;
  border-color: rgba(150,108,40,.2) !important;
  color: #7a5c28 !important;
}
html[data-theme="light"] .pg-btn.secondary:hover {
  background: rgba(235,225,208,.95) !important;
  color: #1a130b !important;
}
html[data-theme="light"] .pg-btn.danger {
  background: rgba(185,28,28,.08) !important;
  border-color: rgba(185,28,28,.25) !important;
  color: #b91c1c !important;
}
html[data-theme="light"] .pg-btn.danger:hover {
  background: rgba(185,28,28,.15) !important;
}

/* Logo text inline-style override */
html[data-theme="light"] .pg-card a > span[style*="color:#fff"] {
  color: #1a130b !important;
}

/* ══════════════════════════════════════════════════════
   PACKAGES PAGE (packages.html) — pkg-*
   ══════════════════════════════════════════════════════ */

html[data-theme="light"] .pkg-header {
  background: rgba(250,246,239,.96) !important;
  border-bottom-color: rgba(150,108,40,.14) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
html[data-theme="light"] .pkg-logo-text     { color: #1a130b !important; }
html[data-theme="light"] .pkg-header-back   { color: #7a5c28 !important; border-color: rgba(150,108,40,.22) !important; }
html[data-theme="light"] .pkg-header-back:hover { background: rgba(150,108,40,.08) !important; color: #1a130b !important; }

html[data-theme="light"] .pkg-hero-title    { color: #1a130b !important; }
html[data-theme="light"] .pkg-hero-eyebrow::before,
html[data-theme="light"] .pkg-hero-eyebrow::after { background: rgba(107,77,153,.25) !important; }

html[data-theme="light"] .pkg-card {
  background: linear-gradient(155deg, rgba(240,233,216,.8), rgba(248,242,228,.88)) !important;
  border-color: rgba(150,108,40,.14) !important;
}
html[data-theme="light"] .pkg-card:hover    { border-color: rgba(150,108,40,.28) !important; }
html[data-theme="light"] .pkg-card.featured {
  background: linear-gradient(155deg, rgba(158,111,26,.07), rgba(240,233,216,.82)) !important;
  border-color: rgba(158,111,26,.28) !important;
}

html[data-theme="light"] .pkg-popular       { background: rgba(158,111,26,.08) !important; border-color: rgba(158,111,26,.25) !important; }
html[data-theme="light"] .pkg-name          { color: #1a130b !important; }
html[data-theme="light"] .pkg-price-num     { color: #1a130b !important; }
html[data-theme="light"] .pkg-price-suffix  { color: rgba(96,68,22,.7) !important; }
html[data-theme="light"] .pkg-tokens        { background: rgba(150,108,40,.07) !important; border-color: rgba(150,108,40,.12) !important; }
html[data-theme="light"] .pkg-divider       { background: rgba(150,108,40,.12) !important; }

html[data-theme="light"] .pkg-feature.yes   { color: #1a130b !important; }
html[data-theme="light"] .pkg-feature.no    { color: rgba(96,68,22,.5) !important; }
html[data-theme="light"] .pkg-feature.yes .pkg-feature-icon { background: rgba(26,122,56,.12) !important; }
html[data-theme="light"] .pkg-feature.no .pkg-feature-icon  { background: rgba(96,68,22,.07) !important; color: rgba(96,68,22,.45) !important; }

html[data-theme="light"] .pkg-cta           { background: rgba(150,108,40,.07) !important; border-color: rgba(150,108,40,.18) !important; color: #7a5c28 !important; }
html[data-theme="light"] .pkg-cta:hover     { background: rgba(150,108,40,.13) !important; color: #1a130b !important; }
html[data-theme="light"] .pkg-cta.purple    { background: linear-gradient(135deg,var(--purple),var(--purple-lt)) !important; color: #fff !important; }

html[data-theme="light"] .pkg-compare       { color: rgba(96,68,22,.75) !important; }
html[data-theme="light"] .pkg-compare a     { color: #6b4d99 !important; }
html[data-theme="light"] .pkg-compare a:hover { color: #1a130b !important; }
html[data-theme="light"] .pkg-trust-item    { color: rgba(96,68,22,.8) !important; }

/* ══════════════════════════════════════════════════════
   RESULTS PAGE — remaining gaps (rs-*)
   ══════════════════════════════════════════════════════ */

html[data-theme="light"] .rs-btn:hover      { background: rgba(150,108,40,.08) !important; color: #1a130b !important; }
html[data-theme="light"] .rs-cta-btn.secondary:hover { background: rgba(150,108,40,.1) !important; color: #1a130b !important; }
html[data-theme="light"] .rs-ai-score span  { color: rgba(96,68,22,.75) !important; }
html[data-theme="light"] .rs-quotes-head    { color: rgba(96,68,22,.55) !important; border-color: rgba(150,108,40,.07) !important; }
html[data-theme="light"] .rs-score-track    { background: rgba(150,108,40,.12) !important; }
html[data-theme="light"] .rs-ai-bar-track   { background: rgba(150,108,40,.1) !important; }
html[data-theme="light"] .rs-chain-hash     {
  color: rgba(107,77,153,.75) !important;
  background: rgba(107,77,153,.07) !important;
  border-color: rgba(107,77,153,.15) !important;
}
/* Inline-style member name color:#fff inside rs-members-grid */
html[data-theme="light"] .rs-members-grid a div[style*="color:#fff"],
html[data-theme="light"] .rs-members-grid a div[style*="color: #fff"] { color: #1a130b !important; }
/* Inline-style score spans rgba(200,184,154,.5) → warm brown */
html[data-theme="light"] .rs-members-grid a span[style*="color:rgba(200,184,154"] { color: rgba(96,68,22,.75) !important; }

/* ══════════════════════════════════════════════════════
   TEAM PAGE — remaining gaps (tp-*)
   ══════════════════════════════════════════════════════ */

html[data-theme="light"] .tp-hero {
  background: rgba(240,233,216,.65) !important;
  border-color: rgba(150,108,40,.15) !important;
}
html[data-theme="light"] .tp-hero-placeholder { background: rgba(150,108,40,.12) !important; }
html[data-theme="light"] .tp-member-name      { color: #1a130b !important; }
html[data-theme="light"] .tp-member-username  { color: rgba(96,68,22,.7) !important; }
html[data-theme="light"] .tp-quote-body       { color: rgba(26,19,11,.8) !important; }
html[data-theme="light"] .tp-bg-item          { color: #7a5c28 !important; }
html[data-theme="light"] .tp-bg-degree        { color: #1a130b !important; }
html[data-theme="light"] .tp-bio              { color: rgba(96,68,22,.85) !important; border-color: rgba(150,108,40,.08) !important; }
html[data-theme="light"] .tp-quotes-head      { color: rgba(96,68,22,.55) !important; }
html[data-theme="light"] .tp-quote-label      { color: rgba(96,68,22,.6) !important; }
html[data-theme="light"] .tp-quotes           { border-top-color: rgba(150,108,40,.08) !important; }
html[data-theme="light"] .tp-quote-item       { border-top-color: rgba(150,108,40,.06) !important; }
html[data-theme="light"] .tp-profile-link     { color: rgba(96,68,22,.65) !important; border-top-color: rgba(150,108,40,.08) !important; }
html[data-theme="light"] .tp-profile-link:hover { color: #855820 !important; }
html[data-theme="light"] .tp-score-bar        { background: rgba(150,108,40,.1) !important; }
html[data-theme="light"] .tp-member-order     { background: rgba(150,108,40,.08) !important; color: rgba(96,68,22,.75) !important; }
html[data-theme="light"] .tp-team-head.support  { border-color: rgba(26,122,56,.35) !important; }
html[data-theme="light"] .tp-team-head.opposing { border-color: rgba(185,28,28,.35) !important; }
