:root {
  --bg: #07111f;
  --bg-elevated: rgba(10, 21, 39, 0.92);
  --card: rgba(12, 24, 42, 0.88);
  --card-strong: rgba(13, 28, 49, 0.98);
  --line: rgba(104, 143, 191, 0.18);
  --text: #e8eef8;
  --muted: #90a4c3;
  --accent: #4cc9f0;
  --accent-2: #8b5cf6;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #fbbf24;
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 201, 240, 0.2), transparent 25%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 30%),
    linear-gradient(180deg, #040b14 0%, #07111f 100%);
}

a { color: inherit; }

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.site-header,
.panel,
.ticker-panel,
.signals-panel {
  backdrop-filter: blur(16px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
}

.eyebrow,
.section-kicker,
.ticker-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent);
}

.site-header h1,
.panel h2,
.signals-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.lead,
.section-text,
.panel-subtitle,
.data-list li,
.news-card__text,
.signal-card__description,
.signal-card__meta,
.progress-caption,
.empty-state p {
  color: var(--muted);
  line-height: 1.6;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.top-nav a {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 240, 0.16);
  text-decoration: none;
  color: #cfe7ff;
  background: rgba(11, 23, 40, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-nav a:hover,
.top-nav a.is-active {
  transform: translateY(-1px);
  border-color: rgba(76, 201, 240, 0.5);
  background: rgba(16, 33, 55, 0.92);
}

.ticker-panel {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 22px;
  overflow: hidden;
}

.ticker-track {
  white-space: nowrap;
  overflow: hidden;
  color: #cfeeff;
  text-overflow: ellipsis;
}

.content-stack {
  margin-top: 20px;
  display: grid;
  gap: 20px;
}

.signals-panel,
.panel {
  padding: 24px;
  border-radius: 28px;
}

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

.panel-heading.compact h2,
.panel h2,
.signals-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.signal-summary {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.signal-summary div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 19, 33, 0.82);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.signal-summary span,
.panel-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.signal-summary strong,
.panel-meta {
  margin-top: 4px;
  color: var(--text);
}

.cards,
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.signal-card,
.news-card,
.panel ul li {
  background: var(--card);
  border: 1px solid rgba(104, 143, 191, 0.16);
}

.signal-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  display: grid;
  gap: 18px;
  animation: floatCard 4s ease-in-out infinite;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.07), transparent 45%, rgba(139, 92, 246, 0.08));
  pointer-events: none;
}

.signal-card--BUY { border-color: rgba(34, 197, 94, 0.35); }
.signal-card--SELL { border-color: rgba(239, 68, 68, 0.35); }
.signal-card--NO_TRADE { border-color: rgba(148, 163, 184, 0.22); }

.signal-card__top,
.signal-card__stats,
.signal-card__levels,
.signal-card__footer,
.progress-legend,
.news-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.signal-card__top,
.signal-card__footer,
.news-card__header {
  align-items: flex-start;
}

.signal-card__title {
  margin: 0;
  font-size: 1.32rem;
}

.signal-card__subtitle,
.signal-chip,
.status-pill,
.impact-badge {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.signal-card__subtitle { margin-top: 6px; color: var(--muted); }

.signal-chip,
.status-pill,
.impact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.signal-chip--BUY { background: rgba(34, 197, 94, 0.14); color: #8cf5b0; border-color: rgba(34, 197, 94, 0.3); }
.signal-chip--SELL { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.signal-chip--NO_TRADE,
.status-pill--closed { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.2); }
.status-pill--active { background: rgba(76, 201, 240, 0.12); color: #9fe7ff; border-color: rgba(76, 201, 240, 0.26); }
.status-pill--open { background: rgba(251, 191, 36, 0.12); color: #fde68a; border-color: rgba(251, 191, 36, 0.24); }

.signal-card__stats {
  gap: 10px;
  flex-wrap: wrap;
}

.stat-box {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 18, 30, 0.86);
  border: 1px solid rgba(104, 143, 191, 0.12);
}

.stat-box span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-box strong {
  font-size: 1.02rem;
}

.signal-card__levels {
  gap: 12px;
  flex-wrap: wrap;
}

.level-box {
  flex: 1 1 150px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card-strong);
  border: 1px solid rgba(104, 143, 191, 0.12);
}

.level-box label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(7, 17, 31, 0.78);
  border: 1px solid rgba(76, 201, 240, 0.14);
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
  margin: 12px 0 8px;
}

.progress-bar__value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease;
}

.progress-legend {
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.data-list li {
  padding: 14px 16px;
  border-radius: 18px;
}

.calendar-list {
  gap: 14px;
}

.calendar-event {
  background: rgba(10, 24, 41, 0.9);
  border: 1px solid rgba(104, 143, 191, 0.2);
  padding: 18px 18px 16px;
}

.calendar-event article {
  display: grid;
  gap: 10px;
}

.calendar-event__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.calendar-event__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-event__time,
.calendar-event__description,
.calendar-event__impact p {
  margin: 0;
}

.calendar-event__status {
  display: flex;
}

.calendar-event__description {
  color: #dbeafe;
}

.calendar-event__impact {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 240, 0.15);
  background: rgba(7, 17, 30, 0.82);
}

.calendar-event__assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-event__impact strong {
  color: #e5f2ff;
}

.news-card {
  padding: 18px;
  border-radius: 22px;
}

.news-card__title {
  margin: 0;
  font-weight: 700;
}

.news-card__link { text-decoration: none; }
.news-card__link:hover { text-decoration: underline; color: var(--accent); }
.news-card__meta { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.news-card--empty,
.empty-state {
  padding: 22px;
  border-radius: 24px;
  background: rgba(8, 18, 30, 0.86);
  border: 1px dashed rgba(104, 143, 191, 0.24);
}

.impact-badge--high { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.impact-badge--medium { background: rgba(245, 158, 11, 0.16); color: #fde68a; }
.impact-badge--low { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.impact-badge--unknown { background: rgba(76, 201, 240, 0.12); color: #8fe9ff; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 900px) {
  .panel-heading,
  .signal-card__top,
  .signal-card__footer,
  .news-card__header,
  .progress-legend {
    flex-direction: column;
  }

  .signal-summary {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 14px;
  }

  .site-header,
  .signals-panel,
  .panel,
  .ticker-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .cards,
  .news-list {
    grid-template-columns: 1fr;
  }
}

.news-panel__heading {
  align-items: center;
}

.news-panel__meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.news-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.06), transparent 55%, rgba(139, 92, 246, 0.08));
  pointer-events: none;
}

.news-card > * {
  position: relative;
  z-index: 1;
}

.news-card--empty {
  align-content: center;
  min-height: 220px;
}

.news-card__header--stacked {
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.news-card__eyebrow,
.news-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-card__title {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.35;
}

.news-card__summary {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #dbeafe;
}

.news-card__text,
.news-card__meta,
.news-detail-box p,
.news-card__taxonomy strong {
  margin: 0;
}

.news-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.news-source-badge,
.news-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 25, 43, 0.88);
  border: 1px solid rgba(104, 143, 191, 0.2);
  color: #d9ebff;
  font-size: 0.8rem;
}

.news-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.news-card__sections {
  display: grid;
  gap: 12px;
}

.news-detail-box,
.news-signal-box {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(8, 19, 33, 0.82);
  border: 1px solid rgba(104, 143, 191, 0.14);
}

.news-detail-box h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.news-detail-box--impact {
  border-color: rgba(76, 201, 240, 0.2);
}

.news-card__taxonomy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.news-card__taxonomy div,
.news-card__assets {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.75);
  border: 1px solid rgba(104, 143, 191, 0.12);
}

.news-signal-box strong {
  display: block;
  line-height: 1.6;
}

.news-signal-box--strengthens_signal {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(10, 34, 23, 0.78);
}

.news-signal-box--weakens_signal {
  border-color: rgba(249, 115, 22, 0.32);
  background: rgba(46, 21, 10, 0.78);
}

.news-signal-box--neutral_to_signal {
  border-color: rgba(148, 163, 184, 0.24);
}

.impact-badge--high {
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.3);
}

.impact-badge--medium {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.25);
}

.impact-badge--low {
  background: rgba(76, 201, 240, 0.14);
  color: #9fe7ff;
  border-color: rgba(76, 201, 240, 0.26);
}

.news-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.news-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 240, 0.28);
  background: rgba(13, 29, 48, 0.92);
  color: #d6eeff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.news-link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(76, 201, 240, 0.52);
  background: rgba(17, 37, 60, 0.98);
}

.news-link-button--disabled {
  opacity: 0.65;
  cursor: default;
}

@media (max-width: 720px) {
  .news-panel__meta {
    justify-items: start;
  }

  .news-card__footer,
  .news-card__header--stacked {
    align-items: flex-start;
  }

  .news-card {
    padding: 18px;
  }
}

.news-banner-panel {
  padding: 24px;
  border-radius: 28px;
  backdrop-filter: blur(16px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.news-banner-list {
  display: grid;
  gap: 14px;
}

.news-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(8, 19, 33, 0.84);
  border: 1px solid rgba(104, 143, 191, 0.18);
}

.news-banner--high { border-color: rgba(248, 113, 113, 0.35); }
.news-banner--medium { border-color: rgba(251, 191, 36, 0.35); }

.news-banner__title {
  margin: 0 0 8px;
  font-weight: 700;
}

.news-banner__text,
.signal-news-alert p,
.signal-chart__empty,
.metric-card__header span,
.metric-card__row span,
.signal-chart__caption {
  color: var(--muted);
}

.news-banner__meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.signal-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.metric-card,
.signal-chart,
.signal-news-alert,
.signal-card__text-block {
  padding: 18px;
  border-radius: 20px;
  background: rgba(6, 15, 27, 0.78);
  border: 1px solid rgba(104, 143, 191, 0.16);
}

.metric-card__header,
.metric-card__row,
.signal-news-alert__header,
.signal-news-alert__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.metric-card__header,
.metric-card__row {
  flex-wrap: wrap;
}

.metric-card__header span,
.metric-card__row span,
.signal-news-alert__meta span,
.news-source-badge,
.news-card__eyebrow,
.signal-chart__axis-label,
.signal-chart__zone-label,
.signal-chart__level-label {
  font-size: 0.8rem;
}

.dual-progress {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.progress-bar--probability .progress-bar__value {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.6), rgba(76, 201, 240, 0.95), rgba(139, 92, 246, 0.95));
  animation: progressPulse 2.8s ease-in-out infinite;
}

