:root {
  --prediction-bg: #07111f;
  --prediction-bg-strong: #06101d;
  --prediction-panel: rgba(14, 30, 51, 0.88);
  --prediction-panel-soft: rgba(24, 45, 68, 0.82);
  --prediction-panel-muted: rgba(18, 33, 54, 0.9);
  --prediction-border: rgba(128, 178, 217, 0.22);
  --prediction-border-strong: rgba(113, 201, 190, 0.36);
  --prediction-text: #f7fbff;
  --prediction-muted: #b8c6d8;
  --prediction-dim: #8fa2b7;
  --prediction-green: #6df58a;
  --prediction-green-deep: #1aa96d;
  --prediction-blue: #65c6ff;
  --prediction-yellow: #ffe66d;
  --prediction-red: #ff6b95;
  --prediction-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

html {
  scroll-behavior: smooth;
}

.prediction-body {
  background:
    radial-gradient(circle at 76% 2%, rgba(31, 143, 116, 0.32), transparent 31rem),
    radial-gradient(circle at 5% 18%, rgba(45, 100, 203, 0.24), transparent 25rem),
    linear-gradient(145deg, #081638 0%, #06111c 52%, #082719 100%) !important;
  color: var(--prediction-text);
}

.prediction-page,
.prediction-page * {
  box-sizing: border-box;
}

.prediction-page {
  width: min(100%, 1640px);
  margin: 0 auto;
  padding: 40px 48px 28px;
  color: var(--prediction-text);
  font-family: "Inter", Arial, sans-serif;
}

.prediction-page a {
  color: inherit;
  text-decoration: none;
}

.prediction-page button,
.prediction-page a {
  -webkit-tap-highlight-color: transparent;
}

.prediction-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 0 28px;
  border: 1px solid rgba(132, 188, 230, 0.2);
  border-radius: 40px;
  background: rgba(7, 17, 35, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.prediction-brand {
  display: inline-flex;
  align-items: center;
  min-width: 154px;
  min-height: 52px;
  justify-self: start;
}

.prediction-brand-logo {
  display: block;
  width: 154px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.prediction-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(238, 246, 255, 0.72);
  font-size: 15px;
  white-space: nowrap;
}

.prediction-nav-links a {
  padding: 12px 18px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.prediction-nav-links a:hover,
.prediction-nav-links a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.prediction-nav-links a:first-child {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-auth {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.prediction-nav-button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.prediction-nav-button:hover,
.prediction-nav-button:focus-visible {
  outline: 2px solid rgba(101, 198, 255, 0.55);
  outline-offset: 2px;
}

.prediction-nav-join {
  color: #07111f;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.prediction-auth button#nav-login-button,
.prediction-auth button#nav-logout-button {
  color: #ffffff !important;
  background: transparent !important;
}

.prediction-auth button#nav-signup-button {
  color: #07111f !important;
  background: #ffffff !important;
}

#nav-logout-button.logout {
  display: none;
}

.prediction-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.74fr);
  gap: 72px;
  align-items: center;
  padding: 72px 0 50px;
}

.prediction-hero-copy {
  min-width: 0;
}

.prediction-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(73, 222, 255, 0.44);
  border-radius: 999px;
  color: #78f2ff;
  background: rgba(30, 162, 197, 0.23);
  font-size: 14px;
  font-weight: 800;
}

.prediction-pill::before,
.prediction-live-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--prediction-green);
}

.prediction-hero h1 {
  max-width: 800px;
  margin: 54px 0 0;
  color: #ffffff;
  font-size: clamp(48px, 5.8vw, 84px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.prediction-hero h1::after {
  content: "";
  display: block;
  width: min(760px, 78%);
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--prediction-green) 0 78%, var(--prediction-blue) 78% 100%);
}

.prediction-summary {
  max-width: 780px;
  margin: 28px 0 0;
  color: rgba(236, 244, 255, 0.86);
  font-size: clamp(19px, 1.65vw, 25px);
  line-height: 1.48;
}

