/* ============================
   PART 1/3 — Base + Layout + Left Panel
   VerdictIQ Landing (Light) — clean white, strong typography, yellow accent
   ✅ Includes: tokens, global, nav, hero, demo shell, demo-grid, LEFT panel (tabs/venue/table)
   ============================ */

:root{
  --bg:#ffffff;
  --panel:#ffffff;
  --ink:rgba(8,10,14,.94);
  --muted:rgba(8,10,14,.66);
  --muted2:rgba(8,10,14,.48);
  --line:rgba(8,10,14,.10);
  --shadow: 0 28px 70px rgba(10,12,16,.12);
  --shadow2: 0 18px 40px rgba(10,12,16,.10);
  --y:#FFE500;
  --y2:#FFE04A;
  --r:22px;
  --r2:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255,229,0,.22), transparent 55%),
    radial-gradient(900px 500px at 0% 30%, rgba(8,10,14,.06), transparent 55%),
    var(--bg);
  color:var(--ink);
}

a{ color:inherit; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Nav */
.nav{
  position:sticky; top:0; z-index:10;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(8,10,14,.08);
}
.nav-inner{
  width:min(1180px,92vw);
  margin:0 auto;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.mark{
  width:26px;height:26px;border-radius:9px;
  background: linear-gradient(135deg, rgba(255,229,0,1), rgba(255,229,0,.70));
  box-shadow: 0 12px 24px rgba(255,229,0,.22);
  position:relative;
}
.mark:after{
  content:"";
  position:absolute; inset:6px 7px 6px 7px;
  border-left:3px solid rgba(8,10,14,.70);
  border-bottom:3px solid rgba(8,10,14,.70);
  transform:rotate(-45deg);
  border-radius:2px;
}
.word{
  font-weight:900;
  letter-spacing:1.3px;
  color: var(--ink);
}
.iq{ color: var(--y); text-shadow: 0 0 22px rgba(255,229,0,.22); }

.links{ display:flex; gap:22px; }
.links a{
  color: rgba(8,10,14,.70);
  text-decoration:none;
  font-weight:800;
  font-size:14px;
}
.links a:hover{ color: rgba(8,10,14,.92); }

.cta{
  text-decoration:none;
  color: rgba(8,10,14,.92);
  background: linear-gradient(180deg, var(--y), rgba(255,229,0,.86));
  border:1px solid rgba(8,10,14,.12);
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  font-size:14px;
  transition: transform .18s ease, filter .18s ease;
}
.cta:hover{ transform: translateY(-1px); filter: brightness(1.02); }

/* Wrapper */
.wrap{
  width:min(1180px,92vw);
  margin:0 auto;
  padding: 54px 0 40px;
}

/* Hero */
.hero{
  padding: 48px 0 28px;
  display:flex;
  justify-content:center;
}
.hero-copy{
  width:min(860px,100%);
  text-align:left;
}
.headline{
  margin:0;
  font-size:64px;
  line-height:1.02;
  letter-spacing:-1.2px;
}
.ethos{
  margin-top: 10px;
  display:flex;
  align-items:baseline;
  gap:8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing:-.2px;
  color: rgba(8,10,14,.86);
}
.ethos-verb{ color: rgba(8,10,14,.78); }

.swap{ display:inline-block; position:relative; padding: 0 2px; }
.swap:after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-6px;
  height:2px;
  background: linear-gradient(90deg, rgba(255,229,0,.0), rgba(255,229,0,.95), rgba(255,229,0,.0));
  opacity:.65;
  transform: scaleX(.7);
  transform-origin:center;
  animation: underlineGlow 2.8s ease-in-out infinite;
}
@keyframes underlineGlow{
  0%,100%{ opacity:.35; transform: scaleX(.7); }
  50%{ opacity:.85; transform: scaleX(1); }
}

.lead{
  margin: 14px 0 18px;
  font-size: 18px;
  color: var(--muted);
  max-width: 64ch;
}

/* Signup */
.signup{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius: 18px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow2);
  max-width: 640px;
}
.signup input{
  flex:1;
  background: transparent;
  border:0;
  outline:none;
  color: var(--ink);
  font-size:15px;
  padding: 12px 12px;
}
.signup input::placeholder{ color: rgba(8,10,14,.35); }
.signup:focus-within{
  border-color: rgba(8,10,14,.16);
  box-shadow: 0 18px 40px rgba(10,12,16,.10), 0 0 0 4px rgba(255,229,0,.18);
}
.signup button{
  border:1px solid rgba(8,10,14,.14);
  background: rgba(255,229,0,.96);
  color: rgba(8,10,14,.92);
  font-weight:950;
  padding: 12px 16px;
  border-radius: 14px;
  cursor:pointer;
  white-space:nowrap;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
.signup button:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.signup button:disabled{
  opacity: .55;
  cursor:not-allowed;
  transform:none;
  filter:none;
}
.note{ margin-top:10px; color: var(--muted2); font-size:13px; }

/* Section heads */
.section-head{
  margin: 22px 0 14px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
.kicker{
  font-weight:950;
  letter-spacing:1.3px;
  font-size:12px;
  color: rgba(8,10,14,.50);
}
.subkicker{
  font-weight:800;
  color: rgba(8,10,14,.78);
  font-size:14px;
}

/* Demo */
.below{ padding: 8px 0 10px; }
.demo-shell{
  width: 100%;
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(8,10,14,.04), rgba(8,10,14,.00)),
    rgba(255,255,255,.96);
  border:1px solid rgba(8,10,14,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.demo-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 16px 18px;
  border-bottom:1px solid rgba(8,10,14,.08);
}
.demo-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.demo-mark{
  width:18px;height:18px;border-radius:6px;
  background: linear-gradient(135deg, rgba(255,229,0,1), rgba(255,229,0,.70));
  position:relative;
}
.demo-mark:after{
  content:"";
  position:absolute; inset:4px 5px 4px 5px;
  border-left:2px solid rgba(8,10,14,.70);
  border-bottom:2px solid rgba(8,10,14,.70);
  transform:rotate(-45deg);
}
.demo-title{
  font-weight:950;
  letter-spacing:1.2px;
  color: rgba(8,10,14,.92);
}
.demo-sub{
  margin-left:10px;
  color: rgba(8,10,14,.56);
  font-weight:800;
  font-size:13px;
}
.demo-actions{ display:flex; gap:10px; color: rgba(8,10,14,.55); }
.icon{
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:12px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.85);
  font-size:14px;
}

/* ✅ Desktop layout height: this is the “source of truth” */
.demo-grid{
  display:flex;
  gap:14px;
  padding:14px;
  align-items:stretch;
  height:min(720px, 85vh);
}

/* Both panels fill available height */
.demo-grid > .mini{
  height:100%;
  min-height:0; /* critical for inner scrollers */
}

/* Mini cards */
.mini{
  border-radius: var(--r2);
  background: rgba(255,255,255,.92);
  border:1px solid rgba(8,10,14,.10);
  overflow:hidden;
  padding: 14px;
}

/* Left panel header */
.mini-k{
  font-weight:950;
  letter-spacing:1.1px;
  font-size:12px;
  color: rgba(8,10,14,.84);
}
.mini-sub{
  margin:10px 0 12px;
  color: rgba(8,10,14,.62);
  font-size:13px;
}
.mini-h{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Tabs + Venue toggle (left) */
.mini-tabs,
.venue-toggle{
  display:flex;
  gap:8px;
  align-items:center;
  margin: 4px 0 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mini-tabs::-webkit-scrollbar,
.venue-toggle::-webkit-scrollbar{ display:none; }

.mini-tab,
.venue-btn{
  appearance:none;
  border:1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.86);
  color: rgba(8,10,14,.86);
  font-weight: 950;
  font-size: 11px;
  letter-spacing: .6px;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  white-space: nowrap;
}
.mini-tab:hover,
.venue-btn:hover{ transform: translateY(-1px); filter: brightness(1.01); }

.mini-tab[aria-selected="true"],
.venue-btn[aria-selected="true"],
.venue-btn.is-on{
  background: rgba(255,229,0,.92);
  border-color: rgba(8,10,14,.14);
  box-shadow: 0 0 0 3px rgba(255,229,0,.18);
  color: rgba(8,10,14,.92);
}
.mini-tab small,
.venue-btn small{ margin-left:6px; opacity:.70; font-weight: 950; }

/* Left table scroll */
.mini-table{
  border-radius: 14px;
  border:1px solid rgba(8,10,14,.10);
  overflow-y:auto;
  overflow-x:hidden;
  background: rgba(255,255,255,.96);
  position: relative;
  max-height: 560px;
}
.mini-th{
  display:grid;
  grid-template-columns: 1.75fr .55fr .55fr;
  gap:10px;
  padding:10px 12px;
  background: rgba(255,255,255,.96);
  border-bottom:1px solid rgba(8,10,14,.08);
  color: rgba(8,10,14,.55);
  font-weight:900;
  letter-spacing:1.0px;
  font-size:11px;

  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 8px 18px rgba(10,12,16,.06);
}
.mini-th .y{ color: rgba(8,10,14,.78); }

.mini-row{
  display:grid;
  grid-template-columns: 1.75fr .55fr .55fr;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid rgba(8,10,14,.08);
  cursor: pointer;
  transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}
.mini-row:hover{ background: rgba(255,229,0,.08); }
.mini-row.is-active{
  background: rgba(255,229,0,.14);
  box-shadow: inset 4px 0 0 rgba(255,229,0,.95), inset 0 0 0 1px rgba(8,10,14,.06);
}
.mini-row:last-child{ border-bottom:0; }

.m-name{ font-weight:900; font-size:13px; color: rgba(8,10,14,.92); }
.m-val{ font-weight:950; }
.m-chg{ font-weight:950; }
.up{ color: #16a34a; }
.dn{ color: #dc2626; }
.r{ text-align:right; }

/* Under-title chipline (if your JS uses it) */
.m-chipline{
  grid-column: 1 / -1;
  margin-top:6px;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
  font-weight:850;
  color: rgba(8,10,14,.58);
}
.chip-soft{
  background: rgba(255,229,0,.18);
  border:1px solid rgba(8,10,14,.10);
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  color: rgba(8,10,14,.88);
}
.chip-risk{
  background: rgba(255,229,0,.40);
  border:1px solid rgba(8,10,14,.12);
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  color: rgba(8,10,14,.92);
  box-shadow: 0 0 0 3px rgba(255,229,0,.14);
}

.m-src{
  grid-column: 1 / -1;
  margin-top:6px;
  color: rgba(8,10,14,.58);
  font-size:12px;
}

.mini-foot{ margin-top:10px; display:flex; justify-content:flex-end; }
.mini-time{ font-size:12px; color: rgba(8,10,14,.55); }
.pulse-dot{
  display:inline-block;
  width:6px;height:6px;border-radius:99px;
  background: rgba(255,229,0,.95);
  box-shadow: 0 0 18px rgba(255,229,0,.45);
  margin: 0 6px 1px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ transform: scale(.8); opacity:.55; }
  50%{ transform: scale(1.2); opacity:1; }
}
/* ============================
   PART 2/3 — Right Panel (Sticky Header + Scroll Body + Always-Visible Share Strip)
   ✅ Core fix: right panel is flex column
   ✅ header sticky; body scrolls; share strip is sticky at bottom (CSS-only)
   ============================ */

/* Right panel container */
#detailPanel.mini.wide{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  padding:0;
  overflow:hidden; /* never scroll the whole card */
}

/* Sticky header */
#detailPanel .detail-sticky{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(8,10,14,.08);
  box-shadow: 0 8px 18px rgba(10,12,16,.06);
  padding: 14px 14px 10px;
  flex: 0 0 auto;
}

/* Scroll body */
#detailPanel .detail-body{
  flex:1 1 auto;
  min-height:0;
  padding: 14px;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  /* IMPORTANT: reserve space for sticky bottom share strip */
  padding-bottom: 86px;
}

