/* ============================================================
   TraderPredict — Stylesheet v2 ("NG redesign")
   Every selector below matches the existing markup 1:1 — no
   class or id names were changed, only their styling. Theme is
   controlled by [data-theme] on <html>, exactly like before:
   the #theme-toggle script already in index.php keeps working.
   ============================================================ */

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   DESIGN TOKENS
   Palette lifted straight from the NG redesign mockups.
   Dark = default. Light = :root[data-theme="light"] override.
   Every custom-property name used anywhere else in the sheet
   (including the legacy --pm-*, --bg2..4, --t1..3 systems) is
   defined here so nothing silently falls back to a stray
   default anywhere in the app.
   ============================================================ */
:root {
  /* ---- Core surfaces ---- */
  --bg:        #161615;
  --surface:   #1e1e1c;
  --card:      #232321;
  --card-2:    #2c2c29;
  --border:    #38382f;
  --border-soft: #2c2c29;
  --soft:      #2c2c29;
  --dim:       #44443f;

  /* ---- Text ---- */
  --text:      #f2f2ef;
  --muted:     #a8a89f;
  --muted-2:   #78786f;

  /* ---- Brand / accent ---- */
  --red:       #d9433b;
  --red-dark:  #c23830;
  --red-hover: #e2685f;
  --pink:      #f09595;
  --gold:      #ef9f27;
  --blue:      #6c8ef5;
  --purple:    #a89fec;
  --purple-solid: #534ab7;

  /* ---- Semantic yes / no (with a secondary "return" tone) ---- */
  --green:      #97c459;
  --green-2:    #639922;
  --yes-bg:     #1b3306;
  --yes-hover:  #234410;
  --yes-border: rgba(151, 196, 89, 0.28);
  --yes:        #97c459;
  --yes-dim:    rgba(151, 196, 89, 0.14);
  --no-bg:      #3a1414;
  --no-hover:   #4a1a1a;
  --no-border:  rgba(240, 149, 149, 0.24);
  --no:         #f09595;
  --no-dim:     rgba(240, 149, 149, 0.14);
  --no-2:       #d85a30;

  --accent:      var(--red);
  --accent-hover: var(--red-hover);
  --primary-green: #97c459;
  --text-secondary: var(--muted);
  --border-color: var(--border);
  --border-strong: rgba(255,255,255,0.16);
  --bg-card-hover: #272725;

  /* ---- Radius / motion ---- */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --r: 12px;
  --rsm: 8px;
  --ease: cubic-bezier(0.22, 0.9, 0.35, 1);
  --transition: 0.2s ease;

  /* ---- Type ---- */
  --head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --font: var(--body);
  --font-main: var(--head);
  --font-mono: var(--mono);
  --font-display: var(--head);
  --font-body: var(--body);

  /* ---- pm-* legacy surface system (used across auth/detail pages) ---- */
  --pm-bg:            var(--bg);
  --pm-surface:       var(--surface);
  --pm-surface-2:     var(--card);
  --pm-surface-3:     var(--card-2);
  --pm-surface-4:     #333330;
  --pm-border:        rgba(255,255,255,0.07);
  --pm-border-md:     rgba(255,255,255,0.12);
  --pm-border-hover:  rgba(255,255,255,0.2);
  --pm-text-1: var(--text);
  --pm-text-2: var(--muted);
  --pm-text-3: var(--muted-2);
  --pm-muted:  rgba(255,255,255,0.45);
  --pm-danger:  #f09595;
  --pm-danger-bg: rgba(240,149,149,0.12);
  --pm-danger-border: rgba(240,149,149,0.3);
  --pm-danger-text: #f09595;
  --pm-success: var(--green);
  --pm-success-bg: rgba(151,196,89,0.12);
  --pm-success-border: rgba(151,196,89,0.3);
  --pm-warning: var(--gold);
  --pm-warning-bg: rgba(239,159,39,0.12);
  --pm-warning-border: rgba(239,159,39,0.3);
  --pm-info: var(--purple);
  --pm-info-bg: rgba(168,159,236,0.12);
  --pm-info-border: rgba(168,159,236,0.3);
  --pm-info-text: var(--purple);
  --pm-muted-bg: rgba(255,255,255,0.05);
  --pm-muted-border: rgba(255,255,255,0.1);
  --pm-yes: var(--green);
  --pm-yes-dim: var(--yes-dim);
  --pm-yes-border: var(--yes-border);
  --pm-yes-glow: rgba(151,196,89,0.22);
  --pm-no: var(--no);
  --pm-no-dim: var(--no-dim);
  --pm-no-border: var(--no-border);
  --pm-no-glow: rgba(240,149,149,0.22);
  --pm-accent: var(--red);
  --pm-accent-h: var(--red-hover);
  --pm-accent-hover: var(--red-hover);
  --pm-warn-bg: rgba(239,159,39,0.14);
  --pm-warn-border: rgba(239,159,39,0.32);
  --pm-warn-text: var(--gold);
  --pm-slider-fade-l: rgba(22,22,21,0.9);
  --pm-slider-fade-r: rgba(22,22,21,0.9);
  --pm-radius-sm: var(--radius-sm);
  --pm-radius-md: var(--radius-md);
  --pm-radius-lg: var(--radius-lg);
  --pm-radius-xl: var(--radius-xl);

  /* ---- bg2-4 / t1-3 legacy system (event detail pages) ---- */
  --bg2: var(--card);
  --bg3: var(--surface);
  --bg4: var(--card-2);
  --t1:  var(--text);
  --t2:  var(--muted);
  --t3:  var(--muted-2);
  --white: #ffffff;

  --bg-card:     var(--card);
  --text-muted:  var(--muted);
  --text-dim:    var(--muted-2);
  --panel-left-bg: #1b1b19;
  --subtext: var(--muted);
  --subtext-full: var(--text);

  --opback: rgba(255,255,255,.04);
  --opback-border: 1px solid rgba(255,255,255,.07);
  --opback-h: rgba(255,255,255,.08);
  --opback-border-h: 1px solid rgba(255,255,255,.12);

  --yellow: var(--gold);
  --teal: var(--green);
}