.progress-bar--tp .progress-bar__value {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.55), rgba(34, 197, 94, 1));
  animation: progressPulse 3.2s ease-in-out infinite;
}

.progress-bar--sl .progress-bar__value {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.4), rgba(239, 68, 68, 0.95));
  animation: progressPulse 3.6s ease-in-out infinite;
}

.signal-chart {
  overflow: hidden;
}

.signal-chart__svg {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 14px;
}

.signal-chart__path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(76, 201, 240, 0.42));
  stroke-dasharray: 12;
  animation: drawPath 4s linear infinite;
}

.signal-chart__zone {
  fill: rgba(76, 201, 240, 0.08);
  stroke: rgba(76, 201, 240, 0.18);
}

.signal-chart__zone--liquidity {
  fill: rgba(139, 92, 246, 0.1);
  stroke: rgba(139, 92, 246, 0.28);
}

.signal-chart__level {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-dasharray: 6 6;
}

.signal-chart__projected-candle line,
.signal-chart__projected-candle rect {
  stroke-width: 2;
}

.signal-chart__projected-candle.is-bullish line,
.signal-chart__projected-candle.is-bullish rect {
  stroke: rgba(34, 197, 94, 0.95);
  fill: rgba(34, 197, 94, 0.3);
}

.signal-chart__projected-candle.is-bearish line,
.signal-chart__projected-candle.is-bearish rect {
  stroke: rgba(239, 68, 68, 0.95);
  fill: rgba(239, 68, 68, 0.25);
}

.signal-news-alert--empty {
  border-style: dashed;
}

.signal-news-alert--high {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(60, 10, 10, 0.28);
}

.signal-news-alert--medium {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(64, 41, 4, 0.25);
}

.signal-news-alert h4 {
  margin: 10px 0 8px;
}

.signal-news-alert__meta {
  flex-wrap: wrap;
  margin-top: 10px;
}

.news-panel__heading,
.news-card__header--stacked,
.news-card__badges,
.news-card__sections,
.news-card__taxonomy,
.news-card__assets,
.news-card__footer,
.news-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-card__sections,
.news-card__taxonomy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

.news-card__assets,
.news-card__footer {
  margin-top: 14px;
  justify-content: space-between;
  align-items: center;
}

.news-detail-box,
.news-signal-box {
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 18, 30, 0.9);
  border: 1px solid rgba(104, 143, 191, 0.14);
}

.news-chip,
.news-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.08);
  border: 1px solid rgba(76, 201, 240, 0.18);
}

.news-chip--muted,
.news-link-button--disabled {
  opacity: 0.7;
}

.news-link-button {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 240, 0.2);
  text-decoration: none;
  background: rgba(12, 24, 42, 0.8);
}

.news-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.impact-badge--high { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.impact-badge--medium { background: rgba(251, 191, 36, 0.12); color: #fde68a; border-color: rgba(251, 191, 36, 0.26); }
.impact-badge--low { background: rgba(34, 197, 94, 0.12); color: #86efac; border-color: rgba(34, 197, 94, 0.26); }

.empty-state {
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed rgba(104, 143, 191, 0.2);
  background: rgba(7, 17, 31, 0.7);
}

@keyframes progressPulse {
  0%, 100% { filter: brightness(0.95); }
  50% { filter: brightness(1.18); }
}

@keyframes drawPath {
  from { stroke-dashoffset: 120; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .panel-heading,
  .news-banner,
  .signal-card__top,
  .signal-card__footer,
  .news-banner__meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .signal-card__badges {
    justify-content: flex-start;
  }

  .news-banner__meta {
    justify-items: start;
    text-align: left;
  }
}


.content-stack--signals-only {
  margin-top: 24px;
}

.content-stack--signals-only .signals-panel {
  margin-top: 0;
}

.news-panel .news-list {
  grid-template-columns: 1fr;
  gap: 14px;
}

.news-card {
  gap: 14px;
  padding: 18px;
}

.news-card__header {
  align-items: flex-start;
}

.news-card__header-main {
  display: grid;
  gap: 6px;
}

.news-card__title {
  font-size: 1.08rem;
  line-height: 1.45;
}

.news-card__summary {
  font-size: 0.94rem;
  line-height: 1.55;
}

.news-card__compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.news-detail-box--compact {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 18, 30, 0.82);
  border: 1px solid rgba(104, 143, 191, 0.12);
}

.news-detail-box--compact h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-detail-box--compact p {
  color: var(--muted);
  line-height: 1.5;
}

.news-card__footer--compact {
  align-items: center;
}

.news-card__footer--compact .news-card__meta {
  flex: 1 1 240px;
}

.news-card__image-wrap,
.news-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 20px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,216,77,.35), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(69,202,255,.32), transparent 34%),
    linear-gradient(135deg, rgba(124,60,255,.95), rgba(6,18,36,.98));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 45px rgba(0,0,0,.28);
}

.news-card__image-wrap img,
.news-image-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.news-card__image-wrap.is-fallback::after,
.news-image-wrap.is-fallback::after {
  content: "Market Pulse";
  position: absolute;
  inset: auto 18px 18px 18px;
  color: #fff;
  font-weight: 950;
  font-size: 28px;
  letter-spacing: -.04em;
  text-shadow: 0 8px 26px rgba(0,0,0,.45);
}

.news-card__story {
  white-space: pre-line;
  color: rgba(244,248,255,.88);
  line-height: 1.7;
  font-size: 15px;
}

.news-card--compact {
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-card--compact:hover,
.news-card--compact:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(76, 201, 240, 0.45);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.35);
}

.news-modal {
  width: min(980px, 96vw);
  border: none;
  background: transparent;
  padding: 0;
}

.news-modal::backdrop {
  background: rgba(2, 8, 23, 0.7);
  backdrop-filter: blur(4px);
}

.news-modal__card {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(104, 143, 191, 0.25);
  background: linear-gradient(180deg, rgba(12, 25, 43, 0.97), rgba(7, 17, 31, 0.95));
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.56);
}

.news-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.92);
  color: #dbeafe;
}

.news-image-wrap--big img {
  height: min(420px, 45vh);
}

.news-modal__body {
  background: rgba(4, 14, 28, 0.82);
  border: 1px solid rgba(95, 156, 230, 0.34);
  border-radius: 18px;
  padding: 18px;
  max-width: 820px;
}

.news-modal__story {
  margin: 0;
  color: rgba(244, 248, 255, 0.92);
  line-height: 1.75;
  font-size: 15px;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .news-card__compact-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-layout {
  align-items: start;
}

.stats-grid,
.signal-dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-surface {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 28, 49, 0.96), rgba(9, 20, 35, 0.92));
  border: 1px solid rgba(104, 143, 191, 0.14);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.3);
}

.stat-surface__label,
.stat-surface__hint,
.premium-signal-card__eyebrow,
.premium-signal-card__subtitle,
.premium-signal-card__meta,
.metric-box span,
.signal-details__panel-head span,
.detail-kv-list span {
  color: var(--muted);
}

.stat-surface__label,
.premium-signal-card__eyebrow {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.stat-surface__value {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.stat-surface__hint {
  margin: 0;
  line-height: 1.55;
}

.premium-signal-card {
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(104, 143, 191, 0.18);
  background: rgba(9, 19, 33, 0.88);
  box-shadow: 0 22px 64px rgba(2, 6, 23, 0.34);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  animation: cardFadeIn 0.55s ease both;
}

.premium-signal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 74px rgba(2, 6, 23, 0.42);
}

.premium-signal-card--active:hover { border-color: rgba(76, 201, 240, 0.34); }
.premium-signal-card--hit:hover { border-color: rgba(34, 197, 94, 0.34); }
.premium-signal-card--missed:hover { border-color: rgba(239, 68, 68, 0.34); }
.premium-signal-card--cancelled:hover,
.premium-signal-card--expired:hover { border-color: rgba(148, 163, 184, 0.28); }

.premium-signal-card__surface {
  position: relative;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.premium-signal-card__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(76, 201, 240, 0.04), transparent 42%, rgba(139, 92, 246, 0.08));
  pointer-events: none;
}

.premium-signal-card__surface > * {
  position: relative;
  z-index: 1;
}

.premium-signal-card__header,
.premium-signal-card__footer,
.premium-signal-card__badges,
.premium-signal-card__meta,
.signal-details__panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.premium-signal-card__header,
.premium-signal-card__footer {
  align-items: flex-start;
}

.premium-signal-card__badges,
.premium-signal-card__meta {
  flex-wrap: wrap;
}

.premium-signal-card__title {
  margin: 0;
  font-size: 1.55rem;
}

.premium-signal-card__subtitle,
.premium-signal-card__description p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.premium-signal-card__metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.metric-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.78);
  border: 1px solid rgba(104, 143, 191, 0.12);
}

.metric-box span {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.metric-box strong {
  font-size: 1.08rem;
}

.details-button {
  border: 1px solid rgba(76, 201, 240, 0.28);
  background: linear-gradient(180deg, rgba(16, 35, 58, 0.96), rgba(11, 23, 38, 0.94));
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.details-button:hover,
.details-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(76, 201, 240, 0.6);
  box-shadow: 0 12px 24px rgba(76, 201, 240, 0.12);
  outline: none;
}

.signal-details {
  padding-top: 8px;
}

.signal-details__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.5fr 1fr;
}

.signal-details__panel {
  padding: 18px;
  border-radius: 22px;
  background: rgba(6, 14, 26, 0.88);
  border: 1px solid rgba(104, 143, 191, 0.12);
}

.signal-chart__frame {
  overflow: auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.95), rgba(4, 11, 20, 0.92));
  border: 1px solid rgba(104, 143, 191, 0.12);
}

.signal-chart__svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

.signal-chart__empty {
  padding: 18px;
  color: var(--muted);
}

.chart-grid__line {
  stroke: rgba(144, 164, 195, 0.14);
  stroke-dasharray: 4 6;
}