/* Header layout */
.wide-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.wide-left{ flex:1 1 auto; min-width:0; }

.wide-title{
  font-weight:950;
  font-size:16px;
  color: rgba(8,10,14,.92);
  line-height: 1.15;
  word-break: break-word;
}

.wide-sub-row{
  margin-top:6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.wide-sub{
  color:rgba(8,10,14,.62);
  font-size:13px;
  min-width:0;
}
.wide-time{
  flex:0 0 auto;
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.time-pill{
  font-size:12px;
  font-weight:850;
  color: rgba(8,10,14,.58);
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 7px 10px;
  line-height: 1;
  min-height: 28px;
  display:inline-flex;
  align-items:center;
}

/* Statline */
.statline{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-top: 14px;
}
.big{
  font-weight:950;
  font-size:54px;
  letter-spacing:-1px;
  color: rgba(8,10,14,.92);
  line-height:1;
}
.big-sym{ font-size:20px; opacity:.9; margin-left:2px; }

/* Stats grid */
.stats{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
  width:100%;
}
.stat{
  border-left:1px solid rgba(8,10,14,.08);
  padding-left:10px;
}
.lbl{
  font-size:11px;
  letter-spacing:1.0px;
  color: rgba(8,10,14,.55);
  font-weight:950;
}
.val{
  margin-top:6px;
  font-weight:950;
  font-size:13px;
  color: rgba(8,10,14,.90);
}

/* Sparkline */
.spark{
  margin-top:14px;
  height:140px;
  border-radius: 16px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.96);
  position:relative;
  overflow:hidden;
}
.spark-grid{
  position:absolute; inset:0;
  background:
    linear-gradient(to right, rgba(8,10,14,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8,10,14,.06) 1px, transparent 1px);
  background-size: 70px 35px;
  opacity:.22;
}
.spark-svg{ position:absolute; inset:0; }
.spark-path{
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.8s ease-out .35s forwards;
  filter: drop-shadow(0 0 10px rgba(255,229,0,.18));
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }
.spark-dot{
  opacity:0;
  transform-origin:center;
  animation: dotIn .6s ease-out 1.55s forwards, dotPulse 1.6s ease-in-out 2.0s infinite;
  filter: drop-shadow(0 0 14px rgba(255,229,0,.35));
}
@keyframes dotIn{ to{ opacity:1; } }
@keyframes dotPulse{
  0%,100%{ transform: scale(.9); opacity:.80; }
  50%{ transform: scale(1.22); opacity:1; }
}
.spark-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  padding: 10px;
}
.spark-badge{
  border-radius: 999px;
  border:1px solid rgba(8,10,14,.12);
  background: rgba(255,229,0,.18);
  color: rgba(8,10,14,.92);
  font-weight:950;
  font-size:11px;
  padding: 8px 12px;
  display:flex;
  gap:10px;
  align-items:center;
  box-shadow: 0 12px 26px rgba(10,12,16,.06);
}
.spark-label{ letter-spacing:1.2px; opacity:.95; font-weight:950; }
.spark-val{ opacity:.95; font-weight:950; }

/* Belief Shock tooltip */
.shock-tip{ position:relative; display:inline-flex; align-items:center; gap:6px; cursor:help; user-select:none; }
.shock-i{
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px; border-radius:999px;
  border:1px solid rgba(8,10,14,.14);
  background: rgba(255,255,255,.92);
  font-weight:950; font-size:12px; line-height:1;
  color: rgba(8,10,14,.70);
  transform: translateY(-.5px);
}
.shock-pop{
  position:absolute;
  top:22px;
  left:0;
  width: 310px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 50px rgba(10,12,16,.14);
  font-size:12px;
  line-height:1.3;
  color: rgba(8,10,14,.88);
  font-weight:800;
  opacity:0;
  transform: translateY(6px);
  pointer-events:none;
  z-index:80;
}
.shock-tip:hover .shock-pop,
.shock-tip:focus .shock-pop,
.shock-tip:focus-within .shock-pop{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

/* Belief Shock trend box */
.shockbox{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,229,0,.10);
  padding: 12px 12px;
}
.shockbox-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.shockbox-title{
  display:flex; align-items:center; gap:8px;
  font-weight: 950;
  letter-spacing: 1.1px;
  font-size: 11px;
  color: rgba(8,10,14,.78);
  text-transform: uppercase;
}
.shockbox-chips{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.shock-level-chip{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.94);
  font-weight: 950;
  font-size: 11px;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: rgba(8,10,14,.88);
}
.shock-level-chip::before{
  content:"";
  width:8px; height:8px; border-radius:99px;
  background: rgba(8,10,14,.18);
  box-shadow: 0 0 0 3px rgba(8,10,14,.06);
  display:inline-block;
  margin-right:8px;
}
.shock-persist-chip{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,229,0,.26);
  font-weight: 950;
  font-size: 11px;
  letter-spacing: .3px;
  color: rgba(8,10,14,.88);
}
.shockbox-grid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shockcell{
  border-radius: 14px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.94);
  padding: 10px 10px;
}
.shockcell .k{
  font-size: 11px;
  letter-spacing: 1.0px;
  color: rgba(8,10,14,.55);
  font-weight: 950;
  text-transform: uppercase;
}
.shockcell .v{
  margin-top: 6px;
  font-weight: 950;
  font-size: 18px;
  color: rgba(8,10,14,.92);
}
.shockcell .t{
  margin-top: 6px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 12px;
  font-weight: 950;
  color: rgba(8,10,14,.64);
  text-transform: lowercase;
}
.shockcell .t::before{
  content:"";
  width:14px; height:2px; border-radius:99px;
  background: rgba(8,10,14,.14);
}
.trend-accel{ color: rgba(8,10,14,.92) !important; }
.trend-accel::before{ background: rgba(255,224,74,.95) !important; box-shadow: 0 0 0 4px rgba(255,224,74,.18); }
.trend-fading{ color: rgba(8,10,14,.70) !important; }
.trend-fading::before{ background: rgba(8,10,14,.18) !important; }
.trend-stable{ color: rgba(8,10,14,.66) !important; }
.trend-stable::before{ background: rgba(8,10,14,.14) !important; }
.trend-volatile{ color: rgba(8,10,14,.86) !important; }
.trend-volatile::before{ background: rgba(255,229,0,.75) !important; }

