/* RetailVolts Feed — tokens follow retailvolts.com / GateWatch.AI (dark, Inter, orange #FF6A00). */
:root {
  --bg: #0a0a0a;
  --panel: #080808;
  --card: #111111;
  --raise: #161616;
  --fg: #ffffff;
  --fg-2: #ffffffb3;
  --muted: #ffffff73;
  --faint: #ffffff40;
  --border: #ffffff14;
  --border-2: #ffffff24;
  --orange: #ff6a00;
  --orange-mid: #ff8c00;
  --orange-soft: #ff6a001a;
  --gold: #ffd23f;
  --bull: #00c805;
  --bear: #e84118;
  --live: #00c805;
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 44px; /* tape */
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: #0a0a0acc; backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1600px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 24px; }
.brand img { display: block; height: 24px; width: auto; }
.nav { display: flex; gap: 30px; margin: 0 auto; font-size: 13px; color: var(--fg-2); }
.nav a:hover { color: var(--fg); }
.top-actions { display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 20px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 13px; font-weight: 500; transition: border-color .15s, background .15s; }
.pill:hover { border-color: #ffffff4d; }
.pill-active { border-color: #ff6a0066; background: var(--orange-soft); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding-top: 40px; padding-bottom: 22px; align-items: end; }
.eyebrow { margin: 0 0 14px; font-size: 13px; color: var(--muted); letter-spacing: .01em; }
h1 { margin: 0; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; font-weight: 400; letter-spacing: -.035em; }
h1 .muted { color: var(--fg-2); }
h1 em { font-style: italic; color: var(--muted); }
.sub { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.sub b { color: var(--fg-2); font-weight: 500; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.live { display: flex; align-items: center; gap: 9px; font: 600 11px/1 var(--sans); letter-spacing: .22em; color: var(--live); }
.live.stale { color: var(--gold); }
.pulse { position: relative; width: 9px; height: 9px; }
.pulse::before, .pulse span { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; }
.pulse::before { animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; opacity: .6; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.subscribe { display: flex; gap: 8px; }
.sub-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--card); font: 500 12px/1 var(--mono); letter-spacing: .04em; cursor: pointer; transition: border-color .15s, color .15s; }
.sub-btn:hover { border-color: var(--orange); color: var(--orange); }
.sub-btn.icon { padding: 0 10px; }
.sub-btn svg, .search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sub-btn #sub-rss circle, .sub-btn circle { fill: currentColor; stroke: none; }

/* ---- company chips ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: baseline; gap: 7px; height: 32px; padding: 0 13px; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font: 500 12px/1 var(--mono); color: var(--fg-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--border-2); color: var(--fg); }
.chip .n { color: var(--faint); font-size: 11px; }
.chip[aria-pressed="true"] { border-color: var(--orange); color: var(--fg); background: var(--orange-soft); }
.chip[aria-pressed="true"] .n { color: var(--orange); }
.chip.empty { opacity: .45; }

/* ---- board ---- */
.pb { padding-bottom: 40px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: minmax(0, 1fr);border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; height: calc(100vh - 300px); min-height: 640px; }
.list-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.controls { padding: 12px 12px 8px; border-bottom: 1px solid var(--border); display: grid; gap: 10px; }
.search { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--muted); }
.search:focus-within { border-color: #ff6a0080; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--fg); font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: var(--card); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--fg-2); font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--orange-soft); color: var(--fg); box-shadow: inset 0 0 0 1px #ff6a0055; }
.tabs .tab-sub { font: 500 10px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
select { height: 36px; padding: 0 28px 0 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff99' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 14px; appearance: none; font-size: 12.5px; cursor: pointer; text-overflow: ellipsis; }
select:hover { border-color: var(--border-2); }
.count { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; padding: 4px 2px 2px; display: flex; justify-content: space-between; }
.count button { border: 0; background: none; color: var(--orange); font: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }

.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; }
.row { position: relative; display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: none; padding: 13px 16px 14px 20px; cursor: pointer; transition: background .12s; }
.row:hover { background: #ffffff06; }
.row[aria-selected="true"] { background: var(--raise); }
.row[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--orange); }
.row.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: #ff6a0026; } }
.row-meta { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; min-width: 0; }
.row-meta .src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkr { color: var(--orange); font-weight: 500; letter-spacing: .02em; }
.row-title { margin: 7px 0 0; font-size: 14px; line-height: 1.42; color: #ffffffe6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border); font: 500 10.5px/1 var(--sans); color: var(--fg-2); }
.sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.bullish .sdot, .sdot.bullish { background: var(--bull); }
.bearish .sdot, .sdot.bearish { background: var(--bear); }
.empty-list { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---- reader ---- */
.reader { overflow-y: auto; padding: 26px 30px 40px; min-height: 0; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; }
.reader-empty { color: var(--muted); font-size: 14px; padding-top: 40px; text-align: center; }
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.reader-top .r { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--fg-2); cursor: pointer; }
.icon-btn:hover { color: var(--orange); border-color: #ff6a0066; }
.icon-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back { display: none; }
.reader h2 { margin: 22px 0 0; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.byline { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; font-size: 12.5px; color: var(--muted); }
.byline .co { color: var(--fg-2); }
.read-at { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 500; }
.read-at:hover { color: var(--orange-mid); text-decoration: underline; text-underline-offset: 3px; }
.read-at svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

.section-h { margin: 30px 0 14px; display: flex; align-items: center; gap: 9px; font: 600 10.5px/1 var(--mono); letter-spacing: .18em; color: var(--fg-2); text-transform: uppercase; }
.section-h::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 13px 14px; min-width: 0; }
.tile .k { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile .v { margin-top: 9px; font-size: 15px; line-height: 1.3; font-weight: 500; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.v.bullish { color: var(--bull); }
.v.bearish { color: var(--bear); }
.summary { margin: 16px 0 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.65; }
.note { margin: 16px 0 0; padding: 12px 16px; border-left: 2px solid var(--orange); background: #ff6a000d; border-radius: 0 10px 10px 0; color: var(--fg-2); font-size: 13.5px; line-height: 1.6; }
.note b { color: var(--fg); font-weight: 500; }

.company { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 16px; }
.company-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.company-h .t { font: 500 15px/1.2 var(--mono); color: var(--orange); }
.company-h .n { color: var(--fg); font-family: var(--sans); font-weight: 500; margin-left: 8px; }
.company-h .feeds { font: 500 11px/1 var(--mono); color: var(--muted); display: flex; gap: 10px; }
.company-h .feeds a:hover { color: var(--orange); }
.company .cnote { margin: 8px 0 0; font-size: 12px; color: var(--gold); }
.stats { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.post { margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-size: 15px; line-height: 1.6; color: var(--fg); white-space: pre-line; overflow-wrap: anywhere; }
.post-by { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.post-by b { color: var(--fg); font-weight: 500; }
.post-by .plat { margin-left: auto; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.social-pulse { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.social-pulse h4 { margin: 0 0 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.social-pulse p { margin: 0; font-size: 12.5px; color: var(--muted); }
.stat { font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 20px; font-weight: 500; color: var(--fg); letter-spacing: -.02em; }
.lean { margin-top: 14px; }
.lean-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--raise); }
.lean-bar span { display: block; height: 100%; }
.lean-legend { margin-top: 7px; display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.lean-legend span { display: inline-flex; align-items: center; gap: 6px; }
.recent { list-style: none; margin: 12px 0 0; padding: 0; }
.recent button { width: 100%; text-align: left; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: none; cursor: pointer; font-size: 13px; color: var(--fg-2); line-height: 1.45; }
.recent button:hover { color: var(--fg); }
.recent .d { font: 500 10.5px/1.7 var(--mono); color: var(--muted); letter-spacing: .04em; }
.recent .x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- footer, tape, toast ---- */
.foot { padding-bottom: 32px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.foot p { margin: 0 0 6px; max-width: 900px; }
.foot a { color: var(--fg-2); }
.foot a:hover { color: var(--orange); }
.foot code { font-family: var(--mono); font-size: 11.5px; color: var(--fg-2); background: var(--card); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.tape { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 40px; overflow: hidden; background: #050505; border-top: 1px solid var(--border); display: flex; align-items: center; }
.tape-track { display: flex; white-space: nowrap; animation: tape 160s linear infinite; will-change: transform; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.tape-item .tkr { color: var(--orange); }
.tape-item svg { width: 9px; height: 11px; fill: var(--orange); margin-left: 18px; }
@keyframes tape { to { transform: translateX(-50%); } }
.toast { position: fixed; left: 50%; bottom: 60px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 10px; background: var(--raise); border: 1px solid var(--border-2); font-size: 13px; transition: opacity .2s, transform .2s; z-index: 40; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.skeleton { background: linear-gradient(90deg, #ffffff08, #ffffff12, #ffffff08); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .tape-track, .pulse::before, .row.fresh, .skeleton { animation: none; }
}

/* ---- narrow screens: list first, reader slides over it ---- */
@media (max-width: 1280px) {
  .tabs .tab-sub { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 900px) {
  .wrap, .topbar-inner { padding-left: 16px; padding-right: 16px; }
  .top-actions .pill:not(.pill-active) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .hero-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .board { display: block; height: auto; min-height: 0; }
  .list-pane { border-right: 0; }
  .list { max-height: none; overflow: visible; }
  .selects { grid-template-columns: 1fr 1fr; }
  .selects select:first-child { grid-column: span 2; }
  .reader { position: fixed; inset: 0 0 40px; z-index: 25; background: var(--bg); padding: 18px 16px 32px; transform: translateX(100%); transition: transform .22s ease; visibility: hidden; }
  body.reading .reader { transform: none; visibility: visible; }
  body.reading { overflow: hidden; }
  .back { display: inline-grid; }
  .reader-top .lbl { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 12px; }
}
