.analytics-card {
  background: linear-gradient(180deg, rgba(17, 27, 49, 0.95), rgba(11, 19, 34, 0.95));
  border: 1px solid #1a2b4a;
  border-radius: 0.9rem;
}

.analytics-label {
  color: #506a89;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.analytics-value {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.2rem;
}

.analytics-sub {
  color: #5b7492;
  font-size: 0.74rem;
}

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

.text-amber {
  color: #ffb445;
}

.text-violet-soft {
  color: #ae86ff;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 232, 136, 0.25);
  color: rgba(0, 232, 136, 0.9);
  background: rgba(0, 232, 136, 0.1);
  border-radius: 999px;
  font-size: 0.66rem;
  padding: 0.28rem 0.58rem;
  font-weight: 600;
}

.rm-line {
  position: relative;
  border-top: 2px solid;
  min-height: 4.25rem;
  padding-top: 0.45rem;
}

.rm-value {
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  margin-bottom: 0.5rem;
}

.rm-name {
  color: #4f6681;
  font-size: 0.68rem;
}

.rm-amber {
  border-color: rgba(255, 180, 69, 0.6);
  color: #ffb445;
}

.rm-cyan {
  border-color: rgba(0, 212, 255, 0.6);
  color: var(--cyan);
}

.rm-violet {
  border-color: rgba(174, 134, 255, 0.6);
  color: #ae86ff;
}

.analytics-table {
  margin-top: 0.25rem;
}

.analytics-table th,
.analytics-table td {
  background: transparent;
  border-color: #1a2b4a;
  color: #b8cde4;
  font-size: 0.8rem;
}

.analytics-table th {
  color: #56718f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6rem;
  font-weight: 700;
}

.ticker {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  border: 1px solid;
}

.ticker-amber {
  color: #ffb445;
  border-color: rgba(255, 180, 69, 0.45);
  background: rgba(255, 180, 69, 0.12);
}

.ticker-cyan {
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.12);
}

.ticker-violet {
  color: #ae86ff;
  border-color: rgba(174, 134, 255, 0.45);
  background: rgba(174, 134, 255, 0.12);
}

.ticker-green {
  color: #29d794;
  border-color: rgba(41, 215, 148, 0.45);
  background: rgba(41, 215, 148, 0.12);
}

.ticker-rose {
  color: #ef75c4;
  border-color: rgba(239, 117, 196, 0.45);
  background: rgba(239, 117, 196, 0.12);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  border: 1px solid;
}

.status-chip.success {
  color: #29d794;
  border-color: rgba(41, 215, 148, 0.45);
  background: rgba(41, 215, 148, 0.1);
}

.status-chip.violet {
  color: #ae86ff;
  border-color: rgba(174, 134, 255, 0.45);
  background: rgba(174, 134, 255, 0.12);
}

.status-chip.warning,
.status-chip.amber {
  color: #ffb445;
  border-color: rgba(255, 180, 69, 0.45);
  background: rgba(255, 180, 69, 0.1);
}

.status-chip.rose {
  color: #ef75c4;
  border-color: rgba(239, 117, 196, 0.45);
  background: rgba(239, 117, 196, 0.1);
}

.trend {
  width: 5.2rem;
  height: 1.4rem;
}

.trend path {
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.trend-amber path {
  stroke: #ffb445;
}

.trend-cyan path {
  stroke: var(--cyan);
}

.trend-violet path {
  stroke: #ae86ff;
}

.badge-moic {
  font: 700 0.64rem/1 "JetBrains Mono", monospace;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  border: 1px solid;
}

.badge-moic.amber {
  color: #ffb445;
  border-color: rgba(255, 180, 69, 0.45);
  background: rgba(255, 180, 69, 0.12);
}

.badge-moic.cyan {
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.12);
}

.badge-moic.violet {
  color: #ae86ff;
  border-color: rgba(174, 134, 255, 0.45);
  background: rgba(174, 134, 255, 0.12);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.snapshot-grid > div,
.watch-grid > div {
  border: 1px solid #1a2b4a;
  border-radius: 0.45rem;
  background: rgba(7, 14, 26, 0.55);
  padding: 0.45rem 0.5rem;
  text-align: center;
}

.snapshot-grid small,
.watch-grid small {
  display: block;
  color: #4f6681;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.snapshot-grid strong,
.watch-grid strong {
  display: block;
  margin-top: 0.2rem;
  color: #c8def6;
  font-size: 0.77rem;
}

.watchlist-row + .watchlist-row {
  border-top: 1px solid #1a2b4a;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

:root[data-theme="light"] .analytics-card {
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  border-color: #d5e2f3;
}

:root[data-theme="light"] .analytics-sub,
:root[data-theme="light"] .rm-name,
:root[data-theme="light"] .analytics-table th {
  color: #6d88a8;
}

:root[data-theme="light"] .analytics-table th,
:root[data-theme="light"] .analytics-table td,
:root[data-theme="light"] .watchlist-row + .watchlist-row {
  border-color: #d8e4f4;
}

:root[data-theme="light"] .analytics-table td,
:root[data-theme="light"] .snapshot-grid strong,
:root[data-theme="light"] .watch-grid strong {
  color: #17314e;
}

:root[data-theme="light"] .snapshot-grid > div,
:root[data-theme="light"] .watch-grid > div {
  background: #f8fbff;
  border-color: #d8e4f4;
}

@media (max-width: 767px) {
  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-grid {
    grid-template-columns: 1fr;
  }
}
