html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base, 'Inter', sans-serif);
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover,
a:focus {
  opacity: 0.85;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gap-4 {
  gap: 1rem;
}

.mt {
  margin-top: 1rem;
}

.card {
  background: var(--color-card);
  border-radius: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 12px 28px rgba(6, 5, 19, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(10, 8, 24, 0.45);
}

.big-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-brand-soft);
}

.big-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--color-brand-strong);
  font-weight: 600;
}

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

.progress {
  background: rgba(36, 31, 60, 0.75);
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.progress .bar {
  background: var(--color-accent);
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease;
}

.toolbar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.toolbar input {
  flex: 1;
  min-width: 220px;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(18, 15, 36, 0.95);
  color: var(--color-text);
}

.toolbar input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.24);
}

.toolbar .btn,
.toolbar .btn-secondary,
.toolbar button {
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(31, 25, 54, 0.92);
  color: var(--color-text);
  font-weight: 500;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.toolbar .btn:hover,
.toolbar .btn-secondary:hover,
.toolbar button:hover {
  background: rgba(45, 36, 78, 0.95);
  transform: translateY(-2px);
}

.toolbar .btn-secondary {
  background: rgba(24, 20, 46, 0.9);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  text-align: left;
}

.table th {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table .actions a,
.table .actions button {
  margin-right: 0.5rem;
}

.ml-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ml-form input {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(17, 14, 32, 0.95);
  color: var(--color-text);
}

.ml-form input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}

.ml-form button {
  padding: 0.55rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(31, 25, 54, 0.92);
  color: var(--color-text);
  font-weight: 600;
}

.btn-glow {
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(240, 185, 11, 0);
}

.btn-glow:hover {
  box-shadow: 0 0 18px rgba(240, 185, 11, 0.45);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}


.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-strong));
  color: var(--color-text);
  text-align: center;
  padding: 4rem 1.5rem;
}

.landing-hero__content {
  max-width: 640px;
}

.landing-hero__content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.landing-hero__content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.landing-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.theme-light .landing-hero {
  background: linear-gradient(135deg, #ede9fe, #c4b5fd);
  color: var(--color-text);
}

.landing-section {
  padding: 4rem 1.5rem;
  background: var(--color-bg);
}

.landing-section__inner {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.landing-section__inner h2 {
  margin-bottom: 1.8rem;
  font-size: 2rem;
  color: var(--color-brand-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 14px 32px rgba(6, 5, 18, 0.35);
}

.feature-card h5 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: var(--color-brand-soft);
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.landing-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--color-text-muted);
}

.bg-light {
  background: var(--color-bg-soft) !important;
}

.text-dark {
  color: var(--color-text) !important;
}

.premium-locked {
  position: relative;
  isolation: isolate;
}

.premium-locked .premium-locked__content {
  opacity: 0.55;
  filter: saturate(0.75);
  pointer-events: none;
  user-select: none;
}

.premium-locked .premium-locked__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(15, 11, 26, 0.82), rgba(64, 37, 125, 0.78));
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 0.9rem;
  z-index: 2;
}

.premium-locked .premium-locked__overlay .lock-icon {
  font-size: 1.75rem;
  color: var(--color-brand-soft);
}

.premium-locked .premium-locked__overlay p {
  margin: 0;
  color: var(--color-text);
}

.premium-locked .premium-locked__overlay .btn {
  pointer-events: auto;
}

/* Legal & policy pages */
.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-hero {
  text-align: center;
  margin-bottom: 0.5rem;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.25rem;
}

.legal-hero p {
  color: var(--text-muted, #6b7280);
  margin: 0.15rem 0;
}

.legal-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, rgba(148, 163, 184, 0.4));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

.legal-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.legal-card ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.site-footer__links a {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
  opacity: 1;
}