.chart-grid__label,
.chart-axis__label,
.chart-label {
  fill: #8ea7c7;
  font-size: 11px;
}

.chart-zone {
  stroke-width: 1;
}

.chart-zone--order-block {
  fill: rgba(76, 201, 240, 0.16);
  stroke: rgba(76, 201, 240, 0.45);
}

.chart-zone--liquidity {
  fill: rgba(139, 92, 246, 0.16);
  stroke: rgba(139, 92, 246, 0.5);
}

.chart-zone--fvg {
  fill: rgba(251, 191, 36, 0.12);
  stroke: rgba(251, 191, 36, 0.42);
}

.chart-zone--imbalance {
  fill: rgba(34, 197, 94, 0.12);
  stroke: rgba(34, 197, 94, 0.42);
}

.chart-line {
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
}

.chart-line--entry { stroke: rgba(76, 201, 240, 0.88); }
.chart-line--stop { stroke: rgba(239, 68, 68, 0.88); }
.chart-line--target { stroke: rgba(34, 197, 94, 0.88); }
.chart-line--support { stroke: rgba(96, 165, 250, 0.65); }
.chart-line--resistance { stroke: rgba(251, 191, 36, 0.72); }

.chart-candle {
  animation: candleRise 0.55s ease both;
  transform-origin: center bottom;
}

.chart-candle--projected {
  opacity: 0.72;
}

.chart-candle__wick,
.chart-candle__body {
  transition: opacity 0.18s ease;
}

.chart-candle--bullish .chart-candle__wick,
.chart-candle--bullish .chart-candle__body {
  stroke: #22c55e;
  fill: rgba(34, 197, 94, 0.3);
}

.chart-candle--bearish .chart-candle__wick,
.chart-candle--bearish .chart-candle__body {
  stroke: #ef4444;
  fill: rgba(239, 68, 68, 0.26);
}

.chart-candle:hover .chart-candle__wick,
.chart-candle:hover .chart-candle__body {
  opacity: 0.88;
}

.analytics-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.analytics-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(104, 143, 191, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
}

.analytics-chip--muted,
.status-badge--expired,
.status-badge--cancelled {
  background: rgba(148, 163, 184, 0.12);
  color: #d3dce8;
}

.status-badge--active {
  background: rgba(76, 201, 240, 0.14);
  color: #a5efff;
}

.status-badge--hit {
  background: rgba(34, 197, 94, 0.16);
  color: #9ff4b9;
}

.status-badge--missed {
  background: rgba(239, 68, 68, 0.16);
  color: #f8b4b4;
}

.analytics-chip--order_block { background: rgba(76, 201, 240, 0.14); color: #9fe7ff; }
.analytics-chip--liquidity { background: rgba(139, 92, 246, 0.16); color: #d7c2ff; }
.analytics-chip--support,
.analytics-chip--resistance { background: rgba(245, 158, 11, 0.14); color: #fde68a; }
.analytics-chip--entry { background: rgba(59, 130, 246, 0.14); color: #bfdbfe; }
.analytics-chip--stop_loss { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.analytics-chip--take_profit { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.analytics-chip--fvg,
.analytics-chip--imbalance { background: rgba(192, 132, 252, 0.14); color: #e9d5ff; }

.detail-kv-list {
  display: grid;
  gap: 12px;
}

.detail-kv-list div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(11, 22, 37, 0.82);
  border: 1px solid rgba(104, 143, 191, 0.1);
}

.detail-kv-list span,
.detail-kv-list strong {
  display: block;
}

.detail-kv-list strong {
  margin-top: 8px;
  line-height: 1.55;
}

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

@keyframes candleRise {
  from {
    opacity: 0;
    transform: scaleY(0.75);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 900px) {
  .signal-details__grid {
    grid-template-columns: 1fr;
  }

  .premium-signal-card__header,
  .premium-signal-card__footer,
  .signal-details__panel-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .stats-grid,
  .signal-dashboard-grid,
  .premium-signal-card__metrics {
    grid-template-columns: 1fr;
  }

  .premium-signal-card__surface,
  .stat-surface,
  .signal-details__panel {
    padding: 16px;
  }

  .signal-chart__svg {
    min-width: 560px;
  }
}

.signal-pattern-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(12, 26, 44, 0.92);
  border: 1px solid rgba(76, 201, 240, 0.18);
}

.signal-pattern-banner--supports,
.pattern-impact--supports {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(11, 40, 27, 0.6);
}

.signal-pattern-banner--conflicts,
.pattern-impact--conflicts {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(51, 19, 24, 0.62);
}

.signal-pattern-banner--neutral,
.signal-pattern-banner--not_applicable,
.pattern-impact--neutral,
.pattern-impact--not_applicable {
  border-color: rgba(148, 163, 184, 0.25);
}

.pattern-analysis-panel {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.pattern-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.pattern-summary-grid div,
.pattern-impact,
.pattern-card,
.pattern-empty-state {
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.78);
  border: 1px solid rgba(104, 143, 191, 0.12);
}

.pattern-summary-grid span,
.pattern-card__stats,
.pattern-impact span,
.pattern-empty-state p {
  color: var(--muted);
}

.pattern-summary-grid strong,
.pattern-card__head strong,
.pattern-impact strong,
.pattern-empty-state strong {
  display: block;
  margin-top: 6px;
}

.pattern-card-list {
  display: grid;
  gap: 12px;
}

.pattern-card--bullish {
  border-color: rgba(34, 197, 94, 0.28);
}

.pattern-card--bearish {
  border-color: rgba(239, 68, 68, 0.28);
}

.pattern-card--neutral {
  border-color: rgba(148, 163, 184, 0.24);
}

.pattern-card__head,
.pattern-card__stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pattern-card p,
.pattern-card small {
  display: block;
  margin: 10px 0 0;
  line-height: 1.55;
}

.analytics-chip--pattern_line,
.analytics-chip--pattern_point,
.analytics-chip--pattern_breakout,
.analytics-chip--pattern_target,
.analytics-chip--pattern_invalidation {
  border-color: rgba(139, 92, 246, 0.28);
  color: #d8c5ff;
}

.chart-segment {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 5;
}

.chart-segment--pattern {
  stroke: rgba(139, 92, 246, 0.95);
}

.chart-point {
  stroke-width: 1.5;
}

.chart-point--pattern {
  fill: rgba(139, 92, 246, 0.95);
  stroke: rgba(232, 238, 248, 0.9);
}

.chart-point--breakout {
  fill: rgba(76, 201, 240, 0.95);
  stroke: rgba(232, 238, 248, 0.9);
}

.chart-line--pattern-target {
  stroke: rgba(34, 197, 94, 0.9);
  stroke-dasharray: 6 4;
}

.chart-line--pattern-invalid {
  stroke: rgba(239, 68, 68, 0.9);
  stroke-dasharray: 4 4;
}

.chart-label--pattern,
.chart-label--breakout {
  fill: #e9ddff;
  font-size: 11px;
  font-weight: 700;
}

.quote-panel {
  display: grid;
  gap: 10px;
}

.quote-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.quote-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 240, 0.2);
  background: linear-gradient(90deg, rgba(11, 24, 44, 0.95), rgba(16, 32, 56, 0.9));
}

.quote-marquee__track {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 0;
  color: #d9f1ff;
  font-weight: 600;
  animation: marqueeMove 26s linear infinite;
}

.quote-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.nav-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(104, 143, 191, 0.2);
  background: linear-gradient(160deg, rgba(13, 28, 49, 0.94), rgba(9, 20, 36, 0.9));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-card:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 201, 240, 0.5);
}

.nav-card strong {
  font-size: 1.1rem;
}

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

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Home quote ticker premium refresh */
.quote-panel {
  position: relative;
  overflow: hidden;
}

.quote-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(120deg, rgba(34, 197, 94, 0.2), rgba(76, 201, 240, 0.24), rgba(139, 92, 246, 0.24), rgba(251, 191, 36, 0.2));
  filter: blur(20px);
  opacity: 0.9;
  animation: tickerGlowShift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.quote-panel > * {
  position: relative;
  z-index: 1;
}

.quote-marquee {
  border-color: rgba(112, 223, 255, 0.45);
  background: linear-gradient(90deg, rgba(5, 16, 34, 0.92), rgba(10, 26, 51, 0.95), rgba(33, 17, 54, 0.92));
  box-shadow: inset 0 0 0 1px rgba(76, 201, 240, 0.12), 0 0 30px rgba(76, 201, 240, 0.2);
}

.quote-marquee__track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
}

.quote-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  color: #f4f8ff;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(159, 231, 255, 0.35);
  background: linear-gradient(120deg, rgba(76, 201, 240, 0.2), rgba(139, 92, 246, 0.2));
  box-shadow: 0 0 16px rgba(76, 201, 240, 0.22), inset 0 0 16px rgba(139, 92, 246, 0.12);
  animation: quotePulse 2.8s ease-in-out infinite;
}

.quote-item:nth-child(3n) {
  background: linear-gradient(120deg, rgba(34, 197, 94, 0.2), rgba(76, 201, 240, 0.22));
}

.quote-item:nth-child(4n) {
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.2), rgba(239, 68, 68, 0.18));
}

/* Calendar page refresh */
.calendar-hero {
  background: linear-gradient(145deg, rgba(8, 22, 44, 0.92), rgba(24, 17, 48, 0.88));
  border-color: rgba(119, 169, 255, 0.28);
}

.calendar-events-panel {
  border-color: rgba(108, 169, 255, 0.26);
}

.calendar-widget-panel {
  overflow: hidden;
}

.calendar-explainer {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(117, 177, 255, 0.28);
  background: linear-gradient(145deg, rgba(11, 30, 52, 0.78), rgba(17, 22, 46, 0.72));
  backdrop-filter: blur(8px);
}

.calendar-explainer p {
  margin: 0;
  color: #dde8ff;
  line-height: 1.6;
}

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

.calendar-guide-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18,43,78,.92), rgba(6,18,36,.96));
  border: 1px solid rgba(95,156,230,.35);
  box-shadow: 0 16px 42px rgba(0,0,0,.28);
}

.calendar-guide-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f4f8ff;
}

.calendar-guide-card p {
  margin: 0;
  color: rgba(220,235,255,.78);
  line-height: 1.6;
}