.prediction-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.prediction-primary-action,
.prediction-secondary-action,
.prediction-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.prediction-primary-action {
  color: #07111f;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

.prediction-page .prediction-primary-action {
  color: #07111f;
}

.prediction-secondary-action,
.prediction-small-button {
  color: #ffffff;
  border: 1px solid rgba(137, 180, 222, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.prediction-primary-action:hover,
.prediction-secondary-action:hover,
.prediction-small-button:hover,
.prediction-primary-action:focus-visible,
.prediction-secondary-action:focus-visible,
.prediction-small-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(117, 225, 199, 0.44);
}

.prediction-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
  margin-top: 50px;
}

.prediction-mini-card,
.prediction-current-metrics article,
.prediction-guide-chip,
.prediction-method-grid article {
  border: 1px solid var(--prediction-border);
  border-radius: 18px;
  background: rgba(20, 35, 56, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.prediction-mini-card {
  min-height: 92px;
  padding: 18px 20px;
}

.prediction-mini-card span,
.prediction-current-header span:first-child,
.prediction-current-metrics span,
.prediction-results-table th,
.prediction-method-grid article span {
  display: block;
  color: #9fb3c9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.prediction-mini-card strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 29px;
  line-height: 1;
}

.prediction-mini-card small,
.prediction-current-metrics small {
  display: block;
  margin-top: 5px;
  color: #b6c7d8;
  font-size: 14px;
}

.prediction-mini-card-state small,
.prediction-pending-text,
.outcome-pending {
  color: var(--prediction-yellow);
}

.prediction-current-card {
  padding: 32px;
  border: 1px solid rgba(136, 197, 236, 0.32);
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 4%, rgba(94, 218, 175, 0.18), transparent 22rem),
    linear-gradient(150deg, rgba(43, 72, 101, 0.92), rgba(15, 31, 53, 0.94));
  box-shadow: var(--prediction-shadow);
}

.prediction-current-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.prediction-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #b8ffd0;
  background: rgba(82, 212, 145, 0.22);
  font-size: 13px;
  font-weight: 900;
}

.prediction-current-card h2 {
  margin: 24px 0 12px;
  color: #ffffff;
  font-size: clamp(52px, 5vw, 72px);
  line-height: 0.94;
  letter-spacing: 0;
}

.prediction-current-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.prediction-chip,
.prediction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.prediction-chip-green,
.badge-bullish {
  color: #98ffaf;
  background: rgba(59, 202, 105, 0.23);
  border: 1px solid rgba(109, 245, 138, 0.18);
}

.prediction-chip-blue {
  color: #7fd0ff;
  background: rgba(48, 150, 228, 0.22);
  border: 1px solid rgba(127, 208, 255, 0.18);
}

.prediction-chip-yellow,
.badge-pending {
  color: var(--prediction-yellow);
  background: rgba(213, 169, 35, 0.22);
  border: 1px solid rgba(255, 230, 109, 0.2);
}

.badge-bearish {
  color: #ff9ab4;
  background: rgba(214, 72, 113, 0.22);
  border: 1px solid rgba(255, 107, 149, 0.18);
}

.prediction-spark-card {
  min-height: 258px;
  padding: 18px;
  border: 1px solid rgba(77, 185, 221, 0.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31, 87, 111, 0.55), rgba(9, 22, 38, 0.86));
  overflow: hidden;
}

.prediction-chart-loading,
.prediction-error,
.prediction-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: #bed0e5;
  text-align: center;
}

.prediction-recent-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
}

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

.prediction-current-metrics article {
  min-height: 104px;
  padding: 18px 16px;
}

.prediction-current-metrics strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.prediction-current-metrics article:first-child strong,
.prediction-bullish-text,
.outcome-correct,
.prediction-correct-icon,
.prediction-up-icon {
  color: var(--prediction-green);
}

.prediction-bearish-text,
.outcome-wrong,
.prediction-wrong-icon,
.prediction-down-icon {
  color: var(--prediction-red);
}

.prediction-guide,
.prediction-results-section,
.prediction-full-history,
.prediction-methodology,
.prediction-geo-copy {
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--prediction-border-strong);
  border-radius: 34px;
  background: rgba(7, 19, 36, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.prediction-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) 1fr;
  align-items: center;
  gap: 28px;
}

