/* ZeroScreen — Premium Fintech UI */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:         #f0f4ff;
  --bg-alt:     #ffffff;
  --bg-card:    #ffffff;
  --bg3:        #f4f7fe;
  --bg4:        #e8eeff;
  --border:     #dde3f5;
  --border2:    #c5cef0;

  --text:       #0a0e27;
  --text-muted: #5b6490;
  --text-dim:   #8e97c0;

  --accent:     #2563eb;
  --accent2:    #7c3aed;
  --accent3:    #0ea5e9;
  --accent-h:   #1d4ed8;
  --accent-glow: rgba(37,99,235,0.18);

  --green:      #059669;
  --green-bg:   #d1fae5;
  --green-dim:  #a7f3d0;
  --red:        #dc2626;
  --red-bg:     #fee2e2;
  --red-dim:    #fca5a5;
  --yellow:     #d97706;
  --yellow-bg:  #fef3c7;
  --gold:       #f59e0b;
  --gold2:      #d97706;
  --purple:     #7c3aed;
  --teal:       #0d9488;

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-blue:    linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --grad-green:   linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-warm:    linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-teal:    linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
  --grad-purple:  linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --grad-page:    linear-gradient(160deg, #f0f4ff 0%, #f8f6ff 50%, #f0f9ff 100%);

  --shadow-sm:    0 1px 3px rgba(37,99,235,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-card:  0 4px 20px rgba(37,99,235,0.09), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:    0 16px 48px rgba(37,99,235,0.14), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-glow:  0 0 0 3px rgba(37,99,235,0.15);
  --shadow-float: 0 8px 32px rgba(37,99,235,0.18);

  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --nav-height: 62px;
  --ticker-height: 34px;

  /* Aliases used in inline styles */
  --bg2:      #eef2ff;
  --card-bg:  #ffffff;
  --hover-bg: #f0f4ff;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, canvas, video, iframe { max-width: 100%; }
.container, .container > *, main, section, article, aside,
[class*="-grid"] > *, [class*="-row"] > * { min-width: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--grad-page);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  min-height: 100vh;
}

/* Tabular nums for all financial numbers */
.mkt-price, .mkt-chg,
td, th,
.kpi-val, .kpi-value,
.price-val, .chg-val,
.trade-pnl, .pnl-val,
.today-pick-range, .today-tgt, .today-sl { font-variant-numeric: tabular-nums; }

/* Subtle dot-grid pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.topnav, .ticker-wrap, .container, .auth-body { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.topnav {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 10003;
  box-shadow: 0 1px 0 rgba(255,255,255,0.95), 0 4px 24px rgba(0,0,0,0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 20px;
}
.brand-logo {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(37,99,235,0.30);
  transition: transform 0.2s, box-shadow 0.2s;
}
.brand:hover .brand-logo { transform: scale(1.07); box-shadow: 0 4px 16px rgba(37,99,235,0.42); }
.brand-wordmark {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg,#818cf8,#34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(99,102,241,0.4));
}
.brand-wordmark em { font-style: normal; -webkit-text-fill-color: transparent; }
.brand span { -webkit-text-fill-color: transparent; }

/* ── Desktop inline nav links (inside topnav, hidden on mobile) ──────────── */
.nav-desktop-links { display: flex; gap: 6px; align-items: center; }
.nav-desktop-links a {
  color: #475569;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.18s;
  letter-spacing: 0;
  white-space: nowrap;
  border: 1.5px solid transparent;
  background: transparent;
}
.nav-desktop-links a:hover {
  background: rgba(15,23,42,0.04);
  border-color: rgba(100,116,139,0.24);
  color: #0f172a;
}
.nav-desktop-links a.active {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  border-color: #0f172a;
  box-shadow: 0 8px 24px rgba(15,23,42,0.16);
}

/* ── Mobile drawer (nav-links): hidden on desktop, drawer on mobile ───────── */
.nav-links { display: none; }
.nav-links a {
  color: #334155;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.18s;
  letter-spacing: -0.1px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  background: transparent;
}
.nav-links a:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.25);
  color: #c7d2fe;
}
.nav-links a.active {
  background: linear-gradient(135deg,#6366f1 0%,#34d399 100%);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(99,102,241,0.45);
}

/* ── Nav HOT badge & My Trade link ──────────────────────────────────────── */
.nav-hot-link { position: relative; }
.nav-hot-link::after {
  content: "LIVE";
  margin-left: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #059669;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 999px;
  padding: 1px 6px;
}
.nav-hot-badge {
  display: none;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 3px;
  text-transform: uppercase;
  animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* ── "More" dropdown ──────────────────────────────────────────────────────── */
.nav-more { position: relative; }
.nav-more-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1.5px solid transparent;
  color: #475569; border-radius: 8px;
  padding: 6px 13px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.18s;
  white-space: nowrap; letter-spacing: 0;
}
.nav-more-btn:hover { background: rgba(15,23,42,0.04); border-color: rgba(100,116,139,0.24); color: #0f172a; }
.nav-more-btn.active { background: #0f172a; color: #fff; font-weight: 700; border-color: #0f172a; box-shadow: 0 8px 24px rgba(15,23,42,0.16); }
.nav-more-chevron { font-size: 10px; transition: transform 0.2s; }
.nav-more.open .nav-more-chevron { transform: rotate(180deg); }
.nav-more-drop {
  display: none; position: absolute; top: calc(100% + 12px); left: 0;
  background: linear-gradient(160deg, rgba(14,20,44,0.99) 0%, rgba(8,12,28,0.99) 100%);
  border: 1px solid rgba(99,102,241,0.28);
  border-top: 2px solid rgba(99,102,241,0.55);
  border-radius: 12px; padding: 8px; min-width: 210px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.07), 0 0 50px rgba(99,102,241,0.08);
  z-index: 300; flex-direction: column; gap: 2px;
  backdrop-filter: blur(28px) saturate(180%);
  animation: dropIn 0.18s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
.nav-more.open .nav-more-drop { display: flex; }
.nav-more-drop a {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px;
  color: #94a3b8; text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: all 0.15s; white-space: nowrap; border: 1px solid transparent;
}
.nav-more-drop a:hover { background: rgba(148,163,184,0.12); border-color: rgba(148,163,184,0.22); color: #f8fafc; transform: translateX(2px); }
.nav-more-drop a.active { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.16); color: #fff; font-weight: 700; }

/* ── Tier-based "Explore" dropdown ───────────────────────────────────────── */
.nav-tier-drop {
  min-width: 680px; padding: 12px;
  flex-direction: row !important; gap: 0 !important; align-items: flex-start;
  left: auto; right: 0;
}
.nav-tier-drop .nav-tier-section {
  flex: 1; margin-bottom: 0; padding: 0 10px;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.nav-tier-drop .nav-tier-section:first-child { border-left: none; padding-left: 4px; }
.nav-tier-drop .nav-tier-section + .nav-tier-section { border-top: none; padding-top: 0; margin-top: 0; }
.nav-tier-section { margin-bottom: 6px; }
.nav-tier-section:last-child { margin-bottom: 0; }
.nav-tier-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  padding: 7px 12px 6px; margin-bottom: 3px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  /* color comes from inline style (sec.color) */
}
.nav-tier-section + .nav-tier-section { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 6px; margin-top: 6px; }

/* ── Tier pills (section badges) ─────────────────────────────────────────── */
.tier-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 12px;
  letter-spacing: 0.3px; vertical-align: middle; white-space: nowrap;
}
.tier-beginner-pill, .tier-green { background: #dcfce7; color: #166534; }
.tier-mid  { background: #fef9c3; color: #713f12; }
.tier-expert { background: #fee2e2; color: #991b1b; }

/* ── Page Themes ──────────────────────────────────────────────────────────── */
/* Signals — teal/emerald */
.page-theme-signals {
  --accent:      #059669;
  --accent-h:    #047857;
  --accent2:     #10b981;
  --accent-glow: rgba(5,150,105,0.18);
  --grad-brand:  linear-gradient(135deg, #059669 0%, #0d9488 100%);
  --grad-page:   linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
  --shadow-glow: 0 0 0 3px rgba(5,150,105,0.15);
}
.page-theme-signals .topnav { /* nav stays unified */ }
html.dark .page-theme-signals { --grad-page: linear-gradient(160deg,#022c22 0%,#064e3b 50%,#022c22 100%); }

/* Dashboard — indigo/purple */
.page-theme-dashboard {
  --accent:      #7c3aed;
  --accent-h:    #6d28d9;
  --accent2:     #8b5cf6;
  --accent-glow: rgba(124,58,237,0.18);
  --grad-brand:  linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --grad-page:   linear-gradient(160deg, #f5f3ff 0%, #ede9fe 30%, #f0f4ff 100%);
  --shadow-glow: 0 0 0 3px rgba(124,58,237,0.15);
}
html.dark .page-theme-dashboard { --grad-page: linear-gradient(160deg,#1e1b4b 0%,#2e1065 50%,#1e1b4b 100%); }

/* Strategies — orange/amber */
.page-theme-strategies {
  --accent:      #d97706;
  --accent-h:    #b45309;
  --accent2:     #f59e0b;
  --accent-glow: rgba(217,119,6,0.18);
  --grad-brand:  linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-page:   linear-gradient(160deg, #fffbeb 0%, #fef3c7 30%, #fff7ed 100%);
  --shadow-glow: 0 0 0 3px rgba(217,119,6,0.15);
}
html.dark .page-theme-strategies { --grad-page: linear-gradient(160deg,#1c1008 0%,#292003 50%,#1c1008 100%); }

/* Paper Trade — pink/rose */
.page-theme-paper {
  --accent:      #db2777;
  --accent-h:    #be185d;
  --accent2:     #ec4899;
  --accent-glow: rgba(219,39,119,0.18);
  --grad-brand:  linear-gradient(135deg, #db2777 0%, #9333ea 100%);
  --grad-page:   linear-gradient(160deg, #fdf2f8 0%, #fce7f3 30%, #f5f3ff 100%);
  --shadow-glow: 0 0 0 3px rgba(219,39,119,0.15);
}
html.dark .page-theme-paper { --grad-page: linear-gradient(160deg,#1f0818 0%,#2d0a20 50%,#1a0533 100%); }

.db-stats { margin-left: auto; font-size: 11px; color: var(--text-dim); letter-spacing: 0.1px; }

.nav-auth { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.btn-nav-login {
  color: #475569; text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 7px 15px; border-radius: 9px; transition: all 0.18s;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
}
.btn-nav-login:hover { color: #4f46e5; border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.08); }
.btn-nav-signup {
  background: linear-gradient(135deg,#6366f1,#34d399); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 9px;
  transition: all 0.2s; box-shadow: 0 2px 14px rgba(99,102,241,0.45); letter-spacing: -0.1px;
}
.btn-nav-signup:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.6); }

.nav-user { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg,#6366f1,#34d399);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
  text-decoration: none; cursor: pointer; border: none;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.35), 0 4px 14px rgba(99,102,241,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-avatar:hover { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(99,102,241,0.55), 0 4px 18px rgba(99,102,241,0.45); }
.nav-name { font-size: 13px; font-weight: 600; color: var(--text); }
.btn-nav-logout {
  color: var(--text-muted); text-decoration: none;
  font-size: 12px; padding: 5px 12px; border: 1.5px solid var(--border);
  border-radius: 7px; transition: all 0.15s;
}
.btn-nav-logout:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }

/* ── Avatar dropdown ──────────────────────────────────────────────────────── */
.nav-user-menu { position: relative; display: flex; align-items: center; gap: 6px; }
.nav-user-drop {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(8,14,28,0.97); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 14px; box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  min-width: 200px; z-index: 9999; overflow: hidden;
  backdrop-filter: blur(20px);
}
.nav-user-menu.open .nav-user-drop { display: block; }
.nav-user-drop-name {
  padding: 12px 16px 10px; font-size: 13px; font-weight: 700; color: #e2e8f0;
  border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 6px;
}
.nav-udrop-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; background: rgba(99,102,241,0.18); color: #a5b4fc;
}
.nav-udrop-admin { background: rgba(139,92,246,0.18); color: #c4b5fd; }
.nav-user-drop-link {
  display: block; padding: 9px 16px; font-size: 13px; color: #94a3b8;
  text-decoration: none; transition: background 0.12s;
}
.nav-user-drop-link:hover { background: rgba(99,102,241,0.1); color: #c7d2fe; }
.nav-user-drop-logout {
  display: block; padding: 9px 16px; font-size: 13px;
  color: #f87171; text-decoration: none; border-top: 1px solid rgba(255,255,255,0.07);
  transition: background 0.12s;
}
.nav-user-drop-logout:hover { background: rgba(239,68,68,0.08); }

/* ── Monthly backtest performance cards ───────────────────────────────────── */
.sig-month-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.sig-month-card {
  border-radius: 12px; padding: 14px 16px;
  border: 1px solid transparent; text-align: center;
}
.sig-month-profit {
  background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.2);
}
.sig-month-loss {
  background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.18);
}
.sig-month-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 6px; }
.sig-month-pnl { font-size: 22px; font-weight: 800; }
.sig-month-profit .sig-month-pnl { color: #10b981; }
.sig-month-loss .sig-month-pnl { color: #ef4444; }
.sig-month-unit { font-size: 12px; font-weight: 600; opacity: 0.7; }
.sig-month-meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; display: flex; justify-content: center; gap: 10px; }

/* ── News Ticker ──────────────────────────────────────────────────────────── */
.ticker-wrap {
  display: flex; align-items: center;
  background: linear-gradient(90deg, #0a0e27 0%, #0f1535 100%);
  border-bottom: 1px solid rgba(37,99,235,0.4);
  overflow: hidden; height: var(--ticker-height); user-select: none;
}
.ticker-label {
  flex-shrink: 0; background: var(--grad-brand); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  padding: 0 16px; height: 100%; display: flex; align-items: center;
  white-space: nowrap; z-index: 2; text-transform: uppercase;
}
.ticker-viewport {
  flex: 1; overflow: hidden; position: relative; height: 100%;
  display: flex; align-items: center;
}
.ticker-viewport::after {
  content: ""; position: absolute; right: 0; top: 0;
  width: 80px; height: 100%;
  background: linear-gradient(to left, #0a0e27 20%, transparent);
  z-index: 1; pointer-events: none;
}
.ticker-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: ticker-scroll 70s linear infinite; will-change: transform; padding-left: 24px;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 32px 0 0; font-size: 12px; color: #cbd5e1;
  text-decoration: none; transition: color 0.15s; white-space: nowrap;
}
.ticker-item:hover { color: #93c5fd; }
.ticker-dot { color: var(--accent3); font-size: 7px; flex-shrink: 0; }
.ticker-src {
  font-size: 9.5px; color: #475569;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 1px 6px; margin-left: 4px; flex-shrink: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1600px; margin: 0 auto; padding: 28px 28px; }
h1 { font-size: 22px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; color: var(--text); }
h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text-muted); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  position: relative; background: var(--grad-brand); color: #fff; border: none;
  padding: 9px 22px; border-radius: 9px; font-weight: 700; cursor: pointer;
  font-size: 13.5px; text-decoration: none; display: inline-block;
  transition: all 0.2s; font-family: inherit;
  box-shadow: 0 3px 12px rgba(37,99,235,0.35); overflow: hidden; letter-spacing: -0.1px;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%); pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.45); opacity: 0.95; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-card); color: var(--accent); border: 1.5px solid var(--border2);
  padding: 9px 18px; border-radius: 9px; cursor: pointer; font-size: 13px;
  text-decoration: none; display: inline-block; transition: all 0.18s;
  font-family: inherit; font-weight: 600;
}
.btn-secondary:hover { background: var(--bg4); border-color: var(--accent); color: var(--accent-h); }

.btn-ghost {
  background: transparent; color: var(--text-muted); border: 1.5px solid var(--border);
  padding: 6px 13px; border-radius: 8px; cursor: pointer; font-size: 12px;
  text-decoration: none; display: inline-block; transition: all 0.15s; font-family: inherit;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); background: var(--bg4); }

.btn-danger {
  background: var(--red-bg); color: var(--red); border: 1.5px solid var(--red-dim);
  padding: 7px 16px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-family: inherit; transition: all 0.15s;
}
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger-sm {
  background: var(--red-bg); color: var(--red); border: 1px solid var(--red-dim);
  padding: 3px 9px; border-radius: 5px; cursor: pointer;
  font-size: 11.5px; transition: all 0.15s;
}
.btn-danger-sm:hover { background: var(--red); color: #fff; }

/* ── Filter Form ──────────────────────────────────────────────────────────── */
.filter-form {
  background: rgba(255,255,255,0.92); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  margin-bottom: 22px; box-shadow: var(--shadow-card); backdrop-filter: blur(12px);
}
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; margin-bottom: 18px; }
.filter-group label {
  display: block; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 5px; font-weight: 700;
}
.filter-group input, .filter-group select {
  width: 100%; background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text); padding: 8px 11px; border-radius: 8px;
  font-size: 13px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; font-family: inherit;
}
.filter-group input:focus, .filter-group select:focus {
  border-color: var(--accent); box-shadow: var(--shadow-glow); background: #fff;
}
.filter-group select option { background: #fff; color: var(--text); }
.checkbox-group { display: flex; flex-direction: column; gap: 9px; justify-content: center; padding-top: 2px; }
.checkbox-group label {
  display: flex; align-items: center; gap: 7px; font-size: 13px;
  text-transform: none; letter-spacing: 0; color: var(--text-muted); cursor: pointer; font-weight: 400;
}
.checkbox-group input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.filter-actions { display: flex; gap: 10px; align-items: center; }

/* Separator between Fundamentals and Indicator sections */
.filter-section-title {
  grid-column: 1 / -1;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent);
  padding: 14px 0 6px; margin-top: 4px;
  border-top: 1.5px solid var(--border2);
  display: flex; align-items: center; gap: 7px;
}
/* When used outside a grid (between two filter-grids) */
div.filter-section-title {
  border-top: 1.5px solid var(--border2);
  margin: 8px 0 0;
}

/* two selects side-by-side inside a filter-group */
.filter-range-row { display: flex; gap: 6px; }
.filter-range-row select { flex: 1; min-width: 0; font-size: 12px; padding: 7px 6px; }

/* ── Page Loader ──────────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease;
}
#page-loader.show { opacity: 1; pointer-events: all; }

.loader-brand {
  font-size: 32px; font-weight: 900; letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 0 40px rgba(99,102,241,0.8);
}
.loader-brand span { color: #818cf8; }

.loader-ring {
  position: relative; width: 64px; height: 64px;
}
.loader-ring::before,
.loader-ring::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}
.loader-ring::before {
  border-top-color: #818cf8;
  border-right-color: #818cf8;
  animation: ldr-spin 0.9s linear infinite;
}
.loader-ring::after {
  inset: 8px;
  border-bottom-color: #38bdf8;
  border-left-color: #38bdf8;
  animation: ldr-spin 0.6s linear infinite reverse;
}

.loader-dots {
  display: flex; gap: 8px;
}
.loader-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #818cf8;
  animation: ldr-bounce 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; background: #a78bfa; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; background: #38bdf8; }

.loader-tagline {
  font-size: 12px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}

@keyframes ldr-spin    { to { transform: rotate(360deg); } }
@keyframes ldr-bounce  {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1.2); opacity: 1; }
}
html.dark #page-loader { background: linear-gradient(135deg, #0d1117 0%, #1a0d2e 50%, #0d1117 100%); }

/* ── Screener Hero ────────────────────────────────────────────────────────── */
.screener-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.screener-hero-text h1 {
  margin-bottom: 4px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
html.dark .screener-hero-text h1 {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 45%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text;
}
.screener-hero-sub {
  font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.5;
}
.data-freshness-badge {
  display: inline-block; font-size: 11px; color: var(--text-dim); font-weight: 500;
  margin-top: 5px; padding: 3px 10px; border-radius: 99px;
  background: rgba(37,99,235,0.07); border: 1px solid rgba(37,99,235,0.15);
}
html.dark .data-freshness-badge { background: rgba(96,165,250,0.1); border-color: rgba(96,165,250,0.2); color: #94a3b8; }
.screener-hero-stats {
  display: flex; gap: 8px; border: none; border-radius: 0;
  overflow: visible; flex-shrink: 0; background: none;
  box-shadow: none;
}
.sh-stat {
  display: flex; flex-direction: column; align-items: center; padding: 10px 16px;
  border-radius: 12px; border: 1px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-width: 72px;
}
.sh-stat:nth-child(1) { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-color: #bfdbfe; }
.sh-stat:nth-child(1) strong { color: #1d4ed8; }
.sh-stat:nth-child(2) { background: linear-gradient(135deg,#f5f3ff,#ede9fe); border-color: #c4b5fd; }
.sh-stat:nth-child(2) strong { color: #7c3aed; }
.sh-stat:nth-child(3) { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #a7f3d0; }
.sh-stat:nth-child(3) strong { color: #16a34a; }
.sh-stat:nth-child(4) { background: linear-gradient(135deg,#fff7ed,#fed7aa); border-color: #fdba74; }
.sh-stat:nth-child(4) strong { color: #c2410c; }
.sh-stat strong { font-size: 17px; font-weight: 900; letter-spacing: -0.5px; }
.sh-stat span { font-size: 10.5px; color: var(--text-dim); font-weight: 600; letter-spacing: 0.3px; margin-top: 1px; }
@media (max-width: 600px) {
  .screener-hero { flex-direction: column; align-items: flex-start; }
  .screener-hero-stats { width: 100%; }
  .sh-stat { flex: 1; padding: 8px 8px; }
}

.dark .sh-stat:nth-child(1) { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.25); }
.dark .sh-stat:nth-child(2) { background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.25); }
.dark .sh-stat:nth-child(3) { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.25); }
.dark .sh-stat:nth-child(4) { background: rgba(234,88,12,0.12);  border-color: rgba(234,88,12,0.25); }

/* ── Live Market Strip ────────────────────────────────────────────────────── */
.market-strip-outer {
  width: 100%; background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 0 20px; position: relative;
}
.market-strip {
  display: flex; align-items: center;
  overflow: hidden; padding: 6px 0;
  max-width: 100%; margin: 0 auto;
}
.mkt-track {
  display: flex; align-items: center; gap: 5px;
  animation: mkt-scroll 40s linear infinite;
  white-space: nowrap;
}
.market-strip:hover .mkt-track { animation-play-state: paused; }
@keyframes mkt-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes mkt-flash-up {
  0%   { background: rgba(16,185,129,0.25); }
  100% { background: transparent; }
}
@keyframes mkt-flash-dn {
  0%   { background: rgba(239,68,68,0.2); }
  100% { background: transparent; }
}
.mkt-flash-up { animation: mkt-flash-up 0.8s ease-out forwards; border-radius: 3px; }
.mkt-flash-dn { animation: mkt-flash-dn 0.8s ease-out forwards; border-radius: 3px; }
.market-strip::-webkit-scrollbar { display: none; }
.mkt-region-label { display: none; }

.mkt-tile {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  width: 96px; min-width: 96px; max-width: 96px; padding: 6px 8px;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; flex-shrink: 0; cursor: default;
  transition: transform 0.15s, border-color 0.15s;
  position: relative; overflow: hidden;
}
.mkt-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: #e5e7eb; border-radius: 2px 2px 0 0;
  transition: background 0.3s;
}
.mkt-tile.mkt-up::before  { background: #10b981; }
.mkt-tile.mkt-dn::before  { background: #ef4444; }
.mkt-tile:hover { transform: translateY(-1px); border-color: #d1d5db; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.mkt-tile-sep { margin-left: 4px; border-left: 2px solid var(--border2); padding-left: 10px; }

.mkt-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; width: 100%; justify-content: center; max-width: 80px; }
.mkt-flag-img { width: 16px; height: 12px; border-radius: 2px; flex-shrink: 0; object-fit: cover; vertical-align: middle; }
.mkt-price { font-size: 12px; font-weight: 800; color: #111827; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; text-align: center; }
.mkt-tile.mkt-up .mkt-price { color: #059669; }
.mkt-tile.mkt-dn .mkt-price { color: #dc2626; }
.mkt-chg {
  font-size: 9.5px; font-weight: 700; padding: 1px 4px; border-radius: 4px;
  background: #f3f4f6; color: #6b7280; white-space: nowrap;
}
.mkt-tile.mkt-up .mkt-chg { background: rgba(16,185,129,0.1); color: #059669; }
.mkt-tile.mkt-dn .mkt-chg { background: rgba(239,68,68,0.08);  color: #dc2626; }

.mkt-strip-time {
  position: absolute; right: 20px; bottom: 4px;
  font-size: 10px; color: var(--text-dim); white-space: nowrap;
  pointer-events: none;
}
.mkt-divider {
  width: 1px; min-height: 36px; background: var(--border); flex-shrink: 0;
  align-self: center; margin: 0 4px; opacity: 0.5;
}

/* dark mode */
.dark .mkt-tile { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.dark .mkt-tile::before { background: rgba(255,255,255,0.08); }
.dark .mkt-label { color: #6b7280; }
.dark .mkt-price { color: #f9fafb; }
.dark .mkt-tile.mkt-up .mkt-price { color: #34d399; }
.dark .mkt-tile.mkt-dn .mkt-price { color: #f87171; }
.dark .mkt-chg { background: rgba(255,255,255,0.06); color: #9ca3af; }
.dark .mkt-tile.mkt-up .mkt-chg { background: rgba(52,211,153,0.1); color: #34d399; }
.dark .mkt-tile.mkt-dn .mkt-chg { background: rgba(248,113,113,0.1); color: #f87171; }

/* ── Strategy Presets ─────────────────────────────────────────────────────── */
.strategies-section {
  background: linear-gradient(135deg,rgba(255,255,255,0.96) 0%,rgba(245,243,255,0.92) 100%);
  border: 1px solid var(--border); border-top: 3px solid #6d28d9;
  border-radius: var(--radius-lg); padding: 18px 20px;
  margin-bottom: 18px; box-shadow: var(--shadow-card); backdrop-filter: blur(12px);
  overflow-x: auto;
}
.strategies-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.strategies-title { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.strategies-sub { font-size: 12px; color: var(--text-dim); }
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.strategy-card {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px 7px 10px;
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: 99px; text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer; white-space: nowrap;
}
.strategy-card:hover {
  border-color: var(--accent); background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
.strategy-card.active {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(37,99,235,0.25);
}
.strategy-card.active .strategy-label { color: #fff; }
.s-flag { display: none; }
.s-emoji { font-size: 15px; line-height: 1; flex-shrink: 0; }
.s-emoji:empty::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  color: var(--accent);
}
.strategy-card.active .s-emoji:empty::before { color: #fff; }
.strategy-label { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: -0.1px; }
.strategy-icon { display: none; }
.strategy-desc { display: none; }

/* ── Advanced Filters (collapsible) ──────────────────────────────────────── */
.filter-details {
  background: rgba(255,255,255,0.92); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 18px;
  box-shadow: var(--shadow-card); overflow: hidden; backdrop-filter: blur(12px);
}
.filter-summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 22px;
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text);
  list-style: none; user-select: none; transition: background 0.15s;
}
.filter-summary:hover { background: var(--bg3); }
.filter-summary::-webkit-details-marker { display: none; }
.filter-summary::before { content: "▶"; font-size: 10px; color: var(--text-dim); transition: transform 0.2s; }
details[open] .filter-summary::before { transform: rotate(90deg); }
.filter-badge {
  background: var(--grad-brand); color: #fff; border-radius: 99px;
  font-size: 10px; font-weight: 700; padding: 1px 7px; min-width: 18px; text-align: center;
  box-shadow: 0 1px 4px rgba(37,99,235,0.3);
}
.filter-badge:empty { display: none; }
.filter-details .filter-form { padding: 0 22px 18px; box-shadow: none; border: none; border-radius: 0; backdrop-filter: none; }

/* ── Results Header ───────────────────────────────────────────────────────── */
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--text-muted); font-size: 13px; }
.results-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cmp-col { width: 32px; padding: 0 8px !important; }
.cmp-check { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

/* ── Table ────────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; overflow-y: visible; max-height: none;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); background: #fff;
}
.stocks-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.stocks-table thead th {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  padding: 11px 13px; text-align: left;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.9px;
  color: #c7d9f8; border-bottom: none;
  position: sticky; top: 0; z-index: 10; font-weight: 800;
}
.stocks-table tbody tr { border-bottom: 1px solid var(--border); transition: all 0.12s; }
.stocks-table tbody tr:nth-child(even) { background: #f7f9ff; }
.stocks-table tbody tr:last-child { border-bottom: none; }
.stocks-table tbody tr:hover { background: linear-gradient(135deg,#eff6ff,#f5f3ff) !important; box-shadow: inset 3px 0 0 #2563eb; }
.stocks-table td { padding: 10px 14px; font-size: 13px; }
.stocks-table td.no-data { text-align: center; padding: 60px; color: var(--text-muted); }
.sym-link { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: 0.1px; }
.sym-link:hover { color: var(--accent-h); text-decoration: underline; }
.company-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); font-size: 12px; }
/* ── Table cell badges ───────────────────────────────────────────────────── */
.pill-up { display: inline-block; background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.pill-dn { display: inline-block; background: #fee2e2; color: #dc2626; padding: 2px 8px; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.roce-hi { color: #16a34a; font-weight: 700; }
.roce-md { color: #d97706; font-weight: 600; }
.roce-lo { color: #ef4444; font-weight: 500; }
.badge-debtfree { display: inline-block; background: linear-gradient(135deg,#d1fae5,#a7f3d0); color: #065f46; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sector-tag { display: inline-block; background: #eff6ff; color: #1d4ed8; padding: 2px 7px; border-radius: 7px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.td-price { font-weight: 700; color: var(--text); }

/* ── Screener layout ──────────────────────────────────────────────────────── */
.screener-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 20px;
  align-items: start;
}
.screener-main { min-width: 0; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 8px; }
.page-info {
  font-size: 14px; color: var(--text-muted); font-weight: 600;
  background: var(--bg3); padding: 6px 20px; border-radius: 20px; border: 1px solid var(--border);
}
.page-btn {
  display: inline-block; padding: 8px 20px; border-radius: 9px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text); transition: all 0.18s; box-shadow: var(--shadow-sm);
}
.page-btn:hover { background: var(--bg4); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.page-disabled { opacity: 0.35; pointer-events: none; cursor: default; }

/* ── Stock Detail ─────────────────────────────────────────────────────────── */
.stock-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
  padding: 28px; background: linear-gradient(135deg, #ffffff 0%, #f8f6ff 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.stock-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad-brand);
}
.company-subtitle { font-size: 15px; font-weight: 400; color: var(--text-muted); margin-left: 10px; }
.sector-badge {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid var(--border2);
  padding: 3px 14px; border-radius: 20px; font-size: 11.5px;
  color: var(--accent); display: inline-block; margin-top: 6px; font-weight: 700; letter-spacing: 0.3px;
}
/* Inside dark hero, override sector badges to look light */
.sdp-hero .sector-badge {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.stock-price-box { text-align: right; }
.big-price { display: block; font-size: 34px; font-weight: 900; letter-spacing: -1.5px; color: var(--text); }
.change-pct { font-size: 18px; font-weight: 700; }

/* ── Metrics Grid ─────────────────────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 14px; margin-bottom: 28px; }
.metric-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 14px 16px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: all 0.2s; position: relative; overflow: hidden;
}
.metric-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad-brand); opacity: 0; transition: opacity 0.2s;
}
.metric-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.metric-card:hover::before { opacity: 1; }
.metric-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 10px; font-weight: 700; }
.metric-value { font-size: 24px; font-weight: 900; letter-spacing: -0.8px; }

/* ── Charts ───────────────────────────────────────────────────────────────── */
.charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 28px; }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s; }
.chart-card:hover { box-shadow: var(--shadow-card); }

/* ── Stock Actions ────────────────────────────────────────────────────────── */
.stock-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.watchlist-add { display: flex; gap: 8px; align-items: center; }
.watchlist-add select { background: var(--bg3); border: 1.5px solid var(--border); color: var(--text); padding: 8px 11px; border-radius: 8px; font-size: 13px; font-family: inherit; }
.fetched-info { font-size: 11.5px; color: var(--text-dim); margin-top: 10px; }

/* ── Watchlist Page ───────────────────────────────────────────────────────── */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.wl-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
  position: relative; overflow: hidden;
}
.wl-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad-brand); opacity: 0; transition: opacity 0.2s;
}
.wl-card:hover { border-color: var(--accent); box-shadow: var(--shadow-float); transform: translateY(-3px); }
.wl-card:hover::before { opacity: 1; }
.wl-name { font-size: 16px; font-weight: 800; color: var(--accent); text-decoration: none; display: block; margin-bottom: 5px; letter-spacing: -0.3px; }
.wl-name:hover { color: var(--accent-h); }
.wl-count { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.wl-desc { color: var(--text-muted); font-size: 13px; margin: 10px 0 16px; }
.wl-actions { display: flex; gap: 10px; }
.back-link { color: var(--text-muted); text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; transition: color 0.15s; font-weight: 500; }
.back-link:hover { color: var(--accent); }
.no-data { color: var(--text-muted); text-align: center; padding: 48px 0; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; background: rgba(10,14,39,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; backdrop-filter: blur(6px);
}
.modal-box {
  background: #fff; border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 32px;
  width: 420px; max-width: 95vw; box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.modal-box h2 { margin-bottom: 20px; }
.modal-input {
  width: 100%; background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text); padding: 10px 13px; border-radius: 9px; font-size: 14px;
  outline: none; display: block; margin-bottom: 13px; font-family: inherit;
  resize: vertical; transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-input:focus { border-color: var(--accent); box-shadow: var(--shadow-glow); background: #fff; }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }

/* ── Auth Pages ───────────────────────────────────────────────────────────── */
.auth-body {
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 40%, #fce7f3 100%);
  background-size: 200% 200%;
  animation: auth-gradient 8s ease infinite;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.auth-body::before { display: none; }
@keyframes auth-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.auth-wrapper { width: 100%; max-width: 440px; padding: 24px 16px; }
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  filter: drop-shadow(0 2px 12px rgba(37,99,235,0.3));
}
.auth-logo-img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 4px 16px rgba(37,99,235,0.30); }
.auth-logo-text {
  font-size: 28px; font-weight: 900; letter-spacing: -1px;
  background: var(--grad-brand); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-logo-text em { font-style: normal; }
.auth-tagline { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.auth-card {
  background: rgba(255,255,255,0.93); border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--radius-xl); padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(37,99,235,0.14), 0 4px 16px rgba(0,0,0,0.06);
  backdrop-filter: blur(20px);
}
.auth-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; color: var(--text); }
.auth-sub { color: var(--text-muted); font-size: 13.5px; margin-bottom: 26px; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 7px;
}
.auth-form label .hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-dim); font-size: 11px; }
.auth-form input {
  width: 100%; background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: 10px; font-size: 14px;
  outline: none; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-form input:focus { border-color: var(--accent); box-shadow: var(--shadow-glow); background: #fff; }
.auth-form input::placeholder { color: var(--text-dim); }
.btn-auth {
  width: 100%; background: var(--grad-brand); color: #fff; border: none;
  padding: 13px 22px; border-radius: 10px; font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit; margin-top: 6px; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4); letter-spacing: -0.2px;
  position: relative; overflow: hidden;
}
.btn-auth::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%); pointer-events: none;
}
.btn-auth:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,0.5); }
.btn-auth:active { transform: translateY(0); }
.auth-error {
  background: var(--red-bg); border: 1.5px solid var(--red-dim); color: var(--red);
  padding: 10px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 20px; font-weight: 500;
}
.auth-success {
  background: var(--green-bg); border: 1.5px solid var(--green-dim); color: var(--green);
  padding: 10px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 20px; font-weight: 500;
}
.auth-switch { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: 20px; }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.auth-footer { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 18px; }
.auth-footer a { color: var(--text-muted); text-decoration: none; }
.auth-footer a:hover { color: var(--accent); }

/* Google Sign-in button */
.btn-guest {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px 18px; border-radius: 10px; margin-bottom: 12px;
  background: var(--card-bg); border: 1.5px solid var(--border); color: var(--text);
  font-size: 14px; font-weight: 600; text-decoration: none; font-family: inherit;
  transition: all 0.18s;
}
.btn-guest:hover { background: var(--hover-bg); text-decoration: none; border-color: var(--accent); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 18px; border-radius: 10px; margin-bottom: 4px;
  background: #fff; border: 1.5px solid #dadce0; color: #3c4043;
  font-size: 14px; font-weight: 600; text-decoration: none; font-family: inherit;
  transition: all 0.18s; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-google:hover { background: #f8f8f8; box-shadow: 0 2px 8px rgba(0,0,0,0.12); text-decoration: none; }
html.dark .btn-google { background: #2d2d2d; border-color: #444; color: #e8eaed; }
html.dark .btn-google:hover { background: #3c3c3c; }

/* Auth divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { white-space: nowrap; }

/* ── Landing Split Layout ────────────────────────────────────────────────── */
.landing-page { align-items: stretch; padding: 0; }
.landing-split {
  display: flex; min-height: 100vh; width: 100%;
}
.landing-hero {
  flex: 1.1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #1e3a5f 100%);
  padding: 48px 40px; position: relative; overflow: hidden;
}
.landing-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.landing-hero::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.landing-hero-inner { max-width: 480px; position: relative; z-index: 1; }
.landing-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 16px;
}
.landing-logo-img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 16px rgba(37,99,235,0.40), 0 0 0 1px rgba(255,255,255,0.08); }
.landing-logo-text {
  font-size: 28px; font-weight: 900; letter-spacing: -1.2px;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.landing-logo-text em { font-style: normal; }
.landing-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99,102,241,0.2); border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc; font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 22px;
}
.landing-headline {
  font-size: 32px; font-weight: 900; color: #f1f5f9; line-height: 1.22;
  letter-spacing: -1px; margin-bottom: 16px;
}
.landing-headline span { background: linear-gradient(135deg, #34d399, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.landing-desc {
  color: #94a3b8; font-size: 14.5px; line-height: 1.65; margin-bottom: 32px;
}
.landing-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.lf-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 14px 16px;
}
.lf-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.lf-item strong { display: block; font-size: 13.5px; font-weight: 700; color: #e2e8f0; margin-bottom: 3px; }
.lf-item span { font-size: 12.5px; color: #64748b; line-height: 1.5; }
.landing-stats {
  display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; overflow: hidden;
}
.ls-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.ls-stat:last-child { border-right: none; }
.ls-stat strong { font-size: 20px; font-weight: 900; color: #60a5fa; letter-spacing: -0.5px; }
.ls-stat span { font-size: 11px; color: #64748b; font-weight: 600; margin-top: 2px; letter-spacing: 0.3px; }

.landing-auth {
  width: 420px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 40%, #fce7f3 100%);
  background-size: 200% 200%; animation: auth-gradient 8s ease infinite;
}
.landing-auth .auth-card { width: 100%; max-width: 380px; }

/* Responsive: stack on mobile */
@media (max-width: 820px) {
  .landing-split { flex-direction: column; }
  .landing-hero { padding: 36px 24px; }
  .landing-headline { font-size: 24px; }
  .landing-auth { width: 100%; padding: 24px 16px; }
  .landing-features { gap: 10px; }
  .lf-item { padding: 10px 12px; }
  .landing-stats { margin-bottom: 4px; }
}
@media (max-width: 480px) {
  .landing-hero { padding: 28px 16px; }
  .landing-headline { font-size: 22px; }
}
html.dark .landing-auth {
  background: linear-gradient(135deg, #0d1117 0%, #0f0d24 50%, #1a0d2e 100%);
  background-size: 200% 200%;
}

/* ── Site Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 72px;
  background: #0c1220;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: #94a3b8;
  padding: 20px 28px;
  text-align: center;
}
.site-footer > span { display: block; max-width: 960px; margin: 0 auto; }
html:not(.dark) .site-footer { background: #0c1220; color: #94a3b8; } /* Always dark */

/* ── Page footer (about/content pages) ── */
.page-footer {
  margin-top: 40px; padding: 20px 28px;
  font-size: 12.5px; color: var(--text-dim);
  border-top: 1px solid var(--border);
  text-align: center; line-height: 1.7;
}

.sf-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px 24px; }

/* ── Stats strip ── */
.sf-stats {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 40px;
}
.sf-stat {
  flex: 1; padding: 22px 16px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sf-stat:last-child { border-right: none; }
.sf-stat strong { display: block; font-size: 20px; font-weight: 900; color: #f1f5f9; letter-spacing: -0.5px; margin-bottom: 4px; }
.sf-stat span { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Main grid ── */
.sf-top { display: flex; gap: 48px; margin-bottom: 32px; }

/* brand col */
.sf-brand { flex: 1.3; min-width: 0; }
.sf-brand-name {
  font-size: 22px; font-weight: 900; letter-spacing: -0.8px;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 10px;
}
.sf-brand-name em { font-style: normal; }
.sf-brand-desc { color: #64748b; line-height: 1.7; margin-bottom: 14px; max-width: 260px; font-size: 12.5px; }
.sf-email {
  display: inline-flex; align-items: center; gap: 6px;
  color: #60a5fa; text-decoration: none; font-weight: 600; font-size: 12.5px;
  margin-bottom: 16px;
}
.sf-email:hover { text-decoration: underline; }

/* social icons */
.sf-social { display: flex; gap: 8px; margin-top: 4px; }
.sf-soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 700;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.sf-soc:hover { background: rgba(96,165,250,0.18); color: #60a5fa; border-color: rgba(96,165,250,0.35); }

/* link columns */
.sf-col { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 120px; }
.sf-col-title {
  font-size: 10.5px; font-weight: 800; color: #475569;
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 4px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sf-col a { color: #64748b; text-decoration: none; font-size: 12.5px; transition: color 0.15s; }
.sf-col a:hover { color: #e2e8f0; }

/* thin divider after stats */
.sf-divider-thin { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 36px; display: none; }

/* main divider */
.sf-divider { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 18px; }

/* disclaimer */
.sf-disclaimer {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.18);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 20px;
  color: #64748b; font-size: 11.5px; line-height: 1.7;
}
.sf-disclaimer strong { color: #94a3b8; }
.sf-disc-badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 800;
  background: rgba(245,158,11,0.15); color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.28); border-radius: 7px;
  padding: 3px 9px; white-space: nowrap; margin-top: 1px; letter-spacing: 0.3px;
}

/* bottom bar */
.sf-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; padding-top: 4px;
}
.sf-copy { font-size: 12px; color: #475569; }
.sf-bottom-links { display: flex; gap: 18px; }
.sf-bottom-links a { color: #475569; text-decoration: none; font-size: 12px; transition: color 0.15s; }
.sf-bottom-links a:hover { color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .sf-stats { flex-wrap: wrap; }
  .sf-stat { min-width: 33%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .sf-top { flex-wrap: wrap; gap: 32px; }
}
@media (max-width: 640px) {
  .sf-inner { padding: 0 18px 20px; }
  .sf-stats { flex-wrap: wrap; }
  .sf-stat { min-width: 50%; }
  .sf-brand-desc { max-width: 100%; }
  .sf-bottom { flex-direction: column; align-items: flex-start; }
  .sf-top { gap: 24px; }
  .sf-col { min-width: calc(50% - 12px); }
  .site-footer { padding: 16px 18px; }
  .page-footer { padding: 16px 18px; }
}

/* ── News Sidebar ─────────────────────────────────────────────────────────── */
.news-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--ticker-height) + 12px);
  min-width: 0;
}
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.news-header {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8faff 0%, #f0f4ff 100%);
}
.news-title { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: -0.2px; }
.news-live { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--green); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.news-list { max-height: none; overflow: visible; }
.news-item {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 18px;
  border-bottom: 1px solid var(--border); text-decoration: none; transition: background 0.15s;
}
.news-item:hover { background: var(--bg3); }
.news-item:last-child { border-bottom: none; }
.news-item-title { font-size: 12.5px; font-weight: 500; color: var(--text); line-height: 1.4; }
.news-item-meta { font-size: 10.5px; color: var(--text-dim); }
.news-loading, .news-empty { padding: 22px 18px; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.news-footer { padding: 10px 18px; border-top: 1px solid var(--border); background: var(--bg3); text-align: right; }
.news-footer a { font-size: 11.5px; color: var(--accent); font-weight: 700; text-decoration: none; }
.news-footer a:hover { text-decoration: underline; }

/* ── Contact Page ─────────────────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; max-width: 1100px; margin: 0 auto; }

/* ── About Page ───────────────────────────────────────────────────────────── */
.about-hero { text-align: center; padding: 48px 24px 32px; }
.about-hero-tag {
  display: inline-block; background: linear-gradient(135deg,#eff6ff,#f5f3ff);
  border: 1px solid var(--border2); color: var(--accent); font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.about-hero-title { font-size: 36px; font-weight: 900; letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.about-hero-desc { font-size: 16px; color: var(--text-muted); line-height: 1.8; max-width: 680px; margin: 0 auto 24px; }
.about-disclaimer-bar {
  background: #fefce8; border: 1px solid #fde047; border-radius: 10px;
  padding: 12px 20px; font-size: 13px; color: #713f12; max-width: 680px; margin: 0 auto;
}
.about-mission {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 28px; margin-bottom: 36px;
}
.about-mission-icon { font-size: 36px; flex-shrink: 0; margin-top: 2px; }
.about-mission h2 { font-size: 20px; margin-bottom: 8px; }
.about-mission p { color: var(--text-muted); line-height: 1.75; }
.about-section-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.about-tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 36px; }
.about-tier-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.tier-beginner { border-top: 3px solid #10b981; }
.tier-trader   { border-top: 3px solid #f59e0b; }
.tier-investor { border-top: 3px solid #ef4444; }
.tier-badge {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 12px;
  border-radius: 20px; letter-spacing: 0.5px; width: fit-content;
}
.about-tier-card h3 { font-size: 16px; font-weight: 800; }
.about-tier-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.tier-list { list-style: none; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tier-list li { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.about-tier-cta {
  display: block; text-align: center; padding: 10px 16px; border-radius: 9px;
  color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
  margin-top: 8px; transition: opacity 0.15s;
}
.about-tier-cta:hover { opacity: 0.88; }
.about-premium-section {
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
  background: linear-gradient(135deg,#ede9fe,#f5f3ff); border: 1px solid #c4b5fd;
  border-radius: 16px; padding: 32px; margin-bottom: 36px;
}
.about-premium-section h2 { font-size: 22px; margin-bottom: 10px; }
.about-premium-section p  { font-size: 14px; color: #3b0764; line-height: 1.7; }
.about-premium-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ap-stat { text-align: center; background: rgba(255,255,255,0.6); border-radius: 12px; padding: 14px 20px; }
.ap-val   { font-size: 22px; font-weight: 900; color: #7c3aed; }
.ap-label { font-size: 11px; color: #6b21a8; font-weight: 600; margin-top: 2px; }
.about-nolist-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; margin-bottom: 36px;
}
.about-nolist-wrap h2 { font-size: 20px; margin-bottom: 16px; }
.about-nolist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 10px; margin-bottom: 16px; }
.about-no-item {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 9px;
  padding: 10px 14px; font-size: 13px; color: #7f1d1d; font-weight: 500;
}
.about-nolist-footer { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.about-contact-cta { text-align: center; padding: 32px 0 8px; }
.about-contact-cta p { color: var(--text-muted); margin-bottom: 14px; font-size: 15px; }
@media (max-width: 900px) {
  .about-tiers { grid-template-columns: 1fr; }
  .about-premium-section { grid-template-columns: 1fr; }
  .about-hero-title { font-size: 28px; }
}

/* ── Indicator Scanner ────────────────────────────────────────────────────── */
.ind-scanner-wrap {
  margin-top: 36px; background: var(--bg-card); border: 1.5px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
}
.ind-scanner-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ind-scanner-title { display: flex; gap: 14px; align-items: flex-start; }
.ind-scanner-icon { font-size: 32px; flex-shrink: 0; }
.ind-scanner-title h2 { font-size: 20px; margin: 0 0 4px; }
.ind-scanner-title p  { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.ind-scanner-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ind-ctrl-group { display: flex; flex-direction: column; gap: 5px; }
.ind-ctrl-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.ind-select {
  padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 9px;
  background: var(--bg2); color: var(--text); font-size: 13px; font-family: inherit; outline: none;
  cursor: pointer; transition: border-color 0.15s;
}
.ind-select:focus { border-color: var(--accent); }
.ind-desc-bar {
  background: var(--bg2); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  padding: 10px 14px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6;
}
.ind-scan-btn {
  display: flex; align-items: center; gap: 8px; padding: 13px 32px;
  background: var(--grad-brand); color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity 0.2s;
}
.ind-scan-btn:hover { opacity: .88; }
.ind-scan-btn:disabled { opacity: .5; cursor: not-allowed; }
.ind-scan-icon { font-size: 18px; }
.ind-loading {
  display: none; align-items: center; gap: 14px; padding: 28px 0; color: var(--text-muted);
  font-size: 14px;
}
.ind-spinner {
  width: 22px; height: 22px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ind-error { padding: 14px 16px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #7f1d1d; font-size: 14px; margin-top: 16px; }
.ind-results-meta { font-size: 12px; color: var(--text-dim); margin: 20px 0 10px; }
.ind-results-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.ind-results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ind-results-table th { background: var(--bg4); color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 10px 12px; text-align: left; white-space: nowrap; }
.ind-results-table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.ind-results-table tr:hover td { background: var(--bg3); }
.ind-sym-link { font-weight: 800; color: var(--accent); text-decoration: none; font-size: 13px; }
.ind-sym-link:hover { text-decoration: underline; }
.ind-sig-badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 800; }
.ind-sig-buy     { background: #dcfce7; color: #166534; }
.ind-sig-sell    { background: #fee2e2; color: #991b1b; }
.ind-sig-neutral { background: var(--bg4); color: var(--text-dim); }
.ind-disclaimer  { font-size: 11.5px; color: var(--text-dim); margin-top: 12px; padding: 10px 14px; background: #fefce8; border-radius: 8px; }
@media (max-width: 700px) {
  .ind-scanner-header { flex-direction: column; }
  .ind-scanner-controls { grid-template-columns: 1fr 1fr; }
}
.contact-tag {
  display: inline-block; background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid var(--border2); color: var(--accent); font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
.contact-left h1 { font-size: 28px; margin-bottom: 14px; letter-spacing: -0.7px; }
.contact-desc { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.contact-info-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.cic-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.cic-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cic-desc { font-size: 12.5px; color: var(--text-muted); }
.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); }
.contact-form-card h2 { font-size: 19px; margin-bottom: 22px; letter-spacing: -0.3px; }
.contact-form-card textarea:focus { border-color: var(--accent); box-shadow: var(--shadow-glow); background: #fff; outline: none; }

/* ── Admin ────────────────────────────────────────────────────────────────── */
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 22px; margin-bottom: 4px; }
.page-sub { color: var(--text-muted); font-size: 13.5px; }
.admin-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 20px 16px;
  box-shadow: var(--shadow-sm); text-align: center;
  position: relative; overflow: hidden; transition: all 0.2s;
}
.admin-stat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.admin-stat-num { font-size: 30px; font-weight: 900; color: var(--accent); letter-spacing: -1.2px; line-height: 1.1; }
.admin-stat-num.green { color: var(--green); }
.admin-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.admin-user-cell { display: flex; align-items: center; gap: 9px; }
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.admin-num { color: var(--text-dim); font-size: 12px; width: 30px; }
.role-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.role-admin { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.role-user  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.btn-admin-action {
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: 7px; padding: 4px 12px; font-size: 12px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: all 0.15s;
}
.btn-admin-action:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-denied { text-align: center; padding: 60px 20px; }
.admin-denied h2 { font-size: 22px; margin-bottom: 10px; }
.admin-denied p { color: var(--text-muted); margin-bottom: 24px; }
.text-dim { color: var(--text-dim); font-size: 12px; }
@media (max-width: 768px) { .admin-stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ── Admin Data Page ──────────────────────────────────────────────────────── */
.admin-data-grid { display: flex; flex-direction: column; gap: 14px; }
.admin-data-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.admin-data-card:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }
.admin-data-icon {
  font-size: 26px; flex-shrink: 0; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-radius: 14px; border: 1px solid var(--border2);
}
.admin-data-info { flex: 1; }
.admin-data-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; letter-spacing: -0.2px; }
.admin-data-desc  { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.admin-data-stat  { font-size: 12px; color: var(--text-dim); }
.admin-data-progress {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 14px 18px; background: var(--bg3); border-radius: 10px;
  font-size: 14px; color: var(--text-muted); border: 1px solid var(--border);
}
.progress-spinner {
  width: 18px; height: 18px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alerts Page ──────────────────────────────────────────────────────────── */
.alerts-grid { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.alert-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
  position: relative; overflow: hidden;
}
.alert-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad-brand); opacity: 0; transition: opacity 0.2s;
}
.alert-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.alert-card:hover::before { opacity: 1; }
.alert-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.alert-name { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.alert-date { font-size: 11.5px; color: var(--text-dim); }
.alert-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; min-height: 24px; }
.filter-pill {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid var(--border2);
  border-radius: 6px; padding: 2px 10px; font-size: 11.5px; color: var(--accent); font-weight: 700;
}
.alert-actions { display: flex; align-items: center; gap: 12px; }
.alert-sent { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.empty-state {
  text-align: center; padding: 64px 20px;
  background: linear-gradient(135deg, #fff 0%, #f8f6ff 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.empty-icon { font-size: 52px; margin-bottom: 18px; }
.empty-state h2 { font-size: 20px; margin-bottom: 10px; font-weight: 800; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; line-height: 1.7; }

/* ── Compare Page ─────────────────────────────────────────────────────────── */
.compare-table-wrap { max-height: none; overflow-x: auto; }
.cmp-pick-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 28px 24px;
  max-width: 560px; box-shadow: var(--shadow-sm);
}
.cmp-pick-inputs { display: flex; flex-direction: column; gap: 10px; }
.cmp-sym-input { text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.cmp-ac-wrap { position: relative; }
.cmp-ac-drop {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  z-index: 200; max-height: 220px; overflow-y: auto;
}
.cmp-ac-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--border2);
}
.cmp-ac-item:last-child { border-bottom: none; }
.cmp-ac-item:hover { background: var(--bg3); }
.cmp-ac-sym { font-weight: 700; font-size: 13px; color: var(--accent); min-width: 80px; }
.cmp-ac-name { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-table .cmp-label-col { min-width: 140px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); background: var(--bg3); position: sticky; left: 0; z-index: 5; }
.compare-table .cmp-stock-col { min-width: 160px; text-align: center; padding: 14px 12px; }
.compare-table .cmp-co-name { font-size: 11px; color: var(--text-dim); margin-top: 3px; font-weight: 400; }
.compare-table .cmp-label { padding: 10px 15px; background: var(--bg3); }
.compare-table .cmp-val { text-align: center; padding: 10px 15px; font-size: 13px; font-weight: 500; }
.compare-table tbody tr:hover .cmp-label { background: var(--bg4); }
.compare-table tbody tr:hover .cmp-val { background: var(--bg4); }

/* ── Profile Page ─────────────────────────────────────────────────────────── */
.profile-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.profile-card:hover { box-shadow: var(--shadow-card); }
.profile-card h2 { font-size: 16px; font-weight: 800; color: var(--text); margin: 0 0 20px; letter-spacing: -0.3px; }
.profile-info { padding: 6px 26px; }
.profile-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-row span:first-child { color: var(--text-muted); font-weight: 500; }

/* ── Nav Search ───────────────────────────────────────────────────────────── */
.nav-search { position: relative; flex: 0 0 auto; width: 160px; }
.nav-search-input {
  width: 100%; padding: 7px 14px 7px 36px; border: 1.5px solid rgba(255,255,255,0.09); border-radius: 20px;
  background: rgba(255,255,255,0.06); color: #e2e8f0; font-size: 13px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; font-family: inherit;
}
.nav-search::before {
  content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.nav-search-input::placeholder { color: #475569; }
.nav-search-input:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); background: rgba(255,255,255,0.08); }
.nav-search-results {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  width: 300px; background: rgba(8,14,28,0.97); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 14px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); z-index: 500; overflow: hidden;
  animation: dropdown-in 0.15s ease; backdrop-filter: blur(20px);
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-result-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  text-decoration: none; color: #e2e8f0; transition: background 0.12s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(99,102,241,0.1); }
.sr-sym { font-weight: 800; font-size: 13px; color: #818cf8; min-width: 72px; letter-spacing: -0.1px; }
.sr-co  { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Dark Mode Toggle ─────────────────────────────────────────────────────── */
.btn-dark-toggle {
  background: rgba(0,0,0,0.05); border: 1.5px solid rgba(0,0,0,0.1); border-radius: 9px;
  padding: 5px 9px; font-size: 15px; cursor: pointer; color: #64748b;
  margin-left: 0; transition: all 0.15s; line-height: 1; flex-shrink: 0;
}
.btn-dark-toggle:hover { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.1); color: #4f46e5; }

/* ── Nav Right cluster ───────────────────────────────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }

/* ── Medium screen: hide overflow nav items to keep nav-right visible ──── */
@media (max-width: 1160px) {
  .nav-desktop-links .nav-hot-link { display: none !important; }
}
@media (max-width: 980px) {
  .nav-desktop-links > a[href="/paper-trade"] { display: none !important; }
  .nav-right .nav-search { display: none; }
}

/* ── Signals LIVE dot ────────────────────────────────────────────────────── */
.nav-signals-link { display: inline-flex !important; align-items: center; gap: 5px; }
.nav-live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
  animation: navLivePulse 1.6s ease-in-out infinite;
}
@keyframes navLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ── Admin dropdown right-aligned ───────────────────────────────────────── */
.nav-more-drop-right { left: auto !important; right: 0; }

/* ── Drawer header: hidden on desktop, flex inside drawer ────────────────── */
.nav-mob-drawer-head { display: none; }

/* ── Mobile nav footer (profile + signout inside hamburger drawer) ────────── */
.nav-mobile-footer {
  display: none; flex-direction: column; gap: 2px;
  margin-top: 10px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-mob-identity {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(99,102,241,0.08); border-radius: 10px; margin-bottom: 6px;
  border: 1px solid rgba(99,102,241,0.15);
}
.nav-mob-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#34d399); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0; text-decoration: none;
}
.nav-mob-identity-info { display: flex; flex-direction: column; gap: 3px; }
.nav-mob-name { font-size: 14px; font-weight: 700; color: #e2e8f0; }
.nav-mob-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; width: fit-content; }
.nav-mob-premium { background: rgba(245,158,11,0.15); color: #fbbf24; }
.nav-mob-admin-badge { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.nav-mob-link {
  display: block; padding: 10px 14px; border-radius: 10px; color: #94a3b8;
  text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.15s;
}
.nav-mob-link:hover { background: rgba(99,102,241,0.1); color: #c7d2fe; }
.nav-mob-logout {
  display: block; padding: 10px 14px; border-radius: 10px; color: #f87171;
  text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.15s;
  border: 1.5px solid rgba(248,113,113,0.15); margin-top: 4px;
}
.nav-mob-logout:hover { background: rgba(239,68,68,0.08); }
.nav-mob-signup {
  display: block; padding: 12px 14px; border-radius: 10px; text-align: center;
  background: linear-gradient(135deg,#6366f1,#34d399); color: #fff !important; text-decoration: none;
  font-size: 14px; font-weight: 700; margin-top: 6px;
  box-shadow: 0 2px 14px rgba(99,102,241,0.4);
}

/* ── Dark Mode ────────────────────────────────────────────────────────────── */
html.dark {
  --bg:          #0d1117;
  --bg-alt:      #161b22;
  --bg-card:     #161b22;
  --bg3:         #1c2128;
  --bg4:         #21262d;
  --border:      #30363d;
  --border2:     #3d444d;
  --text:        #e6edf3;
  --text-muted:  #8d96a0;
  --text-dim:    #656d76;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.5);
  --shadow-card:  0 4px 20px rgba(0,0,0,0.55);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.65);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.6);
  --grad-page:    linear-gradient(160deg, #0d1117 0%, #0f0f1a 50%, #0d111f 100%);

  /* Aliases */
  --bg2:      #1c2128;
  --card-bg:  #161b22;
  --hover-bg: #21262d;
}
html.dark body { background: var(--grad-page); background-attachment: fixed; }
html.dark body::before { background-image: radial-gradient(circle, rgba(96,165,250,0.04) 1px, transparent 1px); }

html.dark .topnav { background: rgba(8,12,28,0.65); border-color: rgba(255,255,255,0.09); box-shadow: 0 4px 32px rgba(0,0,0,0.4); }
html.dark .brand { filter: drop-shadow(0 0 12px rgba(99,102,241,0.4)); }
html.dark .nav-desktop-links a { color: #94a3b8; }
html.dark .nav-desktop-links a:hover { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.25); color: #c7d2fe; }
html.dark .nav-desktop-links a.active { background: linear-gradient(135deg,#6366f1,#34d399); color: #fff; box-shadow: 0 2px 14px rgba(99,102,241,0.45); }
html.dark .nav-links a { color: #94a3b8; }
html.dark .nav-links a:hover { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.25); color: #c7d2fe; }
html.dark .nav-links a.active { background: linear-gradient(135deg,#6366f1,#34d399); color: #fff; box-shadow: 0 2px 14px rgba(99,102,241,0.45); }
html.dark .nav-more-btn { color: #94a3b8; }
html.dark .nav-more-btn:hover { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.25); color: #c7d2fe; }
html.dark .btn-nav-login { color: #94a3b8; border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
html.dark .btn-nav-login:hover { color: #c7d2fe; border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.1); }
html.dark .btn-dark-toggle { color: #94a3b8; background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
html.dark .btn-dark-toggle:hover { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.1); color: #c7d2fe; }
html.dark .hamburger span { background: #94a3b8; }

html.dark .table-wrap { background: var(--bg-card); }
html.dark .stocks-table thead th { background: linear-gradient(135deg, #0d1b2e 0%, #1e3a5f 100%); border-color: var(--border); color: #93c5fd; }
html.dark .stocks-table tbody tr { border-color: var(--border); }
html.dark .stocks-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
html.dark .stocks-table tbody tr:hover { background: rgba(96,165,250,0.08) !important; box-shadow: inset 3px 0 0 #3b82f6; }
html.dark .pill-up { background: rgba(22,163,74,0.18); color: #4ade80; }
html.dark .pill-dn { background: rgba(220,38,38,0.18); color: #f87171; }
html.dark .badge-debtfree { background: rgba(16,185,129,0.15); color: #34d399; }
html.dark .sector-tag { background: rgba(37,99,235,0.15); color: #93c5fd; }
html.dark .sh-stat:nth-child(1) { background: rgba(37,99,235,0.12); border-color: #1e3a5f; }
html.dark .sh-stat:nth-child(1) strong { color: #93c5fd; }
html.dark .sh-stat:nth-child(2) { background: rgba(124,58,237,0.12); border-color: #4c1d95; }
html.dark .sh-stat:nth-child(2) strong { color: #c4b5fd; }
html.dark .sh-stat:nth-child(3) { background: rgba(22,163,74,0.12); border-color: #14532d; }
html.dark .sh-stat:nth-child(3) strong { color: #4ade80; }
html.dark .sh-stat:nth-child(4) { background: rgba(194,65,12,0.12); border-color: #7c2d12; }
html.dark .sh-stat:nth-child(4) strong { color: #fb923c; }
html.dark .sh-stat span { color: var(--text-dim); }

html.dark .filter-form,
html.dark .filter-details,
html.dark .strategies-section { background: rgba(22,27,34,0.96); border-color: var(--border); backdrop-filter: none; }

html.dark .strategy-card { background: var(--bg3); border-color: var(--border); }
html.dark .strategy-card:hover { background: var(--bg4); border-color: var(--accent); box-shadow: 0 2px 8px rgba(37,99,235,0.15); }
html.dark .strategy-card.active { background: var(--accent); border-color: var(--accent); }
html.dark .strategy-card.active .strategy-label { color: #fff; }

html.dark .news-card { background: var(--bg-card); border-color: var(--border); }
html.dark .news-header, html.dark .news-footer { background: linear-gradient(180deg, #1c2128 0%, #161b22 100%); border-color: var(--border); }

html.dark .wl-card,
html.dark .alert-card,
html.dark .modal-box,
html.dark .contact-form-card,
html.dark .contact-info-card,
html.dark .admin-stat-card,
html.dark .admin-data-card,
html.dark .metric-card,
html.dark .chart-card,
html.dark .stock-header,
html.dark .empty-state,
html.dark .profile-card { background: var(--bg-card); border-color: var(--border); }

html.dark .stock-header { background: linear-gradient(135deg, #161b22 0%, #1a1628 100%); }
html.dark .empty-state { background: linear-gradient(135deg, #161b22 0%, #1a1628 100%); }

html.dark .filter-group input,
html.dark .filter-group select,
html.dark .modal-input,
html.dark .auth-form input,
html.dark .watchlist-add select,
html.dark .nav-search-input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.09); color: #e2e8f0; }
html.dark .filter-group select option { background: var(--bg3); color: var(--text); }

html.dark .btn-secondary { background: var(--bg3); border-color: var(--border); color: var(--text-muted); }
html.dark .btn-ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
html.dark .btn-admin-action { background: var(--bg3); border-color: var(--border); }

html.dark .auth-body { background: linear-gradient(135deg, #0d1117 0%, #0f0d24 50%, #1a0d2e 100%); background-size: 200% 200%; }
html.dark .auth-card { background: rgba(22,27,34,0.95); border-color: var(--border); }

html.dark .compare-table .cmp-label-col,
html.dark .compare-table .cmp-label { background: var(--bg3); }
html.dark .compare-table tbody tr:hover .cmp-label,
html.dark .compare-table tbody tr:hover .cmp-val { background: var(--bg4); }

html.dark .nav-search-results { background: rgba(8,14,28,0.97); border-color: rgba(99,102,241,0.2); }
html.dark .search-result-item:hover { background: rgba(99,102,241,0.1); }
html.dark .filter-summary:hover { background: var(--bg3); }
html.dark .page-info { background: var(--bg3); border-color: var(--border); }
html.dark .page-btn { background: var(--bg-card); border-color: var(--border); color: var(--text-muted); }
html.dark .role-admin { background: #44300a; color: #fde68a; }
html.dark .role-user  { background: #1e2e4a; color: #93c5fd; }
html.dark .admin-data-icon { background: rgba(37,99,235,0.1); border-color: var(--border); }
html.dark .contact-tag { background: rgba(37,99,235,0.1); border-color: var(--border); }

/* dark mode: nav mobile footer */
html.dark .nav-mob-identity { background: rgba(99,102,241,0.08); }
html.dark .nav-mob-name { color: #e2e8f0; }
html.dark .nav-mob-premium { background: rgba(245,158,11,0.15); color: #fbbf24; }
html.dark .nav-mob-admin-badge { background: rgba(99,102,241,0.15); color: #a5b4fc; }
html.dark .nav-mob-link { color: #94a3b8; }
html.dark .nav-mob-link:hover { background: rgba(99,102,241,0.1); color: #c7d2fe; }
html.dark .nav-mob-logout { color: #f87171; border-color: rgba(248,113,113,0.15); }
html.dark .nav-mob-logout:hover { background: rgba(239,68,68,0.08); }
html.dark .nav-search-input:focus { background: rgba(255,255,255,0.09) !important; border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

/* ── Hamburger Menu ───────────────────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: 4px; flex-shrink: 0;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #475569; border-radius: 2px; transition: all 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .topnav { padding: 0 14px; align-items: center; height: var(--nav-height); flex-wrap: nowrap; }
  .nav-desktop-links { display: none; }
  /* ── Left-slide drawer ── */
  .nav-links {
    position: fixed; top: 0; left: 0; height: 100dvh; width: 280px;
    display: flex; flex-direction: column; gap: 0;
    background: rgba(6,10,22,0.98); z-index: 10002;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto; overflow-x: hidden;
    border-right: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links.open { transform: translateX(0); box-shadow: 6px 0 40px rgba(0,0,0,0.5); }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10001; cursor: pointer; }
  .nav-overlay.open { display: block; }
  .nav-mob-drawer-head {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 16px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0; position: sticky; top: 0; background: rgba(6,10,22,0.98); z-index: 1;
  }
  .nav-mob-drawer-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
  .nav-mob-close {
    background: none; border: none; cursor: pointer; color: #94a3b8;
    font-size: 20px; line-height: 1; width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
  }
  .nav-mob-close:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
  .nav-links > a { padding: 12px 16px; font-size: 14.5px; border-radius: 10px; margin: 0 8px; }
  .nav-links .nav-hot-link { display: flex !important; } /* always show My Trade in mobile drawer */
  .nav-links .nav-more { width: calc(100% - 16px); margin: 0 8px; }
  .nav-desktop-links .nav-more { display: none; } /* hide Explore from desktop if it's also in drawer */
  .nav-links .nav-more-btn { width: 100%; justify-content: flex-start; padding: 12px 14px; font-size: 14.5px; border-radius: 10px; }
  .nav-links .nav-more-drop { position: static !important; box-shadow: none !important; border: 1px solid rgba(99,102,241,0.15); background: rgba(99,102,241,0.06); margin: 4px 0; border-radius: 10px; padding: 4px; }
  body.nav-open { overflow: hidden; }
  .db-stats { display: none; }
  .nav-right { gap: 4px; }
  .nav-right .nav-search { display: none; }
  .nav-right .nav-more { display: none; }
  .nav-right .nav-user { display: flex; }
  .nav-user .nav-name { display: none; }
  .nav-user .btn-nav-logout { display: none; }  .nav-right .nav-auth { display: none; }
  .nav-mobile-footer { display: flex; margin-top: auto; }
  .container { padding: 16px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 28px; }
  .contact-left h1 { font-size: 22px; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .stock-header { flex-direction: column; }
  .stock-price-box { text-align: left; }
  .auth-card { padding: 28px 20px; }
  .nav-name { display: none; }
  .screener-layout { grid-template-columns: 1fr; }
  .news-sidebar { width: 100%; position: static; }
  .news-list { max-height: none; overflow: visible; }
  .strategies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-section-header, .strategies-header { flex-wrap: wrap; gap: 8px; }
  .container > * { min-width: 0; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .brand { font-size: 18px; margin-right: 10px; }
  .strategies-grid { grid-template-columns: 1fr; }
  .today-picks-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .topnav { padding: 0 12px; }
}

/* ── Mobile stock cards ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .stocks-table-wrap { display: none; }
  .stock-cards { display: block; }
}
@media (min-width: 641px) {
  .stock-cards { display: none; }
}

/* ── FAQ Chatbot Widget ───────────────────────────────────────────────────── */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 8999; }
.chat-bubble {
  display: flex; align-items: center; gap: 8px;
  background: var(--grad-brand); color: #fff;
  border: none; border-radius: 99px; padding: 12px 20px;
  cursor: pointer; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.55); }
.chat-bubble-icon { font-size: 18px; line-height: 1; }
.chat-window {
  position: absolute; bottom: 68px; right: 0;
  width: 330px; background: #fff; border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  animation: chat-pop 0.22s ease-out;
}
@keyframes chat-pop {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--grad-brand); color: #fff;
  font-size: 13.5px; font-weight: 700;
}
.chat-header-left { display: flex; align-items: center; gap: 8px; }
.chat-header-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.chat-close {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 18px; cursor: pointer; padding: 0 2px; line-height: 1;
  transition: color 0.15s;
}
.chat-close:hover { color: #fff; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 14px 14px 10px; max-height: 320px;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.chat-msg {
  padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55;
  max-width: 90%; word-break: break-word;
}
.chat-msg.bot {
  background: #f0f4ff; color: var(--text); border-radius: 4px 12px 12px 12px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--grad-brand); color: #fff; border-radius: 12px 4px 12px 12px;
  align-self: flex-end;
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chat-chip {
  display: inline-block; padding: 4px 10px; border-radius: 99px;
  background: #eff6ff; color: #2563eb; font-size: 11.5px; font-weight: 600;
  cursor: pointer; border: 1px solid rgba(37,99,235,0.18);
  transition: background 0.15s;
}
.chat-chip:hover { background: #dbeafe; }
.chat-input-row {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; padding: 8px 12px; border-radius: 99px; border: 1.5px solid var(--border);
  font-size: 13px; outline: none; transition: border-color 0.15s;
  background: var(--bg2); color: var(--text);
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  padding: 8px 14px; background: var(--grad-brand); color: #fff;
  border: none; border-radius: 99px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s;
}
.chat-send:hover { opacity: 0.88; }
.chat-confirm {
  margin-top: 9px;
  border: 1px solid rgba(220,38,38,.28);
  background: rgba(220,38,38,.08);
  color: #b91c1c;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}
.chat-confirm:disabled {
  opacity: .65;
  cursor: wait;
}
.ops-card {
  border: 1px solid var(--zs-line, #dbe3ef);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: var(--zs-surface, #fff);
  padding: 11px 12px;
}
.ops-title {
  font-size: .82rem;
  font-weight: 850;
  color: var(--zs-ink, #0f172a);
  margin-bottom: 5px;
}
.ops-body {
  font-size: .78rem;
  color: var(--zs-muted, #64748b);
  line-height: 1.55;
}
.ops-success { border-left-color: #059669; }
.ops-warn { border-left-color: #d97706; }
.ops-danger { border-left-color: #dc2626; }
html.dark .chat-window { background: var(--bg-card); }
html.dark .chat-msg.bot { background: var(--bg3); color: var(--text); }
html.dark .chat-chip { background: var(--bg3); color: var(--accent); border-color: var(--border); }
html.dark .chat-input { background: var(--bg3); }
@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 12px; }
  .chat-window { width: calc(100vw - 24px); right: 0; bottom: 62px; }
}

/* ── Login Carousel ───────────────────────────────────────────────────────── */
.lc-carousel { position: relative; min-height: 280px; overflow: hidden; margin: 20px 0 0; }
.lc-slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; pointer-events: none;
  animation: lc-show 18s ease-in-out infinite;
}
.lc-slide:nth-child(1) { animation-delay: 0s; }
.lc-slide:nth-child(2) { animation-delay: 6s; }
.lc-slide:nth-child(3) { animation-delay: 12s; }
@keyframes lc-show {
  0%   { opacity: 0; transform: translateY(10px); pointer-events: none; }
  4%   { opacity: 1; transform: translateY(0);    pointer-events: auto; }
  29%  { opacity: 1; transform: translateY(0);    pointer-events: auto; }
  33%  { opacity: 0; transform: translateY(-10px); pointer-events: none; }
  100% { opacity: 0; }
}
.lc-dots { display: flex; gap: 6px; justify-content: flex-start; margin-top: 14px; }
.lc-dot {
  height: 6px; border-radius: 99px; background: rgba(255,255,255,0.25);
  animation: lc-dot-active 18s ease-in-out infinite;
}
.lc-dot:nth-child(1) { animation-delay: 0s; }
.lc-dot:nth-child(2) { animation-delay: 6s; }
.lc-dot:nth-child(3) { animation-delay: 12s; }
@keyframes lc-dot-active {
  0%   { width: 8px;  background: rgba(255,255,255,0.25); }
  4%   { width: 26px; background: rgba(255,255,255,0.9); }
  29%  { width: 26px; background: rgba(255,255,255,0.9); }
  33%  { width: 8px;  background: rgba(255,255,255,0.25); }
  100% { width: 8px;  background: rgba(255,255,255,0.25); }
}
/* Slide content pieces */
.lc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px; padding: 4px 11px;
  border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; width: fit-content;
}
.lc-badge.beginner { background: rgba(16,185,129,0.25); color: #34d399; border: 1px solid rgba(16,185,129,0.4); }
.lc-badge.pro      { background: rgba(99,102,241,0.25); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.4); }
.lc-badge.live     { background: rgba(239,68,68,0.25); color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }
.lc-heading { font-size: 22px; font-weight: 900; color: #f1f5f9; line-height: 1.3; letter-spacing: -0.5px; margin-bottom: 10px; }
.lc-heading em { font-style: normal; background: linear-gradient(135deg,#34d399,#60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lc-sub { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 14px; }
.lc-features { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-feat {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 20px; letter-spacing: 0.2px;
}
.lc-feat.green  { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.lc-feat.blue   { background: rgba(59,130,246,0.15);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.lc-feat.purple { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.25); }
.lc-pnl-card {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 14px;
}
.lc-pnl-num { font-size: 20px; font-weight: 900; }
.lc-pnl-num.green { color: #4ade80; }
.lc-pnl-num.blue  { color: #60a5fa; }
.lc-pnl-num.red   { color: #f87171; }
.lc-pnl-label { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.lc-mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-left: auto; }
.lc-bar { width: 6px; border-radius: 2px 2px 0 0; }
.lc-bar.g { background: #4ade80; }
.lc-bar.r { background: #f87171; }
.lc-bar.b { background: #60a5fa; }



/* ── Signals Page ─────────────────────────────────────────────────────────── */
.sig-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin: 0 0 0; flex-wrap: wrap; gap: 12px;
  padding: 32px 36px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #065f46 100%);
  position: relative; overflow: hidden; margin-bottom: 24px;
}
.sig-header::after {
  content: ""; position: absolute; top: -50px; right: -30px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.sig-title {
  font-size: 28px; font-weight: 900; margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #6ee7b7 60%, #34d399 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sig-sub { font-size: 13px; color: rgba(255,255,255,0.55); margin: 4px 0 0; }
.sig-refresh-info { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.5); padding-top: 8px; }
.sig-live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #34d399; display: inline-block;
  box-shadow: 0 0 8px #34d399;
  animation: sig-pulse 1.4s ease-in-out infinite;
}
@keyframes sig-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

/* Tier badge inside header */
.sig-tier-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.4px; margin-top: 8px;
}
.sig-tier-guest   { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }
.sig-tier-free    { background: rgba(59,130,246,0.2);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.35); }
.sig-tier-premium { background: rgba(245,158,11,0.2);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.35); }
.sig-tier-admin   { background: rgba(124,58,237,0.2);  color: #c4b5fd; border: 1px solid rgba(124,58,237,0.35); }

.sig-stats-bar {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-bottom: 24px;
}
@media(max-width:768px) { .sig-stats-bar { grid-template-columns: repeat(3,1fr); } }
@media(max-width:480px) { .sig-stats-bar { grid-template-columns: repeat(2,1fr); } }
.sig-stat {
  text-align: center; padding: 14px 10px; border-radius: 12px;
  border: 1px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sig-stat:nth-child(1) { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #a7f3d0; }
.sig-stat:nth-child(1) .sig-stat-val { color: #16a34a; }
.sig-stat:nth-child(2) { background: linear-gradient(135deg,#fffbeb,#fef3c7); border-color: #fcd34d; }
.sig-stat:nth-child(2) .sig-stat-val { color: #d97706; }
.sig-stat:nth-child(3) { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #a7f3d0; }
.sig-stat:nth-child(3) .sig-stat-val { color: #059669; }
.sig-stat:nth-child(4) { background: linear-gradient(135deg,#fef2f2,#fee2e2); border-color: #fca5a5; }
.sig-stat:nth-child(4) .sig-stat-val { color: #dc2626; }
.sig-stat:nth-child(5) { background: linear-gradient(135deg,#fff7ed,#fed7aa); border-color: #fdba74; }
.sig-stat:nth-child(5) .sig-stat-val { color: #ea580c; }
.sig-stat:nth-child(6) { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-color: #93c5fd; }
.sig-stat:nth-child(6) .sig-stat-val { color: #1d4ed8; }
.sig-stat-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); margin-bottom: 5px; }
.sig-stat-val { display: block; font-size: 20px; font-weight: 900; color: var(--text); }
.sig-green { color: #10b981 !important; }
.sig-red   { color: #ef4444 !important; }
.sig-yellow { color: #f59e0b !important; }

.sig-section-title {
  font-size: 12.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--accent);
  margin: 24px 0 14px; padding: 9px 14px 9px 16px;
  background: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(13,148,136,0.04));
  border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
  display: flex; align-items: center; gap: 7px;
}

/* Signal cards grid */
.sig-cards-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
.sig-trades-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.sig-trade-row { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); font-size: 13px; flex-wrap: wrap; overflow: hidden; }
.sig-trade-row.win  { border-left: 3px solid #10b981; background: linear-gradient(90deg,rgba(16,185,129,0.05) 0%,var(--bg-card) 35%); }
.sig-trade-row.loss { border-left: 3px solid #ef4444; background: linear-gradient(90deg,rgba(239,68,68,0.05) 0%,var(--bg-card) 35%); }
.sig-trade-row.demo { opacity: 0.72; }
.sig-tr-date  { color: var(--text-muted); font-size: 11px; white-space: nowrap; min-width: 78px; flex-shrink: 0; }
.sig-tr-prices { font-weight: 600; color: var(--text); font-size: 12px; white-space: nowrap; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.sig-tr-pnl { font-weight: 800; font-size: 13px; white-space: nowrap; margin-left: auto; flex-shrink: 0; }
.sig-tr-dur { color: var(--text-muted); font-size: 11px; white-space: nowrap; flex-shrink: 0; padding-left: 4px; }
.sig-tr-reason { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; letter-spacing: 0.3px; }
.sig-tr-target { background: rgba(16,185,129,0.12); color: #10b981; }
.sig-tr-sl { background: rgba(239,68,68,0.12); color: #ef4444; }
.sig-tr-eod { background: rgba(245,158,11,0.12); color: #d97706; }
html.dark .sig-trade-row.win  { background: linear-gradient(90deg,rgba(16,185,129,0.07) 0%,var(--bg-card) 35%); }
html.dark .sig-trade-row.loss { background: linear-gradient(90deg,rgba(239,68,68,0.07) 0%,var(--bg-card) 35%); }

.sig-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 22px; 
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--border);
  transition: box-shadow 0.2s, transform 0.15s;
}
.sig-card:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }
.sig-card-active {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
  box-shadow: 0 4px 20px rgba(245,158,11,0.15);
}
.sig-card-active::before {
  content: ""; display: block; position: absolute;
}
.sig-card.sig-ce  { border-left-color: #10b981; }
.sig-card.sig-pe  { border-left-color: #ef4444; }
.sig-trade-win  { border-left-color: #10b981; background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%); }
.sig-trade-loss { border-left-color: #ef4444; background: linear-gradient(135deg, #fff 0%, #fef2f2 100%); }

.sig-card-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.sig-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.sig-badge-ce  { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.sig-badge-pe  { background: rgba(239,68,68,0.15);  color: #ef4444;  border: 1px solid rgba(239,68,68,0.3); }
.sig-badge-    { background: var(--bg3); color: var(--text-dim); border: 1px solid var(--border); }
.sig-symbol { font-size: 16px; font-weight: 800; color: var(--text); }
.sig-status-active {
  margin-left: auto; font-size: 11px; font-weight: 700; color: #f59e0b;
  background: rgba(245,158,11,0.1); padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(245,158,11,0.3); animation: sig-pulse 1.4s infinite;
}
.sig-pnl { margin-left: auto; font-size: 17px; font-weight: 900; }

.sig-card-body { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
@media(max-width:480px) { .sig-card-body { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) {
  .sig-trade-row { padding: 8px 10px; gap: 6px; }
  .sig-tr-dur, .sig-tr-reason { margin-left: 0; }
  .sig-tr-pnl { margin-left: auto; }
  .today-section-header { flex-wrap: wrap; gap: 6px; }
  .today-view-all { font-size: 12px; }
  .picks-hero { padding: 20px 18px; }
  .picks-hero-title { font-size: 22px; }
  .idx-grid-outer { padding: 8px 10px; }
  .idx-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
  .auto-paper-panel { padding: 12px 14px; }
}
.sig-field { background: rgba(0,0,0,0.02); border-radius: 8px; padding: 8px 10px; }
.sig-field-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 3px; }
.sig-field-val { display: block; font-size: 14px; font-weight: 800; color: var(--text); }

/* Locked fields */
.sig-locked .sig-field-val { color: transparent !important; background: var(--border2); border-radius: 4px; user-select: none; filter: blur(4px); }
.sig-lock-icon { filter: none !important; background: none !important; color: var(--text-dim) !important; font-style: normal; }

.sig-flat-card {
  display: flex; align-items: center; gap: 20px; padding: 28px 24px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg3) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.sig-flat-icon { font-size: 36px; flex-shrink: 0; }
.sig-flat-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.sig-flat-sub { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.sig-empty { padding: 28px; text-align: center; color: var(--text-dim); font-size: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* Dark mode signals */
html.dark .sig-stat:nth-child(1) { background: rgba(22,163,74,0.12); border-color: #14532d; }
html.dark .sig-stat:nth-child(2) { background: rgba(217,119,6,0.12); border-color: #78350f; }
html.dark .sig-stat:nth-child(3) { background: rgba(5,150,105,0.12); border-color: #064e3b; }
html.dark .sig-stat:nth-child(4) { background: rgba(220,38,38,0.12); border-color: #7f1d1d; }
html.dark .sig-stat:nth-child(5) { background: rgba(234,88,12,0.12); border-color: #7c2d12; }
html.dark .sig-stat:nth-child(6) { background: rgba(29,78,216,0.12); border-color: #1e3a5f; }
html.dark .sig-card-active { background: rgba(245,158,11,0.05); }
html.dark .sig-trade-win  { background: rgba(16,185,129,0.05); }
html.dark .sig-trade-loss { background: rgba(239,68,68,0.05); }
html.dark .sig-field { background: rgba(255,255,255,0.03); }

/* ── Dashboard Page ───────────────────────────────────────────────────────── */
/* ── Dashboard Hero ──────────────────────────────────────────────────────── */
.dash-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #2d1b69 45%, #1a1040 100%);
  border-radius: 20px;
  margin: 24px 0 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(109,40,217,0.25);
}
.dash-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(139,92,246,0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dash-hero::before {
  content: '';
  position: absolute;
  bottom: -60px; left: 60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dash-hero-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 36px; flex-wrap: wrap; gap: 20px;
}
.dash-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(167,243,208,0.85); margin-bottom: 10px;
}
.dash-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981, 0 0 14px rgba(16,185,129,0.5);
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.dash-hero-title {
  font-size: 32px; font-weight: 900; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 55%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin: 0 0 8px; line-height: 1.1;
}
.dash-hero-sub { font-size: 13px; color: rgba(196,181,253,0.72); margin: 0; line-height: 1.5; }
.dash-hero-right { display: flex; gap: 16px; flex-wrap: wrap; }
.dash-hero-stat-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 12px; padding: 14px 20px; text-align: center; min-width: 120px;
}
.dash-hero-stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(196,181,253,0.65); margin-bottom: 6px; }
.dash-hero-stat-val { font-size: 16px; font-weight: 800; color: #c4b5fd; }

/* ── Section Labels ───────────────────────────────────────────────────────── */
.dash-section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: #a78bfa;
  margin: 28px 0 14px;
  padding: 9px 14px;
  background: linear-gradient(90deg, rgba(139,92,246,0.08) 0%, transparent 100%);
  border-left: 3px solid #7c3aed;
  border-radius: 0 8px 8px 0;
}
.dash-sl-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.dash-sl-red    { background: #ef4444; box-shadow: 0 0 5px rgba(239,68,68,0.6); animation: pulse-dot 1.5s ease-in-out infinite; }
.dash-sl-green  { background: #10b981; box-shadow: 0 0 5px rgba(16,185,129,0.6); }
.dash-sl-purple { background: #a78bfa; box-shadow: 0 0 5px rgba(167,139,250,0.6); }
.dash-sl-amber  { background: #f59e0b; box-shadow: 0 0 5px rgba(245,158,11,0.5); }

/* ── KPI Grid ─────────────────────────────────────────────────────────────── */
.dash-kpi-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-bottom: 20px;
}
@media(max-width:900px)  { .dash-kpi-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:480px)  { .dash-kpi-grid { grid-template-columns: repeat(2,1fr); } }

.dash-kpi {
  border-radius: var(--radius-lg); padding: 16px 14px;
  box-shadow: var(--shadow-sm); text-align: center;
  border: 1px solid var(--border); transition: transform 0.15s, box-shadow 0.15s;
}
.dash-kpi:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.dash-kpi:nth-child(1) { background: linear-gradient(135deg, rgba(16,185,129,0.09), rgba(16,185,129,0.03)); border-color: rgba(16,185,129,0.22); }
.dash-kpi:nth-child(2) { background: linear-gradient(135deg, rgba(99,102,241,0.09), rgba(99,102,241,0.03)); border-color: rgba(99,102,241,0.22); }
.dash-kpi:nth-child(3) { background: linear-gradient(135deg, rgba(245,158,11,0.09), rgba(245,158,11,0.03)); border-color: rgba(245,158,11,0.22); }
.dash-kpi:nth-child(4) { background: linear-gradient(135deg, rgba(20,184,166,0.09), rgba(20,184,166,0.03)); border-color: rgba(20,184,166,0.22); }
.dash-kpi:nth-child(5) { background: linear-gradient(135deg, rgba(239,68,68,0.09), rgba(239,68,68,0.03));  border-color: rgba(239,68,68,0.22); }
.dash-kpi:nth-child(6) { background: linear-gradient(135deg, rgba(139,92,246,0.09), rgba(139,92,246,0.03)); border-color: rgba(139,92,246,0.22); }

.dash-kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 8px; }
.dash-kpi-val { font-size: 20px; font-weight: 800; color: var(--text); }
.dash-green { color: #10b981 !important; }
.dash-red   { color: #ef4444 !important; }

/* ── Chart Cards ──────────────────────────────────────────────────────────── */
.dash-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid #7c3aed;
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.dash-chart-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px;
  color: #a78bfa; margin-bottom: 16px;
}

.dash-empty {
  padding: 32px; text-align: center; color: var(--text-dim); font-size: 13px;
  background: rgba(139,92,246,0.03); border-radius: 10px;
}

/* ── Monthly Table ────────────────────────────────────────────────────────── */
.dash-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.dash-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dash-table thead th {
  background: linear-gradient(180deg, #2d1b69 0%, #1e1b4b 100%);
  color: rgba(196,181,253,0.8); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 11px 12px; text-align: right; white-space: nowrap;
}
.dash-table thead th:first-child { text-align: left; }
.dash-table tbody tr { border-top: 1px solid var(--border); transition: background 0.15s; }
.dash-table tbody tr:hover { background: rgba(139,92,246,0.05); }
.dash-table tbody td { padding: 8px 12px; color: var(--text); text-align: right; }
.dash-table tbody td:first-child { text-align: left; font-weight: 600; }
.dash-td-month { font-weight: 700; color: var(--text); font-size: 13px; }
.dash-td-bold { font-weight: 800; font-size: 13px; }
.dash-row-win  { background: rgba(16,185,129,0.04) !important; }
.dash-row-loss { background: rgba(239,68,68,0.04) !important; }

/* ── Dark mode overrides ──────────────────────────────────────────────────── */
.dark .dash-hero { box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.dark .dash-kpi:nth-child(1) { background: linear-gradient(135deg, rgba(16,185,129,0.13), rgba(16,185,129,0.05)); }
.dark .dash-kpi:nth-child(2) { background: linear-gradient(135deg, rgba(99,102,241,0.13), rgba(99,102,241,0.05)); }
.dark .dash-kpi:nth-child(3) { background: linear-gradient(135deg, rgba(245,158,11,0.13), rgba(245,158,11,0.05)); }
.dark .dash-kpi:nth-child(4) { background: linear-gradient(135deg, rgba(20,184,166,0.13), rgba(20,184,166,0.05)); }
.dark .dash-kpi:nth-child(5) { background: linear-gradient(135deg, rgba(239,68,68,0.13), rgba(239,68,68,0.05)); }
.dark .dash-kpi:nth-child(6) { background: linear-gradient(135deg, rgba(139,92,246,0.13), rgba(139,92,246,0.05)); }
.dark .dash-chart-card { border-top-color: #a78bfa; }
.dark .dash-table thead th { background: linear-gradient(180deg, #2d1b69 0%, #1a1340 100%); }

/* ── Strategies Page ─────────────────────────────────────────────────────── */
.strat-header { margin: 28px 0 24px; }
.strat-title { font-size: 26px; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.strat-sub { font-size: 13px; color: var(--text-dim); margin: 0; }

.strat-section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--accent); margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border2);
}

/* Hero card */
.strat-hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(16,185,129,0.06) 100%);
  border: 1px solid rgba(99,102,241,0.25); border-radius: var(--radius-lg);
  padding: 28px 32px; margin-bottom: 28px; position: relative;
}
.strat-hero-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; background: rgba(16,185,129,0.15);
  color: #10b981; border: 1px solid rgba(16,185,129,0.3); margin-bottom: 10px;
}
.strat-hero-name { font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; margin-bottom: 12px; }
.strat-hero-desc { font-size: 14px; line-height: 1.65; color: var(--text-dim); max-width: 680px; margin-bottom: 24px; }
.strat-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.strat-hero-stat { text-align: center; }
.strat-hs-val { display: block; font-size: 24px; font-weight: 900; color: #10b981; }
.strat-hs-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* Mode cards */
.strat-modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
@media(max-width:640px) { .strat-modes-grid { grid-template-columns: 1fr; } }
.strat-mode-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.strat-mode-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.strat-mode-icon { font-size: 28px; flex-shrink: 0; }
.strat-mode-name { font-size: 17px; font-weight: 800; color: var(--text); }
.strat-mode-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-top: 2px; }
.strat-mode-active-badge {
  margin-left: auto; padding: 2px 8px; border-radius: 12px; font-size: 9px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; background: rgba(16,185,129,0.12);
  color: #10b981; border: 1px solid rgba(16,185,129,0.25); white-space: nowrap;
}
.strat-mode-desc { font-size: 13px; line-height: 1.6; color: var(--text-dim); margin-bottom: 16px; }
.strat-mode-stats { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.strat-ms { text-align: center; }
.strat-ms-val { display: block; font-size: 18px; font-weight: 800; color: var(--text); }
.strat-ms-label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-top: 2px; }
.strat-green { color: #10b981 !important; }

/* Risk grid */
.strat-risk-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-bottom: 8px; }
@media(max-width:900px) { .strat-risk-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:480px) { .strat-risk-grid { grid-template-columns: repeat(2,1fr); } }
.strat-risk-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 12px; text-align: center; box-shadow: var(--shadow-sm);
}
.strat-risk-icon { font-size: 22px; margin-bottom: 6px; }
.strat-risk-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 4px; }
.strat-risk-val { font-size: 18px; font-weight: 800; color: var(--text); }

/* How it works */
.strat-how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 8px; }
@media(max-width:768px) { .strat-how-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .strat-how-grid { grid-template-columns: 1fr; } }
.strat-how-step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 16px; box-shadow: var(--shadow-sm);
}
.strat-how-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 14px; font-weight: 900; display: flex; align-items: center;
  justify-content: center; margin-bottom: 10px;
}
.strat-how-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.strat-how-body { font-size: 12px; line-height: 1.6; color: var(--text-dim); }

/* Screener presets */
.strat-preset-intro { font-size: 13px; color: var(--text-dim); margin: -8px 0 14px; }
.strat-preset-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 8px; }
@media(max-width:768px) { .strat-preset-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .strat-preset-grid { grid-template-columns: 1fr; } }
.strat-preset-card {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 14px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.12s; cursor: pointer;
}
.strat-preset-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.strat-preset-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.strat-preset-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.strat-preset-desc { font-size: 11px; line-height: 1.45; color: var(--text-dim); }

/* ── Paper Trade Page ────────────────────────────────────────────────────── */
.pt-header { display: flex; justify-content: space-between; align-items: flex-start; margin: 28px 0 20px; flex-wrap: wrap; gap: 12px; }
.pt-title  { font-size: 26px; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.pt-sub    { font-size: 13px; color: var(--text-dim); margin: 0; }
.pt-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; }

.pt-section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--accent); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border2);
}

.pt-kpi-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-bottom: 8px; }
@media(max-width:900px) { .pt-kpi-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:480px) { .pt-kpi-grid { grid-template-columns: repeat(2,1fr); } }
.pt-kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.pt-kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 6px; }
.pt-kpi-val   { font-size: 20px; font-weight: 800; color: var(--text); }
.pt-green  { color: #10b981 !important; }
.pt-red    { color: #ef4444 !important; }
.pt-yellow { color: #f59e0b !important; }

.pt-strat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 8px; }
@media(max-width:640px) { .pt-strat-grid { grid-template-columns: 1fr; } }
.pt-strat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.pt-strat-icon { font-size: 22px; margin-bottom: 4px; }
.pt-strat-name { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.pt-strat-pnl  { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.pt-strat-meta { font-size: 11px; color: var(--text-dim); }

.pt-chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.pt-empty { padding: 28px; text-align: center; color: var(--text-dim); font-size: 14px; }

.pt-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 8px; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.pt-table thead th { background: var(--bg3); color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 9px 12px; text-align: right; }
.pt-table thead th:first-child, .pt-table thead th:nth-child(2), .pt-table thead th:nth-child(3) { text-align: left; }
.pt-table tbody tr { border-top: 1px solid var(--border); }
.pt-table tbody tr:hover { background: var(--bg-hover); }
.pt-table tbody td { padding: 7px 12px; color: var(--text); text-align: right; }
.pt-table tbody td:first-child, .pt-table tbody td:nth-child(2), .pt-table tbody td:nth-child(3) { text-align: left; }
.pt-td-bold { font-weight: 700; }

.pt-dir { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.pt-dir-long  { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.pt-dir-short { background: rgba(239,68,68,0.12);  color: #ef4444;  border: 1px solid rgba(239,68,68,0.25); }

.pt-status { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.3px; }
.pt-status-open { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.pt-status-win  { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.pt-status-loss { background: rgba(239,68,68,0.12);  color: #ef4444;  border: 1px solid rgba(239,68,68,0.25); }
.pt-status-eod  { background: rgba(99,102,241,0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
.pt-status-exp  { background: var(--bg3); color: var(--text-dim); border: 1px solid var(--border); }

.pt-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }
.pt-badge-open { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.pt-badge-win  { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.pt-badge-loss { background: rgba(239,68,68,0.12);  color: #ef4444;  border: 1px solid rgba(239,68,68,0.25); }
.pt-badge-eod  { background: rgba(99,102,241,0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }

/* ── Stock Detail Page ───────────────────────────────────────────────────── */
.sdp-section-title {
  font-size: 12.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--accent);
  margin: 28px 0 14px; padding: 9px 14px 9px 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.07), rgba(124,58,237,0.04));
  border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
  display: flex; align-items: center; gap: 7px;
}
.price-sub {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-dim); margin-top: 4px;
}
.w52-row {
  font-size: 12px; color: var(--text-muted);
  margin-top: 6px; font-weight: 600;
}
.chart-canvas-wrap {
  position: relative; height: 200px; width: 100%;
}
.chart-card-title {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.cmp-check-cell {
  width: 32px; text-align: center; padding: 0 4px !important;
}

/* ── Stock News Timeline ─────────────────────────────────────────────────── */
.stock-news-wrap {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 28px;
}
.news-loading, .news-empty {
  font-size: 13px; color: var(--text-dim);
  padding: 18px 0; text-align: center;
}
.snews-period {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-dim);
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--border2);
  margin-bottom: 2px;
}
.snews-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 5px;
  text-decoration: none; transition: all 0.15s;
  border: 1px solid transparent; background: var(--bg3);
}
.snews-item:hover {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-color: #bfdbfe; transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(37,99,235,0.1);
}
.snews-title {
  font-size: 13.5px; font-weight: 500; color: var(--text);
  line-height: 1.45;
}
.snews-meta {
  font-size: 11.5px; color: var(--text-dim);
}
html.dark .snews-item:hover { background: var(--bg4); }

/* ── Stock Detail Page (SDP) — Full Redesign ─────────────────────────────── */
.sdp-container { max-width: 1100px; }

/* Hero header */
.sdp-hero {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e1b4b 100%);
  border: none; border-radius: var(--radius-xl); padding: 28px 32px;
  margin: 18px 0 24px; box-shadow: 0 8px 32px rgba(15,23,42,0.35);
  position: relative; overflow: hidden;
}
.sdp-hero::after {
  content: ""; position: absolute; top: -60px; right: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.sdp-symbol {
  font-size: 34px; font-weight: 900; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 60%, #c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sdp-company { font-size: 15px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.sdp-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sdp-badge-green { background: rgba(16,185,129,0.2) !important; color: #6ee7b7 !important; border-color: rgba(110,231,183,0.35) !important; }
.sdp-badge-blue  { background: rgba(59,130,246,0.2) !important; color: #93c5fd !important; border-color: rgba(147,197,253,0.35) !important; }

.sdp-hero-right { text-align: right; min-width: 180px; }
.sdp-price-main { font-size: 40px; font-weight: 900; color: #ffffff; letter-spacing: -1.5px; }
.sdp-change { font-size: 18px; font-weight: 700; margin-top: 4px; }
.sdp-ohlc { display: flex; gap: 14px; font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 52W slider */
.sdp-52w-wrap { margin-top: 12px; }
.sdp-52w-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.sdp-52w-bar { position: relative; height: 6px; background: var(--border2); border-radius: 4px; }
.sdp-52w-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e); }
.sdp-52w-dot { position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* ── Premium Theme ───────────────────────────────────────────────────────────── */
.page-theme-premium {
  --accent:      #7c3aed;
  --accent-h:    #6d28d9;
  --accent2:     #8b5cf6;
  --accent-glow: rgba(124,58,237,0.18);
  --grad-brand:  linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --grad-page:   linear-gradient(160deg, #f5f3ff 0%, #ede9fe 30%, #fdf4ff 100%);
}
.page-theme-picks {
  --accent:      #ea580c;
  --accent-h:    #c2410c;
  --accent2:     #f97316;
  --accent-glow: rgba(234,88,12,0.18);
  --grad-brand:  linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --grad-page:   linear-gradient(160deg, #fff7ed 0%, #ffedd5 40%, #fef9f0 100%);
}
html.dark .page-theme-picks { --grad-page: linear-gradient(160deg,#1c0a00 0%,#431407 50%,#1c0a00 100%); }

/* ── Premium Nav ──────────────────────────────────────────────────────────────── */
.btn-nav-premium {
  background: linear-gradient(135deg,#6366f1,#34d399);
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 7px 16px; border-radius: 9px; transition: all 0.2s;
  box-shadow: 0 2px 14px rgba(99,102,241,0.45); letter-spacing: -0.1px;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-nav-premium:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,0.6); }
.nav-premium-badge { font-size: 16px; }

/* ── Upgrade Banner ──────────────────────────────────────────────────────────── */
.upgrade-banner {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(79,70,229,0.08));
  border: 1px solid rgba(124,58,237,0.25); border-radius: 14px; margin: 24px 0;
  flex-wrap: wrap;
}
html.dark .upgrade-banner { background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.3); }
.upgrade-banner-icon { font-size: 28px; flex-shrink: 0; }
.upgrade-banner-content { flex: 1; min-width: 200px; }
.upgrade-banner-content strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.upgrade-banner-content p { margin: 0; font-size: 13px; color: var(--text-muted); }
.btn-upgrade {
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 700; padding: 10px 20px;
  border-radius: 10px; white-space: nowrap; transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(124,58,237,0.4); flex-shrink: 0;
}
.btn-upgrade:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.btn-upgrade-sm {
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  text-decoration: none; font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: 8px; transition: all 0.2s;
}

/* ── Locked fields on Signals ────────────────────────────────────────────────── */
.sig-locked { opacity: 0.55; }
.sig-locked .sig-field-val { color: var(--text-dim) !important; font-style: italic; }
.sig-locked-label { font-size: 12px; color: var(--text-dim); font-weight: 400; margin-left: 8px; }
.sig-more-locked {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg3); border-radius: 10px; margin-top: 8px;
  font-size: 13px; color: var(--text-muted);
}

/* ── Dashboard Locked Preview ───────────────────────────────────────────────── */
.dash-locked-preview { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 32px; }
.dash-locked-blur { filter: blur(4px); pointer-events: none; padding: 20px; }
.dash-locked-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(1px);
}
html.dark .dash-locked-overlay { background: rgba(0,0,0,0.55); }
.dash-locked-msg { text-align: center; color: #fff; padding: 24px; max-width: 380px; }
.dash-locked-msg h3 { font-size: 18px; font-weight: 800; margin: 10px 0 8px; }
.dash-locked-msg p { font-size: 13px; opacity: 0.85; margin-bottom: 18px; }

/* ── Picks Page ──────────────────────────────────────────────────────────────── */
.picks-hero {
  padding: 32px 36px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #431407 0%, #7c2d12 50%, #9a3412 100%);
  position: relative; overflow: hidden; margin-bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px;
}
.picks-hero::after {
  content: ""; position: absolute; top: -40px; right: -20px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.picks-hero-left { position: relative; z-index: 1; }
.picks-hero-title {
  font-size: 30px; font-weight: 900; margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fed7aa 60%, #fb923c 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.picks-hero-sub { color: rgba(255,255,255,0.55); font-size: 13px; margin: 6px 0 0; }
.picks-hero-count {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  background: rgba(249,115,22,0.25); color: #fdba74;
  border: 1px solid rgba(249,115,22,0.4); padding: 5px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
}
.picks-hero-meta {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end; position: relative; z-index: 1;
  padding-top: 4px;
}
.picks-hero-updated { font-size: 12px; color: rgba(255,255,255,0.45); }
.picks-disclaimer-banner {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 12px; line-height: 1.6;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.55);
}
.picks-disclaimer-banner strong { color: rgba(255,255,255,0.75); }
.picks-hero-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2);
}
.picks-guest-cta {
  text-align: center; padding: 12px 20px;
  background: rgba(234,88,12,0.07); border: 1px dashed rgba(234,88,12,0.3);
  border-radius: 10px; font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}
.picks-guest-cta a { color: var(--accent); font-weight: 600; }
.picks-data-note {
  font-size: 11px; color: var(--text-dim); padding: 5px 2px 8px;
  border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
html.dark .picks-data-note { color: #64748b; border-color: var(--border); }
.picks-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; padding-bottom: 40px; }
.picks-empty {
  text-align: center; padding: 72px 20px; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  margin-bottom: 40px;
}
.picks-empty span { font-size: 48px; display: block; margin-bottom: 14px; }
.picks-empty p { font-size: 15px; }
.pick-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: box-shadow 0.2s, transform 0.15s;
  border-top: 3px solid var(--border);
  height: 100%; /* fill grid row */
}
.pick-card-long  { border-top-color: #10b981; background: linear-gradient(180deg, rgba(16,185,129,0.04) 0%, var(--bg-card) 40%); }
.pick-card-short { border-top-color: #ef4444; background: linear-gradient(180deg, rgba(239,68,68,0.04) 0%, var(--bg-card) 40%); }
html.dark .pick-card-long  { background: linear-gradient(180deg, rgba(16,185,129,0.07) 0%, var(--bg-card) 40%); }
html.dark .pick-card-short { background: linear-gradient(180deg, rgba(239,68,68,0.07) 0%, var(--bg-card) 40%); }
.pick-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }
.pick-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pick-symbol { font-size: 14px; font-weight: 900; letter-spacing: -0.2px; }
.pick-company { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.pick-badge-long {
  background: rgba(16,185,129,0.12); color: #059669; font-size: 12px; font-weight: 800;
  padding: 5px 13px; border-radius: 20px; border: 1px solid rgba(16,185,129,0.3);
  white-space: nowrap; letter-spacing: 0.3px;
}
.pick-badge-short {
  background: rgba(239,68,68,0.1); color: #dc2626; font-size: 12px; font-weight: 800;
  padding: 5px 13px; border-radius: 20px; border: 1px solid rgba(239,68,68,0.25);
  white-space: nowrap; letter-spacing: 0.3px;
}
.pick-entry-zone {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; background: linear-gradient(135deg, rgba(234,88,12,0.07), rgba(249,115,22,0.04));
  border-radius: 8px; border: 1px solid rgba(234,88,12,0.15);
}
html.dark .pick-entry-zone { background: rgba(234,88,12,0.1); border-color: rgba(234,88,12,0.2); }
.pick-entry-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.pick-entry-val { font-size: 13px; font-weight: 900; color: var(--text); }
.pick-tp, .pick-sl { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.pick-tp { background: rgba(16,185,129,0.06); }
.pick-sl { background: rgba(239,68,68,0.06); }
.pick-tp-label { color: #059669; font-weight: 600; font-size: 11px; }
.pick-sl-label { color: #dc2626; font-weight: 600; font-size: 11px; }
.pick-tp-val  { font-weight: 800; font-size: 12px; color: #059669; }
.pick-sl-val  { font-weight: 800; font-size: 12px; color: #dc2626; }
.pick-sl-locked .pick-sl-val { color: var(--text-dim); font-style: italic; font-size: 12px; font-weight: 500; }
.pick-sl-link { color: #7c3aed; font-weight: 600; }
.pick-reason {
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
  border-left: 3px solid var(--accent); padding-left: 10px;
  background: rgba(234,88,12,0.04); border-radius: 0 6px 6px 0; padding: 8px 10px 8px 12px;
}
.pick-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.pick-risk-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.risk-low    { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.25); }
.risk-medium { background: rgba(245,158,11,0.12); color: #d97706; border: 1px solid rgba(245,158,11,0.25); }
.risk-high   { background: rgba(239,68,68,0.10); color: #dc2626; border: 1px solid rgba(239,68,68,0.20); }
.pick-date { font-size: 11px; color: var(--text-dim); }
.pick-status-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; text-transform: capitalize; }
.pick-status-active  { background: rgba(16,185,129,0.12); color: #059669; }
.pick-status-expired { background: rgba(107,114,128,0.12); color: #6b7280; }

/* ── Pick Sections ───────────────────────────────────────────────────────────── */
.picks-section { margin-bottom: 36px; }
.picks-section-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, rgba(234,88,12,0.08), rgba(249,115,22,0.04));
  border: 1px solid rgba(234,88,12,0.18); border-bottom: none;
  flex-wrap: wrap; gap: 8px; margin-bottom: 0;
}
.picks-section-locked-header {
  background: rgba(107,114,128,0.07); border-color: var(--border);
}
.picks-section-icon { font-size: 18px; margin-right: 6px; }
.picks-section-title { font-size: 16px; font-weight: 800; color: var(--text); vertical-align: middle; }
.picks-section-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.picks-section-count {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: rgba(234,88,12,0.1); padding: 3px 12px; border-radius: 20px;
  border: 1px solid rgba(234,88,12,0.2);
}
.picks-tier-lock {
  font-size: 12px; font-weight: 700; color: #f59e0b;
  background: rgba(245,158,11,0.1); padding: 3px 12px; border-radius: 20px;
  border: 1px solid rgba(245,158,11,0.25);
}
.picks-section .picks-grid {
  border: 1px solid rgba(234,88,12,0.12); border-top: none;
  border-radius: 0 0 14px 14px; padding: 16px; background: var(--bg-card);
}
html.dark .picks-section .picks-grid {
  background: var(--bg2);
}
.picks-prices-locked-bar {
  background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2);
  border-top: none; border-bottom: none;
  padding: 8px 20px; font-size: 12px; color: #d97706; font-weight: 600;
}
.picks-prices-locked-bar a { color: #7c3aed; text-decoration: underline; }

/* Locked section block */
.picks-locked-section {
  border: 1px solid var(--border); border-top: none; border-radius: 0 0 14px 14px;
  padding: 28px 20px; background: var(--bg-card);
}
.picks-locked-msg {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: rgba(107,114,128,0.05); border: 1px dashed var(--border2);
  border-radius: 12px; padding: 20px 22px;
}
.picks-locked-icon { font-size: 32px; flex-shrink: 0; }
.picks-locked-msg > div { flex: 1; min-width: 200px; }
.picks-locked-msg strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.picks-locked-msg p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Locked price rows inside a pick card */
.pick-locked-body {
  display: flex; flex-direction: column; gap: 5px; flex: 1;
  background: rgba(107,114,128,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
}
.pick-locked-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.lock-val { font-size: 13px; }

/* Type badges in admin table */
.pick-type-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.pick-type-intraday { background: rgba(234,88,12,0.12); color: #ea580c; border: 1px solid rgba(234,88,12,0.25); }
.pick-type-swing    { background: rgba(59,130,246,0.12); color: #2563eb; border: 1px solid rgba(59,130,246,0.25); }
.pick-type-longterm { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.25); }

/* ── Admin Picks Form ────────────────────────────────────────────────────────── */
.admin-form-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 12px; }
.picks-form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.form-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border2); border-radius: 8px; background: var(--bg4); color: var(--text); font-size: 13px; transition: border 0.15s; box-sizing: border-box; }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.btn-danger { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid rgba(239,68,68,0.25); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.admin-quick-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; margin-top: 24px; }
.admin-quick-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.admin-quick-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.admin-quick-card p { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); }

/* ── Today Section on Home ──────────────────────────────────────────────────── */
.today-section {
  margin-bottom: 18px; padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb; border-top: 3px solid #f97316;
  border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dark .today-section {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08); border-top-color: #f97316;
}
.today-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.today-title-group { display: flex; align-items: center; gap: 8px; }
.today-live-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #f97316; flex-shrink: 0;
  animation: pulse-ring 1.5s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(249,115,22,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
.today-section-title { font-size: 17px; font-weight: 800; color: #c2410c; }
.dark .today-section-title { color: #fb923c; }
.today-section-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  background: rgba(249,115,22,0.12); color: #ea580c;
}
.dark .today-section-badge { background: rgba(251,146,60,0.15); color: #fb923c; }
.today-view-all { font-size: 13px; color: #f97316; font-weight: 600; text-decoration: none; }
.today-view-all:hover { text-decoration: underline; }

.today-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.today-pick-card {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; min-height: 132px;
  padding: 12px; border-radius: 8px; text-decoration: none;
  background: #fff; border: 1px solid #e5e7eb;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative; overflow: hidden;
}
.today-pick-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.today-pick-card-long::before { background: #16a34a; }
.today-pick-card-short::before { background: #dc2626; }
.today-pick-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.08); border-color: #d1d5db; }
.dark .today-pick-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.dark .today-pick-card:hover { border-color: rgba(255,255,255,0.15); }

.today-pick-header { display: flex; align-items: center; justify-content: space-between; gap: 3px; margin-bottom: 1px; }
.today-pick-dir {
  font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 4px; letter-spacing: 0;
}
.today-dir-long  { background: rgba(22,163,74,0.1); color: #16a34a; }
.today-dir-short { background: rgba(220,38,38,0.08); color: #dc2626; }
.today-pick-type { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0; }
.today-pick-sym { font-size: 14px; font-weight: 900; color: #111827; letter-spacing: 0; }
.dark .today-pick-sym { color: #f9fafb; }
.today-pick-co { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-pick-range { font-size: 11px; font-weight: 700; color: #475569; margin-top: 5px; }
.dark .today-pick-range { color: #9ca3af; }
.today-pick-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 1px; }
.today-tgt  { font-size: 10px; font-weight: 700; color: #059669; }
.today-sl   { font-size: 10px; font-weight: 700; color: #dc2626; }

.today-pick-more-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 132px;
  padding: 7px; border-radius: 9px; text-decoration: none;
  background: #f97316; color: #fff;
  font-size: 13px; font-weight: 700; border: none;
  transition: opacity 0.15s, transform 0.15s;
}
.today-pick-more-card:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Premium Page ─────────────────────────────────────────────────────────────── */
.premium-hero { text-align: center; padding: 56px 20px 32px; }
.premium-badge-large { font-size: 48px; margin-bottom: 12px; }
.premium-hero-title { font-size: 36px; font-weight: 900; margin: 0 0 12px; letter-spacing: -1px; }
.premium-highlight { background: linear-gradient(135deg,#7c3aed,#4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.premium-hero-sub { font-size: 16px; color: var(--text-muted); margin: 0 0 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.premium-active-features { display: flex; flex-direction: column; gap: 8px; max-width: 380px; margin: 20px auto; text-align: left; }
.paf-item { font-size: 14px; color: var(--text-muted); }
.premium-features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; margin-bottom: 32px; }
.pf-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.pf-icon { font-size: 28px; margin-bottom: 10px; }
.pf-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.pf-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0 0 12px; }
.pf-compare { display: flex; flex-direction: column; gap: 4px; }
.pf-free { font-size: 12px; color: var(--text-dim); }
.pf-premium { font-size: 12px; color: #7c3aed; font-weight: 600; }
html.dark .pf-premium { color: #a78bfa; }
.premium-pricing-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(79,70,229,0.06));
  border: 2px solid rgba(124,58,237,0.3); border-radius: 20px;
  padding: 36px; text-align: center; max-width: 440px; margin: 0 auto 40px;
}
html.dark .premium-pricing-card { background: rgba(124,58,237,0.12); }
.pricing-amount { font-size: 48px; font-weight: 900; color: var(--text); letter-spacing: -2px; }
.pricing-period { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.pricing-label { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { font-size: 14px; color: var(--text-muted); }
.btn-premium-cta {
  display: block; width: 100%; padding: 14px 28px; text-align: center;
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  text-decoration: none; font-size: 16px; font-weight: 800; border-radius: 12px;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4); letter-spacing: -0.2px;
}
.btn-premium-cta:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(124,58,237,0.5); }
.btn-premium-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.premium-coming-soon { padding: 16px; background: var(--bg4); border-radius: 10px; font-size: 14px; color: var(--text-muted); }
.compare-table-wrap { margin-bottom: 40px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { background: var(--bg4); padding: 10px 14px; font-size: 13px; font-weight: 700; text-align: left; }
.compare-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .premium-row { background: rgba(124,58,237,0.04); }
html.dark .compare-table .premium-row { background: rgba(124,58,237,0.08); }

/* ── Admin form page ─────────────────────────────────────────────────────────── */
.admin-form { display: flex; flex-direction: column; gap: 16px; }

/* ── Responsive additions ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .upgrade-banner { flex-direction: column; text-align: center; }
  .premium-hero-title { font-size: 26px; }
  .pricing-amount { font-size: 36px; }
  .picks-grid { grid-template-columns: 1fr; }
}

/* KPI cards */
.sdp-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px;
}
.sdp-kpi-card {
  border-radius: var(--radius-lg); padding: 18px 16px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.sdp-kpi-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--kpi-grad, var(--grad-brand));
}
.sdp-kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
/* individual card colors */
.sdp-kpi-grid .sdp-kpi-card:nth-child(1) { --kpi-grad: linear-gradient(90deg,#2563eb,#7c3aed); background: linear-gradient(135deg,#eff6ff,#f5f3ff); border-color: #bfdbfe; }
.sdp-kpi-grid .sdp-kpi-card:nth-child(1) .sdp-kpi-big { color: #1d4ed8; }
.sdp-kpi-grid .sdp-kpi-card:nth-child(2) { --kpi-grad: linear-gradient(90deg,#16a34a,#0d9488); background: linear-gradient(135deg,#f0fdf4,#f0fdfa); border-color: #a7f3d0; }
.sdp-kpi-grid .sdp-kpi-card:nth-child(3) { --kpi-grad: linear-gradient(90deg,#0ea5e9,#0284c7); background: linear-gradient(135deg,#f0f9ff,#e0f2fe); border-color: #7dd3fc; }
.sdp-kpi-grid .sdp-kpi-card:nth-child(4) { --kpi-grad: linear-gradient(90deg,#f59e0b,#ef4444); background: linear-gradient(135deg,#fffbeb,#fff7ed); border-color: #fcd34d; }
.sdp-kpi-grid .sdp-kpi-card:nth-child(5) { --kpi-grad: linear-gradient(90deg,#8b5cf6,#6d28d9); background: linear-gradient(135deg,#f5f3ff,#ede9fe); border-color: #c4b5fd; }
.sdp-kpi-grid .sdp-kpi-card:nth-child(6) { --kpi-grad: linear-gradient(90deg,#f97316,#dc2626); background: linear-gradient(135deg,#fff7ed,#fef2f2); border-color: #fdba74; }
.sdp-kpi-grid .sdp-kpi-card:nth-child(7) { --kpi-grad: linear-gradient(90deg,#db2777,#9333ea); background: linear-gradient(135deg,#fdf2f8,#faf5ff); border-color: #f9a8d4; }
.sdp-kpi-grid .sdp-kpi-card:nth-child(8) { --kpi-grad: linear-gradient(90deg,#0d9488,#0284c7); background: linear-gradient(135deg,#f0fdfa,#f0f9ff); border-color: #99f6e4; }
.sdp-kpi-accent { } /* override removed, handled by nth-child */
.sdp-kpi-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 8px; }
.sdp-kpi-big { font-size: 17px; font-weight: 900; color: var(--text); letter-spacing: -0.3px; line-height: 1.2; }

/* TradingView chart */
.sdp-tv-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #131722;
}
.sdp-tv-wrap iframe {
  width: 100%;
  height: 550px;
  border: none;
  display: block;
}
@media (max-width: 768px) {
  .sdp-tv-wrap iframe { height: 380px; }
}

/* Charts grid */
.sdp-charts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px;
}
.sdp-charts-quad { grid-template-columns: repeat(4, 1fr); overflow-x: auto; }
.sdp-chart-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 18px 14px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.sdp-chart-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
}
.sdp-chart-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.sdp-chart-wide { /* spans full row in 1fr 1fr grid */ }
.sdp-chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sdp-chart-title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); }
.sdp-chart-badge { font-size: 13px; font-weight: 700; }
.sdp-chart-wrap { position: relative; }
.sdp-chart-center-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -20%);
  font-size: 18px; font-weight: 800; color: var(--text); pointer-events: none;
}

/* Metrics table */
.sdp-metrics-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.sdp-metrics-table { width: 100%; border-collapse: collapse; }
.sdp-metrics-table td {
  padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid var(--border2);
}
.sdp-metrics-table tr:last-child td { border-bottom: none; }
.sdp-metrics-table td:nth-child(1),
.sdp-metrics-table td:nth-child(3) { color: var(--text-dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; width: 22%; }
.sdp-metrics-table td:nth-child(2),
.sdp-metrics-table td:nth-child(4) { font-weight: 800; color: var(--text); font-size: 13.5px; }
.sdp-metrics-table tr:nth-child(odd) { background: rgba(37,99,235,0.025); }
.sdp-metrics-table tr:nth-child(even) { background: rgba(124,58,237,0.025); }
.sdp-metrics-table tr:hover td { background: rgba(37,99,235,0.06); }

/* Dark mode overrides */
html.dark .sdp-hero { background: linear-gradient(135deg, #030712 0%, #0f172a 55%, #0d0b1a 100%); }
html.dark .sdp-chart-card,
html.dark .sdp-metrics-table-wrap { background: var(--bg-card); border-color: var(--border); }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(1) { background: rgba(37,99,235,0.1); border-color: #1e3a5f; }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(2) { background: rgba(22,163,74,0.1); border-color: #14532d; }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(3) { background: rgba(14,165,233,0.1); border-color: #0c4a6e; }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(4) { background: rgba(245,158,11,0.1); border-color: #78350f; }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(5) { background: rgba(139,92,246,0.1); border-color: #4c1d95; }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(6) { background: rgba(249,115,22,0.1); border-color: #7c2d12; }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(7) { background: rgba(219,39,119,0.1); border-color: #831843; }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(8) { background: rgba(13,148,136,0.1); border-color: #134e4a; }
html.dark .sdp-kpi-grid .sdp-kpi-card:nth-child(1) .sdp-kpi-big { color: #93c5fd; }
html.dark .sdp-section-title { background: rgba(37,99,235,0.1); color: #93c5fd; border-color: #3b82f6; }
html.dark .sdp-metrics-table tr:nth-child(odd)  { background: rgba(37,99,235,0.04); }
html.dark .sdp-metrics-table tr:nth-child(even) { background: rgba(124,58,237,0.04); }
html.dark .sdp-metrics-table tr:hover td { background: rgba(37,99,235,0.1); }
html.dark .snews-item { background: var(--bg3); }
html.dark .snews-item:hover { background: rgba(37,99,235,0.12); border-color: #1e3a5f; }
html.dark .sdp-52w-dot { border-color: var(--bg3); }

@media (max-width: 900px) {
  .sdp-charts-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sdp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sdp-charts-grid { grid-template-columns: 1fr; }
  .sdp-charts-quad { grid-template-columns: repeat(2, 1fr); }
  .sdp-hero { flex-direction: column; }
  .sdp-hero-right { text-align: left; }
  .sdp-ohlc { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .sdp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sdp-charts-quad { grid-template-columns: 1fr 1fr; }
  .sdp-price-main { font-size: 28px; }
}

/* ── About Card ──────────────────────────────────────────────────────────── */
.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.about-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.about-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 4px 10px;
}
.about-text {
  font-size: 14px; line-height: 1.75; color: var(--text);
  margin: 0 0 14px; white-space: pre-wrap;
}
.about-link {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  text-decoration: none;
}
.about-link:hover { text-decoration: underline; }
html.dark .about-card { background: var(--bg-card); border-color: var(--border); }

/* ── Stock Notes widget ──────────────────────────────────────────────────── */
.sn-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sn-textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  font-size: .88rem;
  font-family: inherit;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  border: none;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.sn-textarea::placeholder { color: var(--text-dim); }
.sn-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 8px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}
.sn-status { font-size: .78rem; font-weight: 600; }
.sn-chars  { font-size: .72rem; color: var(--text-dim); }

/* ── Index Ticker Marquee ─────────────────────────────────────────────────── */
.idx-ticker-outer {
  width: 100%; overflow: hidden; position: relative;
  background: linear-gradient(90deg, #060a1e 0%, #0c1230 100%);
  border-bottom: 1px solid rgba(37,99,235,0.35);
  height: 36px; display: flex; align-items: center;
  user-select: none; z-index: 10;
}
.idx-ticker-track {
  flex: 1; overflow: hidden; height: 100%;
  display: flex; align-items: center;
}
.idx-ticker-inner {
  display: inline-flex; align-items: center; white-space: nowrap;
  flex-wrap: nowrap; flex-shrink: 0;
  animation: idx-scroll 60s linear infinite;
  will-change: transform;
}
.idx-ticker-outer:hover .idx-ticker-inner { animation-play-state: paused; }
@keyframes idx-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.idx-ti {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 16px 0 0; white-space: nowrap; font-size: 12px;
}
.idx-ti-lbl {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; color: #8899cc; white-space: nowrap;
}
.idx-ti .idx-price {
  font-size: 12.5px; font-weight: 800; color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}
.idx-ti .idx-chg {
  font-size: 10.5px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px;
}
.idx-ti .idx-up { background: rgba(16,185,129,.15); color: #10b981; }
.idx-ti .idx-dn { background: rgba(239,68,68,.12); color: #ef4444; }
.idx-ti .idx-d  { background: transparent; color: #556080; }
.idx-ti-sep {
  font-size: 6px; color: #2a3560; margin: 0 8px 0 0; flex-shrink: 0;
}
.mkt-flag-img { width: 14px; height: 10px; border-radius: 1px; flex-shrink: 0; }
.idx-ticker-updated {
  flex-shrink: 0; font-size: 9px; color: #3a4870;
  padding: 0 10px; white-space: nowrap; display: none;
}

/* -- Compact Index Grid (replaces scrolling market strip) ------------------- */
.idx-grid-outer { width:100%; background:var(--card-bg); border-bottom:1px solid var(--border); padding:10px 20px; }
.idx-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; max-width:1400px; margin:0 auto; }
.idx-card { background:var(--bg-card); border:1px solid var(--border); border-radius:9px; padding:9px 12px; display:flex; flex-direction:column; gap:3px; cursor:default; transition:border-color .15s; }
.idx-card:hover { border-color:var(--accent); }
.idx-lbl { font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.3px; color:var(--text-muted); display:flex; align-items:center; gap:3px; }
.idx-price { font-size:.98rem; font-weight:800; color:var(--text); font-variant-numeric:tabular-nums; }
.idx-chg { font-size:.72rem; font-weight:700; padding:1px 5px; border-radius:4px; align-self:flex-start; }

/* ── Onboarding Checklist Widget ─────────────────────────────────────────── */
.onboard-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  z-index: 9000;
  overflow: hidden;
  animation: onb-slide-in .3s ease;
}
@keyframes onb-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.onb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.08));
  border-bottom: 1px solid var(--border);
}
.onb-title { font-size: .88rem; font-weight: 700; color: var(--text); }
.onb-sub   { font-size: .72rem; color: var(--text-muted); margin-top: 1px; }
.onb-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: .9rem; padding: 2px 4px;
  border-radius: 4px; line-height: 1;
}
.onb-close:hover { background: var(--bg4); color: var(--text); }
.onb-progress-bar {
  height: 3px;
  background: var(--bg4);
}
.onb-progress-fill {
  height: 100%;
  background: var(--grad-brand);
  transition: width .4s ease;
}
.onb-steps {
  list-style: none;
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onb-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  color: var(--text-muted);
}
.onb-step.done { color: var(--green); }
.onb-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-dim);
}
.onb-step.done .onb-check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.onb-label { font-size: .8rem; line-height: 1.3; }
.onb-step.done .onb-label { color: var(--green); }
a.onb-label { color: var(--accent); text-decoration: none; font-weight: 600; }
a.onb-label:hover { text-decoration: underline; }
html.dark .onboard-widget { background: var(--bg3); }

/* ── Print / Export styles ───────────────────────────────────────────────── */
@media print {
  .topnav, .ticker-wrap, .nav-links, .site-footer,
  .onboard-widget, .chat-widget, #page-loader { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .mpt-history-table { font-size: 10px !important; }
  .btn-primary, .btn-ghost, .topbar2-actions { display: none !important; }
}
.idx-up { background:rgba(16,185,129,.12); color:#10b981; }
.idx-dn { background:rgba(239,68,68,.1); color:#ef4444; }
.idx-d  { color:var(--text-muted); background:transparent; }
.idx-card-global { opacity:.85; }
html.dark .idx-grid-outer { background:var(--bg-card); }
html.dark .idx-card { background:#161b22; border-color:#30363d; }
html.dark .idx-up { background:rgba(52,211,153,.12); color:#34d399; }
html.dark .idx-dn { background:rgba(248,113,113,.1); color:#f87171; }

/* ── Form Checkbox ───────────────────────────────────────────────────────── */
.form-checkbox {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--text-muted); margin: 4px 0 14px;
  padding: 10px 12px; border-radius: 8px;
  background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.18);
  transition: background 0.15s;
}
.form-checkbox:hover { background: rgba(99,102,241,0.1); }
.form-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }

/* ── Guest Soft-Gate Modal ───────────────────────────────────────────────── */
.sg-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px); z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0; animation: sgSlideUp 0.3s ease;
}
@keyframes sgSlideUp { from { opacity:0; transform: translateY(40px); } to { opacity:1; transform: translateY(0); } }
.sg-sheet {
  width: 100%; max-width: 520px; border-radius: 24px 24px 0 0;
  background: var(--bg-card); border: 1px solid var(--border2);
  padding: 28px 28px 36px; text-align: center;
  box-shadow: 0 -12px 48px rgba(0,0,0,0.3);
}
.sg-pill {
  width: 40px; height: 4px; border-radius: 99px;
  background: var(--border2); margin: 0 auto 20px;
}
.sg-icon { font-size: 2.8rem; margin-bottom: 10px; }
.sg-title { font-size: 1.25rem; font-weight: 900; color: var(--text); margin-bottom: 8px; letter-spacing: -0.3px; }
.sg-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 22px; }
.sg-perks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px;
}
.sg-perk {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px;
  background: rgba(99,102,241,0.1); color: var(--accent);
  border: 1px solid rgba(99,102,241,0.25);
}
.sg-btns { display: flex; flex-direction: column; gap: 10px; }
.sg-btn-primary {
  display: block; width: 100%; padding: 14px; border-radius: 12px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
  transition: opacity 0.15s, transform 0.15s;
}
.sg-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.sg-btn-secondary {
  display: block; width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid var(--border2);
  cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text-muted);
  background: transparent; text-decoration: none; transition: background 0.15s;
}
.sg-btn-secondary:hover { background: var(--bg3); }
.sg-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }
@media (min-width: 540px) {
  .sg-overlay { align-items: center; padding-bottom: 0; }
  .sg-sheet { border-radius: 24px; max-width: 460px; width: calc(100% - 32px); }
}

/* ── Greeting Bar (homepage, logged-in) ───────────────────────────────────── */
.greeting-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; background: var(--card-bg); border-bottom: 1px solid var(--border);
  padding: 9px 20px; font-size: .83rem;
}
.gbar-hi { color: var(--text-muted); }
.gbar-hi strong { color: var(--text); }
.gbar-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gbar-link {
  display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: .74rem;
  font-weight: 700; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; white-space: nowrap; transition: background .15s;
}
.gbar-link:hover { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.4); color: #818cf8; }

/* ── Learn pages ──────────────────────────────────────────────────────────── */
.lrn-wrap { max-width: 940px; margin: 0 auto; padding: 0 1rem 4rem; }

/* Landing */
.lrn-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.lrn-hero h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.lrn-hero-sub { color: var(--text-muted); font-size: .9rem; max-width: 520px; margin: 0 auto; }
.lrn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 1.5rem 0; }
.lrn-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.lrn-card:hover { border-color: rgba(99,102,241,.5); box-shadow: 0 4px 20px rgba(99,102,241,.12); }
.lrn-card-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.lrn-card-body { flex: 1; }
.lrn-card-title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.lrn-card-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.lrn-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lrn-arrow { color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; transition: transform .15s; }
.lrn-card:hover .lrn-arrow { transform: translateX(4px); color: #818cf8; }
.lrn-level { font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; letter-spacing: .04em; }
.lrn-level-beginner { background: rgba(16,185,129,.15); color: #34d399; }
.lrn-level-intermediate { background: rgba(245,158,11,.15); color: #f59e0b; }
.lrn-mins { font-size: .7rem; color: var(--text-muted); }
.lrn-cta-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg,rgba(99,102,241,.12),rgba(124,58,237,.1));
  border: 1px solid rgba(99,102,241,.3); border-radius: 14px; padding: 18px 24px; margin-top: 1rem;
  font-size: .88rem; font-weight: 600; color: var(--text);
}
.lrn-cta-btn {
  display: inline-block; background: linear-gradient(135deg,#6366f1,#7c3aed); color: #fff;
  border-radius: 9px; padding: 9px 20px; font-size: .82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: opacity .15s;
}
.lrn-cta-btn:hover { opacity: .9; }

/* Article layout */
.lrn-article { max-width: 720px; margin: 0 auto; padding-top: 1.2rem; }
.lrn-back { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--text-muted); text-decoration: none; margin-bottom: 1.2rem; }
.lrn-back:hover { color: var(--text); }
.lrn-article-hdr { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.lrn-art-icon { font-size: 2.5rem; flex-shrink: 0; }
.lrn-article-hdr h1 { font-size: 1.4rem; font-weight: 800; margin: 0 0 6px; }
.lrn-art-meta { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--text-muted); }
.lrn-section { margin-bottom: 2rem; }
.lrn-section h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; color: var(--text); }
.lrn-section p { font-size: .88rem; line-height: 1.7; color: var(--text-muted); margin-bottom: .75rem; }
.lrn-list { padding-left: 1.2rem; margin: .5rem 0 .75rem; }
.lrn-list li { font-size: .88rem; line-height: 1.7; color: var(--text-muted); margin-bottom: .4rem; }
.lrn-list li strong { color: var(--text); }
.lrn-link { color: #818cf8; text-decoration: underline; }
.lrn-link:hover { color: #a5b4fc; }
.lrn-callout { border-radius: 10px; padding: 12px 16px; font-size: .84rem; line-height: 1.6; margin: 1rem 0; }
.lrn-callout-green { background: rgba(16,185,129,.08); border-left: 3px solid #10b981; color: var(--text-muted); }
.lrn-callout-amber { background: rgba(245,158,11,.08); border-left: 3px solid #f59e0b; color: var(--text-muted); }
.lrn-callout strong { color: var(--text); }
.lrn-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin: .75rem 0; }
.lrn-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.lrn-table th { text-align: left; padding: 9px 12px; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg2); font-weight: 600; }
.lrn-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.lrn-table tr:last-child td { border-bottom: none; }
.lrn-green { color: #10b981; font-weight: 600; }
.lrn-red { color: #ef4444; font-weight: 600; }
.lrn-nav-btns { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.lrn-nav-btn { display: inline-block; padding: 8px 16px; border-radius: 8px; font-size: .8rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text-muted); background: var(--card-bg); transition: background .15s; }
.lrn-nav-btn:hover { background: var(--bg3); color: var(--text); }
.lrn-nav-btn-next { background: linear-gradient(135deg,rgba(99,102,241,.15),rgba(124,58,237,.1)); border-color: rgba(99,102,241,.3); color: #818cf8; }
.lrn-nav-btn-next:hover { background: linear-gradient(135deg,rgba(99,102,241,.25),rgba(124,58,237,.18)); }
.lrn-bottom-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; font-size: .88rem; font-weight: 600; margin-top: .5rem; }

/* Candlestick diagram */
.lrn-candle-demo { display: flex; justify-content: center; margin: 1.5rem 0; }
.lrn-candle-diagram { text-align: center; }
.lrn-candle-row { display: flex; justify-content: center; gap: 40px; margin-bottom: 12px; }
.lrn-candle-box { position: relative; display: flex; flex-direction: column; align-items: center; width: 60px; }
.lrn-candle-wick-top, .lrn-candle-wick-bot { width: 2px; height: 30px; background: var(--text-muted); }
.lrn-candle-body-bull { width: 22px; height: 50px; background: #10b981; border-radius: 2px; }
.lrn-candle-body-bear { width: 22px; height: 50px; background: #ef4444; border-radius: 2px; }
.lrn-candle-lbl { position: absolute; font-size: .6rem; color: var(--text-muted); white-space: nowrap; }
.lrn-candle-lbl-top { top: -18px; }
.lrn-candle-lbl-open { top: 34px; right: -64px; }
.lrn-candle-lbl-close { bottom: 22px; right: -64px; }
.lrn-candle-lbl-bot { bottom: -18px; }
.lrn-candle-legend { display: flex; justify-content: center; gap: 24px; font-size: .75rem; }
.lrn-candle-legend-bull { color: #10b981; font-weight: 700; }
.lrn-candle-legend-bear { color: #ef4444; font-weight: 700; }

/* Pattern cards */
.lrn-pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 1rem 0; }
.lrn-pattern-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.lrn-pattern-bull { border-top: 3px solid #10b981; }
.lrn-pattern-bear { border-top: 3px solid #ef4444; }
.lrn-pattern-neutral { border-top: 3px solid var(--text-muted); }
.lrn-pattern-name { font-size: .85rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.lrn-pattern-mini { display: flex; justify-content: center; align-items: flex-end; gap: 4px; min-height: 60px; margin-bottom: 10px; }
.lrn-mini-pair, .lrn-mini-three { display: flex; align-items: flex-end; gap: 4px; }
.lrn-mini-candle { width: 14px; background: var(--text-muted); border-radius: 2px; position: relative; }
.lrn-mini-hammer { height: 36px; background: #10b981; border-top: none; width: 14px; }
.lrn-mini-hammer::before { content:""; position:absolute; bottom:100%; left:50%; transform:translateX(-50%); width:2px; height:8px; background:#10b981; }
.lrn-mini-hammer::after  { content:""; position:absolute; top:100%;  left:50%; transform:translateX(-50%); width:2px; height:24px; background:#10b981; }
.lrn-mini-shooting { height: 36px; background: #ef4444; width: 14px; }
.lrn-mini-shooting::before { content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%); width:2px; height:8px; background:#ef4444; }
.lrn-mini-shooting::after  { content:""; position:absolute; bottom:100%; left:50%; transform:translateX(-50%); width:2px; height:24px; background:#ef4444; }
.lrn-mini-doji { height: 4px; background: var(--text-muted); width: 14px; margin-bottom: 28px; }
.lrn-mini-doji::before { content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:2px; height:50px; background:var(--text-muted); }
.lrn-mini-bull-large { height: 52px; background: #10b981; width: 14px; }
.lrn-mini-bull-small { height: 24px; background: #10b981; width: 14px; }
.lrn-mini-bear-large { height: 52px; background: #ef4444; width: 14px; }
.lrn-mini-bear-small { height: 24px; background: #ef4444; width: 14px; }
.lrn-pattern-desc { font-size: .74rem; color: var(--text-muted); line-height: 1.5; }

/* Enterprise SaaS layer */
:root {
  --zs-surface: rgba(255,255,255,.96);
  --zs-surface-2: #f8fafc;
  --zs-line: #dbe3ef;
  --zs-ink: #0f172a;
  --zs-muted: #64748b;
  --zs-brand: #0f172a;
  --zs-blue: #2563eb;
  --zs-good: #059669;
  --zs-bad: #dc2626;
  --zs-warn: #d97706;
  --zs-radius: 8px;
  --zs-shadow: 0 10px 30px rgba(15,23,42,.08);
}
html.dark {
  --zs-surface: rgba(15,23,42,.92);
  --zs-surface-2: rgba(30,41,59,.82);
  --zs-line: rgba(148,163,184,.22);
  --zs-ink: #f8fafc;
  --zs-muted: #94a3b8;
  --zs-brand: #f8fafc;
  --zs-shadow: 0 18px 38px rgba(0,0,0,.32);
}
.zs-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 18px 48px;
}
.zs-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 18px;
}
.zs-kicker {
  color: var(--zs-blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.zs-title {
  color: var(--zs-ink);
  font-size: clamp(1.35rem,2.4vw,2.1rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0;
}
.zs-subtitle {
  color: var(--zs-muted);
  font-size: .88rem;
  line-height: 1.55;
  max-width: 760px;
  margin-top: 6px;
}
.zs-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.zs-card {
  background: var(--zs-surface);
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  box-shadow: var(--zs-shadow);
}
.zs-panel {
  background: var(--zs-surface);
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  padding: 16px;
}
.zs-grid-4 {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}
.zs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.zs-kpi {
  background: var(--zs-surface);
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  padding: 14px 16px;
}
.zs-kpi-label {
  color: var(--zs-muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.zs-kpi-value {
  color: var(--zs-ink);
  font-size: 1.35rem;
  font-weight: 850;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.zs-kpi-note {
  color: var(--zs-muted);
  font-size: .74rem;
  margin-top: 4px;
}
.zs-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--zs-line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--zs-muted);
  background: var(--zs-surface);
  white-space: nowrap;
}
.zs-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.zs-status.live,.zs-pos { color: var(--zs-good); border-color: rgba(5,150,105,.28); background: rgba(5,150,105,.08); }
.zs-status.warn { color: var(--zs-warn); border-color: rgba(217,119,6,.28); background: rgba(217,119,6,.08); }
.zs-status.risk,.zs-neg { color: var(--zs-bad); border-color: rgba(220,38,38,.28); background: rgba(220,38,38,.08); }
.zs-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--zs-line);
  margin-bottom: 14px;
  overflow-x: auto;
}
.zs-tab {
  border: 0;
  background: transparent;
  color: var(--zs-muted);
  font-weight: 800;
  font-size: .82rem;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.zs-tab.active {
  color: var(--zs-ink);
  border-bottom-color: var(--zs-blue);
}
.zs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  background: var(--zs-surface);
}
.zs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.zs-table th {
  text-align: left;
  color: var(--zs-muted);
  background: var(--zs-surface-2);
  border-bottom: 1px solid var(--zs-line);
  padding: 9px 11px;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.zs-table td {
  color: var(--zs-ink);
  border-bottom: 1px solid var(--zs-line);
  padding: 10px 11px;
  vertical-align: middle;
}
.zs-table tr:last-child td { border-bottom: 0; }
.zs-empty {
  border: 1px dashed var(--zs-line);
  border-radius: var(--zs-radius);
  padding: 22px;
  color: var(--zs-muted);
  background: var(--zs-surface-2);
  text-align: center;
}
.zs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  background: var(--zs-surface);
  color: var(--zs-ink);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.zs-btn.primary { background: var(--zs-brand); color: #fff; border-color: var(--zs-brand); }
.zs-btn.danger { background: var(--zs-bad); color: #fff; border-color: var(--zs-bad); }
@media(max-width:900px){
  .zs-page-head { flex-direction: column; }
  .zs-toolbar { justify-content: flex-start; }
  .zs-grid-4,.zs-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px){
  .zs-shell { padding: 12px 12px 36px; }
  .zs-grid-4,.zs-grid-3 { grid-template-columns: 1fr; }
}

.page-theme-signals .cmd-head,
.page-theme-signals .cmd-kpis {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.page-theme-signals .cmd-head {
  padding: 8px 2px 0;
}
.page-theme-signals .cmd-kpis {
  margin-bottom: 16px;
}
.page-theme-signals .cmd-kpis .zs-kpi-value.zs-pos,
.page-theme-signals .cmd-kpis .zs-kpi-value.zs-neg {
  border-radius: 6px;
  padding: 2px 0;
  background: transparent;
  border: 0;
}

/* Enterprise audit table pass for live trading screens */
.page-theme-signals .sec,
.page-theme-signals .sig3-sec,
.page-theme-signals .mpt-section {
  color: var(--zs-muted) !important;
  font-size: .68rem !important;
  font-weight: 850 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--zs-line) !important;
  padding-bottom: 8px !important;
}
.page-theme-signals .sec-count {
  color: var(--zs-ink) !important;
  font-size: .76rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.page-theme-signals .tw,
.page-theme-signals .sig3-tw,
.page-theme-signals .dash-table-wrap {
  border: 1px solid var(--zs-line) !important;
  border-radius: var(--zs-radius) !important;
  background: var(--zs-surface) !important;
  box-shadow: none !important;
}
.page-theme-signals table,
.page-theme-signals .sig3-t {
  border-collapse: collapse !important;
}
.page-theme-signals th,
.page-theme-signals .sig3-t th {
  background: var(--zs-surface-2) !important;
  color: var(--zs-muted) !important;
  border-bottom: 1px solid var(--zs-line) !important;
  font-size: .63rem !important;
  letter-spacing: .08em !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  padding: 9px 11px !important;
}
.page-theme-signals td,
.page-theme-signals .sig3-t td {
  border-bottom: 1px solid var(--zs-line) !important;
  padding: 10px 11px !important;
  color: var(--zs-ink);
}
.page-theme-signals tr:last-child td {
  border-bottom: 0 !important;
}
.page-theme-signals .tt-e,
.page-theme-signals .sig3-te,
.page-theme-signals .db-empty,
.page-theme-signals .mpt-empty {
  color: var(--zs-muted) !important;
  background: var(--zs-surface-2) !important;
  border-radius: var(--zs-radius) !important;
}
.page-theme-signals button[id*="-tab-"],
.page-theme-signals .hist-tab,
.page-theme-signals .db-tab,
.page-theme-signals .ptk-tab {
  border-radius: 7px !important;
  border: 1px solid var(--zs-line) !important;
  min-height: 28px;
  font-weight: 800 !important;
}
.page-theme-signals td .sig3-rc,
.page-theme-signals .reason-badge {
  border-radius: 999px !important;
  padding: 2px 8px !important;
  font-size: .66rem !important;
  font-weight: 800 !important;
}
.cmd-explain-grid {
  max-width: 1280px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.cmd-explain-card {
  background: var(--zs-surface);
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  padding: 14px 16px;
}
.cmd-explain-title {
  color: var(--zs-ink);
  font-size: .86rem;
  font-weight: 850;
  margin-bottom: 10px;
}
.cmd-explain-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--zs-line);
}
.cmd-explain-row span {
  color: var(--zs-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cmd-explain-row b {
  color: var(--zs-ink);
  font-size: .8rem;
  text-align: right;
}
@media(max-width:760px){
  .cmd-explain-grid { grid-template-columns: 1fr; }
  .cmd-explain-row { flex-direction: column; gap: 3px; }
  .cmd-explain-row b { text-align: left; }
}

/* Admin console enterprise pass */
.admin-wrap,
.admin-container,
.admin-page,
.admin-dashboard {
  max-width: 1320px !important;
}
.admin-wrap h1,
.admin-container h1,
.admin-page h1,
.admin-dashboard h1 {
  color: var(--zs-ink) !important;
  font-size: clamp(1.3rem,2vw,1.85rem) !important;
  letter-spacing: 0 !important;
}
.admin-stat-card,
.admin-quick-card,
.admin-card,
.admin-panel {
  border: 1px solid var(--zs-line) !important;
  border-radius: var(--zs-radius) !important;
  background: var(--zs-surface) !important;
  box-shadow: none !important;
}
.admin-stat-label {
  color: var(--zs-muted) !important;
  font-size: .66rem !important;
  font-weight: 850 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
.admin-stat-num,
.admin-stat-value {
  color: var(--zs-ink) !important;
  font-variant-numeric: tabular-nums;
}
.admin-quick-card h3,
.admin-card h3,
.admin-panel h3 {
  color: var(--zs-ink) !important;
  font-size: .95rem !important;
  letter-spacing: 0 !important;
}
.admin-quick-card p,
.admin-card p,
.admin-panel p {
  color: var(--zs-muted) !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
}
.admin-wrap table,
.admin-container table,
.admin-page table {
  border-collapse: collapse !important;
}
.admin-wrap th,
.admin-container th,
.admin-page th {
  background: var(--zs-surface-2) !important;
  color: var(--zs-muted) !important;
  font-size: .64rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--zs-line) !important;
}
.admin-wrap td,
.admin-container td,
.admin-page td {
  border-bottom: 1px solid var(--zs-line) !important;
}
.admin-wrap .btn-primary,
.admin-container .btn-primary,
.admin-page .btn-primary,
.admin-wrap .btn-secondary,
.admin-container .btn-secondary,
.admin-page .btn-secondary {
  border-radius: var(--zs-radius) !important;
  font-weight: 850 !important;
}
.admin-rail {
  position: sticky;
  top: calc(var(--nav-height, 72px) + 12px);
  float: left;
  width: 190px;
  margin: 16px 0 0 16px;
  padding: 10px;
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  background: var(--zs-surface);
  box-shadow: var(--zs-shadow);
  z-index: 50;
}
.admin-rail-title {
  color: var(--zs-muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 8px 10px;
}
.admin-rail a {
  display: block;
  color: var(--zs-muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  border-radius: 7px;
  padding: 8px 9px;
  margin-bottom: 2px;
}
.admin-rail a:hover,
.admin-rail a.active {
  background: var(--zs-brand);
  color: #fff;
}
.admin-rail ~ .ticker-wrap + .admin-wrap,
.admin-rail ~ .ticker-wrap + .container,
.admin-rail ~ .ticker-wrap + main {
  margin-left: 220px !important;
}
@media(max-width:1100px){
  .admin-rail { display: none; }
  .admin-rail ~ .ticker-wrap + .admin-wrap,
  .admin-rail ~ .ticker-wrap + .container,
  .admin-rail ~ .ticker-wrap + main {
    margin-left: auto !important;
  }
}

/* Reports, backtests, and paper-trading polish */
.page-theme-dashboard .dash-hero-title,
.page-theme-dashboard h1,
.pt2-hero-title,
.picks-hero-title {
  letter-spacing: 0 !important;
}
.page-theme-dashboard .dash-chart-card,
.page-theme-dashboard .dash-table-wrap,
.page-theme-dashboard .dash-kpi,
.pt2-trade-card,
.pt2-stat,
.pt2-risk-card,
.pt2-gate,
.pt2-credits {
  border-radius: var(--zs-radius) !important;
  border: 1px solid var(--zs-line) !important;
  box-shadow: none !important;
  background: var(--zs-surface) !important;
}
.page-theme-dashboard .dash-kpi-label,
.pt2-card-title,
.pt2-risk-lbl,
.pt2-tabs,
.pt2-stat-label {
  letter-spacing: .06em !important;
}
.page-theme-dashboard .dash-table th,
.page-theme-dashboard .dash-table td,
.pt2-trade-card th,
.pt2-trade-card td {
  border-color: var(--zs-line) !important;
}
.page-theme-dashboard .dash-table th,
.pt2-trade-card th {
  background: var(--zs-surface-2) !important;
  color: var(--zs-muted) !important;
  font-size: .64rem !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}
.pt2-card-hdr {
  border-radius: var(--zs-radius) var(--zs-radius) 0 0 !important;
  background: var(--zs-brand) !important;
}
.pt2-tab-btn {
  border-radius: 0 !important;
  letter-spacing: 0 !important;
}
.pt2-tab-btn.active {
  color: var(--zs-good) !important;
  border-bottom-color: var(--zs-good) !important;
}
.pt2-cost-disp {
  border-radius: var(--zs-radius) !important;
  font-variant-numeric: tabular-nums;
}
.pt2-risk-card.sl {
  background: rgba(220,38,38,.06) !important;
  border-color: rgba(220,38,38,.22) !important;
}
.pt2-risk-card.tgt {
  background: rgba(5,150,105,.06) !important;
  border-color: rgba(5,150,105,.22) !important;
}
.picks-disclaimer-banner,
.lrn-callout,
.sig-unlock-bar {
  border-radius: var(--zs-radius) !important;
}
.data-trust-note {
  color: var(--zs-muted);
  font-size: .74rem;
  line-height: 1.5;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--zs-line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--zs-muted);
  background: var(--zs-surface);
  font-size: .68rem;
  font-weight: 800;
}
.trust-pill.live { color: var(--zs-good); border-color: rgba(5,150,105,.24); background: rgba(5,150,105,.08); }
.trust-pill.cached { color: var(--zs-warn); border-color: rgba(217,119,6,.24); background: rgba(217,119,6,.08); }
.trust-pill.risk { color: var(--zs-bad); border-color: rgba(220,38,38,.24); background: rgba(220,38,38,.08); }

/* Uniform strategy workspace for Command Center */
.strategy-switchboard {
  max-width: 1280px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.strategy-tab {
  text-align: left;
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  background: var(--zs-surface);
  padding: 13px 15px;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.strategy-tab:hover {
  border-color: rgba(37,99,235,.35);
  transform: translateY(-1px);
}
.strategy-tab.act {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.strategy-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.strategy-tab-top b {
  color: var(--zs-ink);
  font-size: .95rem;
  font-weight: 900;
}
.strategy-tab-top em {
  font-style: normal;
  color: var(--zs-muted);
  border: 1px solid var(--zs-line);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.strategy-tab-mid {
  display: block;
  color: var(--zs-muted);
  font-size: .76rem;
  margin-top: 6px;
}
.strategy-tab-bottom {
  display: block;
  font-size: 1.12rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}

/* Trading OS enterprise page shell */
.tos-layout {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 18px;
  padding: 18px;
}
.tos-side {
  position: sticky;
  top: calc(var(--nav-height, 72px) + 14px);
  align-self: start;
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  background: var(--zs-surface);
  padding: 10px;
  box-shadow: var(--zs-shadow);
}
.tos-side-title {
  color: var(--zs-muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 9px 10px;
}
.tos-side a {
  display: block;
  color: var(--zs-muted);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 800;
  border-radius: 7px;
  padding: 8px 9px;
  margin-bottom: 2px;
}
.tos-side a:hover,
.tos-side a.active {
  background: var(--zs-brand);
  color: #fff;
}
.tos-main {
  min-width: 0;
}
.tos-grid-2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.strategy-mgmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 12px;
}
.strategy-mgmt-card {
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  background: var(--zs-surface);
  padding: 16px;
}
.strategy-mgmt-card h3 {
  color: var(--zs-ink);
  font-size: 1rem;
  margin: 0 0 8px;
}
.strategy-mgmt-card p {
  color: var(--zs-muted);
  font-size: .82rem;
  line-height: 1.5;
}
.strategy-mgmt-pnl {
  margin-top: 14px;
  color: var(--zs-ink);
  font-size: 1.45rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.strategy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
@media(max-width:980px){
  .tos-layout { grid-template-columns: 1fr; padding: 12px; }
  .tos-side { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .tos-side-title { display: none; }
  .tos-side a { white-space: nowrap; }
  .tos-grid-2 { grid-template-columns: 1fr; }
}
.strategy-panel-head {
  max-width: 1280px;
  margin: 0 auto 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  background: var(--zs-surface);
  padding: 16px;
}
.strategy-kicker {
  color: var(--zs-blue);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.strategy-panel-head h2 {
  color: var(--zs-ink);
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: 0;
}
.strategy-panel-head p {
  color: var(--zs-muted);
  font-size: .82rem;
  line-height: 1.5;
  margin: 6px 0 0;
  max-width: 820px;
}
.strategy-head-grid {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 260px;
}
@media(max-width:760px){
  .strategy-switchboard { grid-template-columns: 1fr; }
  .strategy-panel-head { flex-direction: column; }
  .strategy-head-grid { justify-content: flex-start; min-width: 0; }
}

/* Premium multicolour top navigation treatment */
:root { --nav-height: 74px; }

.topnav,
html.dark .topnav {
  background-color: #0b1238;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(80, 100, 255, 0.28), transparent 30%),
    radial-gradient(circle at 55% 40%, rgba(178, 55, 255, 0.22), transparent 34%),
    radial-gradient(circle at 92% 50%, rgba(0, 220, 195, 0.18), transparent 28%),
    linear-gradient(100deg, #070b24 0%, #101a67 20%, #3137d6 38%, #7c2ed6 56%, #174f9d 76%, #08a7a0 100%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 24px rgba(16,24,64,0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: var(--nav-height);
  padding-inline: clamp(24px, 2.2vw, 36px);
  gap: 8px;
}

.topnav .brand {
  margin-right: clamp(24px, 2.2vw, 34px);
  filter: none;
}

.topnav .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 4px 16px rgba(30,41,180,0.38);
}

.topnav .brand:hover .brand-logo {
  transform: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.20),
    0 6px 18px rgba(30,41,180,0.46);
}

.topnav .brand-wordmark,
.topnav .brand span {
  background: none;
  color: #f4f7ff;
  -webkit-text-fill-color: #f4f7ff;
  filter: none;
}

.topnav .brand-wordmark {
  font-size: 22px;
  letter-spacing: 0;
}

.topnav .brand-wordmark em,
.topnav .brand span em {
  color: #67e8d7;
  -webkit-text-fill-color: #67e8d7;
}

.topnav .nav-desktop-links {
  gap: clamp(6px, 0.65vw, 12px);
}

.topnav .nav-desktop-links a,
.topnav .nav-more-btn,
html.dark .topnav .nav-desktop-links a,
html.dark .topnav .nav-more-btn {
  color: rgba(255,255,255,0.82);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px clamp(12px, 0.95vw, 16px);
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.topnav .nav-desktop-links a:hover,
.topnav .nav-more-btn:hover,
html.dark .topnav .nav-desktop-links a:hover,
html.dark .topnav .nav-more-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.topnav .nav-desktop-links a.active,
.topnav .nav-more-btn.active,
html.dark .topnav .nav-desktop-links a.active,
html.dark .topnav .nav-more-btn.active {
  color: #fff;
  background: rgba(5,12,35,0.72);
  border-color: rgba(255,255,255,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 6px 16px rgba(0,0,0,0.22);
}

.topnav #nav-drop-admin .nav-more-btn:not(.active) {
  background: rgba(5,12,35,0.18);
  border-color: rgba(255,255,255,0.10);
}

.topnav .nav-more-chevron { color: rgba(255,255,255,0.78); }

.topnav .nav-live-dot {
  width: 8px;
  height: 8px;
  background: #22c77a;
  box-shadow: 0 0 0 4px rgba(34,199,122,0.10);
  animation: none;
}

.topnav .nav-hot-link::after {
  color: #46e3a2;
  background: rgba(5,30,24,0.55);
  border-color: rgba(32,214,139,0.55);
  border-radius: 6px;
  padding: 2px 6px;
}

.topnav .nav-desktop-links > a[href="/holdings"] {
  color: #dffefa !important;
  background: rgba(0,170,150,0.12) !important;
  border-color: rgba(58,227,205,0.40) !important;
}

.topnav .nav-desktop-links > a[href="/holdings"]:hover {
  color: #fff !important;
  background: rgba(0,170,150,0.20) !important;
  border-color: rgba(105,240,221,0.55) !important;
}

.topnav .nav-desktop-links > a[href="/holdings"].active {
  background: rgba(5,12,35,0.72) !important;
  border-color: rgba(255,255,255,0.24) !important;
}

.topnav .btn-dark-toggle,
html.dark .topnav .btn-dark-toggle {
  min-height: 38px;
  padding: 8px 13px;
  color: rgba(255,255,255,0.88);
  background: rgba(5,12,35,0.30);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 11px;
}

.topnav .btn-dark-toggle:hover,
html.dark .topnav .btn-dark-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.32);
}

.topnav .nav-avatar {
  width: 42px;
  height: 42px;
  color: #fff;
  background: #101a3d;
  border: 2px solid transparent;
  background-image:
    linear-gradient(#101a3d, #101a3d),
    linear-gradient(135deg, #8b5cf6, #2dd4bf);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 16px rgba(14,20,55,0.32);
}

.topnav .nav-avatar:hover {
  transform: none;
  box-shadow:
    0 0 0 3px rgba(94,234,212,0.12),
    0 5px 18px rgba(14,20,55,0.38);
}

.topnav .btn-nav-login,
html.dark .topnav .btn-nav-login {
  color: rgba(255,255,255,0.88);
  background: rgba(5,12,35,0.30);
  border-color: rgba(255,255,255,0.20);
}

.topnav .btn-nav-login:hover,
html.dark .topnav .btn-nav-login:hover {
  color: #fff;
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.32);
}

.topnav .hamburger span,
html.dark .topnav .hamburger span { background: rgba(255,255,255,0.88); }

@media (max-width: 1160px) {
  .topnav { padding-inline: 20px; }
  .topnav .brand { margin-right: 18px; }
  .topnav .nav-desktop-links { gap: 5px; }
  .topnav .nav-desktop-links a,
  .topnav .nav-more-btn { padding-inline: 11px; }
}

@media (max-width: 768px) {
  .topnav,
  html.dark .topnav {
    height: var(--nav-height);
    padding-inline: 14px;
  }
  .topnav > .brand { margin-right: auto; }
  .topnav .brand-logo { width: 36px; height: 36px; }
  .topnav .brand-wordmark { font-size: 20px; }
}


/* === PHASE 2: ZEROSCREEN v2.0 PREMIUM DESIGN SYSTEM === */
.card:hover{transform:translateY(-2px);box-shadow:0 20px 40px rgba(0,0,0,.3),0 0 0 1px rgba(148,163,184,.12)!important;transition:transform .22s ease,box-shadow .22s ease}
.strategy-card{background:rgba(15,23,42,.82)!important;border:1px solid rgba(99,102,241,.18)!important;border-radius:18px!important;transition:all .25s ease!important;overflow:hidden!important}
.strategy-card:hover{border-color:rgba(99,102,241,.5)!important;box-shadow:0 16px 48px rgba(99,102,241,.22),inset 0 1px 0 rgba(255,255,255,.06)!important;transform:translateY(-3px)!important}
.nav-live-dot{animation:pulseDot 1.8s infinite!important}
@keyframes pulseDot{0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.7)}50%{box-shadow:0 0 0 5px rgba(16,185,129,0)}}
@media(max-width:768px){table{display:block!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:12px!important}.news-trade-grid{grid-template-columns:1fr!important}}
@media(max-height:768px){.chart-container,.tv-chart{height:calc(100vh - 280px)!important;min-height:320px!important}}
.pnl-positive,.text-green,.profit{color:#10b981!important;font-weight:700!important}
.pnl-negative,.text-red,.loss{color:#ef4444!important;font-weight:700!important}
.container,main,.content{animation:fadeInUp .35s ease both!important}
@keyframes fadeInUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
a[href='/tradeops'].nav-hot-link{background:linear-gradient(90deg,rgba(99,102,241,.18),rgba(139,92,246,.12))!important;border:1px solid rgba(99,102,241,.3)!important;color:#a5b4fc!important}
a[href='/tradeops'].nav-hot-link:hover{background:linear-gradient(90deg,rgba(99,102,241,.32),rgba(139,92,246,.22))!important;color:#c7d2fe!important}


/* ============================================================
   PHASE 3: DEEP FEATURE LINKING & MOBILE UX POLISH
   ============================================================ */

/* --- Strategies Page: 6 Core Strategies Grid --- */
.strat-core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 32px;
}

.strat-card-v3 {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.strat-card-v3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.strat-card-v3:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.15);
}

.strat-card-v3:hover::before {
  opacity: 1;
}

.strat-card-v3.quality-badge::before {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.strat-card-v3.unlimited-badge::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.strat-v3-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.strat-v3-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.3;
}

.strat-v3-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  white-space: nowrap;
}

.strat-v3-badge.quality {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.strat-v3-badge.unlimited {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.strat-v3-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.strat-v3-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.45);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.strat-v3-spec-item span {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.strat-v3-spec-item b {
  display: block;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.strat-v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
}

.strat-v3-btn:hover {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

/* --- Mobile View Enhancements --- */
@media (max-width: 768px) {
  .strat-core-grid {
    grid-template-columns: 1fr;
  }
  .strat-hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .strat-hero {
    padding: 20px 16px !important;
  }
  .strat-title {
    font-size: 1.5rem !important;
  }
  
  /* Shadow Monitor Mobile Optimization */
  .sm-summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .sm-key-tiles {
    grid-template-columns: 1fr !important;
  }
  .sm-segment {
    flex-wrap: wrap !important;
  }
  .sm-segment button {
    flex: 1 1 auto !important;
    font-size: 0.78rem !important;
    padding: 6px 10px !important;
  }
  
  /* Responsive Tables with horizontal scroll affordance */
  .table-responsive, table {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Card Padding adjustments */
  .card, .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* --- Sticky topnav on mobile --- */
@media (max-width: 900px) {
  .topnav {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: blur(18px) !important;
    background: rgba(10, 14, 39, 0.92) !important;
  }
}

/* ==========================================================================
   ZeroScreen 2.0 — Modern Fintech Design Overhaul (Raycast/Linear Aesthetics)
   ========================================================================== */

:root {
  --zs-font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --zs-font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --zs-bg-deep: #060913;
  --zs-bg-surface: rgba(12, 18, 34, 0.85);
  --zs-bg-card: rgba(15, 23, 42, 0.75);
  --zs-border-glass: rgba(255, 255, 255, 0.08);
  --zs-border-hover: rgba(99, 102, 241, 0.35);
  --zs-border-focus: rgba(56, 189, 248, 0.5);
  --zs-glow-blue: rgba(37, 99, 235, 0.25);
  --zs-glow-green: rgba(16, 185, 129, 0.25);
  --zs-glow-rose: rgba(244, 63, 94, 0.25);
}

/* Base Body Enhancements */
body {
  font-family: var(--zs-font-sans) !important;
  background-color: var(--zs-bg-deep) !important;
  color: #f1f5f9 !important;
  letter-spacing: -0.01em;
}

/* Glowing Background Mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.06), transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.05), transparent 50%),
    radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Top Navigation Floating Glass Bar */
.topnav {
  background: rgba(8, 13, 28, 0.88) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.topnav .brand-wordmark {
  background: linear-gradient(135deg, #a5b4fc 0%, #34d399 50%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
}

.topnav .nav-desktop-links a {
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.topnav .nav-desktop-links a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.topnav .nav-desktop-links a.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(52, 211, 153, 0.25)) !important;
  border: 1px solid rgba(129, 140, 248, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Strategy Carousel Cards */
.strategy-cards-carousel, .screener-strategies {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 8px 4px 16px !important;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.strategy-card {
  flex: 0 0 auto !important;
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: #cbd5e1 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.strategy-card:hover {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2) !important;
}

.strategy-card.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(16, 185, 129, 0.25)) !important;
  border: 1.5px solid #818cf8 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45) !important;
}

.strategy-card .s-emoji {
  font-size: 18px !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Screener Hero & Stat Cards */
.screener-hero {
  margin-bottom: 24px !important;
  padding: 24px 28px !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(10, 15, 30, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
}

.screener-hero-text h1 {
  font-size: 26px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.sh-stat {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 12px 20px !important;
  backdrop-filter: blur(12px) !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.sh-stat:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.sh-stat strong {
  font-size: 20px !important;
  font-weight: 900 !important;
  font-family: var(--zs-font-mono) !important;
  background: linear-gradient(135deg, #60a5fa, #a78bfa) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.sh-stat span {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Modern Filter Form */
.filter-form {
  background: rgba(15, 23, 42, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 22px 26px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3) !important;
}

.filter-group label {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
}

.filter-group input, .filter-group select {
  background: rgba(2, 6, 23, 0.7) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
}

.filter-group input:focus, .filter-group select:focus {
  background: rgba(2, 6, 23, 0.95) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

/* Modern Data Table */
.table-wrap, .screener-table-wrap, .zs-table-wrap {
  background: rgba(11, 17, 32, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px) !important;
}

table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 13.5px !important;
}

table th {
  background: rgba(15, 23, 42, 0.95) !important;
  color: #94a3b8 !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}

table td {
  padding: 13px 16px !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  font-variant-numeric: tabular-nums !important;
  transition: background 0.15s ease !important;
}

table tr:hover td {
  background: rgba(99, 102, 241, 0.07) !important;
}

table tr:last-child td {
  border-bottom: none !important;
}

.sym-link {
  font-weight: 800 !important;
  color: #60a5fa !important;
  text-decoration: none !important;
  font-family: var(--zs-font-mono) !important;
  transition: color 0.15s ease !important;
}

.sym-link:hover {
  color: #93c5fd !important;
  text-decoration: underline !important;
}

/* Badges & Pills */
.pill-up {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 3px 9px !important;
  border-radius: 20px !important;
  font-variant-numeric: tabular-nums !important;
}

.pill-dn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: rgba(244, 63, 94, 0.15) !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
  color: #fb7185 !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 3px 9px !important;
  border-radius: 20px !important;
  font-variant-numeric: tabular-nums !important;
}

.roce-hi {
  color: #34d399 !important;
  font-weight: 800 !important;
}

.roce-md {
  color: #60a5fa !important;
  font-weight: 700 !important;
}

.roce-lo {
  color: #94a3b8 !important;
}

.badge-debtfree {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #7dd3fc !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
}

/* Primary Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #10b981 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 10px 22px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
  transition: all 0.2s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.55) !important;
}

/* TradeOps Layout & Enterprise Enhancements */
.tos-layout {
  max-width: 1600px !important;
  padding: 24px !important;
  gap: 24px !important;
}

.tos-side {
  background: rgba(11, 17, 34, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
}

.tos-side a {
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: all 0.18s ease !important;
}

.tos-side a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  transform: translateX(3px) !important;
}

.tos-side a.active {
  background: linear-gradient(135deg, #4f46e5, #06b6d4) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4) !important;
}

.zs-kpi, .kpi-card {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.zs-kpi:hover, .kpi-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.zs-kpi-value {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  font-family: var(--zs-font-mono) !important;
  letter-spacing: -0.02em !important;
}

/* Console Log View */
.log-console, #server-logs-container {
  background: #030712 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  font-family: var(--zs-font-mono) !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  padding: 16px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 10, 20, 0.8);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE CONSISTENCY FIXES — Resolves conflicting breakpoints across pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix 1: Restore nav z-index — line 5008 wrongly reduced it to 1000 from 10003,
   causing dropdowns/modals to overlap the sticky nav on tablet/mobile */
@media (max-width: 900px) {
  .topnav {
    z-index: 10003 !important;
  }
}

/* Fix 2: Hamburger bars — #475569 is invisible on the dark nav bg.
   Lighten to a readable slate-300 */
@media (max-width: 768px) {
  .hamburger span {
    background: #94a3b8 !important;
  }
}

/* Fix 3: Container padding — unify conflicting 16px vs 12px at 768px.
   Use 16px at 768px (line 2002 intent), true 12px only at 480px */
@media (max-width: 768px) {
  .container {
    padding: 16px !important;
  }
  .card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 12px !important;
  }
  .card {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Fix 4: Table layout — line 4792 sets display:block!important globally which
   breaks tables that are already inside .table-wrap scroll containers.
   Restore display:table inside scroll wrappers so column widths are preserved */
@media (max-width: 768px) {
  .table-wrap table,
  .screener-table-wrap table,
  .zs-table-wrap table,
  .sdp-metrics-table-wrap table {
    display: table !important;
    overflow-x: unset !important;
  }
  /* Keep the scroll on the wrapper itself, not the table element */
  .table-wrap,
  .screener-table-wrap,
  .zs-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Fix 5: Screener hero + filter form — remove 24-28px horizontal padding
   on small screens so content doesn't clip against screen edges */
@media (max-width: 768px) {
  .screener-hero {
    padding: 18px 16px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
  }
  .screener-hero-text h1 {
    font-size: 20px !important;
  }
  .filter-form {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }
  .sh-stat {
    padding: 10px 14px !important;
  }
}

/* Fix 6: TradeOps layout — .tos-layout has no mobile rule, stays at 24px
   padding with side-by-side sidebar on phones. Stack it vertically */
@media (max-width: 768px) {
  .tos-layout {
    padding: 12px !important;
    gap: 12px !important;
    flex-direction: column !important;
    display: flex !important;
  }
  .tos-side {
    width: 100% !important;
    border-radius: 14px !important;
    padding: 10px !important;
  }
  .tos-content {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Fix 7: KPI grids — standardise to 2-column across all KPI grids on mobile
   (dash, sdp, paper-trade, signals) for visual consistency */
@media (max-width: 480px) {
  .dash-kpi-grid,
  .sdp-kpi-grid,
  .pt-kpi-grid,
  .sig-stats-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* Fix 8: ZS KPI value size — 1.6rem on 375px screens clips on 2-col grids */
@media (max-width: 480px) {
  .zs-kpi-value {
    font-size: 1.25rem !important;
  }
  .zs-kpi, .kpi-card {
    padding: 14px 14px !important;
  }
}

/* Fix 9: Strategy mode / how-it-works grids — force 1-col on very small screens */
@media (max-width: 380px) {
  .strat-modes-grid,
  .strat-how-grid,
  .strat-preset-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Fix 10: Nav user dropdown — ensure it doesn't overflow viewport on mobile */
@media (max-width: 480px) {
  .nav-user-drop {
    right: -8px !important;
    min-width: 180px !important;
  }
  .nav-tier-drop {
    min-width: unset !important;
    width: calc(100vw - 32px) !important;
    flex-direction: column !important;
    right: -8px !important;
  }
  .nav-tier-drop .nav-tier-section {
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    padding: 6px 4px 0 4px !important;
  }
  .nav-tier-drop .nav-tier-section:first-child {
    border-top: none !important;
  }
}