/* CTA banner */
.cta-banner{
  width:100%;
  box-sizing:border-box;
  margin-top:12px;
  border-radius:16px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,229,0,.10);
  padding:12px 12px;
  display:none;
}
.cta-banner.is-on{ display:block; }
.cta-banner.high{
  background: rgba(255,229,0,.18);
  border-color: rgba(8,10,14,.12);
  box-shadow: 0 0 0 3px rgba(255,229,0,.14);
}
.cta-banner.medium{ background: rgba(255,229,0,.13); }
.cta-banner.low{ background: rgba(8,10,14,.03); }

.cta-headline{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
#ctaHeadline{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(8,10,14,.86);
}
#ctaLevelPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.94);
  font-weight: 950;
  font-size: 11px;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: rgba(8,10,14,.88);
  white-space: nowrap;
}
#ctaLevelPill::before{
  content:"";
  width:8px; height:8px; border-radius:99px;
  background: rgba(8,10,14,.18);
  box-shadow: 0 0 0 3px rgba(8,10,14,.06);
}
#ctaSubtext{
  margin-top: 8px;
  font-weight: 850;
  font-size: 13px;
  color: rgba(8,10,14,.70);
  line-height: 1.25;
}
#ctaTimer{
  margin-top: 10px;
  display:none;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px dashed rgba(8,10,14,.12);
  background: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 950;
  color: rgba(8,10,14,.74);
}
#ctaTimer.is-on{ display:flex; }
#ctaTimer .dot{
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(255,229,0,.96);
  box-shadow: 0 0 0 3px rgba(255,229,0,.18);
}

/* ✅ Share strip: ALWAYS VISIBLE while scrolling (CSS-only) */
.wide-share{
  position: sticky;
  bottom: 0;
  z-index: 25;

  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;

  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(10,12,16,.08);
}

.pill-link{
  flex:1;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,229,0,.22);
  color: rgba(8,10,14,.92);
  font-weight:950;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width: 220px;
}

.pill-out{
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(8,10,14,.12);
  background: rgba(255,229,0,.18);
  color: rgba(8,10,14,.92);
  font-weight:950;
  font-size:12px;
  white-space:nowrap;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .18s ease, filter .18s ease;
}
.pill-out:hover{ transform: translateY(-1px); filter: brightness(1.02); }

.pill-x,
.pill-copy{
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.92);
  color: rgba(8,10,14,.92);
  font-weight:950;
  font-size:12px;
  white-space:nowrap;
  cursor:pointer;
  transition: transform .18s ease, filter .18s ease;
}


.pill-img{
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,229,0,.22);
  color: rgba(8,10,14,.92);
  font-weight:950;
  font-size:12px;
  white-space:nowrap;
}
.pill-img:hover{ filter: brightness(0.98); }

.pill-x:hover,
.pill-copy:hover{ transform: translateY(-1px); filter: brightness(1.01); }

/* Optional emphasis for X */
.pill-x{
  background: rgba(8,10,14,.92);
  color: #fff;
  border-color: rgba(8,10,14,.10);
}
/* ============================
   PART 3/3 — Watchlist + Alerts + Market Action + Features + Footer + Toast + Responsive
   ✅ Includes all hooks you rely on
   ✅ Mobile: stacked panels, tap-friendly, no shrink
   ============================ */

/* Header action buttons (watchlist/alerts) */
.detail-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:10px;
}
.icon-btn{
  appearance:none;
  border:1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.92);
  color: rgba(8,10,14,.86);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 950;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  position:relative;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.icon-btn:hover{ transform: translateY(-1px); }
.icon-btn:active{ transform: translateY(0px); }

/* Star state */
#btnStar.is-on{
  background: rgba(255,229,0,.92);
  border-color: rgba(8,10,14,.14);
  box-shadow: 0 0 0 3px rgba(255,229,0,.18);
  color: rgba(8,10,14,.92);
}

/* Bell dot state */
#btnBell .dot{
  display:none;
  width:7px; height:7px;
  border-radius:50%;
  background: rgba(255,229,0,.96);
  box-shadow: 0 0 0 3px rgba(255,229,0,.18);
  position:absolute;
  top:6px; right:6px;
}
#btnBell.has-dot .dot{ display:block; }

/* Alerts panel */
.alert-panel{
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,229,0,.08);
  padding: 12px 12px;
}
.alert-h{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.alert-t{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(8,10,14,.92);
}
.alert-sub{
  margin-top: 6px;
  font-weight: 850;
  font-size: 12px;
  color: rgba(8,10,14,.60);
  line-height: 1.25;
}
.alert-presets{ margin-top: 10px; display:flex; gap:8px; flex-wrap: wrap; }
.alert-presets .chip{
  appearance:none;
  border:1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.90);
  color: rgba(8,10,14,.86);
  font-weight: 950;
  font-size: 11px;
  letter-spacing: .2px;
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
  user-select:none;
  line-height:1;
  white-space:nowrap;
  transition: transform .12s ease;
}
.alert-presets .chip:hover{ transform: translateY(-1px); }

.alert-list{ margin-top: 10px; display:flex; flex-direction:column; gap:8px; }
.alert-item{
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.88);
  border-radius: 14px;
  padding: 10px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.alert-item .a-left{ display:flex; flex-direction:column; gap:4px; }
.alert-item .a-title{ font-weight: 950; font-size: 12px; color: rgba(8,10,14,.92); }
.alert-item .a-sub{ font-weight: 850; font-size: 12px; color: rgba(8,10,14,.60); }
.alert-item .a-del{
  appearance:none;
  border:1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 950;
}

/* Market Action block (#tradeBox) */
#tradeBox .tradebox{
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,229,0,.10);
  border-radius: 16px;
  padding: 14px 14px;
  margin: 14px 0;
}
#tradeBox .tradebox-h{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(8,10,14,.92);
  margin-bottom: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#tradeBox .tradebox-chip{
  font-size: 11px;
  font-weight: 950;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.86);
  color: rgba(8,10,14,.86);
  letter-spacing:.3px;
}
#tradeBox .chip-repricing{ background: rgba(255,229,0,.22); }
#tradeBox .chip-stable{ background: rgba(8,10,14,.05); }

#tradeBox .tradebox-p{
  font-weight: 850;
  font-size: 13px;
  color: rgba(8,10,14,.74);
  line-height: 1.3;
  margin-top: 6px;
}
#tradeBox .tradebox-muted{
  font-weight: 850;
  color: rgba(8,10,14,.60);
  font-size: 12px;
  margin-top: 8px;
}
#tradeBox .tradebox-list{
  margin:8px 0 0 16px;
  padding:0;
  color:rgba(8,10,14,.78);
  line-height:1.35;
  font-weight:850;
  font-size:13px;
}
#tradeBox .tradebox-list li{ margin:6px 0; }

#tradeBox .tradebox-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(10,12,16,.12);
  text-decoration:none;
  font-weight:900;
  color:rgba(8,10,14,.92);
  background: rgba(255,255,255,.86);
  transition: transform .18s ease, filter .18s ease;
}
#tradeBox .tradebox-cta:hover{ transform:translateY(-1px); filter: brightness(1.01); }

#tradeBox .tradebox-sub{
  margin-top:6px;
  color:rgba(8,10,14,.55);
  font-size:12px;
  font-weight:850;
}

/* Demo footer */
.demo-foot{
  padding: 12px 16px 16px;
  border-top:1px solid rgba(8,10,14,.08);
}
.stamp{ color: rgba(8,10,14,.55); font-size:12px; }

/* Features */
.features{ margin-top: 34px; padding: 10px 0 10px; }
.features-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.feat{
  border-radius: var(--r2);
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.92);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(10,12,16,.06);
}
.feat-ic{ font-size: 22px; }
.feat-t{ margin-top: 10px; font-weight: 950; color: rgba(8,10,14,.92); }
.feat-d{ margin-top: 8px; color: rgba(8,10,14,.66); font-size: 13.5px; line-height: 1.35; }