.tradays-widget-wrap {
  min-height: 650px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(3,14,28,.88);
  border: 1px solid rgba(95,156,230,.35);
}

.tradays-widget-wrap #economicCalendarWidget {
  min-height: 650px;
}

.tradays-fallback {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(251, 191, 36, 0.45);
  background: rgba(54, 39, 10, 0.26);
  color: #fde68a;
}

.calendar-state {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(104, 143, 191, 0.25);
  background: rgba(7, 18, 33, 0.7);
}

.calendar-state--loading { color: #8fe9ff; border-color: rgba(76, 201, 240, 0.35); }
.calendar-state--ready { color: #86efac; border-color: rgba(34, 197, 94, 0.38); }
.calendar-state--warning { color: #fde68a; border-color: rgba(245, 158, 11, 0.38); }
.calendar-state--empty { color: #fde68a; border-color: rgba(251, 191, 36, 0.38); }
.calendar-state--error { color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

.calendar-event {
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(10, 24, 41, 0.95), rgba(13, 33, 56, 0.9));
  box-shadow: 0 12px 30px rgba(5, 12, 22, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-event:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 223, 255, 0.38);
  box-shadow: 0 16px 34px rgba(5, 15, 30, 0.45);
}

.calendar-event__impact {
  border-color: rgba(126, 206, 255, 0.28);
  background: linear-gradient(180deg, rgba(7, 17, 30, 0.86), rgba(13, 26, 44, 0.82));
}

.calendar-status {
  border-radius: 18px;
  border: 1px dashed rgba(104, 143, 191, 0.3);
  background: rgba(8, 18, 30, 0.86);
  padding: 18px;
}

.calendar-status strong,
.calendar-status p {
  margin: 0;
}

.calendar-status p {
  margin-top: 8px;
  color: var(--muted);
}

.calendar-status--loading { border-color: rgba(76, 201, 240, 0.4); }
.calendar-status--empty { border-color: rgba(251, 191, 36, 0.4); }
.calendar-status--error { border-color: rgba(239, 68, 68, 0.42); }

.calendar-status-badge--released {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

.calendar-status-badge--upcoming {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.38);
  color: #86efac;
}

.calendar-status-badge--unknown {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

@keyframes tickerGlowShift {
  0% { transform: translateX(-6%) translateY(-2%) scale(1); }
  100% { transform: translateX(6%) translateY(2%) scale(1.04); }
}

@keyframes quotePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(76, 201, 240, 0.2), inset 0 0 14px rgba(139, 92, 246, 0.1); }
  50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.35), inset 0 0 20px rgba(76, 201, 240, 0.2); }
}

.app-version-block {
  margin-top: 40px;
  padding: 12px 16px;
  font-size: 11px;
  opacity: 0.6;
  color: rgba(200, 220, 255, 0.6);
  text-align: center;
}

.app-version-line {
  margin-bottom: 6px;
  font-weight: 600;
}

.app-changelog div {
  margin: 2px 0;
}

.app-version-block:hover {
  opacity: 0.85;
}

@media (max-width: 860px) {
  .calendar-guide-grid {
    grid-template-columns: 1fr;
  }
}


/* Premium homepage visual upgrade */
body[data-page="home"] {
  background:
    radial-gradient(circle at 12% 8%, rgba(49, 245, 157, 0.20), transparent 30%),
    radial-gradient(circle at 85% 5%, rgba(255, 45, 149, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(69, 202, 255, 0.12), transparent 34%),
    linear-gradient(145deg, #020617, #06111f 48%, #020814);
}

body[data-page="home"] .site-header {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(145deg, rgba(18, 43, 78, 0.78), rgba(5, 18, 34, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

body[data-page="home"] .site-header::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 20% 20%, rgba(49, 245, 157, 0.25), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 45, 149, 0.22), transparent 26%);
  pointer-events: none;
  z-index: 0;
}

body[data-page="home"] .site-header > * {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .site-header h1 {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 1000;
  letter-spacing: -0.07em;
  line-height: 0.95;
  background: linear-gradient(90deg, #31f59d, #45caff, #7c3cff, #ff2d95, #ffd84d);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: premiumTitleGradient 8s ease infinite;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 38px rgba(69, 202, 255, 0.28);
}

@keyframes premiumTitleGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body[data-page="home"] .top-nav a,
body[data-page="home"] .nav-card,
body[data-page="home"] button,
body[data-page="home"] a.button,
body[data-page="home"] .home-link {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body[data-page="home"] .top-nav a:hover,
body[data-page="home"] .nav-card:hover,
body[data-page="home"] button:hover,
body[data-page="home"] a.button:hover,
body[data-page="home"] .home-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(69, 202, 255, 0.22);
  border-color: rgba(69, 202, 255, 0.7);
}

/* Statistics and archive pages */
.stats-page-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.stats-page-card { min-height:132px; display:flex; flex-direction:column; justify-content:space-between; padding:20px; border-radius:20px; border:1px solid rgba(104,143,191,.22); background:linear-gradient(155deg,rgba(15,32,56,.98),rgba(8,20,37,.92)); transition:transform .2s ease,border-color .2s ease; }
.stats-page-card:hover { transform:translateY(-3px); border-color:rgba(76,201,240,.52); }
.stats-page-card span { color:var(--muted); font-weight:700; }
.stats-page-card strong { font-size:clamp(1.8rem,4vw,2.8rem); }
.stats-page-card--tp strong,.stats-page-card--today_tp strong { color:var(--green); }
.stats-page-card--sl strong,.stats-page-card--today_sl strong { color:var(--red); }
.archive-link-button,.archive-filter { color:#dff7ff; text-decoration:none; font:inherit; font-weight:800; padding:11px 16px; border-radius:14px; border:1px solid rgba(76,201,240,.3); background:rgba(11,27,48,.9); cursor:pointer; }
.archive-filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.archive-filter.is-active { color:#04111e; background:var(--accent); border-color:var(--accent); }
.archive-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:18px; }
.archive-table { width:100%; min-width:850px; border-collapse:collapse; }
.archive-table th,.archive-table td { padding:15px 14px; text-align:left; border-bottom:1px solid var(--line); }
.archive-table th { color:var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.archive-table tbody tr { cursor:pointer; transition:background .18s ease; }
.archive-table tbody tr:hover,.archive-table tbody tr:focus { outline:none; background:rgba(76,201,240,.08); }
.archive-direction,.archive-result { display:inline-flex; padding:6px 10px; border-radius:999px; font-weight:800; font-size:.8rem; background:rgba(144,164,195,.12); }
.archive-direction--buy,.archive-direction--long,.archive-result--tp { color:#75f0a0; background:rgba(34,197,94,.13); }
.archive-direction--sell,.archive-direction--short,.archive-result--sl { color:#ff9090; background:rgba(239,68,68,.13); }
.archive-result--active { color:#ffe18a; background:rgba(251,191,36,.13); }
.archive-empty { color:var(--muted); text-align:center!important; padding:30px!important; }
.archive-modal[hidden] { display:none; }
.archive-modal { position:fixed; inset:0; z-index:1000; padding:24px; overflow:auto; background:rgba(1,7,15,.84); backdrop-filter:blur(10px); }
.archive-modal__dialog { position:relative; width:min(1000px,100%); margin:20px auto; padding:28px; border:1px solid rgba(76,201,240,.28); border-radius:26px; background:#09182b; box-shadow:var(--shadow); }
.archive-modal__close { position:absolute; top:16px; right:16px; width:42px; height:42px; border-radius:50%; border:1px solid var(--line); color:var(--text); background:#10243e; font-size:1.6rem; cursor:pointer; }
.archive-modal__metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0; }
.archive-modal__metrics div { display:grid; gap:6px; padding:14px; border:1px solid var(--line); border-radius:15px; background:rgba(13,28,49,.85); }
.archive-modal__metrics span { color:var(--muted); font-size:.78rem; }
.archive-chart,.archive-chart-empty { margin:20px 0; padding:14px; border:1px solid var(--line); border-radius:18px; background:#06111f; }
.archive-chart svg { display:block; width:100%; height:auto; }
.archive-chart-empty { color:var(--muted); text-align:center; }
.archive-modal__text p { color:#c3d2e8; line-height:1.7; white-space:pre-wrap; }
.today-signal-summary { display:grid; grid-template-columns:auto repeat(3,minmax(110px,1fr)); gap:14px; align-items:center; }
.today-signal-summary h2 { margin:0; }
.today-signal-summary__metric { display:grid; gap:5px; padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:rgba(12,27,47,.86); }
.today-signal-summary__metric span { color:var(--muted); font-size:.82rem; }
.today-signal-summary__metric strong { font-size:1.45rem; }
@media (max-width:900px) { .stats-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-modal__metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.today-signal-summary{grid-template-columns:1fr 1fr} }
@media (max-width:560px) { .stats-page-grid,.archive-modal__metrics,.today-signal-summary{grid-template-columns:1fr}.archive-modal{padding:8px}.archive-modal__dialog{padding:20px;margin:8px auto} }

.ai-status-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(76, 201, 240, 0.18);
  background: rgba(8, 25, 48, 0.82);
}
.ai-status-card__head { display: flex; align-items: center; gap: 12px; }
.ai-status-card__dot { font-size: 1.25rem; }
.ai-status-card__kicker { margin: 0 0 4px; color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.ai-status-card__head strong { color: #f4f8ff; font-size: 1.15rem; }
.ai-status-card__grid { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.ai-status-card__grid span { padding: 8px 10px; border: 1px solid rgba(104, 143, 191, 0.18); border-radius: 999px; background: rgba(3, 14, 28, 0.58); }
.ai-status-card--active { border-color: rgba(34, 197, 94, 0.34); box-shadow: 0 18px 48px rgba(34, 197, 94, 0.08); }
.ai-status-card--offline { border-color: rgba(239, 68, 68, 0.34); box-shadow: 0 18px 48px rgba(239, 68, 68, 0.08); }

.visitor-counter {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 20;
  padding: 7px 10px;
  border: 1px solid rgba(104, 143, 191, 0.16);
  border-radius: 999px;
  color: rgba(207, 231, 255, 0.72);
  background: rgba(7, 17, 31, 0.72);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  line-height: 1;
  pointer-events: none;
}

.visitor-counter[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .visitor-counter {
    right: 12px;
    bottom: 10px;
    font-size: 0.72rem;
  }
}

.hero-philosophy {
  margin-bottom: 8px;
  font-size: clamp(1.28rem, 2.5vw, 1.85rem);
  color: #dff6ff;
}

.hero-caption {
  margin: 0;
  color: #9fb6d8;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-card--featured {
  border-color: rgba(76, 201, 240, 0.38);
  background: linear-gradient(145deg, rgba(14, 34, 60, 0.96), rgba(33, 24, 69, 0.88));
}

body[data-page="tv"] {
  background:
    radial-gradient(circle at 12% 8%, rgba(76, 201, 240, 0.24), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(139, 92, 246, 0.24), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.09), transparent 32%),
    linear-gradient(180deg, #030812 0%, #07111f 58%, #040812 100%);
}

.tv-shell { padding-bottom: 28px; }

.tv-hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
}

.tv-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(120deg, rgba(76, 201, 240, 0.12), transparent 38%, rgba(139, 92, 246, 0.14)),
    radial-gradient(circle at 78% 62%, rgba(76, 201, 240, 0.16), transparent 22%);
  pointer-events: none;
}

.tv-hero > * { position: relative; z-index: 1; }

.tv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  padding-top: 54px;
}

.tv-hero__copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.tv-hero__copy .lead {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: clamp(1.25rem, 2.8vw, 2.25rem);
  color: #d9eeff;
}

.tv-hero__signal {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(143, 210, 255, 0.28);
  background: rgba(5, 14, 28, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 28px 80px rgba(0, 0, 0, 0.35);
}

.tv-hero__signal strong { display: block; margin: 10px 0 8px; font-size: 1.35rem; }
.tv-hero__signal p { margin: 0; color: var(--muted); line-height: 1.55; }

.tv-live-dot {
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #54ffb5;
  box-shadow: 0 0 0 8px rgba(84, 255, 181, 0.12), 0 0 26px rgba(84, 255, 181, 0.75);
}

.tv-content .panel { border-color: rgba(118, 171, 231, 0.2); }
.tv-intro h2, .tv-roadmap h2, .tv-vision h2 { margin-top: 0; }
.tv-intro .section-text { max-width: 980px; font-size: 1.05rem; }

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

.tv-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(104, 143, 191, 0.2);
  background: linear-gradient(150deg, rgba(12, 25, 45, 0.98), rgba(9, 16, 32, 0.92));
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.32);
}

.tv-feature-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.12);
  filter: blur(2px);
}

.tv-card-icon { color: #7dd3fc; font-weight: 900; letter-spacing: 0.16em; }
.tv-feature-card h3 { margin: 0; font-size: 1.45rem; }
.tv-feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.tv-badge {
  margin-top: auto;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dff6ff;
  border: 1px solid rgba(76, 201, 240, 0.34);
  background: rgba(76, 201, 240, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tv-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 22px 2px 4px;
}

.tv-timeline div {
  min-height: 128px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  background: rgba(7, 17, 31, 0.82);
}

.tv-timeline strong, .tv-timeline span { display: block; }
.tv-timeline strong { color: #93e7ff; margin-bottom: 14px; }
.tv-timeline span { color: #e8eef8; line-height: 1.35; }

.tv-vision {
  background:
    linear-gradient(135deg, rgba(76, 201, 240, 0.13), transparent 42%),
    linear-gradient(160deg, rgba(13, 28, 49, 0.98), rgba(16, 12, 38, 0.94));
}

.tv-vision p:not(.section-kicker) {
  max-width: 760px;
  color: #dcecff;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.tv-footer {
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(104, 143, 191, 0.18);
  border-radius: 28px;
  background: rgba(5, 14, 28, 0.82);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: #dbeafe;
}

.tv-footer strong { font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.tv-footer span { color: var(--muted); text-align: right; line-height: 1.45; }

@media (max-width: 980px) {
  .tv-hero__grid { grid-template-columns: 1fr; padding-top: 30px; }
  .tv-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tv-card-grid { grid-template-columns: 1fr; }
  .tv-footer { align-items: flex-start; flex-direction: column; }
  .tv-footer span { text-align: left; }
}

.tv-watch-panel {
  overflow: hidden;
}

.tv-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.tv-player-column {
  display: grid;
  gap: 18px;
}

.tv-player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(3, 10, 22, 0.98), rgba(10, 27, 50, 0.95));
  border: 1px solid rgba(76, 201, 240, 0.24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tv-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tv-player-empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  border-radius: 20px;
  background: rgba(7, 17, 31, 0.72);
  border: 1px dashed rgba(104, 143, 191, 0.24);
}

.tv-sidebar,
.tv-selected-card,
.tv-ai-preview {
  border-radius: 24px;
  border: 1px solid rgba(104, 143, 191, 0.18);
  background: rgba(7, 17, 31, 0.76);
}

.tv-sidebar {
  padding: 16px;
  position: sticky;
  top: 16px;
}

.tv-sidebar__head,
.tv-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.tv-sidebar__head h3,
.tv-selected-card h3,
.tv-ai-preview h3 {
  margin: 0;
}

.tv-sidebar__head span,
.tv-detail-top time,
.tv-author {
  color: var(--muted);
  font-size: 0.9rem;
}

.tv-video-list {
  display: grid;
  gap: 12px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.tv-video-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 9px;
  padding: 15px;
  border-radius: 18px;
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(104, 143, 191, 0.14);
  background: rgba(10, 24, 43, 0.84);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tv-video-item:hover,
.tv-video-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(76, 201, 240, 0.52);
  background: linear-gradient(135deg, rgba(16, 42, 72, 0.96), rgba(11, 27, 49, 0.94));
}

.tv-video-item strong {
  font-size: 1rem;
  line-height: 1.35;
}

.tv-video-item small {
  color: var(--muted);
  line-height: 1.4;
}

.tv-video-item__meta,
.tv-detail-top > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-video-item__meta span,
.tv-category-badge,
.tv-symbol-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tv-video-item__meta span:first-child,
.tv-category-badge {
  color: #9fe7ff;
  background: rgba(76, 201, 240, 0.12);
  border: 1px solid rgba(76, 201, 240, 0.26);
}

.tv-video-item__meta span:last-child,
.tv-symbol-badge {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.tv-selected-card,
.tv-ai-preview {
  padding: 20px;
}

.tv-selected-card p,
.tv-ai-preview p,
.tv-ai-grid span {
  color: var(--muted);
  line-height: 1.65;
}

.tv-check-button {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 240, 0.24);
  background: rgba(76, 201, 240, 0.1);
  color: #9fe7ff;
  font-weight: 800;
}

.tv-check-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.tv-ai-preview {
  display: grid;
  gap: 16px;
  background: linear-gradient(135deg, rgba(9, 24, 44, 0.86), rgba(18, 19, 50, 0.72));
}

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

.tv-ai-grid div {
  padding: 15px;
  border-radius: 18px;
  background: rgba(3, 12, 24, 0.58);
  border: 1px solid rgba(104, 143, 191, 0.14);
}

.tv-ai-grid strong,
.tv-ai-grid span {
  display: block;
}

.tv-ai-grid strong {
  margin-bottom: 8px;
  color: #eaf6ff;
}

@media (max-width: 1040px) {
  .tv-player-layout {
    grid-template-columns: 1fr;
  }

  .tv-sidebar {
    position: static;
  }

  .tv-video-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tv-video-list,
  .tv-ai-grid {
    grid-template-columns: 1fr;
  }

  .tv-detail-top,
  .tv-sidebar__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

body[data-page="tv-review"] {
  background: radial-gradient(circle at top left, rgba(76, 201, 240, 0.16), transparent 34%), #050b14;
}

.tv-review-hero .lead {
  max-width: 760px;
}

.tv-review-page {
  gap: 22px;
}

.tv-back-link,
.tv-check-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tv-check-button:hover,
.tv-back-link:hover {
  border-color: rgba(76, 201, 240, 0.58);
  background: rgba(76, 201, 240, 0.16);
  transform: translateY(-1px);
}

.tv-review-watch {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.tv-back-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(104, 143, 191, 0.2);
  color: #9fe7ff;
  background: rgba(7, 17, 31, 0.66);
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tv-review-player {
  min-height: 320px;
}

.tv-review-meta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.tv-timeframe-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.tv-review-section {
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(104, 143, 191, 0.18);
  background: linear-gradient(135deg, rgba(7, 17, 31, 0.86), rgba(12, 28, 52, 0.72));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  animation: cardFadeIn 0.45s ease both;
}

.tv-review-section--summary,
.tv-review-section--conclusions {
  grid-column: 1 / -1;
}

.tv-review-section__head h2 {
  margin: 0 0 14px;
}

.tv-review-section__body,
.tv-review-section__body p,
.tv-review-section__body li {
  color: var(--muted);
  line-height: 1.7;
}

.tv-review-section__body ul {
  margin: 0;
  padding-left: 20px;
}

.tv-review-score {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  line-height: 1;
  font-weight: 900;
  color: #9fe7ff;
  text-shadow: 0 0 30px rgba(76, 201, 240, 0.28);
}

.tv-coming-soon {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.1);
  color: #e2e8f0 !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .tv-review-grid {
    grid-template-columns: 1fr;
  }

  .tv-review-player {
    min-height: auto;
  }
}

.tv-player-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(110deg, rgba(7, 17, 31, 0.95), rgba(16, 42, 72, 0.72), rgba(7, 17, 31, 0.95));
  background-size: 220% 100%;
  animation: tvSkeletonPulse 1.3s ease-in-out infinite;
}

.tv-player-skeleton span {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(76, 201, 240, 0.24);
  box-shadow: 0 0 36px rgba(76, 201, 240, 0.22);
}

.tv-player-skeleton strong,
.tv-player-skeleton small { display: block; }
.tv-player-skeleton strong { color: #eaf6ff; }

@keyframes tvSkeletonPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.tv-sidebar-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.tv-sidebar-controls input,
.tv-sidebar-controls select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(104, 143, 191, 0.22);
  background: rgba(3, 12, 24, 0.72);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

.tv-sidebar-controls input:focus,
.tv-sidebar-controls select:focus {
  border-color: rgba(76, 201, 240, 0.58);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

.tv-sort-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.tv-video-list {
  scroll-behavior: smooth;
}

.tv-video-group {
  display: grid;
  gap: 10px;
}

.tv-video-group h4 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 4px 0 0;
  padding: 8px 4px;
  color: #9fe7ff;
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(10px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.tv-video-item.is-active {
  box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.22), 0 16px 34px rgba(0, 0, 0, 0.24);
}

.tv-duration-badge,
.tv-timeframe-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tv-duration-badge {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tv-detail-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1040px) {
  .tv-video-group h4 { position: static; }
}

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

.tv-video-item__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.tv-video-item__info b,
.tv-video-item__info span,
.tv-video-item__info time {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.tv-video-item.is-active::before {
  content: "Выбрано";
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  color: #06111f;
  background: linear-gradient(135deg, #9fe7ff, #86efac);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-review-slogan {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #eaf6ff !important;
  background: rgba(76, 201, 240, 0.08);
  border: 1px solid rgba(76, 201, 240, 0.18);
  font-weight: 800;
}

.tv-premium-list {
  display: grid;
  gap: 10px;
}

.tv-premium-list li::marker {
  color: #7dd3fc;
}

.tv-market-context-card {
  display: grid;
  gap: 16px;
}

.tv-context-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.12), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(76, 201, 240, 0.2);
}

.tv-context-head span,
.tv-context-head strong {
  color: #eaf6ff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.tv-context-grid div {
  min-height: 74px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(3, 12, 24, 0.54);
  border: 1px solid rgba(104, 143, 191, 0.14);
}

.tv-context-grid span,
.tv-context-grid strong {
  display: block;
}

.tv-context-grid span {
  margin-bottom: 7px;
  color: #8da2bd;
  font-size: 0.78rem;
}

.tv-context-grid strong {
  color: #eaf6ff;
  overflow-wrap: anywhere;
}

.tv-context-note,
.tv-context-empty {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

@media (max-width: 680px) {
  .tv-context-grid {
    grid-template-columns: 1fr;
  }
}

.tv-premium-player-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(76, 201, 240, 0.22);
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.11), rgba(139, 92, 246, 0.08) 48%, rgba(3, 12, 24, 0.62));
}

.tv-premium-player-header h3 { margin: 0 0 10px; font-size: clamp(1.35rem, 2.7vw, 2.25rem); letter-spacing: -0.03em; }
.tv-premium-player-header p { margin: 0; color: #a8bdd7; line-height: 1.65; }

.tv-player-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tv-player-meta-grid div {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(3, 12, 24, 0.52);
}

.tv-player-meta-grid span,
.tv-player-meta-grid strong { display: block; }
.tv-player-meta-grid span { margin-bottom: 6px; color: #7f95b2; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tv-player-meta-grid strong { color: #f1f7ff; overflow-wrap: anywhere; }

.tv-watch-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.11);
  border: 1px solid rgba(34, 197, 94, 0.24);
  font-size: 0.74rem;
  font-weight: 900;
}

.tv-watch-progress,
.tv-mini-progress {
  overflow: hidden;
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.tv-watch-progress span,
.tv-mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
}

.tv-up-next-card {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px 14px;
  text-align: left;
  color: var(--text);
  border-radius: 20px;
  border: 1px solid rgba(76, 201, 240, 0.2);
  background: linear-gradient(135deg, rgba(3, 12, 24, 0.78), rgba(15, 35, 62, 0.72));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tv-up-next-card:hover { transform: translateY(-2px); border-color: rgba(76, 201, 240, 0.5); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28); }
.tv-up-next-card .section-kicker { grid-column: 1 / -1; margin: 0; }
.tv-up-next-card img { width: 118px; height: 74px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); }
.tv-up-next-card strong { align-self: end; line-height: 1.35; }
.tv-up-next-card span { color: var(--muted); }

.tv-review-section {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tv-review-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6, #22c55e);
  opacity: 0.75;
}

.tv-review-section:hover { transform: translateY(-3px); border-color: rgba(76, 201, 240, 0.38); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34); }
.tv-review-meta-grid { margin: 14px 0; }

.tv-review-timeline {
  display: grid;
  gap: 14px;
  counter-reset: tvTimeline;
}

.tv-review-timeline div {
  position: relative;
  padding: 18px 18px 18px 58px;
  border-radius: 20px;
  border: 1px solid rgba(76, 201, 240, 0.18);
  background: rgba(3, 12, 24, 0.54);
}

.tv-review-timeline div::before {
  counter-increment: tvTimeline;
  content: counter(tvTimeline);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06111f;
  background: linear-gradient(135deg, #9fe7ff, #86efac);
  font-weight: 900;
}

.tv-review-timeline div:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 28px;
  bottom: -18px;
  color: #7dd3fc;
  font-weight: 900;
}

.tv-review-timeline span { display: block; color: #8da2bd; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tv-review-timeline strong { display: block; margin: 6px 0; color: #eaf6ff; font-size: 1.08rem; }
.tv-review-timeline p { margin: 0; }

@media (max-width: 820px) {
  .tv-premium-player-header,
  .tv-player-meta-grid,
  .tv-up-next-card { grid-template-columns: 1fr; }
  .tv-up-next-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

.tv-up-next-thumb {
  width: 118px;
  height: 74px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at 30% 25%, rgba(76, 201, 240, 0.26), transparent 34%), linear-gradient(135deg, rgba(15, 35, 62, 0.92), rgba(3, 12, 24, 0.92));
  background-size: cover;
  background-position: center;
}

@media (max-width: 820px) {
  .tv-up-next-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

body[data-page="tv-sources"] {
  background: radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.16), transparent 30%), #07111f;
  color: var(--text);
}

.tv-admin-shell { max-width: 1280px; }
.tv-admin-hero { margin-bottom: 24px; }

.tv-source-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tv-source-stats article {
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(8, 18, 34, 0.88));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.tv-source-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tv-source-stats strong {
  display: block;
  color: #f8fbff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-source-table-wrap {
  overflow-x: auto;
}

.tv-source-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.tv-source-table th,
.tv-source-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 16px 14px;
  text-align: left;
  vertical-align: middle;
}

.tv-source-table th {
  color: #93e7ff;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tv-source-table td { color: #e8eef8; }
.tv-source-table td strong { display: block; margin-bottom: 5px; }
.tv-source-table td span { color: var(--muted); font-size: 0.88rem; }

.tv-provider-pill,
.tv-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd !important;
  font-weight: 800;
  text-transform: uppercase;
}

.tv-status-pill.is-enabled {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0 !important;
}

.tv-status-pill.is-disabled {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca !important;
}

.tv-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-source-actions button {
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #dff8ff;
  cursor: pointer;
  font-weight: 800;
  padding: 9px 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tv-source-actions button:hover {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(125, 211, 252, 0.52);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .tv-source-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .tv-source-stats { grid-template-columns: 1fr; }
}

.tv-intel-video {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: stretch;
}

.tv-intel-thumb {
  min-height: 280px;
  border-radius: 22px;
  border: 1px solid rgba(76, 201, 240, 0.22);
  background: radial-gradient(circle at 30% 20%, rgba(76, 201, 240, 0.28), transparent 34%), linear-gradient(135deg, rgba(15, 35, 62, 0.94), rgba(3, 12, 24, 0.94));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -90px 120px rgba(3, 12, 24, 0.56), 0 22px 55px rgba(0, 0, 0, 0.24);
}

.tv-intel-video__body h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.tv-premium-placeholder {
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(76, 201, 240, 0.2);
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(139, 92, 246, 0.08), rgba(3, 12, 24, 0.58));
}

.tv-premium-placeholder strong {
  color: #eaf6ff;
  font-size: 1.05rem;
}

.tv-premium-placeholder p {
  margin: 0;
}

.tv-intel-card-grid,
.tv-coming-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tv-intel-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  min-height: 172px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(3, 12, 24, 0.52);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tv-intel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 201, 240, 0.34);
}

.tv-intel-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #06111f;
  background: linear-gradient(135deg, #9fe7ff, #86efac);
  font-size: 1.35rem;
  font-weight: 900;
}

.tv-intel-card span,
.tv-confluence-list span,
.tv-snapshot-grid span {
  display: block;
  color: #8da2bd;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-intel-card h3 {
  margin: 5px 0 8px;
  color: #f1f7ff;
}

.tv-intel-card p {
  margin: 0 0 10px;
}

.tv-intel-card small {
  color: #9fe7ff;
  font-weight: 900;
}

.tv-intel-card.is-conflict { border-color: rgba(248, 113, 113, 0.35); }
.tv-intel-card.is-neutral { border-color: rgba(245, 158, 11, 0.25); }
.tv-intel-card.is-agree { border-color: rgba(34, 197, 94, 0.28); }

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

.tv-snapshot-grid div,
.tv-confluence-list div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(3, 12, 24, 0.54);
}

.tv-snapshot-grid strong,
.tv-confluence-list strong {
  display: block;
  margin-top: 8px;
  color: #eaf6ff;
  overflow-wrap: anywhere;
}

.tv-confluence-score {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.12), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(76, 201, 240, 0.22);
}

.tv-confluence-score strong {
  color: #9fe7ff;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.9;
}

.tv-confluence-score span {
  color: #eaf6ff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tv-confluence-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tv-confluence-list .is-agree strong { color: #86efac; }
.tv-confluence-list .is-neutral strong { color: #fef3c7; }
.tv-confluence-list .is-conflict strong { color: #fecaca; }

.tv-verdict {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(76, 201, 240, 0.24);
  background: radial-gradient(circle at top left, rgba(76, 201, 240, 0.18), transparent 36%), rgba(3, 12, 24, 0.62);
}

.tv-verdict strong {
  display: block;
  margin-bottom: 12px;
  color: #eaf6ff;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.tv-verdict p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .tv-intel-video,
  .tv-intel-card-grid,
  .tv-coming-grid,
  .tv-snapshot-grid,
  .tv-confluence-list {
    grid-template-columns: 1fr;
  }

  .tv-intel-thumb {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }
}
.media-import-result {
  margin-top: 0.75rem;
  max-width: 520px;
  white-space: pre-wrap;
  color: #d8e4ff;
  background: rgba(5, 10, 24, 0.72);
  border: 1px solid rgba(103, 132, 255, 0.24);
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.82rem;
}
.media-source-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:14px}.media-source-form label{display:grid;gap:6px;color:#90a4c3;font-size:.82rem;text-transform:uppercase;letter-spacing:.06em}.media-source-form input,.media-source-form select{border:1px solid rgba(104,143,191,.24);background:rgba(8,18,30,.9);color:#e8eef8;border-radius:12px;padding:11px}.media-source-form .media-check{display:flex;align-items:center;gap:10px;text-transform:none;letter-spacing:0}.media-source-form .tv-source-actions{align-items:end}

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

.tv-review-wide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .tv-comparison-grid,
  .tv-review-wide-grid {
    grid-template-columns: 1fr;
  }
}

.tv-ai-analysis-section {
  border-color: rgba(76, 201, 240, 0.28);
}

.tv-analysis-lists {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 16px;
}

.tv-analysis-lists > div {
  border: 1px solid rgba(141, 162, 189, 0.18);
  border-radius: 16px;
  background: rgba(6, 14, 28, 0.42);
  padding: 14px;
}

.tv-analysis-lists strong {
  color: #eaf6ff;
  display: block;
  margin-bottom: 8px;
}

.tv-analysis-pill {
  display: inline-flex;
  margin: 0 6px 6px 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(76, 201, 240, 0.12);
  border: 1px solid rgba(76, 201, 240, 0.24);
  font-size: 0.86rem;
}
.committee-shell .committee-picker{display:grid;gap:8px;max-width:560px;margin-top:18px;color:#90a4c3}.committee-picker select{border:1px solid rgba(104,143,191,.24);background:rgba(8,18,30,.92);color:#e8eef8;border-radius:14px;padding:12px}.committee-score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;grid-column:1/-1}.committee-card{padding:18px;border-radius:22px;background:linear-gradient(145deg,rgba(8,18,30,.94),rgba(13,29,48,.82));border:1px solid rgba(104,143,191,.2);box-shadow:0 18px 50px rgba(0,0,0,.22);animation:committeePulse .7s ease both}.committee-card span{display:block;color:#90a4c3;text-transform:uppercase;font-size:.76rem;letter-spacing:.08em}.committee-card strong{display:block;margin-top:8px;font-size:1.75rem;color:#e8eef8}.committee-card.buy,.committee-card.bullish,.committee-card.accept,.committee-card.low{border-color:rgba(34,197,94,.42)}.committee-card.sell,.committee-card.bearish,.committee-card.reject,.committee-card.high{border-color:rgba(239,68,68,.42)}.committee-card.wait,.committee-card.neutral,.committee-card.watch,.committee-card.medium{border-color:rgba(251,191,36,.42)}.committee-list{display:grid;gap:10px;margin:0;padding-left:20px}.committee-list li{padding:10px 12px;border-radius:14px;background:rgba(76,201,240,.07);border:1px solid rgba(76,201,240,.12)}.committee-hero-card{grid-column:1/-1}@keyframes committeePulse{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}

.consensus-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  align-items: end;
}
.consensus-form label { color: var(--muted); display: grid; gap: 6px; }
.consensus-form input, .consensus-form button {
  border: 1px solid rgba(76, 201, 240, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(8, 18, 34, 0.9);
}
.consensus-form button { cursor: pointer; color: #06111f; background: linear-gradient(135deg, var(--accent), #9bf6ff); font-weight: 800; }
.consensus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.consensus-card { animation: signalPulse 0.7s ease both; }
.consensus-card h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.consensus-wide { grid-column: 1 / -1; overflow-x: auto; }
.consensus-wide table { width: 100%; border-collapse: collapse; }
.consensus-wide th, .consensus-wide td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); }
.consensus-wide th { color: var(--text); }
@media (max-width: 860px) { .consensus-grid { grid-template-columns: 1fr; } }
@keyframes signalPulse { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.authors-sort{display:grid;gap:8px;max-width:360px;margin-top:18px;color:var(--muted)}
.authors-sort select{border:1px solid rgba(76,201,240,.22);border-radius:14px;padding:12px 14px;color:var(--text);background:rgba(8,18,34,.9)}
.authors-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.authors-wide{grid-column:1/-1}.author-card{display:grid;gap:18px;animation:signalPulse .7s ease both;border-color:rgba(76,201,240,.20)}.author-card h2{margin:.2rem 0;color:#eaf6ff}.author-card p{color:var(--muted)}.author-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.author-metrics span{border:1px solid rgba(76,201,240,.16);background:rgba(76,201,240,.07);border-radius:16px;padding:12px;color:var(--muted);font-size:.8rem}.author-metrics b{display:block;color:#eaf6ff;font-size:1.35rem}.author-link{justify-self:start;color:#06111f;background:linear-gradient(135deg,var(--accent),#9bf6ff);border-radius:999px;padding:10px 14px;font-weight:800;text-decoration:none}.muted{color:var(--muted)}
@media(max-width:900px){.authors-grid{grid-template-columns:1fr}.author-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ops-token-row,.ops-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.ops-token-row input,.ops-two-col input{min-width:220px;padding:12px 14px;border-radius:14px;border:1px solid rgba(104,143,191,.32);background:rgba(2,8,23,.72);color:#e5f2ff}.ops-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.ops-two-col label{display:block;margin:10px 0;color:var(--muted)}.ops-badge{display:inline-flex;margin-left:8px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800}.ops-badge.free{color:#86efac;background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.28)}.ops-badge.llm,.warning{color:#fbbf24}.ops-badge.llm{background:rgba(245,158,11,.14);border:1px solid rgba(245,158,11,.32)}.ops-console{display:grid;gap:12px}.ops-log-entry{padding:14px;border-radius:16px;border:1px solid rgba(104,143,191,.24);background:rgba(8,20,37,.9)}.ops-log-entry span{display:block;color:var(--muted);margin:6px 0}.ops-log-entry pre,.ops-pre{white-space:pre-wrap;overflow:auto;max-height:420px;padding:14px;border-radius:14px;background:rgba(2,8,23,.78);border:1px solid rgba(104,143,191,.2);color:#dbeafe}@media(max-width:800px){.ops-two-col{grid-template-columns:1fr}}

/* Stage 17 FXPilot TV catalog polish */
.tv-local-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.tv-local-nav a{padding:9px 12px;border-radius:999px;border:1px solid rgba(104,143,191,.2);background:rgba(7,17,31,.62);color:#d6eeff;text-decoration:none;font-weight:800}.tv-local-nav a[aria-current="page"]{border-color:rgba(76,201,240,.48);color:#9fe7ff}.tv-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tv-filter-grid label{display:grid;gap:5px;color:#9fb3cc;font-size:.78rem;font-weight:800}.tv-filter-grid input,.tv-filter-grid select,.tv-filter-grid button{min-width:0;width:100%;border-radius:14px;border:1px solid rgba(104,143,191,.22);background:rgba(3,12,24,.72);color:var(--text);padding:11px 12px}.tv-filter-grid button{grid-column:1/-1;cursor:pointer;color:#9fe7ff;font-weight:900}.tv-filter-grid input:focus,.tv-filter-grid select:focus,.tv-filter-grid button:focus,.tv-video-item:focus-visible,.tv-check-button:focus-visible,.tv-local-nav a:focus-visible{outline:2px solid #4cc9f0;outline-offset:2px}.tv-catalog-card{grid-template-columns:132px minmax(0,1fr);gap:8px 12px;animation:cardFadeIn .35s ease both}.tv-catalog-card .tv-thumb-wrap{grid-row:1/5;width:132px;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:rgba(15,35,62,.9);display:grid;place-items:center;color:#7f95b2;border:1px solid rgba(255,255,255,.08)}.tv-catalog-card img{width:100%;height:100%;object-fit:cover;display:block}.tv-catalog-card strong,.tv-catalog-card small{min-width:0;overflow-wrap:anywhere}.tv-card-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tv-badge-chip,.tv-review-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:900;letter-spacing:.03em;border:1px solid rgba(148,163,184,.2);background:rgba(148,163,184,.1);color:#dbeafe}.tv-badge-chip.symbol{color:#c4b5fd;background:rgba(139,92,246,.13);border-color:rgba(139,92,246,.26)}.tv-badge-chip.category{color:#9fe7ff;background:rgba(76,201,240,.12);border-color:rgba(76,201,240,.26)}.tv-badge-chip.timeframe{color:#86efac;background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.25)}.tv-badge-chip.confidence{color:#fef3c7;background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.25)}.tv-badge-chip.direction.buy{color:#86efac;border-color:rgba(34,197,94,.32)}.tv-badge-chip.direction.sell{color:#fca5a5;border-color:rgba(239,68,68,.32)}.tv-badge-chip.direction.wait,.tv-badge-chip.direction.neutral{color:#fde68a;border-color:rgba(251,191,36,.3)}.tv-review-status--ready{color:#bbf7d0;background:rgba(34,197,94,.11);border-color:rgba(34,197,94,.25)}.tv-review-status--processing{color:#bae6fd;background:rgba(14,165,233,.1);border-color:rgba(14,165,233,.26)}.tv-review-status--missing{color:#cbd5e1;background:rgba(148,163,184,.09)}.tv-review-status--failed{color:#fecaca;background:rgba(239,68,68,.11);border-color:rgba(239,68,68,.26)}.tv-review-status i{width:9px;height:9px;border-radius:999px;border:2px solid currentColor;border-top-color:transparent;animation:spin .8s linear infinite}.tv-ai-summary-full{padding:14px 16px;border-radius:18px;background:rgba(3,12,24,.55);border:1px solid rgba(104,143,191,.14)}.tv-trade-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.tv-trade-levels span{padding:12px;border-radius:16px;background:rgba(3,12,24,.52);border:1px solid rgba(148,163,184,.14);color:#8da2bd}.tv-trade-levels b{display:block;margin-top:4px;color:#f1f7ff;overflow-wrap:anywhere}.tv-detail-actions{display:flex;flex-wrap:wrap;gap:10px}.tv-check-button.is-disabled{opacity:.55;pointer-events:none}.tv-embed-fallback{position:absolute;left:12px;right:12px;bottom:12px;padding:8px 10px;border-radius:12px;background:rgba(3,12,24,.72);color:#cbd5e1;font-size:.78rem;pointer-events:none}.tv-player-empty a,.tv-player-empty button{margin-top:8px;padding:9px 12px;border-radius:12px;border:1px solid rgba(76,201,240,.28);background:rgba(76,201,240,.1);color:#9fe7ff;text-decoration:none}.tv-video-list{contain:content}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1180px){.tv-player-layout{grid-template-columns:1fr}.tv-sidebar{position:static}.tv-video-list{grid-template-columns:1fr 1fr;max-height:none}}@media(max-width:760px){.tv-shell,.tv-content,.panel{max-width:100%;overflow-x:hidden}.tv-filter-grid,.tv-video-list,.tv-catalog-card,.tv-trade-levels{grid-template-columns:1fr}.tv-catalog-card .tv-thumb-wrap{grid-row:auto;width:100%}.tv-detail-actions .tv-check-button{width:100%}.tv-embed-fallback{position:static;border-radius:0}.tv-ai-grid{grid-template-columns:1fr}}

/* Stage 18: professional read-only AI Review report */
.tv-report-hero{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:24px;align-items:stretch;overflow:hidden;border-color:rgba(76,201,240,.24);background:radial-gradient(circle at 18% 12%,rgba(76,201,240,.18),transparent 32%),linear-gradient(135deg,rgba(7,17,31,.96),rgba(12,28,52,.86))}.tv-report-thumb{min-height:330px;border-radius:24px;border:1px solid rgba(125,211,252,.24);background:radial-gradient(circle at 30% 20%,rgba(76,201,240,.3),transparent 34%),linear-gradient(135deg,rgba(15,35,62,.94),rgba(3,12,24,.94));background-size:cover;background-position:center;box-shadow:inset 0 -110px 140px rgba(3,12,24,.62),0 24px 60px rgba(0,0,0,.28)}.tv-report-hero__body{display:grid;align-content:start;gap:16px;min-width:0}.tv-report-hero h1{margin:0;color:#f8fbff;font-size:clamp(1.9rem,4vw,3.7rem);line-height:1.05;letter-spacing:-.04em}.tv-report-hero p{margin:0;color:#9fb3cc;line-height:1.7}.tv-report-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.tv-report-actions--top{align-items:flex-start}.tv-report-actions.panel{position:sticky;top:10px;z-index:4;justify-content:flex-start;padding:14px;background:rgba(7,17,31,.86);backdrop-filter:blur(14px)}.tv-report-actions .tv-check-button,.tv-report-actions button.tv-check-button{max-width:100%;white-space:normal;text-align:center;border:1px solid rgba(76,201,240,.26);border-radius:999px;background:rgba(76,201,240,.1);color:#dff8ff;font-weight:900;padding:10px 14px;cursor:pointer}.tv-report-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tv-report-card{position:relative;overflow:hidden;min-width:0;padding:22px;border-radius:24px;border:1px solid rgba(104,143,191,.18);background:linear-gradient(145deg,rgba(7,17,31,.91),rgba(12,28,52,.76));box-shadow:0 18px 55px rgba(0,0,0,.28);animation:cardFadeIn .45s ease both}.tv-report-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#38bdf8,#8b5cf6,#22c55e);opacity:.78}.tv-report-card--wide{grid-column:1/-1}.tv-report-card__head{margin-bottom:16px}.tv-report-card__head h2{margin:0;color:#f1f7ff;font-size:clamp(1.25rem,2vw,1.8rem)}.tv-report-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tv-report-metrics--hero{grid-template-columns:repeat(3,minmax(0,1fr))}.tv-report-metrics div{min-width:0;padding:14px;border-radius:18px;border:1px solid rgba(148,163,184,.15);background:rgba(3,12,24,.54)}.tv-report-metrics span,.tv-summary-grid span{display:block;color:#8da2bd;font-size:.73rem;letter-spacing:.09em;text-transform:uppercase}.tv-report-metrics strong{display:block;margin-top:8px;color:#eaf6ff;overflow-wrap:anywhere}.tv-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}.tv-summary-grid article,.tv-insights-grid article,.tv-trade-idea-card{padding:18px;border-radius:20px;border:1px solid rgba(76,201,240,.18);background:linear-gradient(135deg,rgba(76,201,240,.09),rgba(139,92,246,.07),rgba(3,12,24,.58))}.tv-report-copy{margin:8px 0 0;color:#c7d3e3;line-height:1.75}.tv-report-empty{padding:18px;border-radius:18px;border:1px dashed rgba(148,163,184,.26);background:rgba(3,12,24,.42);color:#9fb3cc}.tv-insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tv-insights-grid strong,.tv-trade-idea-card>strong{display:block;margin-bottom:10px;color:#eaf6ff}.tv-report-pill-list{display:flex;flex-wrap:wrap;gap:8px}.tv-report-pill-list span{display:inline-flex;max-width:100%;border-radius:999px;padding:7px 11px;color:#dff7ff;background:rgba(76,201,240,.12);border:1px solid rgba(76,201,240,.24);font-size:.86rem;overflow-wrap:anywhere}.tv-transcript-preview{max-height:360px;overflow:auto;margin-top:14px;padding:18px;border-radius:18px;background:rgba(3,12,24,.58);border:1px solid rgba(148,163,184,.16)}.tv-transcript-preview p{margin:0 0 12px;color:#cbd5e1;line-height:1.75}.tv-report-status{display:grid;gap:14px;justify-items:start}.tv-report-status h2{margin:0;color:#f8fbff}
@media(max-width:1100px){.tv-report-hero{grid-template-columns:1fr}.tv-report-thumb{min-height:auto;aspect-ratio:16/9}.tv-report-metrics--hero,.tv-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-report-actions.panel{position:static}}
@media(max-width:760px){.tv-report-layout,.tv-report-metrics,.tv-report-metrics--hero,.tv-summary-grid,.tv-insights-grid{grid-template-columns:1fr}.tv-report-hero,.tv-report-card{border-radius:20px;padding:16px}.tv-report-actions .tv-check-button,.tv-report-actions button.tv-check-button{flex:1 1 100%;width:100%}.tv-report-hero h1{font-size:clamp(1.65rem,10vw,2.4rem)}}

.committee-report-hero{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:22px;align-items:center;padding:30px;border-radius:30px;background:radial-gradient(circle at top left,rgba(76,201,240,.24),transparent 36%),linear-gradient(135deg,rgba(6,15,27,.98),rgba(13,29,48,.92));border:1px solid rgba(104,143,191,.28);box-shadow:0 24px 80px rgba(0,0,0,.32);animation:committeePulse .7s ease both}.committee-report-hero span,.committee-member span,.committee-plan span,.committee-timeline span{display:block;color:#90a4c3;text-transform:uppercase;font-size:.72rem;letter-spacing:.1em}.committee-report-hero strong{display:block;margin-top:8px;font-size:clamp(2.7rem,8vw,5.8rem);line-height:.92;color:#e8eef8}.committee-report-hero p{max-width:880px;color:#b7c7dd}.committee-report-hero.buy,.committee-report-hero.strong-buy{border-color:rgba(34,197,94,.46)}.committee-report-hero.sell,.committee-report-hero.strong-sell{border-color:rgba(239,68,68,.46)}.committee-report-hero.wait{border-color:rgba(251,191,36,.42)}.committee-hero-metrics{display:grid;gap:8px;text-align:right}.committee-hero-metrics b{font-size:2.7rem;color:#4cc9f0}.committee-hero-metrics small{color:#90a4c3}.committee-section{grid-column:1/-1}.committee-verdict-text{font-size:1.05rem;color:#c8d7ea}.committee-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.committee-member{display:grid;gap:12px;padding:18px;border-radius:22px;background:rgba(8,18,30,.72);border:1px solid rgba(104,143,191,.2);animation:committeePulse .7s ease both}.committee-member strong{color:#e8eef8;font-size:1.35rem}.committee-member p{margin:0;color:#b7c7dd}.committee-member footer{display:flex;flex-wrap:wrap;gap:8px}.committee-member footer b{padding:7px 10px;border-radius:999px;background:rgba(76,201,240,.08);color:#dbeafe;font-size:.78rem}.committee-member.buy,.committee-member.bullish,.committee-member.strong-buy{border-color:rgba(34,197,94,.34)}.committee-member.sell,.committee-member.bearish,.committee-member.strong-sell{border-color:rgba(239,68,68,.34)}.committee-voting{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.committee-plan{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.committee-plan div,.committee-timeline li{padding:14px;border-radius:18px;background:rgba(76,201,240,.07);border:1px solid rgba(76,201,240,.12)}.committee-plan strong,.committee-timeline b{display:block;margin-top:5px;color:#e8eef8}.committee-timeline{display:grid;gap:12px;margin:0;padding-left:22px}.committee-provider-note{grid-column:1/-1;color:#90a4c3}.committee-section.positive{border-color:rgba(34,197,94,.22)}.committee-section.negative,.committee-section.risk{border-color:rgba(239,68,68,.22)}.committee-section.missing{border-color:rgba(251,191,36,.22)}@media(max-width:760px){.committee-report-hero{grid-template-columns:1fr;padding:22px}.committee-hero-metrics{text-align:left;grid-template-columns:1fr 1fr}.committee-hero-metrics small{align-self:end}.committee-report-hero strong{font-size:3rem}}

.authors-table-wrap { overflow-x: auto; }
.authors-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.authors-table th, .authors-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.authors-table th { color: #9fb3c8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.authors-table tr { transition: background .2s ease, transform .2s ease; }
.authors-table tr:hover { background: rgba(59,130,246,.10); }
.authors-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.authors-toolbar input { width: min(420px, 100%); border: 1px solid rgba(148,163,184,.25); border-radius: 14px; background: rgba(15,23,42,.85); color: #e5edf7; padding: 12px 14px; }
.author-detail { animation: signalCardFloat .45s ease both; }

.mtf-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: 86vh;
  overflow: auto;
  border: 1px solid rgba(99, 179, 237, 0.35);
  background: #07111f;
  color: #e6f1ff;
  border-radius: 18px;
}
.mtf-modal::backdrop { background: rgba(0, 0, 0, 0.72); }