.prediction-guide h2,
.prediction-results-section h2,
.prediction-full-history h2,
.prediction-methodology h2,
.prediction-geo-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.prediction-guide p,
.prediction-section-header p,
.prediction-methodology > p,
.prediction-geo-copy p {
  max-width: 920px;
  margin: 8px 0 0;
  color: #c0cada;
  font-size: 17px;
  line-height: 1.55;
}

.prediction-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(116px, 1fr));
  gap: 16px;
}

.prediction-guide-chip {
  min-height: 94px;
  padding: 18px;
}

.prediction-guide-icon {
  float: left;
  margin-right: 12px;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.prediction-guide-chip strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
}

.prediction-guide-chip small {
  display: block;
  margin-top: 4px;
  color: #aebdd0;
}

.prediction-pending-icon {
  color: var(--prediction-yellow);
}

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

.prediction-small-button {
  min-height: 42px;
  padding: 0 18px;
  color: #cbfddd;
  font-size: 13px;
}

.prediction-table-wrap,
.prediction-full-table {
  width: 100%;
  overflow: auto;
}

.prediction-results-table,
.prediction-full-table table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.prediction-results-table th,
.prediction-full-table th {
  padding: 10px 14px 14px;
  color: #9fb3c9;
  text-align: left;
  border-bottom: 1px solid rgba(145, 169, 199, 0.22);
}

.prediction-results-table td,
.prediction-full-table td {
  padding: 18px 14px;
  color: #e9f1fb;
  font-size: 16px;
  border-bottom: 1px solid rgba(145, 169, 199, 0.14);
}

.prediction-results-table tr.current-prediction-row td,
.prediction-full-table tr.current-prediction-row td {
  background: rgba(51, 195, 122, 0.22);
  border-top: 1px solid rgba(109, 245, 138, 0.28);
  border-bottom: 1px solid rgba(109, 245, 138, 0.28);
}

.prediction-results-table tr.current-prediction-row td:first-child,
.prediction-full-table tr.current-prediction-row td:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.prediction-results-table tr.current-prediction-row td:last-child,
.prediction-full-table tr.current-prediction-row td:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.prediction-badge {
  min-width: 94px;
}

.prediction-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.prediction-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, max-content) 1fr;
  align-items: end;
  gap: 28px;
  padding-top: 16px;
  color: #b8c6d8;
  font-size: 15px;
}

.prediction-summary-stats strong {
  margin-right: 10px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.prediction-summary-stats span:nth-child(4) strong {
  color: var(--prediction-green);
}

.prediction-summary-note {
  justify-self: end;
  max-width: 620px;
  color: #dbe7f4;
  font-weight: 700;
  text-align: right;
}

.prediction-highchart {
  min-height: 620px;
  border: 1px solid rgba(145, 169, 199, 0.22);
  border-radius: 22px;
  background: rgba(13, 22, 35, 0.9);
  overflow: hidden;
}

.prediction-full-table {
  max-height: 520px;
  margin-top: 24px;
  border: 1px solid rgba(145, 169, 199, 0.2);
  border-radius: 18px;
  background: rgba(11, 22, 38, 0.72);
}

.prediction-full-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #08172a;
}

.prediction-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.prediction-method-grid article {
  min-height: 126px;
  padding: 22px;
}

.prediction-method-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(111, 255, 222, 0.28);
  border-radius: 999px;
  color: #9cffef;
  background: rgba(48, 191, 174, 0.2);
  font-size: 15px;
  letter-spacing: 0;
}

.prediction-method-grid h3 {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 18px;
}

.prediction-method-grid p {
  margin: 16px 0 0;
  color: #b7c5d8;
  font-size: 15px;
  line-height: 1.45;
}

.prediction-geo-copy {
  margin-top: 32px;
  padding: 24px 32px;
}

.prediction-geo-copy h2 {
  font-size: 24px;
}

.prediction-disclosure {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  margin-top: 30px;
  padding: 20px 32px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #65d9ff, #6cf07f);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  font-size: 17px;
  font-weight: 900;
}

.prediction-disclosure span:last-child {
  color: rgba(4, 36, 24, 0.88);
}

.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;
}

g.dont-show {
  visibility: hidden;
}