/* Footer */
.footer{
  margin-top: 34px;
  padding: 18px 0 34px;
  border-top:1px solid rgba(8,10,14,.08);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}
.foot-left{ display:flex; align-items:center; gap:10px; color: rgba(8,10,14,.72); }
.foot-mark{
  width:16px;height:16px;border-radius:6px;
  background: linear-gradient(135deg, rgba(255,229,0,1), rgba(255,229,0,.70));
  position:relative;
}
.foot-mark:after{
  content:"";
  position:absolute; inset:3px 4px 3px 4px;
  border-left:2px solid rgba(8,10,14,.70);
  border-bottom:2px solid rgba(8,10,14,.70);
  transform:rotate(-45deg);
}
.foot-name{ font-weight:950; letter-spacing:1.1px; color: rgba(8,10,14,.92); }
.foot-sep{ opacity:.35; }
.foot-small{ font-size:13px; opacity:.85; }
.foot-links{ display:flex; gap:16px; }
.foot-links a{
  color: rgba(8,10,14,.55);
  text-decoration:none;
  font-weight:900;
  font-size:13px;
}
.foot-links a:hover{ color: rgba(8,10,14,.85); }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.94);
  color: rgba(8,10,14,.92);
  font-weight: 900;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 22px 60px rgba(10,12,16,.18);
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================
   RESPONSIVE / MOBILE
   ============================ */

@media (max-width: 980px){
  /* stack panels */
  .demo-grid{
    flex-direction: column;
    height: auto;         /* CRITICAL: prevent “squished” side-by-side */
  }

  /* left list: more room */
  #miniPanel .mini-table{ max-height: 60vh; }

  /* right detail can be tall */
  #detailPanel.mini.wide{ height: auto; min-height: 0; }

  /* features: single column */
  .features-grid{ grid-template-columns: 1fr; }

  .section-head{ flex-direction:column; align-items:flex-start; }
  .headline{ font-size: 52px; }
}

@media (max-width: 720px){
  .statline{ flex-direction: column; gap: 12px; }
  .big{ font-size: 48px; }
  .stats{ grid-template-columns: 1fr 1fr; }
  .stat{
    border-left:0;
    padding-left:0;
    border-top:1px solid rgba(8,10,14,.08);
    padding-top:10px;
  }
  .stat:nth-child(1), .stat:nth-child(2){ border-top:0; padding-top:0; }
  .spark{ height: 120px; }
  .shockbox-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .links{ display:none; }
  .headline{ font-size: 44px; }
  .ethos{ font-size: 18px; }
  .signup{ flex-direction:column; align-items:stretch; }
  .signup button{ width:100%; }
  .demo-actions{ display:none; }
  .mini-table{ max-height: 56vh; }

  /* Share strip becomes 2 rows cleanly */
  .pill-link{ min-width: 100%; }
  .wide-time{ white-space:normal; }
  .wide-sub-row{ flex-wrap:wrap; }
}
/* ============================================
   FIX: 50/50 panels + prevent resize jitter
   ============================================ */

/* Ensure the grid is a flex row on desktop and panels are equal width */
.demo-grid{
  display:flex;                 /* already, but enforce */
  gap:14px;
  align-items:stretch;
}

/* Force BOTH panels to be equal width, stable */
#miniPanel,
#detailPanel{
  flex: 0 0 50% !important;     /* lock to half */
  width: 50% !important;
  min-width: 0 !important;      /* allow inner scrolling instead of growing */
}

/* Critical: prevent content from forcing the panel wider */
#miniPanel *,
#detailPanel *{
  min-width: 0;
}

/* Keep existing mobile behavior: stacked panels */
@media (max-width: 980px){
  #miniPanel,
  #detailPanel{
    flex: 0 0 auto !important;
    width: 100% !important;
  }
}
/* ============================================
   FIX: left-panel top tabs (5 labels) fit / scroll
   ============================================ */

#miniPanel .mini-tabs{
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  padding-bottom: 2px;          /* prevents clip on iOS */
}

#miniPanel .mini-tabs::-webkit-scrollbar{
  display:none;                 /* Chrome/Safari */
}

/* Prevent pills from shrinking weirdly */
#miniPanel .mini-tab{
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Same treatment for venue toggle if needed */
#miniPanel .venue-toggle{
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
  padding-bottom: 2px;
}
/* =========================================================
   FIX: Desktop shows ALL left tabs (no cutoff), Mobile scrolls
   ========================================================= */

/* DESKTOP / LARGE: show all 5 tabs fully (wrap if needed) */
@media (min-width: 981px){
  #miniPanel .mini-tabs{
    flex-wrap: wrap !important;        /* ✅ allow 2nd line */
    overflow: visible !important;      /* ✅ no clipping */
    row-gap: 8px;
    padding-right: 10px;              /* ✅ gives breathing room at the edge */
  }

  /* Ensure pills don't compress and clip text */
  #miniPanel .mini-tab{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

/* MOBILE / TABLET: keep the scrollable pill strip */
@media (max-width: 980px){
  #miniPanel .mini-tabs{
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 2px;
  }
  #miniPanel .mini-tabs::-webkit-scrollbar{ display:none; }
  #miniPanel .mini-tab{ flex: 0 0 auto !important; }
}

/* EXTRA SAFETY: prevent parent containers from clipping the pills */
#miniPanel{
  overflow: visible; /* the panel itself is fine */
}
#miniPanel .mini-h,
#miniPanel .mini-sub{
  overflow: visible;
}
/* =========================================================
   DESKTOP: make the 5 left tabs fit on ONE line (smaller pills)
   Paste at VERY BOTTOM of CSS (and remove the prior block)
   ========================================================= */
@media (min-width: 981px){
  /* the tab row itself */
  #miniPanel .mini-tabs{
    flex-wrap: nowrap !important;
    gap: 5px !important;
    overflow: hidden !important;       /* no second row */
  }

  /* each pill */
  #miniPanel .mini-tab{
    font-size: 10.5px !important;      /* smaller */
    padding: 6px 8px !important;       /* tighter */
    letter-spacing: 0.15px !important;
    white-space: nowrap !important;
  }

  /* active pill should NOT get bigger */
  #miniPanel .mini-tab[aria-selected="true"]{
    font-size: 10.5px !important;
    padding: 6px 8px !important;
  }

  /* counts also shrink if present */
  #miniPanel .mini-tab small{
    font-size: 10px !important;
    margin-left: 5px !important;
  }
}


/* Overlay container */
.viq-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.viq-modal.is-open { display: grid; place-items: center; padding: 72px 0 40px; overflow: auto; }

/* Gentle backdrop */
.viq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.30);   /* subtle dim */
  backdrop-filter: blur(2px);            /* gentle separation */
}

/* Panel surface */
.viq-panel {
  position: relative;
  width: min(720px, calc(100vw - 24px));
  margin: 0 auto;                       /* centered within padded overlay */
  background: rgba(255,255,255,0.92);    /* slightly tinted surface */
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.18),
    0 2px 10px rgba(0,0,0,0.08);
  padding: 18px 18px 16px;
  animation: viqPop 140ms ease-out;
}

@keyframes viqPop {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* Close button */
.viq-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  cursor: pointer;
}
.viq-close:hover { background: rgba(255,255,255,0.95); }

/* Section header “External alerts” */
.viq-panel h3 {
  margin: 0 44px 6px 0;
  letter-spacing: 0.02em;
}

/* helper text */
.viq-panel .muted {
  color: rgba(0,0,0,0.60);
}
/* Prevent body scroll when modal open */
body.viq-lock { overflow: hidden; }

/* Ensure notify-panel shows in modal (your old CSS had display:none) */
#notifyModal .notify-panel { display:block !important; }

/* ================================
   VerdictIQ Modal Theme Alignment
   ================================ */

/* Backdrop */
.viq-backdrop{
  background: rgba(8,10,14,.38);
  backdrop-filter: blur(4px);
}

/* Modal surface */
.viq-panel{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(8,10,14,.10);
  border-radius: 20px;
  box-shadow:
    0 28px 70px rgba(10,12,16,.20),
    0 4px 14px rgba(10,12,16,.08);
}

/* Header text */
.notify-t{
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(8,10,14,.92);
}

/* Body helper text */
.notify-sub{
  font-size: 13px;
  font-weight: 850;
  color: rgba(8,10,14,.62);
}

/* Section titles */
.viq-panel strong,
.viq-panel .section-title{
  font-weight: 950;
  color: rgba(8,10,14,.92);
}

/* Discord row background */
.notify-row{
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,229,0,.08);
  border: 1px solid rgba(8,10,14,.08);
}

