/* ================================================================
   LVL13.TECH — brand stylesheet  v3
   Dark, bold, mobile-first, crisp on retina
   ================================================================ */

:root {
  --bg:        #06080d;
  --panel:     #0d1117;
  --panel2:    #141b27;
  --border:    #1e2633;
  --text:      #e6edf3;
  --muted:     #7d8590;
  --green:     #3fb950;
  --red:       #f85149;
  --blue:      #00d4ff;
  --orange:    #ff8c00;
  --purple:    #a855f7;
  --pink:      #ec4899;
  --emerald:   #10b981;
  --gold:      #facc15;
  --radius:    10px;
  --pad:       20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --max:       1400px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg {
  max-width: 100%; display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  shape-rendering: geometricPrecision;
}
::selection { background: rgba(0,212,255,0.35); color: var(--text); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 42px; width: auto; display: block;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.55));
  /* keep SVG sharp on hi-DPI */
  shape-rendering: geometricPrecision;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}
.footer-robot { height: 30px; width: auto; filter: drop-shadow(0 0 4px rgba(0,212,255,0.35)); }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  padding: 8px 12px; font-size: 13px; font-weight: 500;
  color: var(--muted); border-radius: 6px;
  transition: color .15s, background .15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--panel2); }
.site-nav a.cta {
  background: var(--blue); color: var(--bg); font-weight: 700;
  margin-left: 8px; padding: 8px 16px;
}
.site-nav a.cta:hover { background: #00b8e0; color: var(--bg); }
.site-nav a.nav-login {
  border: 1px solid var(--border); color: var(--text); font-weight: 600;
  margin-left: 4px; padding: 7px 14px;
}
.site-nav a.nav-login:hover { border-color: var(--blue); color: var(--blue); background: transparent; }
.site-nav a.nav-dashboard {
  background: var(--blue); color: var(--bg); font-weight: 700;
  margin-left: 4px; padding: 8px 16px;
}
.site-nav a.nav-dashboard:hover { background: #00b8e0; color: var(--bg); }

.menu-toggle {
  display: none; background: transparent; border: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 1px; }

/* ============ MAIN ============ */
.app {
  flex: 1; width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 32px 24px 100px;
}
.loading { text-align: center; color: var(--muted); padding: 80px 0; font-size: 14px; }

h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.5px; line-height: 1.15; }
h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.2px; line-height: 1.25; }
h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase;
     letter-spacing: 0.6px; color: var(--muted); font-weight: 700; }
p  { margin: 0 0 12px; }
.sub { color: var(--muted); margin-bottom: 24px; font-size: 15px; max-width: 760px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 28px 0 12px; gap: 12px;
}
.section-head h3 { margin: 0; font-size: 14px; }
.section-head .more {
  color: var(--blue); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
}
.section-head .more:hover { text-decoration: underline; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  padding: 32px 260px 32px 32px;
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(168,85,247,0.04));
  border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 24px;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow {
  display: inline-block; padding: 5px 12px;
  background: rgba(0,212,255,0.12); border: 1px solid var(--blue);
  color: var(--blue); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin: 0 0 18px;
}
.hero h1 {
  font-size: 38px; max-width: 880px; line-height: 1.1; margin: 0 0 16px;
  color: var(--text); font-weight: 800; letter-spacing: -0.6px;
  text-shadow: 0 0 24px rgba(0,212,255,0.25);
}
.hero p { color: #b8c0cc; font-size: 16px; max-width: 760px; margin-bottom: 22px; line-height: 1.55; }
.hero p strong { color: var(--text); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-robot {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  height: 200px; width: auto; opacity: 0.92; pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(0,212,255,0.55));
  z-index: 1;
}

.btn {
  display: inline-flex; align-items: center;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .12s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--bg); }