.highcharts-background {
  fill: transparent;
}

.prediction-page .highcharts-range-selector-buttons text,
.prediction-page .highcharts-axis-labels text,
.prediction-page .highcharts-title,
.prediction-page .highcharts-subtitle,
.prediction-page .highcharts-legend text {
  fill: #edf6ff !important;
}

.prediction-page .highcharts-grid-line {
  stroke: rgba(227, 239, 255, 0.24);
}

.prediction-page .highcharts-range-selector-buttons .highcharts-button text {
  fill: #0a1423 !important;
}

.prediction-page .highcharts-range-selector-buttons .highcharts-button-pressed text {
  fill: #ffffff !important;
}

.footer-container {
  margin-top: 0 !important;
  background: #07111f !important;
}

@media (max-width: 1180px) {
  .prediction-page {
    padding: 26px 24px 28px;
  }

  .prediction-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    border-radius: 28px;
    padding: 22px;
  }

  .prediction-brand,
  .prediction-auth {
    justify-self: center;
  }

  .prediction-nav-links {
    flex-wrap: wrap;
    white-space: normal;
  }

  .prediction-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 52px;
  }

  .prediction-hero h1,
  .prediction-summary {
    max-width: none;
  }

  .prediction-current-card {
    max-width: 720px;
  }

  .prediction-guide {
    grid-template-columns: 1fr;
  }

  .prediction-guide-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

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

  .prediction-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prediction-summary-note {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .prediction-page {
    padding: 16px 14px 22px;
  }

  .prediction-nav {
    min-height: auto;
    gap: 16px;
    padding: 18px 14px;
  }

  .prediction-nav-links {
    gap: 6px;
    font-size: 13px;
  }

  .prediction-nav-links a {
    padding: 10px 12px;
  }

  .prediction-auth {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .prediction-nav-button {
    min-height: 42px;
    padding: 0 18px;
  }

  .prediction-hero {
    padding: 36px 0 24px;
  }

  .prediction-hero h1 {
    margin-top: 34px;
    font-size: 44px;
  }

  .prediction-status-grid,
  .prediction-current-metrics,
  .prediction-method-grid {
    grid-template-columns: 1fr;
  }

  .prediction-current-card,
  .prediction-guide,
  .prediction-results-section,
  .prediction-full-history,
  .prediction-methodology,
  .prediction-geo-copy {
    padding: 22px;
    border-radius: 24px;
  }

  .prediction-current-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .prediction-current-card h2 {
    font-size: 48px;
  }

  .prediction-results-section {
    overflow: hidden;
  }

  .prediction-table-wrap {
    overflow: visible;
  }

  .prediction-results-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .prediction-results-table thead {
    display: none;
  }

  .prediction-results-table,
  .prediction-results-table tbody,
  .prediction-results-table tr,
  .prediction-results-table td {
    display: block;
    width: 100%;
  }

  .prediction-results-table tr {
    padding: 14px 16px;
    border: 1px solid rgba(145, 169, 199, 0.18);
    border-radius: 18px;
    background: rgba(11, 22, 38, 0.72);
  }

  .prediction-results-table tr.current-prediction-row {
    border-color: rgba(109, 245, 138, 0.3);
    background: rgba(51, 195, 122, 0.18);
  }

  .prediction-results-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(145, 169, 199, 0.12);
    font-size: 15px;
    text-align: right;
  }

  .prediction-results-table td:last-child {
    border-bottom: 0;
  }

  .prediction-results-table tr.current-prediction-row td {
    background: transparent;
    border-top: 0;
  }

  .prediction-results-table tr.current-prediction-row td:first-child,
  .prediction-results-table tr.current-prediction-row td:last-child {
    border-radius: 0;
  }

  .prediction-results-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #9fb3c9;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: left;
    text-transform: uppercase;
  }

  .prediction-guide-grid {
    grid-template-columns: 1fr;
  }

  .prediction-section-header {
    flex-direction: column;
  }

  .prediction-summary-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .prediction-highchart {
    min-height: 500px;
  }

  .prediction-disclosure {
    position: static;
    flex-direction: column;
    border-radius: 24px;
    padding: 18px 20px;
  }
}