/* Buttons — primary (yellow) */
.notify-btn{
  font-family: inherit;
  font-weight: 950;
  font-size: 13px;
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(255,229,0,.96);
  color: rgba(8,10,14,.92);
  border: 1px solid rgba(8,10,14,.14);
  cursor: pointer;
}

.notify-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,229,0,.35);
}

/* Secondary buttons */
.notify-btn.secondary{
  background: rgba(255,255,255,.92);
  color: rgba(8,10,14,.86);
  border: 1px solid rgba(8,10,14,.12);
  box-shadow: none;
}

/* Close button */
.viq-close{
  border-radius: 12px;
  font-size: 16px;
  font-weight: 950;
  color: rgba(8,10,14,.72);
}

/* Segmented control (Choose delivery) */
.viq-segment{
  background: rgba(8,10,14,.04);
  border-radius: 16px;
  padding: 6px;
  border: 1px solid rgba(8,10,14,.08);
}

.viq-segment button{
  font-family: inherit;
  font-weight: 950;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(8,10,14,.68);
}

.viq-segment button[aria-pressed="true"]{
  background: rgba(255,255,255,.96);
  color: rgba(8,10,14,.92);
  border: 1px solid rgba(8,10,14,.10);
  box-shadow: 0 6px 16px rgba(10,12,16,.10);
}

/* Email input */
#notifyEmail{
  font-family: inherit;
  font-weight: 850;
  font-size: 14px;
  color: rgba(8,10,14,.92);
  background: rgba(248,250,255,.96);
  border: 1px solid rgba(8,10,14,.12);
  border-radius: 16px;
  padding: 14px 16px;
}

#notifyEmail:focus{
  outline: none;
  border-color: rgba(255,229,0,.85);
  box-shadow: 0 0 0 3px rgba(255,229,0,.25);
}

/* ================================
   Premium Alerts (Megaphone) modal
   ================================ */
#notifyModal[data-premium="true"] .notify-surface{
  background: rgba(255,229,0,.07);
  border: 1px solid rgba(8,10,14,.10);
}
#notifyModal[data-premium="true"] .premium-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
#notifyModal[data-premium="true"] .premium-item{
  font-weight: 850;
  font-size: 13px;
  color: rgba(8,10,14,.74);
  line-height: 1.25;
}
#notifyModal[data-premium="true"] .premium-form{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
#notifyModal[data-premium="true"] .premium-form input{
  flex: 1 1 280px;
  min-width: 240px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.92);
  font-weight: 850;
  font-size: 14px;
  outline: none;
}
#notifyModal[data-premium="true"] .premium-form input:focus{
  border-color: rgba(255,229,0,.90);
  box-shadow: 0 0 0 4px rgba(255,229,0,.22);
}
#notifyModal[data-premium="true"] .premium-success{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(8,10,14,.10);
}
/* =========================================================
   Premium Waitlist Success (post-signup) — polish pass
   Targets the injected UI via data-viq-* hooks.
   Paste at VERY BOTTOM of styles.css
   ========================================================= */

#notifyModal .viq-panel,
#externalAlertsModal .viq-panel{
  width: min(680px, calc(100vw - 28px));
}

/* Header area spacing + typography */
#notifyModal [data-viq-close],
#externalAlertsModal [data-viq-close]{
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(8,10,14,.10) !important;
  background: rgba(255,255,255,.90) !important;
  display: inline-grid !important;
  place-items: center !important;
  transition: transform .15s ease, filter .15s ease !important;
}
#notifyModal [data-viq-close]:hover,
#externalAlertsModal [data-viq-close]:hover{
  transform: translateY(-1px) !important;
  filter: brightness(1.02) !important;
}

/* Make the “Share VerdictIQ” card feel like a premium surface */
#notifyModal [data-viq-copy],
#notifyModal [data-viq-share],
#notifyModal [data-viq-x],
#notifyModal [data-viq-li],
#externalAlertsModal [data-viq-copy],
#externalAlertsModal [data-viq-share],
#externalAlertsModal [data-viq-x],
#externalAlertsModal [data-viq-li]{
  border: 1px solid rgba(8,10,14,.12) !important;
  background: rgba(255,255,255,.94) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-weight: 950 !important;
  letter-spacing: .2px !important;
  box-shadow: 0 10px 22px rgba(10,12,16,.08) !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease !important;
}
#notifyModal [data-viq-copy]:hover,
#notifyModal [data-viq-share]:hover,
#notifyModal [data-viq-x]:hover,
#notifyModal [data-viq-li]:hover,
#externalAlertsModal [data-viq-copy]:hover,
#externalAlertsModal [data-viq-share]:hover,
#externalAlertsModal [data-viq-x]:hover,
#externalAlertsModal [data-viq-li]:hover{
  transform: translateY(-1px) !important;
  filter: brightness(1.01) !important;
  box-shadow: 0 14px 28px rgba(10,12,16,.10) !important;
}

/* Give X + LinkedIn a more “button” look (still on-brand) */
#notifyModal [data-viq-x],
#externalAlertsModal [data-viq-x]{
  background: rgba(8,10,14,.92) !important;
  color: #fff !important;
  border-color: rgba(8,10,14,.10) !important;
  box-shadow: 0 14px 30px rgba(10,12,16,.16) !important;
}
#notifyModal [data-viq-li],
#externalAlertsModal [data-viq-li]{
  background: rgba(255,229,0,.18) !important;
}

/* Premium “Done” CTA */
#notifyModal [data-viq-done],
#externalAlertsModal [data-viq-done]{
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 950 !important;
  letter-spacing: .2px !important;
  border: 1px solid rgba(8,10,14,.12) !important;
  background: rgba(8,10,14,.92) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(10,12,16,.18) !important;
  transition: transform .16s ease, filter .16s ease !important;
}
#notifyModal [data-viq-done]:hover,
#externalAlertsModal [data-viq-done]:hover{
  transform: translateY(-1px) !important;
  filter: brightness(1.03) !important;
}

/* Make the share URL look like a “copy field” */
#notifyModal [data-viq-copy] ~ div,
#externalAlertsModal [data-viq-copy] ~ div{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 12px !important;
  opacity: .78 !important;
}

/* Optional: tighten overall modal padding on small screens */
@media (max-width: 520px){
  #notifyModal .viq-panel,
  #externalAlertsModal .viq-panel{
    margin-top: 56px;
    padding: 16px 14px !important;
    border-radius: 18px;
  }
}



/* =========================================================
   Market Pulse (24H) — Right panel charts
   Replaces the Belief Shock (Now/1h/24h) box
   ========================================================= */
.pulsecard{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(8,10,14,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86));
  box-shadow: 0 18px 44px rgba(10,12,16,.08);
  overflow: hidden;
}

.pulse-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 12px 10px;
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid rgba(8,10,14,.08);
}

.pulse-title{
  font-weight: 980;
  text-transform: none;
  font-size: 13px;
  color: rgba(8,10,14,.92);
  letter-spacing: .2px;
}
.pulse-range{ font-weight: 900; color: rgba(8,10,14,.56); margin-left: 6px; }

.pulse-tabs{
  display:inline-flex;
  gap:6px;
  padding:6px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(8,10,14,.08);
}

.pulse-tab{
  appearance:none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(8,10,14,.68);
  font-weight: 950;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
  line-height:1;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease;
}
.pulse-tab:hover{ transform: translateY(-1px); }
.pulse-tab:active{ transform: translateY(0); }
.pulse-tab.is-on{
  background: rgba(255,255,255,.96);
  border-color: rgba(8,10,14,.10);
  box-shadow: 0 10px 18px rgba(10,12,16,.10);
  color: rgba(8,10,14,.92);
}
.pulse-tab.is-locked{
  opacity: .85;
}
.pulse-tab.is-locked::after{
  content:"";
}

.pulse-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

@media (max-width: 980px){
  .pulse-grid{ grid-template-columns: 1fr; }
}

.pulse-metric{
  border-radius: 16px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,229,0,.06);
  padding: 10px 10px 8px;
  position: relative;
  overflow: hidden;
}
.pulse-metric[data-metric="prob"]{ background: rgba(255,255,255,.90); }
.pulse-metric[data-metric="shock"]{ background: rgba(255,229,0,.06); }
.pulse-metric[data-metric="liq"]{ background: rgba(18,166,255,.06); }

.pulse-m-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-bottom: 6px;
}
.pulse-m-name{
  font-weight: 950;
  font-size: 12px;
  color: rgba(8,10,14,.92);
}
.pulse-m-right{ display:flex; align-items:center; gap:8px; }
.pulse-m-value{
  font-weight: 990;
  font-size: 16px;
  color: rgba(8,10,14,.92);
  letter-spacing: -.2px;
}