.btn-secondary { background: var(--panel2); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: #2e3947; }

/* ============ GRIDS ============ */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ============ PANELS ============ */
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
}
.panel-tight { padding: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: transform .12s, border-color .12s;
  min-width: 0; /* prevents flex/grid overflow */
}
.card.clickable { cursor: pointer; display: block; color: inherit; }
.card.clickable:hover { transform: translateY(-2px); border-color: #2e3947; }

/* ============ FUND CARDS ============ */
.fund-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fund-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fund-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 7px;
  font-weight: 800; font-size: 13px; color: var(--bg);
  flex-shrink: 0;
}
.fund-icon.bot13     { background: var(--pink); }
.fund-icon.oracle    { background: var(--purple); }
.fund-icon.wizard    { background: var(--emerald); }
.fund-icon.equalizer { background: var(--blue); }
.fund-icon.titan     { background: var(--orange); }
.fund-name { font-size: 14px; font-weight: 700; }
.fund-kind { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.fund-tag { font-size: 11px; color: var(--muted); line-height: 1.4; }
.fund-value { font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
              font-variant-numeric: tabular-nums; word-break: break-word; }
.fund-pnl { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px;
  gap: 8px;
}
.stat-row:first-of-type { border-top: none; }
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ============ STRATEGY PANEL ============ */
.strategy-panel {
  border: 1px solid; border-radius: 14px; padding: 20px; margin-bottom: 20px;
}
.strategy-panel.bot13     { border-color: var(--pink);    background: linear-gradient(135deg, rgba(236,72,153,0.10), rgba(236,72,153,0.02)); }
.strategy-panel.oracle    { border-color: var(--purple);  background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(168,85,247,0.02)); }
.strategy-panel.wizard    { border-color: var(--emerald); background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(16,185,129,0.02)); }
.strategy-panel h3 { margin: 0 0 4px; font-size: 13px; }
.strategy-panel.bot13 h3  { color: var(--pink); }
.strategy-panel.oracle h3 { color: var(--purple); }
.strategy-panel.wizard h3 { color: var(--emerald); }
.strategy-meta { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.strategy-rationale { font-size: 14px; margin-bottom: 16px; }

.pick-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pick-card { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.pick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.pick-sym { font-size: 18px; font-weight: 800; }
.pick-meta { color: var(--muted); font-size: 11px; text-align: right; }
.pick-rationale { font-size: 12px; color: var(--text); margin-top: 6px; }
.pick-indicators { color: var(--muted); font-size: 10px; margin-top: 6px; line-height: 1.6; }

/* ============ SIGNAL PILLS ============ */
.signal {
  display: inline-block; padding: 4px 9px; border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  white-space: nowrap; text-transform: uppercase;
}
.signal-strong-buy  { background: rgba(63,185,80,.18);  color: #4ade80; border: 1px solid var(--green); }
.signal-buy         { background: rgba(63,185,80,.08);  color: #86efac; border: 1px solid rgba(63,185,80,.5); }
.signal-hold        { background: rgba(125,133,144,.15);color: #d1d5db; border: 1px solid #4b5563; }
.signal-sell        { background: rgba(248,81,73,.10); color: #fca5a5; border: 1px solid rgba(248,81,73,.5); }
.signal-strong-sell { background: rgba(248,81,73,.20); color: #fb7185; border: 1px solid var(--red); }

/* ============ GRADE PILLS ============ */
.grade {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--panel2);
  border: 1px solid var(--border); border-radius: 7px;
  font-weight: 800; font-size: 12px;
}
.grade-A { color: var(--green); border-color: var(--green); }
.grade-B { color: #86d6f0; }
.grade-C { color: var(--gold); }
.grade-D { color: var(--orange); }
.grade-F { color: var(--red); border-color: var(--red); }

/* ============ TABLES — DESKTOP ============ */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 6px; }
table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  font-variant-numeric: tabular-nums; min-width: 600px;
}
th, td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.7px; font-weight: 700; }
td.num, th.num { text-align: right; }

/* ============ LEADERBOARD STRIP (always multi-column) ============ */
.lb-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.lb-strip a.card { padding: 10px 12px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-strip .fund-icon { width: 26px; height: 26px; font-size: 10px; }
.lb-strip .lb-name { flex: 1; min-width: 0; overflow: hidden; }
.lb-strip .lb-name strong { display: block; font-size: 12px; font-weight: 700; }
.lb-strip .lb-name small { color: var(--muted); font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
.lb-strip .lb-pct { font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============ SIGNALS-TODAY MINI STRIP ============ */
.signals-today { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.signals-today .card { padding: 12px 14px; }
.signals-today .signals-today-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 11px;
}
.signals-today .signals-today-list { display: flex; flex-direction: column; gap: 4px; }
.signals-today .signals-today-list .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; font-size: 13px;
}
.signals-today .signals-today-list .row strong { font-weight: 700; }

/* ============ NEWS ============ */
.news-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.news-card {
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px 14px 18px;
  position: relative; overflow: hidden;
  display: block; color: inherit;
  transition: border-color .15s, transform .12s;
}
.news-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.news-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--purple);
}
.news-card.cat-aiq::before { background: var(--purple); }
.news-card.cat-bio::before { background: var(--green); }
.news-card.cat-energy::before { background: var(--gold); }
.news-card.cat-defense::before { background: var(--orange); }
.news-card.cat-finance::before { background: var(--blue); }
.news-card.cat-tech::before { background: var(--blue); }
.news-card.cat-other::before { background: var(--muted); }
.news-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.news-meta { font-size: 11px; color: var(--muted); }

/* sector chips for /news-all */
.sector-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.sector-bar-label { font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: var(--muted); text-transform: uppercase; }
.sector-chip {
  padding: 5px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--panel2); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
}
.sector-chip.active { background: rgba(0,212,255,0.12); border-color: var(--blue); color: var(--blue); }

/* ============ GET YOURS HINT ============ */
.get-yours-hint {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 18px; margin-top: 32px; gap: 12px;
}
.get-yours-hint .arrow { color: var(--blue); font-weight: 800; font-size: 16px; }
.get-yours-hint .msg { flex: 1; font-size: 13px; }
.get-yours-hint .pill {
  background: rgba(0,212,255,0.12); border: 1px solid var(--blue); color: var(--blue);
  padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
}

/* ============ HOW IT WORKS ============ */
.bot-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.bot-strip-card { background: var(--panel); border: 1px solid; border-radius: var(--radius); padding: 16px; min-width: 0; }
.bot-strip-card.bot13     { border-color: var(--pink); }
.bot-strip-card.oracle    { border-color: var(--purple); }
.bot-strip-card.wizard    { border-color: var(--emerald); }
.bot-strip-card.equalizer { border-color: var(--blue); }
.bot-strip-card.titan     { border-color: var(--orange); }
.bot-strip-card .kind {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.7px;
  margin: 8px 0; border: 1px solid currentColor;
}
.bot-strip-card.bot13 .kind     { color: var(--pink); }
.bot-strip-card.oracle .kind    { color: var(--purple); }
.bot-strip-card.wizard .kind    { color: var(--emerald); }
.bot-strip-card.equalizer .kind { color: var(--blue); }
.bot-strip-card.titan .kind     { color: var(--orange); }
.bot-strip-card .l1 { font-size: 13px; margin-bottom: 4px; }
.bot-strip-card .l2 { font-size: 12px; color: var(--muted); }

/* ============ SALES PAGE ============ */
.sales-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 24px; }
.sales-hero-left { background: var(--panel2); border: 1px solid var(--purple); border-radius: 14px; padding: 28px; }
.sales-hero-right { background: var(--blue); border-radius: 14px; padding: 28px; color: var(--bg); text-align: center; }
.sales-hero-right h3 { color: var(--bg); margin: 0 0 8px; font-size: 20px; text-transform: none; letter-spacing: 0; }
.paypal-btn {
  display: inline-block; background: var(--bg); color: var(--blue);
  padding: 14px 28px; border-radius: 8px;
  font-weight: 800; font-size: 16px; margin: 12px 0 8px; border: none; cursor: pointer;
}
.paypal-btn:hover { background: #000; }
.sales-hero-right .powered { font-size: 10px; font-weight: 800; letter-spacing: 1px; opacity: 0.85; margin-top: 6px; }
.sales-strip {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel2); border: 1px solid var(--blue);
  border-radius: 12px; padding: 18px 24px; margin: 18px 0 28px; gap: 12px;
}
.sales-strip h3 { color: var(--blue); margin: 0; text-transform: none; font-size: 16px; letter-spacing: 0; }
.sales-strip p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ============ POST-PURCHASE FORM ============ */
.thanks-hero {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(0,212,255,0.05));
  border: 1px solid var(--emerald);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}
.thanks-hero h1 { color: var(--emerald); font-size: 32px; margin: 0 0 8px; }
.thanks-hero p { color: var(--text); font-size: 16px; max-width: 640px; margin: 8px auto; }

.tracker-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; background: var(--panel2);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 14px;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-group small { color: var(--muted); font-size: 12px; margin-top: 6px; display: block; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; min-height: 60px; }
.tag-pill { background: rgba(0,212,255,0.12); border: 1px solid var(--blue); color: var(--blue); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; }
.tag-pill:hover { background: rgba(248,81,73,0.18); border-color: var(--red); color: var(--red); }
.tag-counter { color: var(--muted); font-size: 11px; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); background: var(--panel); padding: 28px 24px; margin-top: auto; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-links { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-links a.cta-link { color: var(--blue); font-weight: 700; }
.footer-fine {
  width: 100%; font-size: 11px; color: var(--muted); padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.footer-fine .dot { opacity: 0.5; }
.footer-fine a { color: var(--blue); }
.footer-network { width: 100%; padding-top: 14px; border-top: 1px solid var(--border); }
.footer-network-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer-network-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-network-links a { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; transition: opacity 0.2s; }
.footer-network-links a:hover { opacity: 0.75; }
.footer-network-current { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ============ CHATBOT WIDGET ============ */
.chatbot-toggle {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--bg);
  border: none; border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 8px 32px rgba(0,212,255,0.4), 0 4px 12px rgba(0,0,0,0.4);
  transition: transform .12s, box-shadow .12s;
}
.chatbot-toggle:hover { transform: translateY(-2px); }
.chatbot-toggle .chatbot-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: var(--bg); color: var(--blue);
  border-radius: 50%; font-size: 14px; font-weight: 800;
}
.chatbot-panel {
  position: fixed; bottom: 84px; right: 20px; z-index: 200;
  width: 360px; max-width: calc(100vw - 32px); max-height: 70vh;
  background: var(--panel); border: 1px solid var(--blue);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  display: none; flex-direction: column;
}
.chatbot-panel.open { display: flex; }
.chatbot-head {
  background: var(--blue); color: var(--bg);
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
}
.chatbot-title { font-weight: 800; font-size: 14px; }
.chatbot-close {
  background: transparent; border: none; color: var(--bg);
  font-size: 24px; line-height: 1; padding: 0; width: 28px; height: 28px;
}
.chatbot-body {
  padding: 14px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px;
  max-height: calc(70vh - 50px);
}
.chatbot-msg { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; max-width: 90%; word-wrap: break-word; }
.cha.chatbot-msg.bot  { background: var(--panel2); border: 1px solid var(--border); align-self: flex-start; }
.chatbot-msg.user { background: var(--blue); color: var(--bg); align-self: flex-end; font-weight: 600; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.chatbot-quick button {
  background: var(--panel2); border: 1px solid var(--border); color: var(--text);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: border-color .12s;
}
.chatbot-quick button:hover { border-color: var(--blue); color: var(--blue); }
.chatbot-input {
  display: flex; gap: 6px; padding: 10px;
  border-top: 1px solid var(--border); background: var(--panel);
}
.chatbot-input input {
  flex: 1; padding: 10px 12px; background: var(--panel2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px;
  -webkit-appearance: none; appearance: none;
}
.chatbot-input input:focus { outline: none; border-color: var(--blue); }
.chatbot-input button {
  background: var(--blue); color: var(--bg); border: none; border-radius: 8px;
  width: 40px; height: 40px; font-size: 18px; font-weight: 800; flex-shrink: 0;
}

/* ================================================================
   MOBILE — TABLETS (≤980px)
   ================================================================ */
@media (max-width: 980px) {
  .site-header { padding: 12px 16px; gap: 12px; }
  .brand-logo { height: 36px; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--border);
    padding: 8px 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 20px; border-radius: 0;
    border-bottom: 1px solid var(--border); font-size: 15px;
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a.cta { margin: 8px 16px; border-radius: 8px; text-align: center; }

  .app { padding: 20px 16px 80px; }

  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .hero-robot { height: 100px; right: 12px; opacity: 0.25; }

  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .lb-strip {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
  }
  .bot-strip { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

  .sales-hero { grid-template-columns: 1fr; }
  .sales-strip { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 14px; }
}

/* ================================================================
   MOBILE — PHONES (≤640px)
   ================================================================ */
@media (max-width: 640px) {
  body { font-size: 14px; }

  .site-header { padding: 10px 14px; }
  .brand-logo { height: 32px; }

  .app { padding: 16px 12px 80px; }

  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  h3 { font-size: 12px; }

  .hero { padding: 20px 16px; border-radius: 10px; }
  .hero h1 { font-size: 22px; line-height: 1.15; }
  .hero p { font-size: 13px; line-height: 1.5; }
  .hero-eyebrow { font-size: 10px; padding: 4px 10px; margin-bottom: 12px; }
  .hero-robot { display: none; }

  .section-head { margin: 20px 0 10px; }
  .section-head h3 { font-size: 12px; }

  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lb-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .lb-strip a.card { padding: 12px; }
  .lb-strip .fund-icon { width: 28px; height: 28px; font-size: 11px; }
  .lb-strip .lb-name strong { font-size: 13px; }
  .lb-strip .lb-pct { font-size: 13px; }

  .signals-today { grid-template-columns: 1fr; gap: 10px; }

  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card { padding: 12px 14px 12px 16px; }
  .news-title { font-size: 13px; }

  .bot-strip { grid-template-columns: 1fr; gap: 10px; }

  .card { padding: 14px; }
  .panel { padding: 16px; }

  .fund-value { font-size: 19px; }
  .fund-pnl { font-size: 11px; }
  .fund-tag { font-size: 11px; }
  .fund-name { font-size: 13px; }
  .fund-icon { width: 32px; height: 32px; font-size: 12px; }

  .btn { padding: 12px 18px; font-size: 13px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; justify-content: center; }

  .tbl-wrap {
    border: 1px solid var(--border); border-radius: 8px;
    box-shadow: inset -10px 0 14px -10px rgba(0,212,255,0.4);
  }
  table { font-size: 12px; min-width: 480px; }
  th, td { padding: 8px 8px; }

  .sales-hero-left, .sales-hero-right { padding: 20px; }
  .sales-hero-left h2 { font-size: 22px; }
  .paypal-btn { padding: 12px 22px; font-size: 14px; width: 100%; }

  .get-yours-hint { flex-wrap: wrap; padding: 12px 14px; }
  .get-yours-hint .msg { flex: 1 1 100%; order: 2; font-size: 12px; }
  .get-yours-hint .arrow { order: 1; }
  .get-yours-hint .pill { order: 3; font-size: 10px; }

  .sector-bar {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 12px -12px; padding: 0 12px 4px;
  }
  .sector-chip { flex-shrink: 0; }

  .site-footer { padding: 20px 16px; }
  .footer-fine { font-size: 10px; }

  .chatbot-toggle {
    bottom: 14px; right: 14px;
    padding: 10px 14px; font-size: 12px;
  }
  .chatbot-toggle .chatbot-label { display: none; }
  .chatbot-toggle .chatbot-icon { width: 20px; height: 20px; font-size: 13px; }
  .chatbot-panel {
    bottom: 70px; right: 10px; left: 10px;
    width: auto; max-width: none;
    max-height: 75vh;
  }
}

/* ================================================================
   MOBILE — TINY PHONES (≤380px)
   ================================================================ */
@media (max-width: 380px) {
  .grid-2, .grid-3, .grid-4, .grid-5,
  .lb-strip {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 20px; }
  .fund-value { font-size: 17px; }
}

/* ================================================================
   ACCESSIBILITY — reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card.clickable:hover, .btn:hover, .chatbot-toggle:hover { transform: none; }
}