.site-footer__links button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: inherit;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__links button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Two columns of links instead of one long centred stack. */
  .site-footer__links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    text-align: left;
  }

  .site-footer__links a,
  .site-footer__links button {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .site-footer__links button {
    justify-content: center;
    grid-column: 1 / -1;
    margin-top: 0.35rem;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 2rem));
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 35px 60px rgba(15, 23, 42, 0.35);
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 50;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: #c4b5fd;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 60;
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-modal__dialog {
  background: var(--card, #111827);
  color: var(--text, #f8fafc);
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  max-width: 540px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.45);
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-modal__header .btn.ghost {
  font-size: 1.5rem;
  padding: 0 0.35rem;
}

.cookie-modal__controls {
  margin: 1rem 0;
}

.cookie-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.cookie-toggle input {
  width: 1.2rem;
  height: 1.2rem;
}

.privacy-dashboard {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.privacy-hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.2rem;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.privacy-card {
  background: var(--card, #0f172a);
  border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.privacy-card h2 {
  margin-top: 0;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.privacy-table th,
.privacy-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.45rem 0.35rem;
  text-align: left;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.btn.danger {
  background: linear-gradient(120deg, #ef4444, #dc2626);
  color: #fff;
}

.start-prediction {
  width: min(1170px, 100%);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.prediction-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
  color: var(--color-brand-soft);
}

.prediction-hero {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.22), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.35);
  border-radius: 1.75rem;
  padding: clamp(2.25rem, 3vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 2.5vw, 3rem);
  box-shadow: 0 25px 45px rgba(8, 7, 19, 0.3);
  position: relative;
  overflow: hidden;
}

.prediction-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), transparent 55%);
  opacity: 0.7;
  filter: blur(35px);
  z-index: 0;
}

.prediction-hero__content h1 {
  font-size: clamp(2.5rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.prediction-hero__content p {
  color: var(--color-text-soft);
  margin-bottom: 1.4rem;
  max-width: 520px;
}

.prediction-hero__content,
.prediction-hero__panel {
  position: relative;
  z-index: 1;
}

.prediction-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  margin-bottom: 1.25rem;
}

.prediction-hero__badge {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.prediction-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.prediction-hero__panel {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 1.35rem;
  border: 1px solid rgba(79, 70, 229, 0.35);
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(8px);
}

.prediction-panel__card {
  background: rgba(31, 41, 55, 0.7);
  border-radius: 1.15rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prediction-panel__card span {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.prediction-panel__card strong {
  font-size: 2rem;
}

.prediction-panel__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.prediction-panel__stats div {
  background: rgba(31, 41, 55, 0.6);
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.prediction-panel__stats span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
}

.prediction-panel__stats strong {
  font-size: 1.35rem;
}

.prediction-panel__progress {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.prediction-panel__progress-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.prediction-panel__progress-track {
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prediction-panel__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, #4f46e5, #60a5fa);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.3);
}

.prediction-panel__progress small {
  font-size: 0.75rem;
  color: rgba(196, 181, 253, 0.7);
}

.prediction-options {
  background: var(--color-card);
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  padding: clamp(2rem, 3vw, 2.8rem);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.prediction-options__header h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 3vw, 2.4rem);
}

.prediction-options__header p {
  color: var(--color-text-soft);
  max-width: 640px;
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.prediction-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.85), rgba(30, 41, 59, 0.95));
  border-radius: 1.25rem;
  padding: 1.4rem;
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.prediction-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.65);
  box-shadow: 0 25px 40px rgba(6, 5, 19, 0.45);
}

.prediction-card:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.85);
  outline-offset: 4px;
}

.prediction-card__icon {
  font-size: 1.8rem;
}

.prediction-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.prediction-card p {
  color: var(--color-text-soft);
  margin: 0;
}

.prediction-card span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}

.prediction-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.prediction-insights__column {
  border-radius: 1.25rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 1.5rem;
  background: rgba(31, 32, 58, 0.85);
  box-shadow: 0 18px 30px rgba(6, 5, 19, 0.35);
}

.prediction-insights__column h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.prediction-insights ol,
.prediction-insights ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.prediction-insights li {
  line-height: 1.5;
}

@media (max-width: 640px) {
  .prediction-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

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