.pulse-chip{
  display:inline-flex;
  align-items:center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(8,10,14,.10);
  font-weight: 980;
  text-transform: none;
  font-size: 10px;
  letter-spacing: .0px;
  background: rgba(255,255,255,.92);
  color: rgba(8,10,14,.86);
  white-space: nowrap;
}
.pulse-chip-shock{
  background: rgba(255,229,0,.22);
}
.pulse-chip-liq{
  background: rgba(18,166,255,.16);
}

.pulse-chart{
  position: relative;
  cursor: crosshair;
  height: 92px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
  border: 1px solid rgba(8,10,14,.06);
  overflow:hidden;
}
.pulse-svg{ width:100%; height:100%; display:block; }


/* Pulse hover tooltip */
.pulse-tooltip{
  position:absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(8,10,14,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events:none;
  opacity:0;
  transition: opacity .12s ease, transform .12s ease;
  min-width: 120px;
  z-index: 3;
}
.pulse-tooltip.is-on{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}
.pulse-tooltip-k{
  font-size: 11px;
  font-weight: 800;
  color: rgba(8,10,14,.55);
  line-height: 1.1;
  margin-bottom: 2px;
}
.pulse-tooltip-v{
  font-size: 14px;
  font-weight: 950;
  color: rgba(8,10,14,.92);
  line-height: 1.15;
}
.pulse-tooltip-t{
  font-size: 11px;
  font-weight: 750;
  color: rgba(8,10,14,.55);
  margin-top: 2px;
  line-height: 1.1;
}

.pulse-hoverline{
  stroke: rgba(8,10,14,.18);
  stroke-width: 1;
}
.pulse-hoverdot{
  fill: rgba(8,10,14,.92);
  stroke: rgba(255,229,0,.95);
  stroke-width: 2;
}

@media (prefers-reduced-motion: reduce){
  .pulse-tooltip{ transition:none; }
}



.pulse-line{
  fill: none;
  stroke: rgba(8,10,14,.88);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pulse-area{
  fill: rgba(255,229,0,.18);
  stroke: none;
}
.pulse-dot{ fill: rgba(255,229,0,.96); }

.pulse-line.liq{ stroke: rgba(18,166,255,.88); }
.pulse-area.liq{ fill: rgba(18,166,255,.16); }

.pulse-xaxis{
  margin-top: 6px;
  display:flex;
  justify-content:space-between;
  font-weight: 900;
  font-size: 11px;
  color: rgba(8,10,14,.48);
}

.pulse-subline{
  margin-top: 6px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-weight: 900;
  font-size: 11px;
  color: rgba(8,10,14,.56);
}
.pulse-trend{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight: 950;
  color: rgba(8,10,14,.72);
}
.pulse-muted{ color: rgba(8,10,14,.42); }

.pulse-summary{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(8,10,14,.08);
  background: rgba(255,255,255,.90);
}
.pulse-s{
  border-radius: 14px;
  border: 1px solid rgba(8,10,14,.08);
  background: rgba(255,255,255,.94);
  padding: 10px 10px;
}
.pulse-s-k{
  font-weight: 950;
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(8,10,14,.52);
}
.pulse-s-v{
  margin-top: 4px;
  font-weight: 990;
  font-size: 14px;
  color: rgba(8,10,14,.92);
}
.pulse-foot{
  padding: 10px 12px 12px;
  background: rgba(255,255,255,.90);
}
.pulse-note{
  font-weight: 850;
  font-size: 11px;
  color: rgba(8,10,14,.52);
}

/* Subtle lock affordance for 7D/Event */
.pulse-tab.is-locked{
  position: relative;
}
.pulse-tab.is-locked:before{
  content: "🔒";
  font-size: 11px;
  margin-right: 6px;
}

.pulse-chip-shock.low{ background: rgba(150,150,150,.18); }
.pulse-chip-shock.medium{ background: rgba(255,229,0,.22); }
.pulse-chip-shock.high{ background: rgba(255,170,0,.26); }
.pulse-chip-shock.extreme{ background: rgba(255,90,0,.26); }


/* =========================================================
   Premium Waitlist Success (modal) — polished layout (v2)
   ========================================================= */
.viq-success{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.viq-success-title{
  font-weight:950;
  font-size:18px;
  letter-spacing:-.02em;
}
.viq-success-sub{
  margin-top:6px;
  font-weight:650;
  color: rgba(8,10,14,.72);
  line-height:1.35;
}
.viq-success-sub2{ font-weight:850; color: rgba(8,10,14,.84); }
.viq-strong{ font-weight:950; color: rgba(8,10,14,.92); }

.viq-success-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.viq-share-card{
  border-radius:16px;
  border:1px solid rgba(8,10,14,.10);
  background: linear-gradient(180deg, rgba(255,229,0,.16), rgba(255,255,255,.92));
  box-shadow: 0 18px 44px rgba(10,12,16,.10);
  padding:14px;
  max-width:100%;
}
.viq-share-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.viq-share-title{ font-weight:950; }
.viq-share-sub{
  margin-top:4px;
  font-weight:650;
  color: rgba(8,10,14,.70);
  font-size:13px;
  line-height:1.35;
}
.viq-share-tag{
  white-space:nowrap;
  font-weight:850;
  font-size:12px;
  color: rgba(8,10,14,.70);
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(8,10,14,.10);
}

.viq-share-actions{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.viq-btn{
  appearance:none;
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.94);
  border-radius:999px;
  padding:10px 14px;
  font-weight:950;
  letter-spacing:.2px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  box-shadow: 0 10px 22px rgba(10,12,16,.08);
}
.viq-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.01);
  box-shadow: 0 14px 28px rgba(10,12,16,.10);
}
.viq-btn:active{ transform: translateY(0px); }

.viq-btn-dark{
  background: rgba(8,10,14,.92);
  color:#fff;
  border-color: rgba(8,10,14,.10);
  box-shadow: 0 14px 30px rgba(10,12,16,.16);
}
.viq-btn-accent{
  background: rgba(255,229,0,.20);
}

.viq-btn-primary{
  background: rgba(8,10,14,.92);
  color:#fff;
  border: 0;
  box-shadow: 0 16px 36px rgba(10,12,16,.18);
  padding:10px 16px;
}

.viq-share-url{
  margin-top:12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  color: rgba(8,10,14,.78);
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(8,10,14,.10);
  border-radius:12px;
  padding:10px 12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.viq-success-footer{
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 520px){
  .viq-share-top{ flex-direction:column; align-items:flex-start; }
  .viq-share-tag{ align-self:flex-start; }
  .viq-share-url{ white-space:normal; word-break:break-all; }
}



/* =========================================================
   ARBITRAGE DIVIDER (Landing) — VerdictIQ style
   ========================================================= */
.arb{ padding: 54px 0 20px; }
.arb-head{ text-align:center; margin-bottom: 18px; }
.arb-title{
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 950;
  color: rgba(8,10,14,.92);
}
.arb-sub{
  margin: 12px auto 0;
  max-width: 70ch;
  font-weight: 850;
  font-size: 14px;
  color: rgba(8,10,14,.60);
  line-height: 1.35;
}

.arb-shell{
  margin-top: 22px;
  border-radius: 26px;
  border: 1px solid rgba(8,10,14,.08);
  background:
    radial-gradient(900px 420px at 18% 8%, rgba(255,229,0,.18), rgba(255,229,0,0) 55%),
    radial-gradient(700px 380px at 90% 30%, rgba(0,0,0,.05), rgba(0,0,0,0) 62%),
    rgba(255,255,255,.92);
  box-shadow: 0 30px 80px rgba(10,12,16,.10);
  padding: 26px;
}

.arb-grid{
  display:grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.arb-card{
  border-radius: 22px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 40px rgba(10,12,16,.10);
  padding: 18px 18px 14px;
  position: relative;
  overflow:hidden;
}
.arb-card:before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(340px 180px at 24% 18%, rgba(255,229,0,.22), rgba(255,229,0,0) 60%),
    radial-gradient(320px 180px at 82% 62%, rgba(0,0,0,.06), rgba(0,0,0,0) 62%);
  pointer-events:none;
}
.arb-card > *{ position: relative; }

.arb-q{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: rgba(8,10,14,.92);
  line-height: 1.15;
}

.arb-venues{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.arb-venue{
  border-radius: 18px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.90);
  padding: 12px 12px;
}
.arb-v-top{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.arb-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8,10,14,.10);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .2px;
  color: rgba(8,10,14,.92);
  background: rgba(255,255,255,.95);
}
.arb-badge:before{
  content:"";
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: rgba(255,229,0,.96);
  box-shadow: 0 10px 22px rgba(255,229,0,.18);
  border: 1px solid rgba(8,10,14,.10);
}
.arb-badge.arb-p:before{ background: rgba(8,10,14,.92); box-shadow: 0 10px 22px rgba(0,0,0,.14); }

.arb-pct{
  font-weight: 950;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: rgba(8,10,14,.92);
}
.arb-v-sub{
  margin-top: 6px;
  font-weight: 850;
  font-size: 12px;
  color: rgba(8,10,14,.58);
}

.arb-edge{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,229,0,.10);
}
.arb-edge-k{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(8,10,14,.72);
}
.arb-edge-v{
  font-weight: 950;
  font-size: 14px;
  color: rgba(15,120,40,.92);
}

