:root {
  --bg: #071014;
  --bg-elevated: #0b151b;
  --panel: rgba(15, 25, 32, 0.82);
  --panel-strong: #101d25;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.34);
  --text: #e6edf3;
  --muted: #8ea0ae;
  --green: #2fd47a;
  --green-soft: rgba(47, 212, 122, 0.14);
  --red: #ef5965;
  --red-soft: rgba(239, 89, 101, 0.14);
  --blue: #58a6ff;
  --amber: #f0b84f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.08), transparent 36rem),
    linear-gradient(180deg, #071014 0%, #091217 48%, #071014 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

.navbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 20, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px 26px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-weight: 760;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 5px;
  height: 22px;
  width: 22px;
}

nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(88, 166, 255, 0.11);
  color: var(--text);
}

main {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.section {
  scroll-margin-top: 86px;
}

.hero {
  align-items: end;
  display: block;
  min-height: 220px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 58px;
  letter-spacing: 0;
  line-height: 1.02;
  max-width: 980px;
}

h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy,
.source-note,
.metric-card small,
.panel-heading p {
  color: var(--muted);
}

.hero-copy {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 720px;
}

.panel,
.metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.overview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.metric-card:hover,
.panel:hover {
  border-color: var(--line-strong);
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 28px;
}

.panel {
  padding: 18px;
}

.panel-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.company-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.company-logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 780;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

.company-logo img {
  height: 100%;
  object-fit: contain;
  padding: 5px;
  width: 100%;
}

.company-logo.fallback {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.16), rgba(47, 212, 122, 0.1)),
    rgba(255, 255, 255, 0.04);
}

.small-logo,
.mover-logo {
  height: 36px;
  width: 36px;
}

.data-coverage {
  margin-top: 4px;
}

.symbol-search,
.symbol-form {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.symbol-search label,
.symbol-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.selector-control {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(170px, 1fr) auto;
}

.symbol-search input,
.symbol-form input,
.symbol-form select,
.selector-control button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 9px 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.selector-control button {
  cursor: pointer;
  font-weight: 760;
  padding: 9px 14px;
}

.symbol-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.symbol-search input:focus,
.symbol-form input:focus,
.symbol-form select:focus {
  border-color: rgba(88, 166, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.1);
  outline: none;
}

.selector-control button:hover {
  background: rgba(88, 166, 255, 0.11);
  border-color: var(--line-strong);
}

.chart-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.range-tabs button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  min-width: 42px;
  padding: 7px 10px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.range-tabs button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.range-tabs button.active {
  background: rgba(47, 212, 122, 0.12);
  border-color: rgba(47, 212, 122, 0.52);
  color: var(--green);
}

.ohlc-readout {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  min-height: 18px;
  text-align: right;
}

.chart-shell {
  min-height: 620px;
  position: relative;
}

.main-chart {
  height: 620px;
}

.technical-chart {
  height: 320px;
}

.movers-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-heading {
  align-items: center;
}

.mover-list {
  display: grid;
  gap: 8px;
}

.mover-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 36px minmax(0, 1fr) minmax(86px, auto) minmax(72px, auto);
  min-height: 58px;
  padding: 10px 12px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.mover-row:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.mover-rank {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  height: 28px;
  justify-content: center;
}

.mover-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mover-name strong {
  color: var(--text);
  font-size: 14px;
}

.mover-name small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mover-price,
.mover-change {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  text-align: right;
}

.prediction-chart-wrap {
  margin-top: 14px;
  position: relative;
}

.prediction-chart {
  height: 280px;
}

.projection-panel {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.projection-heading {
  margin-bottom: 12px;
}

.projection-heading h3 {
  font-size: 16px;
  margin: 0;
}

.projection-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) auto;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label,
.projection-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.projection-form input,
.projection-form button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 9px 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.selected-ticker-pill {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(17, 122, 84, 0.1), rgba(17, 122, 84, 0.04)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(17, 122, 84, 0.24);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-size: 15px;
  font-weight: 780;
  min-height: 44px;
  padding: 11px 12px;
}

.projection-form input:focus {
  border-color: rgba(88, 166, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.1);
  outline: none;
}

.projection-form button {
  cursor: pointer;
  font-weight: 760;
  white-space: nowrap;
}

.projection-form button:hover {
  background: rgba(88, 166, 255, 0.11);
  border-color: var(--line-strong);
}

.projection-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.projection-chart-wrap {
  margin-top: 14px;
  position: relative;
}

.projection-chart {
  height: 280px;
}

.prediction-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
}