html[data-theme="light"], :root[data-theme="light"] {
  --bg:        #eef0f3;
  --surface:   #ffffff;
  --card:      #ffffff;
  --card-2:    #f4f5f7;
  --border:    #dcdfe4;
  --border-soft: #eceef1;
  --soft:      #eceef1;
  --dim:       #c7cbd1;

  --text:      #1c1c1a;
  --muted:     #5b5e66;
  --muted-2:   #8a8d93;

  --gold:      #854f0b;
  --blue:      #3a5fc4;
  --purple:    #534ab7;
  --purple-solid: #534ab7;

  --green:      #3b6d11;
  --green-2:    #639922;
  --yes-bg:     #eaf3de;
  --yes-hover:  #dfeccf;
  --yes-border: rgba(59, 109, 17, 0.22);
  --yes:        #3b6d11;
  --yes-dim:    rgba(59, 109, 17, 0.10);
  --no-bg:      #fcebeb;
  --no-hover:   #f9dcdc;
  --no-border:  rgba(163, 45, 45, 0.2);
  --no:         #a32d2d;
  --no-dim:     rgba(163, 45, 45, 0.1);
  --no-2:       #d85a30;

  --border-strong: rgba(0,0,0,0.18);
  --bg-card-hover: #f7f8fa;

  --pm-border:        rgba(0,0,0,0.08);
  --pm-border-md:     rgba(0,0,0,0.14);
  --pm-border-hover:  rgba(0,0,0,0.22);
  --pm-muted:  rgba(0,0,0,0.45);
  --pm-slider-fade-l: rgba(255,255,255,0.92);
  --pm-slider-fade-r: rgba(255,255,255,0.92);
  --panel-left-bg: #f4f5f7;
  --white: #ffffff;

  --opback: rgba(0,0,0,.035);
  --opback-border: 1px solid rgba(0,0,0,.07);
  --opback-h: rgba(0,0,0,.06);
  --opback-border-h: 1px solid rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
html, body { transition: background-color .25s ease, color .25s ease; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

body, .card, .surface, .market-card, .featured-market, .stat-card,
.tp-card, .dp-card, .auth-card, .trade-widget, .form-card, .form-container {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* ── Typography ─────────────────────────────────────────── */
h1 { font-family: var(--head); font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.08; color: var(--text); }
h2 { font-family: var(--head); font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.6px; line-height: 1.18; color: var(--text); }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; color: var(--text); }
h4 { font-size: 15px; font-weight: 700; color: var(--text); }
p  { color: var(--muted); line-height: 1.7; font-size: 13px; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blinkLimit { 0% { opacity: 1; } 50% { opacity: .2; } 100% { opacity: 1; } }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.4); } }
@keyframes lpulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes dp-tlpulse { 0%,100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat, var(--red)) 18%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--cat, var(--red)) 4%, transparent); } }

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── Layout Utilities ────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.row          { display: flex; align-items: center; }
.row-between  { display: flex; align-items: center; justify-content: space-between; }
.col          { display: flex; flex-direction: column; }
.grid-2       { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3       { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4       { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.text-center  { text-align: center; }
.text-muted   { color: var(--muted) !important; }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-gold    { color: var(--gold); }
.text-blue    { color: var(--blue); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background-color: var(--surface) !important;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar .container { max-width: 1400px; padding: 0; height: 60px; display: flex; align-items: center; gap: 12px; background: transparent; }
.navbar-brand {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  color: var(--pm-text-1) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  margin-right: 8px;
}
.navbar-brand::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.navbar .input-group { max-width: 320px; flex: 1; }
.navbar .form-control {
  background-color: var(--card) !important;
  border: 1px solid var(--pm-border-md);
  color: var(--pm-text-1);
  font-family: var(--font-main);
  font-size: 0.85rem;
  height: 36px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.navbar .form-control:focus {
  background-color: var(--card) !important;
  border-color: var(--red);
  color: var(--pm-text-1);
  box-shadow: 0 0 0 3px rgba(217,67,59,0.14);
  outline: none;
}
.navbar .form-control::placeholder { color: var(--pm-text-3); }
.navbar .btn-danger {
  background-color: var(--red) !important;
  border: 1px solid var(--red);
  border-left: none;
  color: #fff;
  font-size: 0.8rem;
  height: 36px;
  padding: 0 15px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.navbar .btn-danger:hover { background-color: var(--red-hover) !important; color: #fff; transform: none; box-shadow: none; }
.navbar-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-item .nav-link {
  color: var(--pm-text-2) !important;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 6px 12px !important;
  border-radius: var(--pm-radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-item .nav-link:hover { color: var(--pm-text-1) !important; background: var(--opback); }
.nav-item .nav-link.balance-badge {
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--green) !important;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  cursor: default;
  border-radius: 999px;
}
.nav-item .nav-link.btn-register {
  background: var(--red);
  color: #fff !important;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-item .nav-link.btn-register:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217,67,59,0.35);
}
.navbar-toggler { border: 1px solid var(--border); border-radius: var(--pm-radius-sm); padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { filter: brightness(0.85); width: 18px; height: 18px; }
[data-theme="light"] .navbar-toggler-icon { filter: brightness(0.4); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.nav-logo-mark { width: 28px; height: 28px; background: var(--red); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.nav-logo-mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; gap: 2px; }
.nav-link { padding: 7px 15px; border-radius: 999px; font-size: 13px; color: var(--muted); background: transparent; border: none; transition: color 0.15s, background 0.15s; }
.nav-link:hover  { color: var(--text); background: var(--opback); }
.nav-link.active { color: var(--text); background: var(--card-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-balance { font-size: 13px; color: var(--muted); padding: 0 14px; border-right: 1px solid var(--border); }
.nav-balance span { color: var(--green); font-weight: 700; }

/* ============================================================
   CATEGORIES BAR
   ============================================================ */
.categories-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-bottom: 1px solid var(--border);
  overflow-x: auto; background: var(--bg);
}
.category-tag {
  padding: 6px 12px; background: transparent; border: none;
  color: var(--muted-2); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: color 0.2s;
}
.category-tag:hover { color: var(--text); }
.category-tag.active { color: var(--text); border-bottom: 2px solid var(--red); }
.category-item {
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  color: var(--muted-2); cursor: pointer; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  border: none; background: transparent; user-select: none; flex-shrink: 0;
}
.category-item a { color: inherit; text-decoration: none; }
.category-item:hover { background: var(--card-2); color: var(--text); }
.category-item.active { background: var(--yes-bg); color: var(--green); font-weight: 700; }
.alpha-toggle {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 0.79rem; color: var(--text-secondary); flex-shrink: 0;
  padding-left: 20px; cursor: pointer; user-select: none;
}
.alpha-toggle-label { transition: color var(--transition); }
.toggle-switch {
  position: relative; width: 42px; height: 23px;
  background-color: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; transition: background-color 0.3s;
}
.toggle-switch::after {
  content: ''; position: absolute; width: 17px; height: 17px;
  background-color: #fff; border-radius: 50%; top: 2px; left: 2px;
  transition: left 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle-switch.active { background-color: var(--primary-green); border-color: var(--primary-green); }
.toggle-switch.active::after { left: 21px; }

/* ── Ticker ──────────────────────────────────────────────── */
.ticker { background: var(--surface); border-bottom: 1px solid var(--border); height: 36px; overflow: hidden; display: flex; align-items: center; }
.ticker-inner { display: flex; gap: 36px; white-space: nowrap; animation: ticker 35s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ticker-item .name { color: var(--text); font-weight: 600; }
.ticker-item .up   { color: var(--green); }
.ticker-item .down { color: var(--no); }
.ticker-wrap { background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; padding: 9px 0; }
.ticker-track { display: flex; gap: 32px; animation: ticker 40s linear infinite; white-space: nowrap; width: max-content; align-items: center; }
.ticker-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); flex-shrink: 0; }
.ticker-coin { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.ticker-sym { font-weight: 700; }
.ticker-price { color: var(--muted); }
.ticker-unit { color: var(--muted-2); font-size: 10px; }
.ticker-down { color: var(--no); font-weight: 600; }
.ticker-up { color: var(--green); font-weight: 600; }
.ticker-spark { width: 80px; height: 18px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; font-size: 14px; font-weight: 700;
  border: none; transition: all 0.15s; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-surface { background: var(--card-2); color: var(--text); border: 1px solid var(--border); }
.btn-surface:hover { background: var(--bg-card-hover); }
.btn-yes { background: var(--yes-bg); color: var(--green); border: 1px solid var(--yes-border); font-weight: 700; }
.btn-yes:hover { background: var(--yes-hover); }
.btn-no { background: var(--no-bg); color: var(--no); border: 1px solid var(--no-border); font-weight: 700; }
.btn-no:hover { background: var(--no-hover); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 999px; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; border-radius: 999px; }
.btn-full { width: 100%; }
.btn-danger { background-color: var(--red) !important; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; font-weight: 700; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

/* ── Badges & Tags ───────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-live { background: var(--yes-dim); border: 1px solid var(--yes-border); color: var(--green); }
.badge-new  { background: var(--no-dim);  border: 1px solid var(--no-border);  color: var(--no); }
.badge-pill { background: var(--opback); border: 1px solid var(--border); color: var(--muted); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.5s infinite; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag-crypto { background: rgba(239,159,39,.14); color: var(--gold); }
.tag-stocks { background: rgba(108,142,245,.14); color: var(--blue); }
.tag-sports { background: var(--yes-dim); color: var(--green); }
.tag-macro  { background: var(--no-dim); color: var(--no); }
.tag-forex  { background: rgba(168,159,236,.14); color: var(--purple); }
.small-category { color: var(--purple) !important; }

/* ── Cards (generic) ─────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.card-sm { padding: 14px 16px; }
.card-lg { padding: 28px 32px; }
.card-accent { border-top: 3px solid var(--red); }
.card-hover  { transition: border-color 0.15s, transform .15s; cursor: pointer; }
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.card-accent-bar { height: 3px; width: 100%; background: linear-gradient(90deg, var(--red), var(--purple)); margin-bottom: 40px; border-radius: 3px; }
.options-preview { background: var(--opback) !important; }
.apply-overflow-tooltip { font-size: 10px; }
.outcome-label { flex: 1; font-size: 0.78rem; color: var(--t2); }
.outcome-row { background: var(--opback); border: 1px solid var(--border); border-radius: var(--rsm); padding: 7px 10px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.stat-value { font-size: 25px; font-weight: 800; letter-spacing: -0.5px; font-family: var(--head); }
.stat-change{ font-size: 12px; margin-top: 4px; }
.stat-up    { color: var(--green); }
.stat-down  { color: var(--no); }

/* ── Probability Bar ─────────────────────────────────────── */
.prob-track { height: 7px; background: var(--card-2); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.prob-fill-yes { height: 100%; background: var(--green); border-radius: 4px 0 0 4px; transition: width 0.5s; }
.prob-fill-no  { height: 100%; background: var(--no);   border-radius: 0 4px 4px 0; float: right; transition: width 0.5s; }
.prob-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.prob-pct-yes { font-size: 15px; font-weight: 800; color: var(--green); }
.prob-pct-no  { font-size: 15px; font-weight: 800; color: var(--no); }

/* ============================================================
   MARKET CARD (legacy generic wrapper — still used as an outer
   frame around .tp-card in the PHP loop)
   ============================================================ */
.market-card {
  background: var(--card);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.market-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.market-card.featured { border-top: 3px solid var(--red); }
.market-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.market-card-title  { font-size: 14px; font-weight: 500; line-height: 1.4; margin-bottom: 14px; min-height: 42px; }
.market-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--muted-2);
}

/* ── Featured Market ─────────────────────────────────────── */
.featured-market { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px 32px; margin-bottom: 20px; }
.featured-market .title { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.3; margin: 14px 0 22px; }
.featured-market .prob-track { height: 10px; }
.featured-market .bet-row { display: flex; gap: 12px; margin-top: 20px; }
.featured-market .bet-btn { flex: 1; padding: 11px 0; border-radius: 999px; font-size: 14px; font-weight: 700; text-align: center; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 52px 0; }
.section-sm { padding: 32px 0; }
.section-header { margin-bottom: 24px; }
.section-header .eyebrow { display: inline-block; background: var(--opback); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.section-header h2 { margin-bottom: 6px; }
.section-header p  { font-size: 15px; max-width: 520px; }
.see-all { font-size: 13px; color: var(--muted); background: transparent; border: none; transition: color 0.15s; }
.see-all:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 70px 0 50px; border-bottom: 1px solid var(--border); text-align: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--red); }
.hero .sub { font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto 36px; line-height: 1.65; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 52px; }
.hero-stats { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.hero-stat { padding: 16px 36px; text-align: center; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; }
.hero-stat .val { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; font-family: var(--head); }
.hero-stat .lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--no-dim); border: 1px solid var(--no-border); color: var(--no); font-size: 13px; padding: 6px 16px; border-radius: 999px; margin-bottom: 28px; }
.pulse { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 1.8s ease-in-out infinite; }

/* ── How It Works ────────────────────────────────────────── */
.how-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 60px 0; text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; }
.how-step { padding: 28px 24px; border-right: 1px solid var(--border); text-align: center; }
.how-step:last-child { border-right: none; }
.how-num { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; margin: 0 auto 16px; }
.num-1 { background: var(--no-dim); color: var(--red); }
.num-2 { background: rgba(108,142,245,.14); color: var(--blue); }
.num-3 { background: rgba(239,159,39,.14); color: var(--gold); }
.num-4 { background: var(--yes-dim);  color: var(--green); }
.how-step h4 { margin-bottom: 8px; }
.how-step p  { font-size: 13px; line-height: 1.6; }

/* ── Categories grid ─────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.cat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cat-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.cat-icon svg { width: 19px; height: 19px; }
.cat-name  { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stars   { font-size: 14px; color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.quote   { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.author  { display: flex; align-items: center; gap: 10px; }
.avatar  { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; background: var(--card-2); color: var(--text); }
.author-name { font-size: 13px; font-weight: 700; }
.author-role { font-size: 12px; color: var(--muted); }

/* ── Live Feed ───────────────────────────────────────────── */
.feed-section { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0; }
.feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.feed-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.feed-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.feed-text { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.4; }
.feed-text strong { color: var(--text); }
.feed-time { font-size: 11px; color: var(--muted-2); white-space: nowrap; }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner { padding: 70px 0; text-align: center; border-top: 1px solid var(--border); }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner h2 .accent { color: var(--red); }
.cta-banner p { font-size: 16px; margin-bottom: 32px; }
.cta-pair { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo  { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.footer-legal { font-size: 12px; color: var(--muted-2); margin-top: 10px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-link  { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-link:hover { color: var(--text); }

/* ============================================================
   TRADE WIDGET
   ============================================================ */
.trade-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.tw-market  { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.tw-tabs    { display: flex; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px; }
.tw-tab     { flex: 1; padding: 9px; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; border: none; transition: all 0.15s; background: transparent; color: var(--muted); }
.tw-tab-yes { background: var(--yes-dim); color: var(--green); }
.tw-tab-no.active  { background: var(--no-dim); color: var(--no); }
.tw-tab-yes.active { background: var(--yes-hover); }
.tw-input-wrap { position: relative; margin-bottom: 10px; }
.tw-dollar { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }
.tw-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 11px 13px 11px 28px; color: var(--text); font-size: 18px; font-weight: 700; outline: none; transition: border-color 0.15s; }
.tw-input:focus { border-color: var(--red); }
.tw-quick { display: flex; gap: 6px; margin-bottom: 14px; }
.tw-quick-btn { flex: 1; padding: 6px 0; border-radius: 999px; font-size: 12px; font-weight: 600; background: transparent; border: 1px solid var(--border); color: var(--muted); transition: all 0.15s; text-align: center; }
.tw-quick-btn:hover { border-color: var(--muted); color: var(--text); }
.tw-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tw-lbl { font-size: 12px; color: var(--muted); }
.tw-val { font-size: 13px; font-weight: 700; }

/* ============================================================
   EXPLAINER / STEPS
   ============================================================ */
.explainer-page { max-width: 800px; margin: 0 auto; padding: 40px 24px 60px; }
.step-nav { display: flex; align-items: center; gap: 0; margin-bottom: 40px; }
.step-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; cursor: pointer; transition: all 0.2s; border: 2px solid var(--border); background: var(--card); color: var(--muted); }
.step-dot.active { background: var(--red); border-color: var(--red); color: #fff; }
.step-dot.done   { background: var(--yes-dim); border-color: var(--green); color: var(--green); }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step-line.done { background: var(--green); }
.step-panel { display: none; }
.step-panel.visible { display: block; }
.step-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.step-title  { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 8px; }
.step-sub    { font-size: 14px; color: var(--muted); margin-bottom: 28px; max-width: 560px; line-height: 1.65; }
.info-box { background: rgba(108,142,245,0.08); border: 1px solid rgba(108,142,245,0.22); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 16px; }
.info-box p { font-size: 13px; color: #9db2f2; line-height: 1.6; }
.info-box strong { color: var(--text); }
.timeline { padding-left: 28px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-dot  { position: absolute; left: -24px; top: 3px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--border); background: var(--card); }
.tl-dot.done   { background: var(--green); border-color: var(--green); }
.tl-dot.active { background: var(--gold);  border-color: var(--gold); }
.tl-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tl-body  { font-size: 13px; color: var(--muted); }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.outcome-card { border-radius: var(--radius-lg); padding: 22px; border: 2px solid transparent; }
.outcome-win  { background: var(--yes-dim); border-color: var(--yes-border); }
.outcome-lose { background: var(--no-dim);  border-color: var(--no-border); }
.outcome-icon { width: 42px; height: 42px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.outcome-icon svg { width: 20px; height: 20px; }
.outcome-title  { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.outcome-amount { font-size: 29px; font-weight: 800; letter-spacing: -1px; margin-bottom: 6px; font-family: var(--head); }
.outcome-sub    { font-size: 12px; color: var(--muted); line-height: 1.5; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; padding-top: 14px; }
.sum-lbl { font-size: 13px; color: var(--muted); }
.sum-val { font-size: 13px; font-weight: 700; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.calc-cell { background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px; }
.calc-lbl  { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.calc-val  { font-size: 17px; font-weight: 800; }
.step-btns  { display: flex; gap: 10px; margin-top: 20px; }
.btn-back   { flex: 1; padding: 11px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all 0.15s; max-width: 120px; }
.btn-back:hover { color: var(--text); border-color: var(--muted); }
.btn-forward{ flex: 2; padding: 11px; border-radius: 999px; font-size: 14px; font-weight: 700; border: none; background: var(--red); color: #fff; transition: background 0.15s; }
.btn-forward:hover { background: var(--red-dark); }
.btn-forward:disabled { background: var(--soft); color: var(--muted-2); cursor: not-allowed; }
.amt-chips { display: flex; gap: 7px; margin-bottom: 12px; }
.amt-chip  { flex: 1; padding: 8px 0; border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all 0.15s; }
.amt-chip:hover, .amt-chip.active { border-color: var(--blue); color: var(--blue); background: rgba(108,142,245,0.1); }
.side-choice { display: flex; align-items: stretch; gap: 12px; margin-bottom: 16px; }
.choice-btn { flex: 1; padding: 18px 14px; border-radius: var(--radius-lg); border: 2px solid transparent; background: var(--surface); color: var(--muted); font-family: inherit; font-size: 14px; cursor: pointer; transition: all 0.18s; text-align: center; }
.choice-btn .pct   { font-size: 24px; font-weight: 800; display: block; margin-bottom: 4px; }
.choice-btn .label { font-size: 13px; display: block; margin-bottom: 4px; }
.choice-btn .hint  { font-size: 11px; opacity: 0.6; display: block; }
.choice-btn.yes        { background: var(--yes-bg); color: var(--green); border-color: var(--yes-border); }
.choice-btn.yes.picked { background: var(--yes-hover); border-color: var(--green); }
.choice-btn.no         { background: var(--no-bg);  color: var(--no);   border-color: var(--no-border);  }
.choice-btn.no.picked  { background: var(--no-hover); border-color: var(--no); }
.or-divider { display: flex; align-items: center; font-size: 12px; color: var(--muted-2); }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table tr { border-bottom: 1px solid var(--border); }
.summary-table tr:last-child { border-bottom: none; }
.summary-table td { padding: 10px 0; font-size: 13px; }
.summary-table td:first-child { color: var(--muted); }
.summary-table td:last-child  { text-align: right; font-weight: 700; }
#prob-chart { display: block; width: 100%; }
.chart-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.chart-legend { display: flex; gap: 18px; margin-top: 10px; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chart-legend-line { width: 14px; height: 3px; border-radius: 2px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 40px 16px 80px; position: relative; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--pm-border-md); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,0.35); transition: background 0.28s, border-color 0.28s; position: relative; z-index: 1; }
[data-theme="light"] .auth-card { box-shadow: 0 12px 40px rgba(28,28,26,0.08); }
.auth-brand { display: flex; flex-direction: column; align-items: center; padding: 34px 32px 26px; border-bottom: 1px solid var(--pm-border); background: var(--surface); transition: background 0.28s, border-color 0.28s; }
.auth-brand-mark { width: 42px; height: 42px; background: linear-gradient(135deg, var(--red) 0%, var(--purple-solid) 100%); border-radius: 11px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.auth-brand-mark svg { width: 21px; height: 21px; }
.auth-brand-name { font-size: 1.08rem; font-weight: 800; color: var(--pm-text-1); letter-spacing: -0.3px; margin-bottom: 4px; }
.auth-brand-tagline { font-size: 0.78rem; color: var(--pm-text-2); }
.auth-body { padding: 28px 32px 32px; }
.auth-heading { font-size: 1.12rem; font-weight: 800; color: var(--pm-text-1); margin-bottom: 6px; letter-spacing: -0.2px; }
.auth-sub { font-size: 0.8rem; color: var(--pm-text-2); margin-bottom: 24px; }
.auth-alert { background: var(--pm-danger-bg); border: 1px solid var(--pm-danger-border); color: var(--pm-danger-text); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.8rem; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.auth-alert-icon { flex-shrink: 0; margin-top: 1px; font-size: 13px; }
.auth-field { margin-bottom: 16px; }
.auth-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--pm-text-2); margin-bottom: 6px; }
.auth-input { width: 100%; background: var(--surface); border: 1px solid var(--pm-border-md); color: var(--pm-text-1); font-family: var(--font); font-size: 0.92rem; border-radius: var(--radius-sm); padding: 10px 13px; transition: border-color var(--transition), box-shadow var(--transition), background 0.28s; outline: none; height: 42px; }
.auth-input:focus { border-color: rgba(217,67,59,0.5); box-shadow: 0 0 0 3px rgba(217,67,59,0.14); background: var(--pm-surface-2); color: var(--pm-text-1); }
.auth-input::placeholder { color: var(--pm-text-3); }
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 42px; }
.auth-pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--pm-text-2); padding: 0; display: flex; align-items: center; transition: color var(--transition); }
.auth-pw-toggle:hover { color: var(--pm-text-1); }
.auth-pw-toggle svg { width: 16px; height: 16px; }
.recaptcha-wrap { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.recaptcha-error { font-size: 0.72rem; color: var(--pm-danger-text); }
.btn-auth-primary { width: 100%; background: var(--red); color: #fff; border: none; border-radius: var(--radius-sm); padding: 11px; font-family: var(--font); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background var(--transition), transform 0.12s, box-shadow var(--transition); letter-spacing: 0.1px; margin-bottom: 12px; }
.btn-auth-primary:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(217,67,59,0.35); }
.btn-auth-primary:active { transform: translateY(0); }
.btn-google { width: 100%; background: var(--pm-surface-2); color: var(--pm-text-1); border: 1px solid var(--pm-border-md); border-radius: var(--radius-sm); padding: 10px; font-family: var(--font); font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: background var(--transition), border-color var(--transition), transform 0.12s; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; margin-bottom: 0; }
.btn-google:hover { background: var(--pm-surface-3); border-color: var(--pm-border-hover); color: var(--pm-text-1); transform: translateY(-1px); }
.btn-google:active { transform: translateY(0); }
.btn-google-icon { width: 18px; height: 18px; flex-shrink: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--pm-text-3); font-size: 0.72rem; letter-spacing: 0.5px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--pm-border-md); }
.auth-footer { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--pm-border); text-align: center; font-size: 0.8rem; color: var(--pm-text-2); }
.auth-footer a { color: var(--red-hover); text-decoration: none; font-weight: 700; transition: color var(--transition); }
.auth-footer a:hover { color: var(--green); }
.auth-glow { position: fixed; top: -120px; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse at center, rgba(217,67,59,0.1) 0%, transparent 70%); pointer-events: none; z-index: 0; transition: opacity 0.3s; }

/* ============================================================
   FEATURED CAROUSEL — old markup (still supported)
   ============================================================ */
.featured-carousel-container { position: relative; margin-bottom: 2rem; }
.featured-carousel { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); box-shadow: 0 4px 16px 0 rgba(0,0,0,0.18); overflow: hidden; }
[data-theme="light"] .featured-carousel { box-shadow: 0 4px 16px 0 rgba(28,28,26,0.06); }
.carousel-slide { position: absolute; inset: 0; padding: 20px; transition: transform 500ms cubic-bezier(0.32, 0.72, 0, 1); opacity: 0; visibility: hidden; }
.carousel-slide.active { opacity: 1; visibility: visible; position: relative; }
.carousel-slide.prev { transform: translateX(-100%); }
.carousel-slide.next { transform: translateX(100%); }
.featured-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.featured-info { display: flex; gap: 1rem; flex: 1; min-width: 0; }
.featured-image { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-title-section { flex: 1; min-width: 0; }
.featured-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.25rem 0; line-height: 1.2; }
.featured-title a { color: inherit; text-decoration: none; }
.featured-title a:hover { text-decoration: underline; }
.featured-categories { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.featured-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; color: var(--muted); }
.icon-btn:hover { background: var(--opback); color: var(--text); }
.featured-content { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 992px) { .featured-content { flex-direction: row; gap: 1.5rem; } }
.featured-options { flex: 0 0 50%; }
.options-list { display: flex; flex-direction: column; gap: 0.5rem; }
.option-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-soft); }
.option-name { font-size: 0.7375rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.option-name:hover { text-decoration: underline; }
.option-percentage { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.featured-chart { flex: 1; min-height: 300px; position: relative; }
.chart-container { width: 100%; height: 100%; position: relative; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: all 0.3s; }
.dot.active { width: 22px; border-radius: 3px; background: var(--red); }
.carousel-nav { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.nav-btn { padding: 0.5rem 1rem; background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 0.875rem; transition: all 0.2s; color: var(--text); }
.nav-btn:hover { background: var(--bg-card-hover); }
.featured-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: 0.875rem; color: var(--muted-2); }
.live-indicator { display: flex; align-items: center; gap: 0.5rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); position: relative; }
.live-dot.pulse::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: var(--red); opacity: 0.75; animation: pulse 1.5s infinite; }
.loading-spinner { text-align: center; padding: 2rem; }
.blink-limit { animation: blinkLimit 0.6s infinite; }
.betting-interface { display: none; animation: fadeIn 0.3s; }
.option-buttons { transition: all 0.3s; }
.selected-option { transform: scale(1.02); box-shadow: 0 0 0 2px var(--border-strong) inset; }
.odds-display { font-size: 0.6rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.event-card { cursor: pointer; transition: all 0.3s; height: 100%; }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.18); }
.event-title, .event-description { cursor: pointer; }
.event-title:hover, .event-description:hover { color: var(--red); }
.max-win-warning { font-size: 0.8rem; color: var(--no); margin-top: 5px; }
.form-text { color: var(--text); }
h6 { color: var(--red); }
.price-badge { font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--text); }
.shares-info { background: var(--card-2); border-radius: var(--radius-sm); padding: 8px; margin: 10px 0; font-size: 0.75rem; color: var(--text); }
.slippage-warning { font-size: 0.8rem; color: var(--gold); background-color: var(--pm-warn-bg); border: 1px solid var(--pm-warn-border); padding: 5px; border-radius: var(--radius-sm); margin-top: 5px; display: none; }
.max-amount-info { font-size: 0.8rem; color: var(--pm-info-text); background-color: var(--pm-info-bg); border: 1px solid var(--pm-info-border); padding: 5px; border-radius: var(--radius-sm); margin-top: 5px; }

/* ============================================================
   CATEGORY HERO (category landing page)
   ============================================================ */
.cat-hero { position: relative; overflow: hidden; padding: 3rem 2rem 2.5rem; }
.cat-hero::before { content: ''; position: absolute; inset: 0; background: inherit; z-index: 0; }
.hero-glow { position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; border-radius: 50%; filter: blur(80px); opacity: .18; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.hero-left {}
.hero-eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; animation: lpulse 1.5s infinite; }
.hero-title { font-family: var(--head); font-size: 2.3rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 10px; color: #fff; }
.hero-title span { color: inherit; opacity: .55; }
.hero-desc { font-size: 0.9rem; color: rgba(255,255,255,.65); line-height: 1.65; max-width: 480px; margin-bottom: 1.5rem; }
.hero-stats-category { display: flex; gap: 2rem; }
.hstat-val { font-family: var(--head); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hstat-label { font-size: 0.7rem; color: rgba(255,255,255,.55); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.hero-right { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.hero-top-card { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 14px 16px; cursor: pointer; transition: background .2s; }
.hero-top-card:hover { background: rgba(0,0,0,.42); }
.htc-label { font-size: 0.65rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.htc-q { font-size: 0.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: #fff; }
.htc-bar { height: 3px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin-bottom: 4px; }
.htc-fill { height: 100%; border-radius: 99px; }
.htc-pcts { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.62rem; color: rgba(255,255,255,.5); }
.sp-hero { background: linear-gradient(135deg,#0a1f0e 0%,#0f2514 50%,#091a0c 100%); }
.sp-hero .hero-glow { background: #4ade80; }
.sp { background: linear-gradient(160deg,#0f1a13 0%,#142010 100%); border-color: rgba(74,222,128,.13); }
.sp:hover { box-shadow: 0 8px 28px rgba(74,222,128,.12); }
.sp .mc-accent { background: linear-gradient(90deg,#22c55e,#4ade80); }
.sp .mc-sub { color: #4ade80; }
.sp .mc-thumb { background: rgba(74,222,128,.14); }
.sp .mc-q { color: #e8f5e8; }
.sp .mc-fill { background: #4ade80; }
.sp .mc-row:hover { background: rgba(74,222,128,.06); }
.sp .htc-fill { background: #4ade80; }
.category-title { font-size: 12px; }
h1.text-center { font-size: 0.74rem; font-weight: 700; color: var(--pm-text-2); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px !important; text-shadow: none; padding-top: 20px; }

/* ============================================================
   EVENT DETAIL PAGE (dp-*)
   Mostly inherits new tokens automatically through
   --bg2/3/4, --t1/2/3, --r, --ease, --head/--body/--mono.
   ============================================================ */
#page-detail[data-cat="sports"]  { --cat:#4ade80; --cat-bg:linear-gradient(135deg,#0a1f0e,#0f2514 55%,#091a0c); --cat-glow:rgba(74,222,128,.15);  --cat-dim:rgba(74,222,128,.08)  }
#page-detail[data-cat="politics"]{ --cat:#60a5fa; --cat-bg:linear-gradient(135deg,#091427,#0d1b38 55%,#0a1122); --cat-glow:rgba(96,165,250,.15);  --cat-dim:rgba(96,165,250,.08)  }
#page-detail[data-cat="economy"] { --cat:#facc15; --cat-bg:linear-gradient(135deg,#1a1400,#201900 55%,#181200); --cat-glow:rgba(234,179,8,.14);   --cat-dim:rgba(234,179,8,.07)   }
#page-detail[data-cat="crypto"]  { --cat:#fb923c; --cat-bg:linear-gradient(135deg,#1a0d00,#1f1000 55%,#180c00); --cat-glow:rgba(251,146,60,.15);  --cat-dim:rgba(251,146,60,.08)  }
#page-detail[data-cat="culture"] { --cat:#c084fc; --cat-bg:linear-gradient(135deg,#180a2e,#1e0f38 55%,#140826); --cat-glow:rgba(168,85,247,.18);  --cat-dim:rgba(168,85,247,.08)  }
#page-detail[data-cat="tech"]    { --cat:#22d3ee; --cat-bg:linear-gradient(135deg,#001a1f,#002028 55%,#001518); --cat-glow:rgba(6,182,212,.15);   --cat-dim:rgba(6,182,212,.07)   }
#page-detail[data-cat="social"]  { --cat:#f472b6; --cat-bg:linear-gradient(135deg,#1a0818,#20102a 55%,#160614); --cat-glow:rgba(244,114,182,.15); --cat-dim:rgba(244,114,182,.07) }
#page-detail[data-cat="world"]   { --cat:#2dd4bf; --cat-bg:linear-gradient(135deg,#091520,#0c1c2a 55%,#071018); --cat-glow:rgba(20,184,166,.14);  --cat-dim:rgba(20,184,166,.07)  }
#page-detail { display: block; animation: fadeIn .35s var(--ease); }
.dp-hero { position: relative; overflow: hidden; background: var(--cat-bg, var(--bg2)); padding: 3.5rem 0 0; }
.dp-hero-glow { position: absolute; top: -120px; right: -80px; width: 600px; height: 600px; border-radius: 50%; background: var(--cat, #4ade80); filter: blur(110px); opacity: .12; pointer-events: none; }
.dp-hero-glow2 { position: absolute; bottom: -100px; left: -60px; width: 400px; height: 400px; border-radius: 50%; background: var(--cat, #4ade80); filter: blur(90px); opacity: .06; pointer-events: none; }
.dp-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; position: relative; z-index: 1; }
.dp-back-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 12px; }
.dp-back-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--opback); border: 1px solid var(--border); font-size: 0.78rem; font-weight: 600; color: var(--t2); cursor: pointer; transition: all .2s; font-family: var(--body); }
.dp-back-btn svg { width: 14px; height: 14px; fill: currentColor; transition: transform .2s; }
.dp-back-btn:hover { background: var(--opback-h); color: #fff; border-color: rgba(255,255,255,.18); }
.dp-back-btn:hover svg { transform: translateX(-3px); }
.dp-back-crumb { display: flex; align-items: center; gap: 6px; color: var(--t3); }
.dp-back-crumb .crumb-cat { color: var(--t2); }
.dp-social-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dp-social-icon { width: 32px; height: 32px; border-radius: 999px;  align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--opback); cursor: pointer; transition: all .2s; flex-shrink: 0; text-decoration: none; }
.dp-social-icon svg { width: 15px; height: 15px; }
.dp-social-icon:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.dp-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--opback); border: 1px solid var(--border); font-size: 0.78rem; color: var(--t2); cursor: pointer; transition: all .2s; font-family: var(--body); white-space: nowrap; }
.dp-share-btn svg { width: 13px; height: 13px; fill: currentColor; }
.dp-share-btn:hover { background: var(--opback-h); color: #fff; }
.dp-cat-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cat); border: 1px solid var(--cat); background: var(--cat-dim); margin-bottom: 1.25rem; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cat); animation: lpulse 1.6s infinite; }
.dp-title { font-family: var(--head); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; color: #fff; margin-bottom: 1.5rem; max-width: 780px; }
.dp-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2rem; }
.dp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: var(--opback); border: 1px solid var(--border); font-size: 0.74rem; color: var(--t2); }
.dp-chip svg { width: 12px; height: 12px; fill: currentColor; opacity: .7; }
.dp-content { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2.5rem 5rem; display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.dp-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 1.5rem; }
.dp-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.dp-card-title { font-family: var(--head); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--t3); }
.dp-card-body { padding: 1.5rem; }
.dp-card-body.no-pad { padding: 0; }
.dp-chart-timebtns { display: flex; gap: 5px; }
.dp-ctb { padding: 4px 11px; font-size: .7rem; font-family: var(--mono); background: transparent; border: 1px solid var(--border); border-radius: 6px; color: var(--t3); cursor: pointer; transition: all .18s; }
.dp-ctb:hover { color: var(--t2); border-color: rgba(255,255,255,.15); }
.dp-ctb.on { color: var(--cat); border-color: var(--cat); }
.dp-chart-wrap { position: relative; height: 220px; padding: 0 1.5rem 1.5rem; }
.chart-tooltip { position: absolute; background: var(--bg4); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; pointer-events: none; font-size: 0.72rem; font-family: var(--mono); color: var(--t1); opacity: 0; transition: opacity .15s; white-space: nowrap; z-index: 10; }
.dp-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 1.5rem 1rem; }
.dp-outcome-row { display: flex; align-items: center; gap: 14px; padding: 14px 1.5rem; border-bottom: 1px solid var(--border); transition: background .18s; cursor: pointer; flex-wrap: wrap; }
.dp-outcome-row:last-child { border-bottom: none; }
.dp-outcome-row:hover { background: var(--opback); }
.dp-or-label { font-size: .88rem; font-weight: 700; color: var(--t1); flex: 1; }
.dp-or-bar-wrap { width: 160px; flex-shrink: 0; }
@media (max-width: 640px) { .dp-or-bar-wrap { width: 100%; order: 3; } }
.dp-or-track { height: 5px; background: var(--border-soft); border-radius: 99px; overflow: hidden; }
.dp-or-fill { height: 100%; border-radius: 99px; transition: width .7s var(--ease); background: var(--cat); }
.dp-or-pct { font-family: var(--head); font-size: .8rem; font-weight: 800; color: var(--cat); width: 44px; text-align: right; flex-shrink: 0; }
.dp-or-btns { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) { .dp-or-btns { width: 100%; order: 4; justify-content: flex-start; } }
.dp-btn-yes, .dp-btn-no { padding: 7px 16px; border-radius: 999px; font-family: var(--mono); font-size: .74rem; font-weight: 700; cursor: pointer; transition: all .18s; white-space: nowrap; border: none; }
.dp-btn-yes { background: var(--yes-dim); color: var(--green); border: 1px solid var(--yes-border); }
.dp-btn-yes:hover { background: var(--yes-hover); border-color: var(--green); transform: translateY(-1px); }
.dp-btn-no { background: var(--no-dim); color: var(--no); border: 1px solid var(--no-border); }
.dp-btn-no:hover { background: var(--no-hover); border-color: var(--no); transform: translateY(-1px); }

/* ============================================================
   NG REDESIGN COMPONENT REFRESH
   Added while merging the "Traderpredict NG" mockups into the
   existing dp-* dark theme. Everything here is purely additive:
   new classes only, no existing dp-* selector is redefined, and
   every color comes from the tokens already declared above
   (--cat, --yes, --no, --bg2/3/4, --t1/2/3) so it stays in sync
   with the light/dark toggle and per-category accent automatically.
   ============================================================ */

/* Kalshi-style avatar chip on every outcome row (multi-option,
   fixed_three, fixed_two) — a colored initials circle so rows are
   scannable at a glance, matching the mockup's k-av / obox avatars. */
.dp-or-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--head);
  letter-spacing: .01em;
}

/* Big YES/NO price-summary pair for simple binary markets — mirrors
   the mockup's psum/obox blocks, rendered above the price chart using
   values the PHP already computes (yes_percentage/no_percentage/price). */
.dp-psum {
  display: flex;
  gap: 14px;
  margin-bottom: 1.5rem;
}
.dp-obox {
  flex: 1;
  border-radius: var(--r);
  padding: 16px 18px;
  border: 1px solid var(--border);
}
.dp-obox-yes { background: var(--yes-dim); border-color: var(--yes-border); }
.dp-obox-no  { background: var(--no-dim);  border-color: var(--no-border); }
.dp-obox-lab {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dp-obox-yes .dp-obox-lab { color: var(--yes); }
.dp-obox-no  .dp-obox-lab { color: var(--no); }
.dp-obox-pct {
  font-family: var(--head);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 4px 0 3px;
}
.dp-obox-yes .dp-obox-pct { color: var(--yes); }
.dp-obox-no  .dp-obox-pct { color: var(--no); }
.dp-obox-ret {
  font-size: .72rem;
  color: var(--t3);
  font-family: var(--mono);
}
@media (max-width: 480px) {
  .dp-psum { flex-direction: column; gap: 10px; }
}
.dp-rules-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.dp-rules-item:last-child { border-bottom: none; }
.dp-rules-trigger { display: flex; align-items: center; gap: 12px; padding: 1rem 1.5rem; cursor: pointer; background: transparent; border: none; width: 100%; text-align: left; font-family: var(--body); transition: background .18s; }
.dp-rules-trigger:hover { background: var(--opback); }
.dp-rules-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; background: var(--cat-dim); }
.dp-rules-text { flex: 1; }
.dp-rules-ttitle { font-size: .85rem; font-weight: 700; color: var(--t1); margin-bottom: 2px; }
.dp-rules-tsub { font-size: .7rem; color: var(--t3); }
.dp-rules-chevron { width: 18px; height: 18px; fill: var(--t3); flex-shrink: 0; transition: transform .25s var(--ease); }
.dp-rules-item.open .dp-rules-chevron { transform: rotate(180deg); }
.dp-rules-body { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.dp-rules-item.open .dp-rules-body { max-height: 800px; }
.dp-rules-body-inner { padding: 0 1.5rem 1.25rem 4rem; font-size: .8rem; color: var(--t2); line-height: 1.72; }
.dp-timeline { padding: 1.5rem 1.5rem 1.5rem 2rem; position: relative; }
.dp-timeline::before { content: ''; position: absolute; left: 2.3rem; top: 1.8rem; bottom: 1.8rem; width: 2px; background: var(--border); }
.dp-tl-item { position: relative; padding-left: 2rem; margin-bottom: 1.5rem; }
.dp-tl-item:last-child { margin-bottom: 0; }
.dp-tl-dot { position: absolute; left: -1.08rem; top: .22rem; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--bg2); z-index: 1; transition: transform .2s; }
.dp-tl-dot.done { background: var(--cat); }
.dp-tl-dot.active { background: var(--cat); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cat) 20%, transparent); animation: dp-tlpulse 2s infinite; }
.dp-tl-dot.future { background: var(--bg4); border-color: var(--t3); }
.dp-tl-label { font-size: .82rem; font-weight: 800; color: var(--t1); margin-bottom: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-tl-date { font-family: var(--mono); font-size: .68rem; color: var(--t3); margin-bottom: 3px; }
.dp-tl-desc { font-size: .77rem; color: var(--t2); line-height: 1.55; }
.dp-comments-input-wrap { display: flex; align-items: flex-start; gap: 10px; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.dp-ci-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 60%, #fff)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; font-family: var(--head); color: var(--bg); margin-top: 2px; }
.dp-ci-right { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dp-ci-input { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: .83rem; color: var(--t1); font-family: var(--body); outline: none; resize: none; min-height: 42px; max-height: 120px; transition: border-color .2s, min-height .2s; line-height: 1.5; overflow: hidden; }
.dp-ci-input::placeholder { color: var(--t3); }
.dp-ci-input:focus { border-color: color-mix(in srgb, var(--cat) 60%, transparent); min-height: 80px; }
.dp-ci-actions { display: flex; align-items: center; justify-content: space-between; display: none; }
.dp-ci-actions.show { display: flex; }
.dp-ci-hints { display: flex; gap: 6px; flex-wrap: wrap; }
.dp-ci-hint { font-size: .68rem; color: var(--t3); padding: 4px 8px; border-radius: 5px; background: var(--bg4); cursor: pointer; transition: all .15s; border: none; font-family: var(--body); }
.dp-ci-hint:hover { color: var(--cat); background: color-mix(in srgb, var(--cat) 10%, var(--bg4)); }
.dp-ci-post { padding: 7px 18px; border-radius: 999px; background: var(--cat); color: var(--bg); font-size: .78rem; font-weight: 800; font-family: var(--head); border: none; cursor: pointer; transition: all .18s; }
.dp-ci-post:hover { filter: brightness(1.1); }
.dp-ci-post:disabled { opacity: .4; cursor: default; }
.dp-ctabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 1.5rem; }
.dp-ctab { padding: 10px 0; margin-right: 1.5rem; font-size: .78rem; font-weight: 700; color: var(--t3); border-bottom: 2px solid transparent; cursor: pointer; border: none; background: none; font-family: var(--body); transition: all .18s; }
.dp-ctab.on { color: var(--t1); border-bottom-color: var(--cat); }
.dp-ctab:hover { color: var(--t2); }
.dp-comment { display: flex; gap: 11px; padding: 14px 1.5rem; border-bottom: 1px solid var(--border-soft); transition: background .15s; }
.dp-comment:last-child { border-bottom: none; }
.dp-comment:hover { background: var(--opback); }
.dp-cm-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; font-family: var(--head); margin-top: 1px; background: var(--cat-dim); color: var(--cat); }
.dp-cm-body { flex: 1; min-width: 0; }
.dp-cm-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.dp-cm-name { font-size: .8rem; font-weight: 700; color: var(--t1); }
.dp-cm-time { font-size: .65rem; color: var(--t3); font-family: var(--mono); margin-left: auto; }
.dp-cm-text { font-size: .82rem; color: var(--t2); line-height: 1.6; margin-bottom: 8px; }
.dp-cm-actions { display: flex; align-items: center; gap: 14px; }
.dp-cm-action { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--t3); cursor: pointer; background: none; border: none; font-family: var(--body); transition: color .15s; padding: 0; }
.dp-cm-action:hover { color: var(--cat); }
.dp-cm-action svg { width: 13px; height: 13px; fill: currentColor; }
.dp-comments-footer { padding: 12px 1.5rem; text-align: center; border-top: 1px solid var(--border); }
.dp-load-more { padding: 7px 20px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: transparent; border: 1px solid var(--border); color: var(--t2); cursor: pointer; transition: all .18s; font-family: var(--body); }
.dp-load-more:hover { border-color: rgba(255,255,255,.2); color: var(--t1); }
.dp-trade-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; position: sticky; margin-bottom: 1.5rem; }
.dp-tc-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.dp-tc-title { font-family: var(--head); font-size: .9rem; font-weight: 800; color: var(--t1); }
.dp-tc-balance { font-size: .72rem; color: var(--t3); font-family: var(--mono); }
.dp-tc-balance span { color: var(--t2); font-weight: 700; }
.dp-tc-tabs { display: flex; border-bottom: 1px solid var(--border); }
.dp-tc-tab { flex: 1; padding: 10px; text-align: center; font-size: .8rem; font-weight: 700; cursor: pointer; border: none; background: none; color: var(--t3); border-bottom: 2px solid transparent; transition: all .18s; font-family: var(--body); }
.dp-tc-tab.on { color: var(--cat); border-bottom-color: var(--cat); }
.dp-tc-body { padding: 1.25rem; }
.dp-tc-ol { font-size: .66rem; color: var(--t3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.dp-tc-pills { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 1rem; }
.dp-tc-pill { padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; border: 1px solid var(--border); background: transparent; color: var(--t2); cursor: pointer; transition: all .18s; font-family: var(--body); }
.dp-tc-pill.on { color: var(--cat); border-color: var(--cat); background: color-mix(in srgb, var(--cat) 10%, transparent); }
.dp-tc-amt-label { font-size: .66rem; color: var(--t3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.dp-tc-amt-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.dp-tc-amt-btn { width: 38px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg3); border: none; cursor: pointer; color: var(--t2); font-size: 17px; transition: background .18s; flex-shrink: 0; }
.dp-tc-amt-btn:hover { background: var(--bg4); color: var(--t1); }
.dp-tc-amt-input { flex: 1; background: transparent; border: none; outline: none; text-align: center; font-family: var(--mono); font-size: .9rem; font-weight: 700; color: var(--t1); padding: 8px 0; }
.dp-tc-quick { display: flex; gap: 4px; margin-bottom: 1rem; flex-wrap: wrap; }
.dp-tc-q { flex: 1; padding: 5px 0; text-align: center; font-size: .68rem; font-family: var(--mono); background: var(--bg3); border: 1px solid var(--border); border-radius: 5px; cursor: pointer; color: var(--t2); transition: all .18s; }
.dp-tc-q:hover { background: var(--bg4); color: var(--t1); }
.dp-tc-summary { background: var(--bg3); border-radius: 8px; padding: 12px 14px; margin-bottom: 1rem; }
.dp-tc-sum-row { display: flex; justify-content: space-between; font-size: .76rem; padding: 3px 0; }
.dp-tc-sum-label { color: var(--t3); }
.dp-tc-sum-val { font-family: var(--mono); font-weight: 700; color: var(--t1); }
.dp-tc-sum-val.pos { color: var(--green); }
.dp-tc-cta { width: 100%; padding: 13px; border-radius: 999px; font-family: var(--head); font-size: .9rem; font-weight: 800; border: none; cursor: pointer; letter-spacing: .01em; background: var(--cat); color: var(--bg); transition: all .2s; }
.dp-tc-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.dp-tc-disclaimer { font-size: .62rem; color: var(--t3); text-align: center; margin-top: 10px; line-height: 1.55; }
.dp-rel-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg2); cursor: pointer; transition: all .2s; margin-bottom: 8px; }
.dp-rel-card:hover { background: var(--opback-h); border-color: rgba(255,255,255,.12); transform: translateY(-2px); }
.dp-rel-thumb { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; background: var(--cat-dim); }
.dp-rel-info { flex: 1; min-width: 0; }
.dp-rel-q { font-size: .78rem; font-weight: 700; color: var(--t1); line-height: 1.3; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-rel-meta { font-size: .66rem; color: var(--t3); font-family: var(--mono); }
.dp-rel-pct { font-family: var(--head); font-size: .88rem; font-weight: 800; color: var(--cat); flex-shrink: 0; }
.bet-item { border-left: 3px solid; padding-left: 10px; margin-bottom: 10px; padding: 8px; border-radius: 0 8px 8px 0; }
.bet-yes { border-left-color: var(--green); background-color: var(--yes-dim); }
.bet-no  { border-left-color: var(--no); background-color: var(--no-dim); }
.form-control { background: transparent !important; color: var(--subtext); }
.form-control:focus { background: transparent !important; color: var(--subtext); }

/* ============================================================
   TP-CARD (market cards grid) — restyled to match the NG
   redesign: icon avatar, YES/NO percentage pill buttons,
   green/red return framing, rounded 12px card.
   ============================================================ */
.tp-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color, var(--border)) !important;
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color .18s ease;
}
.tp-card:hover { transform: translateY(-3px); border-color: var(--border-strong) !important; box-shadow: 0 10px 28px rgba(0,0,0,0.22); }
[data-theme="light"] .tp-card:hover { box-shadow: 0 10px 24px rgba(28,28,26,0.08); }
.tp-card-bar { height: 3px; width: 100%; flex-shrink: 0; backgroundd: var(--red); }
.tp-card-header { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 8px; }
.tp-card-icon { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; background: var(--card-2); display: flex; align-items: center; justify-content: center; }
.tp-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.tp-card-meta { flex: 1; min-width: 0; }
.tp-category-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 3px; color: var(--muted-2); }
.tp-card-title { font-size: 12px; line-height: 1.4; margin: 0; cursor: pointer; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card-title:hover { text-decoration: underline; }
.tp-card-body { flex: 1; padding: 0 14px 14px; display: flex; flex-direction: column; }
.tp-options-list { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; overflow-y: auto; max-height: 80px; }
.tp-option-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 8px 10px; transition: border-color .15s;
}
.tp-option-row:hover { border-color: var(--border-strong); }
.tp-option-left { flex: 1; min-width: 0; }
.tp-option-label { font-size: 9px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; color: var(--muted); }
.tp-option-bar-wrap { height: 3px; background: var(--border-soft); border-radius: 2px; overflow: hidden; }
.tp-option-bar { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.tp-bar-yes { background: var(--green); }
.tp-bar-no  { background: var(--no); }
.tp-option-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tp-odds { font-size: 11px; color: var(--muted-2); min-width: 32px; text-align: right; }
.tp-btn { border: none; border-radius: 999px; font-size: 9px; font-weight: 800; padding: 6px 13px; cursor: pointer; transition: opacity 0.15s, transform .15s; min-width: 54px; text-align: center; }
.tp-btn:hover { opacity: 0.86; transform: translateY(-1px); }
.tp-btn-yes { background: var(--yes-bg); color: var(--green); border: 1px solid var(--yes-border); }
.tp-btn-no  { background: var(--no-bg);  color: var(--no); border: 1px solid var(--no-border); }
.tp-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border-soft); font-size: 11px; color: var(--muted-2); }

/* Bet panel */
.tp-bet-panel { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; animation: tpFadeIn 0.18s ease; background: var(--card-2); }
@keyframes tpFadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.tp-bet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.tp-bet-side { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%; }
.tp-bet-side-yes { background: var(--yes-dim); color: var(--green); border: 1px solid var(--yes-border); }
.tp-bet-side-no  { background: var(--no-dim);  color: var(--no); border: 1px solid var(--no-border); }
.tp-bet-price-info { display: flex; align-items: center; gap: 6px; }
.tp-bet-price { font-size: 13px; font-weight: 700; color: var(--text); }
.tp-bet-odds  { font-size: 11px; color: var(--muted-2); }
.tp-amount-field { display: flex; flex-direction: column; gap: 4px; }
.tp-amount-field label { font-size: 11px; color: var(--muted); font-weight: 600; }
.tp-amount-input-wrap { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.15s; }
.tp-amount-input-wrap:focus-within { border-color: var(--red); }
.tp-currency { padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--muted-2); border-right: 1px solid var(--border); user-select: none; }
.tp-amount-input { flex: 1; background: transparent; border: none; outline: none; padding: 8px 10px; font-size: 15px; font-weight: 700; color: var(--text); width: 100%; }
.tp-amount-input::placeholder { color: var(--muted-2); font-weight: 400; }
.tp-balance-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--muted-2); }
.tp-max-btn { background: none; border: 1px solid var(--border); border-radius: 4px; font-size: 10px; font-weight: 800; padding: 1px 6px; cursor: pointer; color: var(--muted); transition: opacity 0.15s; }
.tp-max-btn:hover { color: var(--text); border-color: var(--muted); }
.tp-quick-amounts { display: flex; gap: 4px; flex-wrap: wrap; }
.tp-quick-btn { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: 10px; font-weight: 700; padding: 4px 2px; cursor: pointer; color: var(--muted); transition: background 0.12s, border-color 0.12s; white-space: nowrap; }
.tp-quick-btn:hover { background: var(--bg-card-hover); border-color: var(--border-strong); color: var(--text); }
.tp-bet-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; margin: 10px 0px; }
.tp-summary-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.tp-summary-row strong { color: var(--text); }
.tp-summary-win { margin-top: 2px; }
.tp-win-amount { font-size: 13px; font-weight: 800; color: var(--green) !important; }
.tp-bet-actions { display: flex; gap: 8px; }
.tp-cancel-btn { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--text); transition: background 0.15s; }
.tp-cancel-btn:hover { background: var(--bg-card-hover); }
.tp-confirm-btn { flex: 2; border: none; border-radius: var(--radius-sm); padding: 8px; font-size: 12px; font-weight: 800; cursor: pointer; transition: opacity 0.15s; }
.tp-confirm-btn:hover { opacity: 0.88; }
.tp-confirm-yes { background: var(--green); color: #0d1a05; }
.tp-confirm-no  { background: var(--red); color: #fff; }
.tp-login-prompt { text-align: center; padding: 12px 0; font-size: 13px; color: var(--muted); }
.view-more-link { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.view-more-link:hover { color: var(--text); }

/* ============================================================
   FEATURED CAROUSEL v2 (fc2-*) — the hero carousel, styled
   to mirror the mockup's featured card exactly.
   ============================================================ */
.fc2-wrap { padding: 0 0 8px; }
.fc2-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
@media (max-width: 991px) { .fc2-grid { grid-template-columns: 1fr; } .fc2-sidebar { display: none; } }
.fc2-carousel-shell { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.fc2-progress-bar { position: absolute; top: 0; left: 0; height: 2px; background: var(--red); border-radius: 0; width: 0%; transition: none; z-index: 10; }
.fc2-slide { display: none; padding: 22px 24px 18px; animation: fc2fadeIn .35s ease; }
.fc2-slide.active { display: block; }
@keyframes fc2fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.fc2-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.fc2-header-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.fc2-thumb-wrap { flex-shrink: 0; width: 50px; height: 50px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.fc2-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc2-title-block { flex: 1; min-width: 0; }
.fc2-eyebrow { font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.fc2-title { font-size: 0.8rem; line-height: 1.3; letter-spacing: -.2px; margin: 0; }
.fc2-title a { color: var(--text); text-decoration: none; transition: color .15s; }
.fc2-title a:hover { color: var(--red); }
.fc2-share-btn { flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: var(--opback); border: var(--opback-border); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; margin-top: 2px; }
.fc2-share-btn:hover { background: var(--opback-h); color: var(--text); }
.fc2-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 600px) { .fc2-body { grid-template-columns: 1fr; } }
.fc2-odds-panel {}
.fc2-binary-pcts { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.fc2-pct-block {}
.fc2-pct-label { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.fc2-pct-label.yes { color: var(--green); }
.fc2-pct-label.no  { color: var(--no); }
.fc2-pct-num { font-family: var(--head); font-size: 2.5rem; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.fc2-pct-num.yes { color: var(--green); }
.fc2-pct-num.no  { color: var(--no); }
.fc2-pct-block.right { text-align: right; }
.fc2-split-bar { height: 6px; border-radius: 3px; overflow: hidden; display: flex; margin-bottom: 16px; gap: 2px; }
.fc2-split-yes { background: var(--green); border-radius: 3px 0 0 3px; transition: width .5s; }
.fc2-split-no  { background: var(--no); border-radius: 0 3px 3px 0; transition: width .5s; }
.fc2-bet-row { display: flex; gap: 8px; }
.fc2-btn { flex: 1; padding: 10px 8px; border-radius: 999px; font-size: .8rem; font-weight: 800; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: all .15s; text-align: center; letter-spacing: .02em; }
.fc2-btn-yes { background: var(--yes-bg); border-color: var(--yes-border); color: var(--green); }
.fc2-btn-yes:hover { background: var(--yes-hover); border-color: var(--green); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(151,196,89,.2); }
.fc2-btn-no { background: var(--no-bg); border-color: var(--no-border); color: var(--no); }
.fc2-btn-no:hover { background: var(--no-hover); border-color: var(--no); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(240,149,149,.18); }
.fc2-options-list { display: flex; flex-direction: column; gap: 5px; }
.fc2-opt-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--border); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; gap: 10px; }
.fc2-opt-row:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.fc2-opt-name { font-size: .82rem; font-weight: 600; color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.fc2-opt-row:hover .fc2-opt-name { color: var(--text); }
.fc2-opt-pct { font-size: .84rem; font-weight: 800; color: var(--green); font-family: var(--mono); flex-shrink: 0; }
.fc2-opt-mini-bar { width: 40px; height: 3px; background: var(--border-soft); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.fc2-opt-mini-fill { height: 100%; background: var(--green); border-radius: 2px; }
.fc2-chart-panel { position: relative; min-height: 180px; }
.fc2-chart-panel canvas { width: 100% !important; height: 180px !important; display: block; }
.fc2-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.fc2-live-wrap { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); }
.fc2-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: fc2pulse 1.4s infinite; flex-shrink: 0; }
@keyframes fc2pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(1.4); } }
.fc2-live-badge { font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.fc2-end-date { font-size: .75rem; color: var(--muted); }
.fc2-controls { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 14px; border-top: 1px solid var(--border-soft); }
.fc2-dots { display: flex; align-items: center; gap: 5px; }
.fc2-dot { width: 5px; height: 5px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: all .25s; }
.fc2-dot.active { width: 20px; border-radius: 3px; background: var(--red); }
.fc2-nav { display: flex; gap: 6px; }
.fc2-nav-btn { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--opback); border: var(--opback-border); color: var(--muted); font-size: .75rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .15s; display: flex; align-items: center; gap: 4px; }
.fc2-nav-btn:hover { color: var(--text); background: var(--opback-h); }
.fc2-sidebar-inner { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; height: 460px; position: sticky; top: 72px; }
.fc2-sidebar-label { padding: 14px 16px 10px; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--border-soft); }
.fc2-sidebar-inner .tradingview-widget-container { height: calc(100% - 42px); }

/* ============================================================
   THEME SWITCH TOGGLE
   ============================================================ */
.navbar-brand .logo-light { display: none; }
.navbar-brand .logo-dark  { display: block; }
:root[data-theme="light"] .navbar-brand .logo-light { display: block; }
:root[data-theme="light"] .navbar-brand .logo-dark  { display: none; }
.theme-switch { background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; color: var(--muted); font-size: 13px; }
.theme-switch-track { width: 46px; height: 26px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--border); position: relative; transition: background .2s ease, border-color .2s ease; flex-shrink: 0; }
.theme-switch-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; font-size: 11px; }
[data-theme="light"] .theme-switch-thumb { transform: translateX(20px); }
.theme-switch:hover .theme-switch-track { border-color: var(--muted); }

/* ============================================================
   MULTI-STEP REGISTRATION FLOW
   ============================================================ */
.page { display: flex; min-height: 100vh; }
.panel-left { width: 40%; background: var(--panel-left-bg); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 40px; }
.logo-mark { width: 38px; height: 38px; background: var(--red); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.logo-name { font-weight: 700; font-size: 18px; color: var(--text); }
.tagline { font-size: 27px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.tagline span { color: var(--red); }
.subtext { color: var(--subtext); line-height: 1.6; margin-bottom: 32px; }
.step-list { margin: 32px 0; }
.step-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 999px; margin-bottom: 8px; color: var(--subtext); cursor: pointer; }
.step-item.active { background: var(--no-dim); color: var(--red); }
.step-item.done { color: var(--muted-2); }
.step-num { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.step-item.done .step-num, .step-item.active .step-num { background: var(--red); border-color: var(--red); color: #fff; }
.trust-badge { background: var(--opback); border-radius: 8px; padding: 12px; margin-top: 12px; font-size: 13px; color: var(--subtext); }
.trust-badge strong { color: var(--subtext-full); display: block; margin-bottom: 4px; }
.panel-right { flex: 1; display: flex; justify-content: center; align-items: center; padding: 40px; }
.form-container { max-width: 500px; width: 100%; background: var(--surface); border-radius: var(--radius-xl); padding: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
[data-theme="light"] .form-container { box-shadow: 0 20px 40px rgba(28,28,26,0.06); }
.progress-wrap { margin-bottom: 32px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.progress-track { height: 4px; background: var(--border-soft); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--red); transition: width 0.3s; width: 0%; }
.step { display: none; }
.step.active { display: block; animation: fadeIn 0.3s ease; }
.step-eyebrow { font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.step-heading { font-size: 25px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.step-desc { color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.field { margin-bottom: 20px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--subtext); margin-bottom: 6px; }
.field-label .req { color: var(--red); margin-left: 2px; }
.field-label .opt { font-weight: normal; color: var(--muted-2); }
.input, .select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; background: var(--surface); color: var(--text); }
.input:focus, .select:focus { border-color: var(--red); color: var(--text); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-wrap { display: flex; gap: 10px; }
.phone-prefix { padding: 12px; background: var(--card-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; width: 80px; text-align: center; color: var(--text); }
.otp-group { display: flex; gap: 10px; margin: 24px 0; }
.otp-input { width: 50px; height: 56px; text-align: center; font-size: 22px; font-weight: 700; border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; background: var(--surface); color: var(--text); }
.otp-input:focus { border-color: var(--red); }
.resend-link { font-size: 13px; color: var(--muted); margin-top: 8px; }
.resend-link a { color: var(--red); text-decoration: none; cursor: pointer; }
.btn-primary { width: 100%; padding: 14px; background: var(--red); color: #fff; font-weight: 800; border: none; border-radius: 999px; cursor: pointer; font-size: 15px; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { padding: 12px 24px; background: transparent; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--muted); transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.btn-row { display: flex; gap: 12px; margin-top: 24px; }
.btn-row .btn-primary { flex: 1; }
.check-wrap { display: flex; gap: 10px; margin: 20px 0; }
.check-wrap input { width: 18px; height: 18px; margin-top: 2px; }
.check-label { font-size: 13px; color: var(--muted); }
.check-label a { color: var(--red); text-decoration: none; }
.pwd-strength { display: flex; gap: 5px; margin-top: 8px; }
.pwd-strength div { flex: 1; height: 3px; background: var(--border-soft); border-radius: 3px; transition: background 0.2s; }
.pwd-strength .weak { background: var(--no); }
.pwd-strength .fair { background: var(--gold); }
.pwd-strength .strong { background: var(--green); }
.pwd-rules { margin-top: 12px; }
.pwd-rule { font-size: 12px; color: var(--muted-2); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.pwd-rule.met { color: var(--green); }
.pwd-rule-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--border-soft); display: inline-block; }
.toggle-group { margin: 20px 0; }
.toggle-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--text); }
.toggle-sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.toggle { width: 40px; height: 22px; background: var(--border-soft); border-radius: 20px; cursor: pointer; transition: background 0.2s; }
.toggle.on { background: var(--red); }
.toggle:after { content: ''; display: block; width: 18px; height: 18px; background: #fff; border-radius: 50%; margin: 2px; transition: transform 0.2s; }
.toggle.on:after { transform: translateX(18px); }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; cursor: pointer; margin-bottom: 12px; transition: all 0.2s; }
.upload-zone:hover { border-color: var(--red); background: rgba(217,67,59,0.04); }
.upload-zone.uploaded { border-color: var(--green); background: var(--yes-dim); }
.upload-label { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--muted-2); }
.success-screen { text-align: center; }
.success-icon { width: 70px; height: 70px; background: var(--yes-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 32px; color: var(--green); }
.next-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.next-card { background: var(--card-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; }
.next-card:hover { border-color: var(--red); }
.error-msg { color: var(--no); font-size: 12px; margin-top: 5px; display: none; }
.success-msg { color: var(--green); font-size: 12px; margin-top: 5px; display: none; }
.password-wrapper { position: relative; width: 100%; }
.password-wrapper .input { width: 100%; padding-right: 45px; }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); transition: color 0.2s; }
.toggle-password:hover { color: var(--green); }
.toggle-password svg { width: 18px; height: 18px; }
.toggle-password.active svg { color: var(--green); stroke: var(--green); }

/* ============================================================
   card-custom / portfolio dashboard misc
   ============================================================ */
.font-serif { font-family: var(--head); }
.font-mono { font-family: var(--mono); }
.card-custom { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; transition: all 0.2s ease; }
.card-custom:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.pill-yes { background: var(--yes-dim); color: var(--yes); border: 1px solid var(--yes-border); padding: 0.125rem 0.6rem; border-radius: 999px; font-size: 0.75rem; }
.pill-no  { background: var(--no-dim);  color: var(--no);  border: 1px solid var(--no-border);  padding: 0.125rem 0.6rem; border-radius: 999px; font-size: 0.75rem; }
.price-up { color: var(--yes); }
.price-down { color: var(--no); }
.eyebrow { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.navbar-custom { background: rgba(22,22,21,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
[data-theme="light"] .navbar-custom { background: rgba(255,255,255,.92); }
.tab-btn { color: var(--text-muted); transition: color 0.2s; cursor: pointer; }
.tab-btn:hover, .tab-btn.active { color: var(--text); }
.category-chip { border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: inherit; background: transparent; color: var(--text-muted); transition: all 0.15s; }
.category-chip:hover, .category-chip.active { border-color: var(--accent); color: var(--accent); }
.quick-trade { opacity: 0; transform: translateY(4px); transition: all 0.2s; }
.market-row:hover .quick-trade { opacity: 1; transform: translateY(0); }
.live-dot { animation: livePulse 1.6s ease-in-out infinite; }
.scrollable::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollable::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
#portfolioChart { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(217, 67, 59, 0.2); }

/* ============================================================
   WAITLIST / COMING-SOON PAGE (register.php)
   ============================================================ */
.hero-sub { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.65; font-weight: 400; }
.countdown-wrap { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 8px; }
.c-unit { text-align: center; }
.c-num { font-family: var(--head); font-size: 40px; font-weight: 800; line-height: 1; color: var(--text); display: block; }
.c-label { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }
.c-sep { font-family: var(--head); font-size: 34px; font-weight: 800; color: var(--red); padding-bottom: 16px; }
.launch-note { font-size: 13px; color: var(--muted-2); margin-bottom: 44px; }
.launch-note strong { color: var(--gold); font-weight: 700; }
.form-section { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; margin-bottom: 24px; position: relative;
}
.form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .5; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.form-eyebrow  { font-size: 12px; color: var(--muted-2); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.form-title    { font-family: var(--head); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -0.4px; }
.form-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 14px; padding: 12px 16px;
  border-radius: var(--radius-sm); outline: none;
  transition: border-color 0.15s, background 0.15s;
  appearance: none; -webkit-appearance: none;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus {
  border-color: var(--red); background: var(--card-2);
}
input::placeholder { color: var(--muted-2); }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8d93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
select option { background: var(--card-2); color: var(--text); }
.chips-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; cursor: pointer;
  transition: all 0.15s; user-select: none; font-family: inherit;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--yes-dim); border-color: var(--green); color: var(--green); }
.btn-submit {
  width: 100%; background: var(--red); color: #fff; border: none;
  font-family: inherit; font-size: 15px; font-weight: 700; padding: 15px 24px;
  border-radius: 999px; cursor: pointer; transition: background 0.15s, transform 0.1s;
  position: relative; overflow: hidden;
}
.btn-submit:hover { background: var(--red-hover); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit.loading { color: transparent; pointer-events: none; }
.btn-submit.loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  transform: translate(-50%,-50%); animation: spin 0.6s linear infinite;
}
.privacy-note { font-size: 12px; color: var(--muted-2); text-align: center; margin-top: 14px; }
.success-state {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 36px;
  text-align: center; display: none; margin-bottom: 24px;
}
.success-state.show { display: block; }
.success-title { font-family: var(--head); font-size: 25px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; color: var(--text); }
.success-desc  { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.position-badge {
  display: inline-block; background: var(--yes-dim);
  border: 1px solid var(--yes-border); color: var(--green);
  font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px;
}
.benefits { padding: 60px 32px 80px; max-width: 1100px; margin: 0 auto; }
.section-eyebrow { text-align: center; font-size: 12px; color: var(--red); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.section-title {
  font-family: var(--head); font-size: 34px; font-weight: 800; text-align: center;
  letter-spacing: -1px; margin-bottom: 48px; line-height: 1.1; color: var(--text);
}
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.benefit-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color 0.15s, transform 0.2s; }
.benefit-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.benefit-icon { width: 40px; height: 40px; background: var(--no-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.benefit-icon svg { width: 20px; height: 20px; stroke: var(--red); }
.benefit-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.benefit-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 800px) {
  .form-section { padding: 0 20px; }
  .form-card { padding: 24px; }
  .benefits { padding: 40px 20px 60px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .countdown-wrap { gap: 10px; }
  .c-num { font-size: 30px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .dp-content { grid-template-columns: 1fr 300px; gap: 1.5rem; }
}
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav      { padding: 0 24px; }
}
@media (max-width: 991px) {
  .dp-content { grid-template-columns: 1fr; padding: 1.25rem 1rem 4rem; gap: 1rem; }
  .dp-hero-inner { padding: 0 1.25rem; }
  .dp-hero { padding: 2rem 0 0; }
  .dp-title { font-size: 1.5rem; }
  .dp-trade-card { position: static; }
}
@media (max-width: 900px) {
  .panel-left { display: none; }
  .page { display: block; }
  .panel-right { padding: 20px; }
  .form-container { padding: 24px; }
}
@media (max-width: 800px) {
  nav { padding: 14px 20px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .search-wrap input { width: 120px; }
  .hero { padding: 60px 20px 40px; }
  h1 { letter-spacing: -1px; }
  .form-section { padding: 0 20px; }
  .form-card { padding: 24px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .benefits { padding: 40px 20px 60px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .countdown-wrap { gap: 10px; }
  .c-num { font-size: 30px; }
  .footer-content { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .nav-links   { display: none; }
  .nav-balance { display: none; }
  .nav         { padding: 0 16px; }
  .hero        { padding: 60px 0 48px; }
  .hero-stats  { flex-wrap: wrap; }
  .hero-stat   { padding: 14px 24px; }
  .hero-ctas   { flex-direction: column; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .feed-grid   { grid-template-columns: 1fr; }
  .grid-2      { grid-template-columns: 1fr; }
  .grid-3      { grid-template-columns: 1fr; }
  .cat-grid    { grid-template-columns: repeat(2, 1fr); }
  .how-grid    { grid-template-columns: 1fr; }
  .how-step    { border-right: none; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }
  .outcome-grid{ grid-template-columns: 1fr; }
  .footer      { flex-direction: column; text-align: center; padding: 28px 24px; }
  .container   { padding: 0 16px; }
  .featured-market { padding: 20px; }
  .featured-market .title { font-size: 18px; }
  .section     { padding: 36px 0; }
}
@media (max-width: 640px) {
  .dp-content { padding: 1rem .75rem 3rem; }
  .dp-hero-inner { padding: 0 .875rem; }
  .dp-hero { padding: 1.5rem 0 0; }
  .dp-back-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dp-back-crumb { display: none; }
  .dp-title { font-size: 1.3rem; letter-spacing: -.02em; }
  .dp-meta-row { gap: 6px; }
  .dp-chip { font-size: .7rem; padding: 4px 10px; }
  .dp-social-row { flex-wrap: wrap; gap: 5px; }
  .dp-share-btn span { display: none; }
  .dp-card-header { padding: .875rem 1rem; }
  .dp-card-body { padding: 1rem; }
  .dp-outcome-row { padding: 12px 1rem; }
  .dp-chart-wrap { height: 180px; padding: 0 1rem 1rem; }
  .dp-chart-legend { padding: 0 1rem .875rem; }
  .dp-chart-timebtns { gap: 3px; }
  .dp-ctb { padding: 3px 8px; font-size: .65rem; }
  .dp-comments-input-wrap { padding: .875rem 1rem; }
  .dp-comment { padding: 12px 1rem; }
  .dp-tc-body { padding: 1rem; }
  .dp-timeline { padding: 1.25rem 1rem 1.25rem 1.75rem; }
  .dp-timeline::before { left: 1.5rem; }
  .dp-tl-item { padding-left: 1.5rem; }
  .dp-tl-dot { left: -0.85rem; }
  .dp-rules-body-inner { padding: 0 1rem 1rem 1rem; }
  .dp-rules-trigger { padding: .875rem 1rem; }
  .dp-rules-icon { width: 28px; height: 28px; font-size: 12px; }
  .fc2-body { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cat-grid  { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .hero-stat { padding: 12px 20px; }
}
@media (max-width: 400px) {
  .dp-title { font-size: 1.15rem; }
  .dp-tc-quick { gap: 3px; }
  .dp-tc-q { font-size: .62rem; padding: 4px 0; }
  .dp-social-icon { width: 28px; height: 28px; border-radius: 6px; }
  .dp-social-icon svg { width: 13px; height: 13px; }
}

/* ============================================================
   TP-OUTCOME CARDS (YES/NO side-by-side, used on event cards)
   ============================================================ */
.tp-outcomes-grid {
  display: flex;
  gap: 10px;
  width: 100%;
}
.tp-outcome-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px 5px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tp-outcome-yes {
  background: var(--yes-dim);
  border: 1px solid var(--yes-border);
}
.tp-outcome-yes:hover {
  background: var(--yes-hover);
  border-color: var(--green);
  transform: translateY(-2px);
}
.tp-outcome-no {
  background: var(--no-dim);
  border: 1px solid var(--no-border);
}
.tp-outcome-no:hover {
  background: var(--no-hover);
  border-color: var(--no);
  transform: translateY(-2px);
}
.tp-outcome-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tp-outcome-yes .tp-outcome-label { color: var(--green); }
.tp-outcome-no  .tp-outcome-label { color: var(--no); }
.tp-outcome-pct {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.tp-outcome-odds {
  font-size: 9px;
  font-weight: 600;
}
.tp-outcome-yes .tp-outcome-odds { color: var(--green); opacity: 0.85; }
.tp-outcome-no  .tp-outcome-odds { color: var(--no); opacity: 0.85; }
@media (max-width: 400px) {
  .tp-outcome-pct { font-size: 12px; }
  .tp-outcome-card { padding: 5px 5px; }
}

/* ============================================================
   FC2 OUTCOME CARDS (pastel YES/NO cards w/ stake calculator)
   ============================================================ */
.fc2-outcome-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.fc2-oc-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.fc2-oc-card:hover { transform: translateY(-2px); }
.fc2-oc-yes {
  background: color-mix(in srgb, var(--green) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
.fc2-oc-yes:hover { border-color: var(--green); }
.fc2-oc-no {
  background: color-mix(in srgb, var(--no) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--no) 30%, transparent);
}
.fc2-oc-no:hover { border-color: var(--no); }
.fc2-oc-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fc2-oc-yes .fc2-oc-label { color: var(--green); }
.fc2-oc-no  .fc2-oc-label { color: var(--no); }
.fc2-oc-pct {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.fc2-oc-yes .fc2-oc-pct { color: var(--green); }
.fc2-oc-no  .fc2-oc-pct { color: var(--no); }
.fc2-oc-odds {
  font-size: 12.5px;
  font-weight: 600;
}
.fc2-oc-yes .fc2-oc-odds { color: var(--green); opacity: 0.8; }
.fc2-oc-no  .fc2-oc-odds { color: var(--no); opacity: 0.8; }
.fc2-oc-calc {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 10px;
}
@media (max-width: 480px) {
  .fc2-oc-pct { font-size: 21px; }
  .fc2-oc-card { padding: 12px 14px; }
}

/* ============================================================
   FILTER TABS (All / Trending / Popular / etc.)
   ============================================================ */
.tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--black);
  transition: all 0.15s ease;
  user-select: none;
}
.tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
}
.tab.active:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

.dp-rpanel { display: none; padding: 1.25rem 1.5rem 1.5rem; }
.dp-rpanel.on { display: block; }
.dp-rpanel .bet-history .bet-item:last-child { margin-bottom: 0; }


.dp-holder-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.dp-holder-row:last-child { border-bottom: none; }
.dp-holder-info { min-width: 120px; flex-shrink: 0; }
.dp-holder-name { font-size: .82rem; font-weight: 700; color: var(--t1); }
.dp-holder-side { font-size: .68rem; color: var(--t3); margin-top: 1px; }
.dp-holder-bar-wrap { flex: 1; min-width: 60px; }
.dp-holder-bar { height: 6px; border-radius: 3px; background: var(--border-soft); overflow: hidden; }
.dp-holder-bar i { display: block; height: 100%; border-radius: 3px; transition: width .5s; }
.dp-holder-amt { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--t1); flex-shrink: 0; min-width: 70px; text-align: right; }
@media (max-width: 480px) {
  .dp-holder-info { min-width: 90px; }
  .dp-holder-amt  { min-width: 56px; }
}



.live-search-wrapper {
    position: relative;
}

.live-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--surface, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    max-height: 420px;
    overflow-y: auto;
    padding: 6px;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.live-search-item:hover,
.live-search-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.live-search-thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.live-search-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.live-search-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-sub {
    font-size: 0.75rem;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffc107;
    flex-shrink: 0;
    margin-left: 6px;
}

.live-search-empty {
    padding: 12px 10px;
    font-size: 0.85rem;
    opacity: 0.65;
    text-align: center;
}

.live-search-see-all {
    display: block;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    text-decoration: none;
    color: #dc3545;
}

.live-search-see-all:hover {
    text-decoration: underline;
}