.arb-spark{ margin-top: 10px; height: 64px; border-radius: 16px; border:1px solid rgba(8,10,14,.08); background: rgba(255,255,255,.88); overflow:hidden; }
.arb-spark svg{ width:100%; height:100%; display:block; }
.arb-spark-grid{ stroke: rgba(8,10,14,.08); stroke-width: 1; }
.arb-spark-line{ fill: none; stroke: rgba(255,229,0,.96); stroke-width: 3.5; stroke-linecap: round; }
.arb-spark-dot{ fill: rgba(255,229,0,.96); }

.arb-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.arb-btn{
  appearance:none;
  border:1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.92);
  color: rgba(8,10,14,.90);
  font-weight: 950;
  border-radius: 999px;
  padding: 11px 14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.arb-btn:hover{ transform: translateY(-1px); }
.arb-btn:active{ transform: translateY(0px); }

.arb-btn-primary{
  background: rgba(255,229,0,.96);
  border-color: rgba(8,10,14,.14);
  box-shadow: 0 12px 22px rgba(255,229,0,.16);
}
.arb-btn-ghost{
  background: rgba(255,255,255,.92);
}

.arb-foot{
  margin-top: 10px;
  font-weight: 850;
  font-size: 12px;
  color: rgba(8,10,14,.52);
}

.arb-right{ padding: 6px 4px; }
.arb-copy-title{
  font-weight: 950;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: rgba(8,10,14,.92);
  line-height: 1.15;
}
.arb-copy{
  margin-top: 12px;
  font-weight: 850;
  font-size: 14px;
  color: rgba(8,10,14,.62);
  line-height: 1.45;
  max-width: 70ch;
}
.arb-quote{
  display:block;
  margin-top: 10px;
  padding-left: 14px;
  border-left: 3px solid rgba(255,229,0,.75);
  color: rgba(8,10,14,.78);
  font-weight: 900;
}

.arb-cta-row{
  margin-top: 16px;
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
.arb-note{
  font-weight: 850;
  font-size: 12px;
  color: rgba(8,10,14,.52);
}
.arb-fine{
  margin-top: 14px;
  font-weight: 850;
  font-size: 12px;
  color: rgba(8,10,14,.48);
}

@media (max-width: 980px){
  .arb-shell{ padding: 18px; }
  .arb-grid{ grid-template-columns: 1fr; gap: 18px; }
  .arb-right{ padding: 0; }
}



/* =========================================================
   VerdictIQ polish — Jan 2026
   - Top-right single Share button
   - Match left/right scroll heights in Product demo
   - Mobile polish for Arbitrage section
   ========================================================= */

/* Top-right share button in demo header */
.demo-actions .top-share-btn{
  appearance:none;
  border:1px solid rgba(8,10,14,.12);
  background: rgba(255,255,255,.92);
  color: rgba(8,10,14,.86);
  border-radius: 12px;
  width: 42px;
  height: 38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight: 950;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.demo-actions .top-share-btn:hover{ transform: translateY(-1px); }
.demo-actions .top-share-btn:active{ transform: translateY(0px); }

/* Desktop: make left panel scroll area match right panel height */
@media (min-width: 981px){
  .demo-grid{
    align-items: stretch;
  }
  #miniPanel{
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  #miniPanel .mini-table{
    flex: 1 1 auto;
    min-height:0;
    max-height:none !important;
  }
  #miniPanel #miniRows{
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height:none !important;
  }
  #miniPanel .mini-foot{
    margin-top:auto;
  }
}

/* Mobile polish: Arbitrage section should stack cleanly and breathe */
@media (max-width: 720px){
  .arb{ padding: 26px 0 34px; }
  .arb-shell{ padding: 0 12px; }
  .arb-grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .arb-card{ border-radius: 18px; }
  .arb-q{ font-size: 16px; line-height: 1.25; }
  .arb-venues{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .arb-pct{ font-size: 22px; }
  .arb-actions{
    gap: 10px;
  }
  .arb-actions .arb-btn{
    width: 100%;
    justify-content:center;
  }
  .arb-right{
    padding-top: 4px;
  }
  .arb-copy-title{ font-size: 18px; line-height: 1.25; }
  .arb-copy{ font-size: 13px; line-height: 1.45; }
  .arb-cta-row{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .arb-note{ font-size: 12px; }
}

/* =========================================================
   MOBILE HOTFIX — Jan 2026
   1) Venue pills: prevent text spill + improve wrapping on small screens
   2) Arbitrage header/card: cleaner on very small phones
   ========================================================= */

/* Venue pills: wrap into 2 rows on narrow devices (prevents clipped pills + spill) */
@media (max-width: 520px){
  .venue-toggle{
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px;
    margin: 6px 0 10px;
  }
  .venue-btn{
    font-size: 10px;
    padding: 7px 9px;
    letter-spacing: .28px;
    line-height: 1.05;
  }
  .venue-btn small{
    font-size: 10px;
    margin-left: 5px;
  }
}

/* Ultra-small phones: allow the venue pills to take full width without breaking text */
@media (max-width: 380px){
  .venue-toggle{ gap: 6px; }
  .venue-btn{
    flex: 0 0 auto;
    max-width: 100%;
  }
}

/* Arbitrage section: make the subtitle + venues stack cleanly on very small screens */
@media (max-width: 420px){
  .arb-head{ padding: 0 8px; }
  .arb-sub{
    font-size: 13px;
    line-height: 1.4;
    padding: 0 8px;
  }
  .arb-venues{ grid-template-columns: 1fr; }
  .arb-venue{ padding: 11px 11px; }
  .arb-badge{ font-size: 11px; padding: 7px 9px; }
  .arb-pct{ font-size: 20px; }
}

/* =========================================================
   MOBILE HOTFIX — Jan 2026
   1) Venue pills: prevent text spill + improve wrapping on small screens
   2) Arbitrage header/card: cleaner on very small phones
   ========================================================= */

/* Venue pills: wrap (instead of horizontal scroll) on very small screens */
@media (max-width: 520px){
  .venue-toggle{
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    gap: 6px !important;
    margin: 6px 0 10px !important;
  }
  .venue-btn{
    font-size: 10px !important;
    letter-spacing: .25px !important;
    padding: 7px 9px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important; /* keep pill text on one line */
  }
  .venue-btn small{
    font-size: 10px !important;
  }
}

/* Category pills (Trending/High Activity/...) also wrap neatly */
@media (max-width: 520px){
  .mini-tabs{
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    gap: 6px !important;
  }
  .mini-tab{
    font-size: 10px !important;
    letter-spacing: .25px !important;
    padding: 7px 9px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }
}

/* Ultra-small: Arbitrage venue boxes should stack 1-column */
@media (max-width: 420px){
  .arb-head{ padding: 0 8px; }
  .arb-sub{ font-size: 13px; line-height: 1.4; }
  .arb-venues{ grid-template-columns: 1fr !important; }
  .arb-venue{ padding: 10px 10px; }
  .arb-badge{ font-size: 11px; padding: 7px 9px; }
  .arb-pct{ font-size: 20px; }
}
/* ================================
   PILL SYSTEM — FINAL FIX
   ================================ */

/* Shared pill base */
.filter-pill,
.venue-pill,
.market-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- DESKTOP (default) ---------- */
.filters-row,
.venues-row {
  display: flex;
  flex-wrap: nowrap; /* 👈 NO WRAP on desktop */
  gap: 8px;
  overflow: hidden;
}

.filter-pill,
.venue-pill {
  font-size: 12px;     /* 👈 smaller, readable */
  height: 28px;
}

/* Ensure the NEW MARKETS pill never stretches */
.filter-pill.highlight {
  padding: 6px 10px;
}

/* ---------- TABLE HEADER SPACING ---------- */
.market-table-header {
  margin-top: 8px;
}

/* ================================
   MOBILE OVERRIDES
   ================================ */
@media (max-width: 768px) {
  .filters-row,
  .venues-row {
    flex-wrap: wrap;        /* 👈 allow wrap on mobile */
    gap: 6px;
  }

  .filter-pill,
  .venue-pill {
    font-size: 11px;
    height: 26px;
    padding: 5px 10px;
  }
}

/* Extra small phones */
@media (max-width: 420px) {
  .filter-pill,
  .venue-pill {
    font-size: 10px;
    height: 24px;
  }
}

/* ================================
   PRODUCT DEMO — SPACING & HEIGHT
   ================================ */

/* Main demo wrapper (parent of left + right panels) */
.product-demo,
.demo-wrapper,
.markets-demo {
  min-height: 720px;              /* 👈 gives the whole section air */
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Two-panel layout container */
.demo-grid,
.demo-panels {
  align-items: stretch;           /* 👈 ensure equal visual height */
}

/* ================================
   LEFT PANEL (MARKETS LIST)
   ================================ */

.left-panel,
.markets-panel {
  min-height: 680px;              /* 👈 more room for pills + table */
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
}

/* Header spacing */
.left-panel h2,
.markets-panel h2 {
  margin-bottom: 10px;
}

/* Venue pills row */
.venues-row {
  margin-top: 6px;
  margin-bottom: 10px;            /* 👈 space before categories */
}

/* Category pills row */
.filters-row {
  margin-bottom: 14px;            /* 👈 space before table header */
}

/* Table header (MARKET / IMPLIED / 24H) */
.market-table-header {
  margin-top: 6px;
  margin-bottom: 6px;
}

/* Scroll area (actual market list) */
.market-list,
.markets-scroll {
  flex: 1;                        /* 👈 fills remaining height */
  overflow-y: auto;
  padding-top: 6px;
}

/* ================================
   RIGHT PANEL (DETAIL VIEW)
   ================================ */

.right-panel,
.market-detail-panel {
  min-height: 680px;
  padding-bottom: 12px;
}

/* ================================
   MOBILE TUNING (still compact)
   ================================ */
@media (max-width: 768px) {
  .product-demo,
  .demo-wrapper {
    min-height: unset;            /* mobile scrolls naturally */
  }

  .left-panel,
  .right-panel {
    min-height: unset;
  }

  .filters-row {
    margin-bottom: 10px;
  }
}


/* =========================================================
   FINAL OVERRIDE — More vertical space for Venue + Category pills
   Desktop-first: increase demo height + left/right panel breathing room
   (CSS-only, safe: no JS/data wiring touched)
   ========================================================= */
@media (min-width: 981px){
  /* Give the whole demo more height */
  .demo-grid{
    height: min(880px, 92vh) !important;
  }

  /* Slightly larger interior padding so pills don't feel cramped */
  #miniPanel.mini,
  #detailPanel.mini.wide{
    padding: 16px !important;
  }

  /* Restore right panel internal layout padding (it sets padding:0 earlier) */
  #detailPanel.mini.wide{
    padding: 0 !important; /* keep flex layout intact */
  }
  #detailPanel .detail-sticky{
    padding: 16px 16px 12px !important;
  }
  #detailPanel .detail-body{
    padding: 16px !important;
    padding-bottom: 92px !important;
  }

  /* Increase spacing around venue + category rows */
  #miniPanel .mini-sub{ margin: 8px 0 14px !important; }
  #miniPanel .venue-toggle{ margin: 6px 0 12px !important; }
  #miniPanel .mini-tabs{ margin: 0 0 12px !important; }

  /* Ensure the left scroller uses all remaining height */
  #miniPanel{
    display:flex !important;
    flex-direction:column !important;
    min-height:0 !important;
  }
  #miniPanel .mini-table{
    flex: 1 1 auto !important;
    min-height:0 !important;
    max-height: none !important;
  }

  /* Slightly taller pills on desktop for readability */
  #miniPanel .venue-btn,
  #miniPanel .mini-tab{
    min-height: 30px !important;
    padding: 8px 10px !important;
  }
}