.prediction-grid,
.model-grid,
.sentiment-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sentiment-strip {
  margin-top: 14px;
}

.data-metric {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.data-metric .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.data-metric .value {
  color: var(--text);
  font-size: 25px;
  font-weight: 780;
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

.neutral {
  color: var(--amber) !important;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.feature-list h3 {
  color: var(--text);
  font-size: 14px;
  margin: 0 0 4px;
}

.feature-row {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 10px;
  grid-template-columns: minmax(110px, 0.8fr) minmax(100px, 1.2fr) 48px;
}

.feature-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.feature-bar span {
  background: linear-gradient(90deg, var(--blue), var(--green));
  display: block;
  height: 100%;
}

.model-note {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-size: 13px;
  min-height: 62px;
  padding: 14px;
}

.news-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.news-image {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.news-image img {
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 220ms ease;
  width: 100%;
}

.news-image img.loaded {
  opacity: 1;
}

.news-fallback {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.16), rgba(47, 212, 122, 0.1)),
    #0e1920;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 760;
  height: 100%;
  justify-content: center;
  text-transform: uppercase;
}

.news-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.news-meta {
  color: var(--muted);
  font-size: 12px;
}

.news-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}

.news-title:hover {
  color: var(--blue);
}

.news-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sentiment-pill {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 780;
  padding: 6px 8px;
  width: fit-content;
}

.sentiment-pill.positive {
  background: var(--green-soft);
  color: var(--green) !important;
}

.sentiment-pill.negative {
  background: var(--red-soft);
  color: var(--red) !important;
}

.sentiment-pill.neutral,
.sentiment-pill.unknown {
  background: rgba(240, 184, 79, 0.13);
  color: var(--amber) !important;
}

.empty-state {
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 132px;
  padding: 18px;
  text-align: center;
}

.empty-state.compact-empty {
  justify-content: flex-start;
  min-height: 0;
  padding: 10px 12px;
  text-align: left;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 22px 24px 30px;
}

.hidden {
  display: none !important;
}

/* Visual refresh: darker trading workspace, animated market grid, sharper tool surfaces. */
:root {
  --bg: #06090a;
  --bg-elevated: #0b1012;
  --panel: rgba(12, 17, 19, 0.86);
  --panel-strong: rgba(16, 24, 26, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(183, 196, 189, 0.14);
  --line-strong: rgba(190, 213, 204, 0.32);
  --text: #edf4f1;
  --muted: #91a29d;
  --muted-2: #687772;
  --green: #36e58d;
  --green-soft: rgba(54, 229, 141, 0.13);
  --red: #ff5d6c;
  --red-soft: rgba(255, 93, 108, 0.13);
  --blue: #72c6ff;
  --amber: #f2c15f;
  --violet: #b5a7ff;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
  --ring: 0 0 0 4px rgba(114, 198, 255, 0.1);
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(180deg, rgba(6, 9, 10, 0.96) 0%, rgba(8, 13, 14, 0.98) 52%, #06090a 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 80px);
  isolation: isolate;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  animation: market-grid-drift 22s linear infinite;
  background:
    repeating-linear-gradient(90deg, rgba(54, 229, 141, 0.07) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(114, 198, 255, 0.045) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.16) 72%, transparent);
}

body::after {
  animation: market-scan 8s ease-in-out infinite;
  background: linear-gradient(100deg, transparent 0%, rgba(54, 229, 141, 0.085) 46%, transparent 58%);
  transform: translateX(-80%);
}

::selection {
  background: rgba(54, 229, 141, 0.26);
  color: var(--text);
}

main {
  gap: 22px;
  margin: 0 auto;
  max-width: 1680px;
  padding: 24px clamp(16px, 2.3vw, 34px);
  position: relative;
  width: 100%;
  z-index: 1;
}

main > * {
  min-width: 0;
}

.navbar {
  background:
    linear-gradient(180deg, rgba(8, 12, 13, 0.9), rgba(8, 12, 13, 0.72)),
    rgba(8, 12, 13, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.navbar::after {
  background: linear-gradient(90deg, transparent, rgba(54, 229, 141, 0.45), rgba(114, 198, 255, 0.42), transparent);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.74;
  position: absolute;
  right: 0;
}

.brand {
  letter-spacing: 0;
}

.brand-mark {
  animation: brand-pulse 2.8s ease-in-out infinite;
  background:
    linear-gradient(135deg, rgba(54, 229, 141, 0.95), rgba(114, 198, 255, 0.92)),
    #0e181a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 26px rgba(54, 229, 141, 0.28);
  overflow: hidden;
  position: relative;
}

.brand-mark::after {
  animation: shine-sweep 2.9s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  inset: -30% auto -30% -80%;
  position: absolute;
  transform: rotate(22deg);
  width: 70%;
}

nav {
  align-items: center;
  min-width: 0;
}

.nav-link {
  border: 1px solid transparent;
  color: #94a59f;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 99px;
  bottom: 3px;
  content: "";
  height: 2px;
  left: 10px;
  opacity: 0;
  position: absolute;
  right: 10px;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  min-height: 260px;
  overflow: hidden;
  padding: clamp(10px, 2vw, 18px) 0 4px;
  position: relative;
}

.hero::before {
  animation: candle-flow 16s linear infinite;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(54, 229, 141, 0.16) 7% 7.5%, transparent 7.5% 12%),
    linear-gradient(90deg, transparent 0 18%, rgba(255, 93, 108, 0.14) 18% 18.45%, transparent 18.45% 24%),
    linear-gradient(90deg, transparent 0 34%, rgba(242, 193, 95, 0.13) 34% 34.4%, transparent 34.4% 39%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, 0.035) 44px 45px, transparent 45px 70px);
  bottom: 2px;
  content: "";
  height: 74px;
  left: 0;
  opacity: 0.92;
  position: absolute;
  right: 0;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(54, 229, 141, 0.34), rgba(114, 198, 255, 0.2), transparent),
    linear-gradient(180deg, transparent, rgba(6, 9, 10, 0.74));
  bottom: 0;
  content: "";
  height: 86px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.hero > div {
  max-width: 1020px;
  position: relative;
  z-index: 1;
}

h1 {
  color: #f3faf7;
  font-size: clamp(36px, 4.3vw, 60px);
  font-weight: 820;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h2 {
  color: #f2f8f5;
}

.eyebrow {
  color: var(--green);
}

.hero-copy {
  color: #a8b8b2;
  max-width: 780px;
}

.panel,
.metric-card,
.data-metric,
.news-card,
.mover-row,
.model-note {
  backdrop-filter: blur(18px);
}

.panel,
.metric-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.panel,
.metric-card,
.section {
  min-width: 0;
}

.panel::before,
.metric-card::before {
  background: linear-gradient(90deg, rgba(54, 229, 141, 0.42), rgba(114, 198, 255, 0.22), transparent);
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.8;
  position: absolute;
  right: 0;
  top: 0;
}

.panel::after,
.metric-card::after {
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.055) 46%, transparent 54%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-65%);
  transition:
    opacity 220ms ease,
    transform 520ms ease;
}

.panel:hover::after,
.metric-card:hover::after {
  opacity: 1;
  transform: translateX(65%);
}

.metric-card {
  animation: card-pop 520ms ease both;
  min-height: 128px;
}

.metric-card:nth-child(2) {
  animation-delay: 60ms;
}

.metric-card:nth-child(3) {
  animation-delay: 120ms;
}

.metric-card:nth-child(4) {
  animation-delay: 180ms;
}

.metric-card:hover {
  box-shadow:
    var(--shadow),
    0 0 28px rgba(54, 229, 141, 0.08);
  transform: translateY(-4px);
}

.metric-card strong {
  font-size: clamp(24px, 2.2vw, 32px);
}

.panel {
  padding: clamp(16px, 1.6vw, 22px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.panel:hover {
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.panel-heading {
  position: relative;
  z-index: 1;
}

.source-note,
.metric-card small,
.panel-heading p {
  color: var(--muted);
}

.company-logo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #0a1011;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.company-logo.fallback {
  background:
    linear-gradient(135deg, rgba(54, 229, 141, 0.23), rgba(114, 198, 255, 0.16)),
    #0d1415;
}

.selector-control button,
.projection-form button {
  background:
    linear-gradient(180deg, rgba(54, 229, 141, 0.2), rgba(54, 229, 141, 0.08)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(54, 229, 141, 0.38);
  color: #eafff5;
  position: relative;
}

.selector-control button:hover,
.projection-form button:hover {
  background:
    linear-gradient(180deg, rgba(54, 229, 141, 0.26), rgba(114, 198, 255, 0.11)),
    rgba(255, 255, 255, 0.055);
  border-color: rgba(54, 229, 141, 0.65);
  box-shadow: 0 0 24px rgba(54, 229, 141, 0.16);
  transform: translateY(-1px);
}

.symbol-search input,
.symbol-form input,
.symbol-form select,
.projection-form input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(7, 11, 12, 0.82);
}

.symbol-search input:hover,
.symbol-form input:hover,
.symbol-form select:hover,
.projection-form input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.symbol-search input:focus,
.symbol-form input:focus,
.symbol-form select:focus,
.projection-form input:focus {
  box-shadow: var(--ring);
}

.range-tabs {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  padding: 5px;
}

.range-tabs button {
  border-color: transparent;
  min-height: 34px;
}

.range-tabs button:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}

.range-tabs button.active {
  background:
    linear-gradient(180deg, rgba(54, 229, 141, 0.2), rgba(54, 229, 141, 0.1)),
    rgba(54, 229, 141, 0.08);
  box-shadow: 0 0 18px rgba(54, 229, 141, 0.12);
}

.ohlc-readout {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
}

.chart-shell,
.prediction-chart-wrap,
.projection-chart-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(3, 7, 8, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.chart-shell::before,
.prediction-chart-wrap::before,
.projection-chart-wrap::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 52px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.main-chart,
.technical-chart,
.prediction-chart,
.projection-chart {
  position: relative;
  z-index: 1;
}

.mover-row,
.data-metric,
.model-note,
.news-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.022);
}

.mover-row:hover,
.data-metric:hover,
.news-card:hover {
  box-shadow: var(--shadow-soft);
}

.mover-row:hover .mover-logo,
.news-card:hover .news-image img,
.data-metric:hover .value {
  transform: scale(1.02);
}

.mover-logo,
.data-metric .value,
.news-image img {
  transition: transform 180ms ease;
}

.mover-rank {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(0, 0, 0, 0.14);
}

.data-metric {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.data-metric:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.data-metric .value {
  letter-spacing: 0;
}

.feature-bar {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.feature-bar span {
  animation: bar-fill 620ms ease both;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
  box-shadow: 0 0 16px rgba(54, 229, 141, 0.24);
}

.news-card {
  box-shadow: var(--shadow-soft);
}

.news-image::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.news-title {
  transition: color 160ms ease;
}

.sentiment-pill {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.12);
}

footer {
  margin-left: auto;
  margin-right: auto;
  max-width: 1680px;
  width: calc(100% - 48px);
}

.nav-status {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex: 0 0 auto;
  font-size: 12px;
  gap: 9px;
  max-width: 420px;
  min-width: 0;
}

.nav-status span:not(.status-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  animation: status-pulse 1.8s ease-in-out infinite;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(54, 229, 141, 0.56);
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.nav-status button {
  background:
    linear-gradient(180deg, rgba(114, 198, 255, 0.18), rgba(114, 198, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(114, 198, 255, 0.3);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  min-height: 34px;
  padding: 7px 11px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-status button:hover {
  border-color: rgba(114, 198, 255, 0.58);
  transform: translateY(-1px);
}

.nav-status button.refreshing {
  animation: refresh-tap 560ms ease both;
}

.guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.guide-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.024);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 108px;
  min-width: 0;
  padding: 14px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.guide-grid article:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.guide-grid strong {
  color: var(--text);
  font-size: 14px;
}

.guide-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tooltip {
  cursor: help;
  position: relative;
}

.tooltip::after {
  background: rgba(6, 10, 11, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  bottom: calc(100% + 8px);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 500;
  left: 0;
  line-height: 1.45;
  max-width: 260px;
  min-width: 220px;
  opacity: 0;
  padding: 9px 10px;
  pointer-events: none;
  position: absolute;
  text-transform: none;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 30;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.prediction-explainer,
.drivers-panel,
.model-summary,
.insight-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prediction-explainer {
  color: var(--muted);
  display: grid;
  gap: 6px;
  line-height: 1.55;
  margin-top: 14px;
  padding: 14px;
}

.prediction-explainer small {
  color: var(--amber);
}

.drivers-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
}

.driver-summary {
  color: #b6c7c1;
  font-size: 14px;
  line-height: 1.55;
}

.driver-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.driver-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 138px;
  padding: 13px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.driver-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.driver-card.positive {
  border-color: rgba(54, 229, 141, 0.24);
}

.driver-card.negative {
  border-color: rgba(255, 93, 108, 0.26);
}

.driver-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.driver-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.driver-head strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.driver-card p,
.driver-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.driver-progress {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.driver-progress span {
  animation: bar-fill 620ms ease both;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.driver-card.negative .driver-progress span {
  background: linear-gradient(90deg, var(--red), var(--amber));
}

.insight-card {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  line-height: 1.5;
  padding: 14px;
}

.insight-card p {
  color: #b6c7c1;
}

.insight-row {
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: grid;
  gap: 10px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding-top: 9px;
}

.insight-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.insight-row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.model-note {
  line-height: 1.5;
}

.model-summary {
  margin-top: 14px;
  padding: 0;
}

.model-summary .model-note {
  background: transparent;
  border: 0;
}

.news-section {
  display: grid;
  gap: 16px;
}

.news-controls {
  display: flex;
  gap: 8px;
}

.news-controls button {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  min-height: 36px;
  padding: 8px 12px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.news-controls button:hover {
  background: rgba(114, 198, 255, 0.1);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.news-marquee {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  min-height: 164px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: none;
}

.news-marquee::-webkit-scrollbar {
  display: none;
}

.news-marquee-track {
  animation: news-marquee 56s linear infinite;
  display: flex;
  gap: 12px;
  padding: 12px;
  width: max-content;
}

.news-marquee:hover .news-marquee-track {
  animation-play-state: paused;
}

.headline-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  max-width: 460px;
  min-height: 34px;
  padding: 7px 12px;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.headline-chip:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.headline-chip strong {
  color: var(--green);
  font-size: 12px;
}

.headline-chip span {
  color: #c6d3ce;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-carousel-card {
  flex: 0 0 360px;
  grid-template-columns: 126px minmax(0, 1fr);
  min-height: 138px;
}

.news-carousel-card .news-image {
  aspect-ratio: auto;
  min-height: 100%;
}

.news-carousel-card .news-body {
  gap: 8px;
  padding: 12px;
}

.news-carousel-card .news-title {
  font-size: 14px;
  line-height: 1.35;
  min-height: 0;
}

.news-carousel-card .news-summary {
  -webkit-line-clamp: 2;
  font-size: 12px;
  min-height: 0;
}

.news-placeholder-card {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 700;
  justify-content: center;
  padding: 14px;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium light mode refresh. Keep data/API behavior unchanged. */
:root {
  --bg: #f4f7fb;
  --bg-elevated: #eef3f8;
  --panel: #ffffff;
  --panel-strong: #f8fafc;
  --panel-soft: #f3f7fb;
  --line: #d9e3ef;
  --line-strong: #b8c7d9;
  --text: #122033;
  --muted: #607086;
  --muted-2: #8291a5;
  --green: #0f9f6e;
  --green-soft: rgba(15, 159, 110, 0.11);
  --red: #d64f5c;
  --red-soft: rgba(214, 79, 92, 0.11);
  --blue: #1677d2;
  --blue-soft: rgba(22, 119, 210, 0.1);
  --amber: #b7791f;
  --amber-soft: rgba(183, 121, 31, 0.12);
  --violet: #5f63d6;
  --shadow: 0 18px 48px rgba(20, 42, 71, 0.09);
  --shadow-soft: 0 10px 26px rgba(20, 42, 71, 0.08);
  --ring: 0 0 0 4px rgba(22, 119, 210, 0.12);
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 247, 251, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(22, 119, 210, 0.08), transparent 34rem),
    radial-gradient(circle at 90% 18%, rgba(15, 159, 110, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
}

body::before,
body::after {
  display: none;
}

::selection {
  background: rgba(22, 119, 210, 0.16);
  color: var(--text);
}

main {
  gap: 48px;
  max-width: 1720px;
  padding: 36px clamp(48px, 4vw, 72px);
}

.section {
  scroll-margin-top: 96px;
}

.navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 42, 71, 0.07);
}

.navbar::after {
  background: linear-gradient(90deg, transparent, rgba(22, 119, 210, 0.28), rgba(15, 159, 110, 0.22), transparent);
}

.brand,
.nav-link:hover,
.nav-link.active,
h1,
h2,
.guide-grid strong,
.feature-list h3,
.data-metric .value,
.news-title,
.mover-name strong,
.model-note {
  color: var(--text);
}

.brand-mark {
  animation: none;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 8px 18px rgba(22, 119, 210, 0.16);
}

.brand-mark::after {
  display: none;
}

.nav-link {
  color: var(--muted);
}

.nav-link:hover,
.nav-link.active {
  background: var(--blue-soft);
  border-color: rgba(22, 119, 210, 0.16);
}

.nav-link::after {
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.nav-status,
.hero-copy,
.source-note,
.metric-card small,
.panel-heading p,
.guide-grid span,
.driver-summary,
.driver-card p,
.driver-card small,
.insight-card p,
.mover-name small,
.news-meta,
.news-summary,
.ohlc-readout {
  color: var(--muted);
}

.status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.12);
}

.nav-status button,
.selector-control button,
.projection-form button,
.news-controls button,
.load-more-button,
.fullscreen-chart-button {
  background: linear-gradient(180deg, #ffffff, #f5f8fc);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 6px 14px rgba(20, 42, 71, 0.06);
}

.nav-status button:hover,
.selector-control button:hover,
.projection-form button:hover,
.news-controls button:hover,
.load-more-button:hover,
.fullscreen-chart-button:hover {
  background: var(--blue-soft);
  border-color: rgba(22, 119, 210, 0.32);
  box-shadow: var(--shadow-soft);
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle, rgba(22, 119, 210, 0.12) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  border-bottom: 1px solid var(--line);
  min-height: 0;
  padding: clamp(28px, 4vw, 54px) 0 6px;
}

.hero::before,
.hero::after {
  display: none;
}

.hero > div {
  max-width: 1120px;
}

.hero-kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-kicker .eyebrow {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.04;
  max-width: 1100px;
}

.hero-copy {
  font-size: 17px;
  max-width: 820px;
}

.hero-updated,
.hero-tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.hero-tagline {
  color: var(--blue);
  font-weight: 700;
}

.market-status-badge,
.model-health-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
}

.market-status-badge.open,
.model-health-badge.healthy {
  background: var(--green-soft);
  color: var(--green);
}

.market-status-badge.closed,
.model-health-badge.review {
  background: var(--amber-soft);
  color: var(--amber);
}

.model-health-badge.degraded {
  background: var(--blue-soft);
  color: var(--blue);
}

.guide-grid {
  gap: 14px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 28px;
}

.guide-grid article,
.panel,
.metric-card,
.data-metric,
.news-card,
.mover-row,
.model-note,
.prediction-explainer,
.drivers-panel,
.model-summary,
.insight-card {
  backdrop-filter: none;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel::before,
.metric-card::before,
.panel::after,
.metric-card::after {
  display: none;
}

.panel,
.metric-card,
.data-metric,
.news-card,
.mover-row,
.guide-grid article,
.driver-card {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.panel {
  padding: clamp(20px, 1.8vw, 28px);
}

.panel:hover,
.metric-card:hover,
.data-metric:hover,
.news-card:hover,
.mover-row:hover,
.driver-card:hover,
.guide-grid article:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 42px rgba(20, 42, 71, 0.12);
}

.overview-grid {
  gap: 16px;
}

.metric-card {
  gap: 10px;
  min-height: 148px;
  padding: 22px;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: clamp(30px, 2.6vw, 38px);
  gap: 8px;
  letter-spacing: 0;
  min-height: 44px;
}

.metric-card small {
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.overview-grid.is-loading .metric-card span,
.overview-grid.is-loading .metric-card strong,
.overview-grid.is-loading .metric-card small {
  animation: shimmer 1.25s linear infinite;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.74), transparent),
    #e8eef6;
  background-size: 420px 100%;
  border-radius: 7px;
  color: transparent !important;
  width: fit-content;
}

.overview-grid.is-loading .metric-card strong {
  min-width: 126px;
}

.overview-grid.is-loading .metric-card small {
  min-width: 180px;
}

.metric-context {
  color: var(--muted-2);
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-top: 2px;
}

.direction-icon,
.mover-direction-icon {
  font-size: 0.78em;
  line-height: 1;
}

.direction-icon.up,
.mover-direction-icon.up {
  color: var(--green);
}

.direction-icon.down,
.mover-direction-icon.down {
  color: var(--red);
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

.neutral {
  color: var(--amber) !important;
}

.company-logo,
.company-logo.fallback {
  background: linear-gradient(135deg, #edf6ff, #eefbf5);
  border-color: var(--line);
  box-shadow: none;
  color: var(--text);
}

.symbol-search input,
.symbol-form input,
.symbol-form select,
.projection-form input,
.watchlist-search,
.watchlist-sort {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

.symbol-search input:hover,
.symbol-form input:hover,
.symbol-form select:hover,
.projection-form input:hover {
  border-color: var(--line-strong);
}

.chart-toolbar {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.toolbar-group {
  align-items: flex-start;
  display: grid;
  gap: 7px;
}

.toolbar-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.range-tabs {
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.range-tabs button {
  background: transparent;
  color: var(--muted);
}

.range-tabs button:hover {
  background: #ffffff;
  color: var(--text);
}

.range-tabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(22, 119, 210, 0.18);
  color: #ffffff;
}

.ohlc-readout {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--muted);
}

.chart-shell,
.prediction-chart-wrap,
.projection-chart-wrap {
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.chart-shell::before,
.prediction-chart-wrap::before,
.projection-chart-wrap::before {
  background:
    repeating-linear-gradient(90deg, rgba(20, 42, 71, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(20, 42, 71, 0.03) 0 1px, transparent 1px 58px);
}

.chart-shell {
  min-height: 560px;
}

.main-chart {
  height: 560px;
}

.mover-list {
  gap: 10px;
}

.mover-row {
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  min-height: 64px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.mover-row:hover {
  background: #f6faff;
  transform: translateY(-1px);
}

.mover-rank {
  background: var(--panel-strong);
  color: var(--muted);
}

.mover-name strong {
  font-size: 16px;
}

.mover-change {
  font-size: 15px;
  font-weight: 800;
}

.mover-toggle,
.load-more-button {
  cursor: pointer;
  font-weight: 760;
  min-height: 40px;
  padding: 9px 14px;
}

.mover-toggle {
  border-radius: 7px;
  margin-top: 4px;
}

.prediction-layout {
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

.prediction-layout > .panel:first-child {
  order: 1;
}

.prediction-depth-panel {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  order: 3;
}

.prediction-depth-panel .drivers-panel {
  margin-top: 0;
}

.prediction-depth-panel .projection-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prediction-depth-panel .projection-form button {
  grid-column: 1 / -1;
}

.prediction-depth-panel .projection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prediction-grid {
  grid-template-columns: minmax(280px, 1.15fr) repeat(2, minmax(0, 0.9fr));
}

.prediction-hero-card {
  border-color: rgba(22, 119, 210, 0.22);
  display: grid;
  gap: 14px;
  grid-row: span 2;
  min-height: 240px;
}

.prediction-hero-top {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.prediction-direction {
  align-items: center;
  display: flex;
  font-size: clamp(42px, 4.2vw, 64px);
  font-weight: 860;
  gap: 12px;
  line-height: 1;
}

.prediction-return {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.prediction-return strong {
  color: var(--text);
  display: block;
  font-size: 24px;
}

.confidence-block {
  display: grid;
  gap: 8px;
}

.confidence-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  text-transform: uppercase;
}

.confidence-value {
  color: var(--text);
  font-size: 18px;
  font-weight: 820;
}

.confidence-bar {
  background: #edf2f7;
  border-radius: 999px;
  height: 10px;
  overflow: visible;
  position: relative;
}

.confidence-bar span {
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.confidence-marker {
  background: var(--text);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(20, 42, 71, 0.22);
  height: 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
}

.confidence-scale {
  color: var(--muted);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
}

.prediction-disclaimer {
  background: var(--amber-soft);
  border: 1px solid rgba(183, 121, 31, 0.2);
  border-radius: 8px;
  color: #7a4f10;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px;
}

.prediction-mode-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.compact-direction {
  color: var(--text);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.08;
}

.data-metric {
  background: #ffffff;
  padding: 16px;
}

.data-metric .label {
  color: var(--muted);
}

.data-metric .value {
  font-size: 25px;
}

.model-health-header {
  align-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.model-health-header p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tooltip::after {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
}

.news-controls {
  align-items: center;
  flex-wrap: wrap;
}

.news-filter-bar {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.news-filter-bar button {
  border-color: transparent;
  box-shadow: none;
  min-height: 32px;
  padding: 6px 10px;
}

.news-filter-bar button.active {
  background: var(--blue);
  color: #ffffff;
}

.news-grid {
  gap: 16px;
}

.news-card {
  background: #ffffff;
}

.news-card:hover {
  background: #ffffff;
}

.news-image {
  background: var(--panel-strong);
}

.news-image::after {
  background: linear-gradient(180deg, transparent, rgba(20, 42, 71, 0.06));
}

.news-fallback {
  background: linear-gradient(135deg, #eef6ff, #edfdf6);
  color: var(--muted);
}

.news-body {
  gap: 11px;
  padding: 16px;
}

.news-meta {
  font-size: 13px;
  font-weight: 700;
}

.news-title {
  display: -webkit-box;
  font-size: 17px;
  line-height: 1.38;
  min-height: 47px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-summary {
  display: -webkit-box;
  font-size: 14px;
  min-height: 63px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-carousel-card .news-title,
.news-carousel-card .news-summary {
  min-height: 0;
}

.news-carousel-card .news-title {
  font-size: 14px;
}

.news-carousel-card .news-summary {
  -webkit-line-clamp: 2;
  font-size: 12px;
}

/* Focused portfolio dashboard layout overrides. */
.hero {
  padding-bottom: clamp(22px, 3vw, 38px);
}

.overview-grid {
  align-items: stretch;
}

.metric-card {
  min-height: 136px;
  padding: 20px;
}

.metric-card span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.08;
}

.metric-card small {
  font-size: 13px;
  line-height: 1.45;
}

.chart-shell {
  min-height: 460px;
}

.main-chart {
  height: 460px;
}

.chart-shell:has(.empty-state:not(.hidden)) {
  min-height: 132px;
}

.chart-shell:has(.empty-state:not(.hidden)) .main-chart {
  height: 132px;
}

.mover-list,
.prediction-ranking-list {
  display: grid;
  gap: 10px;
}

.prediction-rank-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 38px minmax(0, 1fr) minmax(82px, auto) minmax(92px, auto);
  min-height: 64px;
  padding: 12px 14px;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.prediction-rank-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.prediction-rank-row.up .prediction-rank-value {
  color: var(--green);
}

.prediction-rank-row.down .prediction-rank-value {
  color: var(--red);
}

.prediction-rank-value,
.prediction-rank-meta {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.prediction-rank-value {
  font-weight: 800;
}

.prediction-rank-meta {
  color: var(--muted);
}

.projection-panel .panel-heading {
  margin-bottom: 14px;
}

.compact-chart-wrap .projection-chart {
  height: 220px;
}

.compact-model-panel .model-summary {
  margin-top: 12px;
}

.compact-model-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-model-grid .data-metric {
  min-height: 92px;
  padding: 13px;
}

.compact-model-grid .data-metric .value {
  font-size: 20px;
}

.compact-model-grid .model-health-header {
  min-height: 92px;
}

.news-context-label {
  font-weight: 700;
}

.news-marquee {
  min-height: 156px;
}

.news-marquee-track {
  min-height: 156px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.news-marquee-track.is-transitioning {
  opacity: 0;
  transform: translateY(6px);
}

.news-marquee {
  background: #ffffff;
  border-color: var(--line);
}

.headline-chip {
  background: var(--panel-strong);
  color: var(--text);
}

.headline-chip span {
  color: var(--muted);
}

.sentiment-pill.positive {
  background: var(--green-soft);
}

.sentiment-pill.negative {
  background: var(--red-soft);
}

.sentiment-pill.neutral,
.sentiment-pill.unknown {
  background: var(--amber-soft);
}

.empty-state {
  background: var(--panel-strong);
  border-color: var(--line-strong);
  color: var(--muted);
}

.loading-overlay {
  background: rgba(255, 255, 255, 0.78);
}

.spinner {
  border-color: rgba(22, 119, 210, 0.18);
  border-top-color: var(--blue);
}

.toast {
  background: #ffffff;
  color: var(--text);
}

footer {
  color: var(--muted);
  max-width: 1720px;
  width: calc(100% - 96px);
}