/* Tablet: still give more room, but avoid giant whitespace */
@media (max-width: 980px) and (min-width: 641px){
  .demo-grid{ padding: 14px !important; }
  #miniPanel .mini-sub{ margin: 8px 0 12px !important; }
  #miniPanel .venue-toggle{ margin: 6px 0 10px !important; }
  #miniPanel .mini-tabs{ margin: 0 0 10px !important; }
}



/* =========================================================
   VerdictIQ cosmetic polish (no logic changes)
   - Left rail breathing room (venues + tabs)
   - Arb divider locked preview mock
   ========================================================= */

/* Left rail: add breathing room + better wrapping */
#miniVenue.venue-toggle{
  padding: 10px 10px;
  margin-top: 10px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#miniVenue .venue-btn{
  margin: 0 !important;
}

#miniTabs.mini-tabs{
  padding: 10px 10px;
  margin-top: 10px;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#miniTabs .mini-tab{
  margin: 0 !important;
}

/* Slightly more space before list table so nothing feels cramped */
#miniPanel .mini-table{
  margin-top: 10px;
}

/* Arb divider: demo layout */
.arb-demo{ padding: 14px; }
.arb-demo-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom: 10px;
}
.arb-demo-title{
  font-weight: 950;
  letter-spacing: .2px;
  color: rgba(8,10,14,.92);
}
.arb-demo-lock{
  font-weight: 950;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8,10,14,.12);
  background: rgba(255,229,0,.16);
  color: rgba(8,10,14,.86);
}

.arb-demo-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  align-items: stretch;
}

.arb-demo-left{
  position:relative;
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.78);
  border-radius: 14px;
  overflow:hidden;
}
.arb-demo-th{
  display:grid;
  grid-template-columns: 1fr 28px 28px 54px;
  gap: 8px;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(8,10,14,.08);
  font-weight: 950;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(8,10,14,.55);
}
.arb-demo-rows{ padding: 8px; display:flex; flex-direction:column; gap:8px; }
.arb-demo-row{
  display:grid;
  grid-template-columns: 1fr 28px 28px 54px;
  gap: 8px;
  align-items:center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(8,10,14,.08);
  background: rgba(255,255,255,.90);
}
.arb-demo-row.is-active{
  box-shadow: 0 10px 24px rgba(10,12,16,.08);
  border-color: rgba(255,229,0,.35);
}
.arb-demo-m{ min-width:0; }
.arb-demo-q{
  font-weight: 950;
  font-size: 12px;
  color: rgba(8,10,14,.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arb-demo-meta{
  margin-top: 4px;
  font-weight: 850;
  font-size: 11px;
  color: rgba(8,10,14,.52);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arb-demo-num, .arb-demo-edge{
  font-weight: 950;
  font-size: 12px;
  color: rgba(8,10,14,.78);
}
.arb-demo-edge.y{ color: rgba(8,10,14,.92); }

.arb-demo-fade{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.92));
  pointer-events:none;
}

/* blur utility for redaction */
.arb-demo .blur{
  filter: blur(4px);
  opacity: .88;
}

/* Right snapshot */
.arb-demo-right{
  border: 1px solid rgba(8,10,14,.10);
  background: rgba(255,255,255,.78);
  border-radius: 14px;
  padding: 10px;
  overflow:hidden;
}
.arb-demo-sel-q{
  font-weight: 950;
  font-size: 12px;
  color: rgba(8,10,14,.84);
  padding: 6px 6px 8px;
}
.arb-demo-venues{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px;
}
.arb-demo-venue{
  border: 1px solid rgba(8,10,14,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  padding: 10px 10px;
}
.arb-demo-v-top{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.arb-demo-v-num{ font-weight: 950; color: rgba(8,10,14,.92); }
.arb-demo-v-sub{ margin-top: 4px; font-weight: 850; font-size: 11px; color: rgba(8,10,14,.52); }

.arb-demo-metrics{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 6px;
}
.arb-demo-metric{
  border: 1px solid rgba(8,10,14,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  padding: 10px 10px;
}
.arb-demo-metric .k{
  font-weight: 950;
  font-size: 11px;
  color: rgba(8,10,14,.52);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.arb-demo-metric .v{
  margin-top: 6px;
  font-weight: 950;
  font-size: 12px;
  color: rgba(8,10,14,.86);
}

.arb-demo-mini{
  padding: 6px;
}
.arb-demo-mini svg{
  width: 100%;
  height: 56px;
  display:block;
}
.arb-demo-mini-tag{
  margin-top: 6px;
  font-weight: 850;
  font-size: 11px;
  color: rgba(8,10,14,.52);
}
.arb-demo-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 6px 4px;
}

/* Responsive: stack arb demo */
@media (max-width: 980px){
  .arb-demo-grid{ grid-template-columns: 1fr; }
  .arb-demo-metrics{ grid-template-columns: 1fr; }
}

/* Mobile: reduce padding so it fits */
@media (max-width: 520px){
  #miniVenue.venue-toggle, #miniTabs.mini-tabs{ padding: 8px; }
  .arb-demo{ padding: 12px; }
}
