/* ========== Base ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.theme-dark {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #050608;
  color: #e5e7eb;
}

a {
  color: #f97316;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-content {
  max-width: 1100px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
}

/* Accessible focus styles for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Don’t show browser default outline on mouse click */
a:focus,
button:focus,
input:focus {
  outline: none;
}

/* ========== Header ========== */

.site-header {
  border-bottom: 1px solid #1f2933;
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;               /* slightly tighter */
  font-weight: 600;
  color: #f9fafb;
}

.logo-mark {
  font-size: 1.05rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #f97316;
  color: #f97316;
}

.logo-text {
  font-size: 1.0rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  display: inline-flex;
  /* remove gap so main + tail touch */
  gap: 0;
}

.logo-text-main {
  color: #e5e7eb;  /* OVER21M */
}

.logo-text-tail {
  color: #9ca3af;  /* ILLION accent */
  margin-left: -0.05rem;     /* tiny overlap so it feels like one word */
}

/* Logo link – no underline */
.logo {
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

/* Optional: subtle hover signal instead of underline */
.logo:hover .logo-mark {
  border-color: #fbbf24;              /* slightly brighter orange */
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

.logo:hover .logo-text-main {
  color: #fef3c7;                     /* tiny lift on OVER21M */
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: #9ca3af;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: #e5e7eb;
}

.main-nav a.active {
  color: #f97316;
  border-bottom-color: #f97316;
}

.x-link {
  font-size: 0.9rem;
  color: #9ca3af;
}

.x-link:hover {
  color: #e5e7eb;
}

/* ========== Hero ========== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #f9fafb;
}

.hero-text p {
  margin: 0 0 1.5rem;
  color: #9ca3af;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #0b0f19;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border-color: #374151;
  color: #e5e7eb;
}

.btn-secondary:hover {
  border-color: #6b7280;
  text-decoration: none;
}

.hero-chart {
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  border-radius: 1.2rem;
  border: 1px solid #1f2937;
  padding: 1rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-chart img {
  width: 100%;
  border-radius: 0.9rem;
  display: block;
}

.hero-placeholder {
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}

.hero-caption {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.hero-caption-sub {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ========== Today on-chain ========== */

.today-strip {
  margin-top: 3rem;
}

.today-strip h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

.today-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-compact {
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  opacity: 0.6;
  cursor: not-allowed;
}

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

.card {
  background: #020617;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  padding: 1rem;
  font-size: 0.9rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #f9fafb;
}

.card img {
  width: 100%;
  border-radius: 0.7rem;
  margin-bottom: 0.6rem;
}

/* About page bio image overrides */
.bio-card .bio-photo-wrap {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

.bio-card .bio-photo {
  width: 120px;
  height: 120px;
  border-radius: 999px;     /* circular */
  object-fit: cover;
  border: 2px solid rgba(249, 115, 22, 0.7); /* subtle over21m accent */
  margin: 0;
}

.empty-state {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ========== Ads (future) ========== */

.ad-slot {
  margin: 2.5rem 0 0;
  padding: 0.75rem;
  border-radius: 0.9rem;
  border: 1px dashed #374151;
  background: #020617;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ========== Footer ========== */

.site-footer {
  border-top: 1px solid #111827;
  margin-top: 3rem;
  padding: 1rem 0 1.5rem;
  background: #020617;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand {
  font-weight: 500;
}

.footer-tagline,
.footer-node {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ========== Responsive ========== */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-chart {
    order: -1;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    flex-wrap: wrap;
    font-size: 0.9rem;
  }

  .page-content {
    margin-top: 2rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }
}

/* ========== Hero chart modal ========== */

.chart-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
  z-index: 40;
}

.chart-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.chart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.chart-modal-dialog {
  position: relative;
  max-width: 96%;
  max-height: 92%;
  padding: 0.75rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at top, #0b1120 0, #020617 60%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(148, 163, 184, 0.3);
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
  z-index: 41;
}

.chart-modal.is-open .chart-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chart-modal-dialog img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.9rem;
}

/* Make trigger look like a plain image but clickable */

.chart-modal-trigger {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.chart-modal-trigger img {
  width: 100%;
  border-radius: 0.9rem;
  display: block;
}

/* Small screen tweaks */
@media (max-width: 640px) {
  .chart-modal-dialog {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.8rem;
  }
}

/* Today on-chain card styling */

.today-card {
  background: #050b18;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.today-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.today-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 0;
}

.today-card-window {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

/* Main metrics row */

.today-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.today-card-insight {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #9ca3af;
  font-style: italic;
}

.metric-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.78rem;
}

.metric-label {
  color: #9ca3af;
}

.metric-value {
  color: #e5e7eb;
  font-weight: 600;
}

/* Cohort pills */

.today-card-cohorts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cohort-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.76rem;
}

.cohort-label {
  color: #e5e7eb;
  font-weight: 500;
}

.cohort-btc {
  color: #9ca3af;
}

.cohort-pnl {
  font-weight: 600;
}

/* PnL coloring – subtle so it doesn't steal focus */
.cohort-pnl.pnl-pos {
  color: #4ade80; /* soft green */
}

.cohort-pnl.pnl-neg {
  color: #f97373; /* soft red */
}

.cohort-pnl.pnl-flat {
  color: #9ca3af;
}

    .live-band-toggle {
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid rgba(148, 163, 184, 0.25);
    }

    .live-band-toggle-label {
      font-size: 0.8rem;
      color: #9ca3af;
      margin-bottom: 0.35rem;
    }

    .live-band-toggle-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.6rem;
    }

    .band-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.75rem;
      border-radius: 999px;
      padding: 0.15rem 0.7rem;
      border: 1px solid rgba(148, 163, 184, 0.4);
      background: rgba(15, 23, 42, 0.95);
      color: #e5e7eb;
      cursor: pointer;
      transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        opacity 0.15s ease,
        box-shadow 0.15s ease;
      white-space: nowrap;
    }

    .band-color-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      flex-shrink: 0;
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    }

    .band-btn-active {
      opacity: 1;
      box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9),
                  0 0 12px rgba(15, 23, 42, 0.9);
    }

    .band-btn-inactive {
      opacity: 0.55;
      background: rgba(15, 23, 42, 1);
    }

    .band-btn:focus-visible {
      outline: 2px solid #f97316;
      outline-offset: 2px;
    }

    .site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

.footer-handle {
  color: var(--accent-color, #f7931a);
  text-decoration: none;
}

.footer-handle:hover {
  text-decoration: underline;
}

.footer-support {
  position: relative;
}

.footer-support-trigger {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.08s ease;
}

.footer-support-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-color, #f7931a);
  color: #fff;
  transform: translateY(-1px);
}

.footer-support-popover {
  position: absolute;
  bottom: 130%;
  right: 50%;
  transform: translateX(50%);
  background: #050713;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
}

.footer-support-popover.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(50%) translateY(-6px);
}

.support-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.support-text {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.support-body {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.support-qr {
  width: 96px;
  height: 96px;
  border-radius: 8px;
}

.support-details {
  flex: 1;
}

.support-label {
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
  opacity: 0.8;
}

#btc-donate-address {
  display: block;
  font-size: 0.7rem;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.btn-copy {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  margin-bottom: 0.3rem;
}

.btn-copy:hover {
  border-color: var(--accent-color, #f7931a);
}

.support-footnote {
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0.7;
}

/* Signup card */

.signup-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.9rem;
}

.signup-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.signup-blurb {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: #cbd5f5;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.signup-input {
  width: 100%;
}

.signup-options {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.signup-button {
  margin-top: 0.3rem;
}

.signup-flash {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #f97316;
}

/* Donate support card */

.support-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid rgba(249, 115, 22, 0.5);
  font-size: 0.9rem;
}

.support-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.support-card-text {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: #cbd5f5;
}

.support-card-body {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.support-card-qr {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
}

.support-card-details {
  flex: 1;
}

.support-card-label {
  font-size: 0.75rem;
  margin-bottom: 0.1rem;
  color: #9ca3af;
}

#btc-donate-address-main {
  display: block;
  font-size: 0.7rem;
  word-break: break-all;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  margin-bottom: 0.25rem;
}

.support-card-footnote {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* ========== Split content sections (What is, Legal, etc.) ========== */

.page-404 .content-main p {
  max-width: 40rem;
}

/* Base section layout */
.content-section,
.what-is {
  margin-top: 3rem;
  border-top: 1px solid #111827;
  padding-top: 2rem;
}

/* Titles + body text */
.content-section h2,
.what-is h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
}

.content-section p,
.what-is p {
  margin: 0 0 1rem;
  color: #9ca3af;
  max-width: 40rem;
}

/* Bullet lists maintain the existing style */
.bullet-list {
  margin: 0 0 1rem 1rem;
  padding-left: 1rem;
  color: #d1d5db;
  font-size: 0.92rem;
}

.bullet-list li + li {
  margin-top: 0.25rem;
}

/* Split grid layout (main + side) */
.content-split,
.what-is-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.content-main,
.what-is-main {
  max-width: 40rem;
}

.content-side,
.what-is-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bio-photo-wrap {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

.bio-card .bio-photo {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;

  /* thinner border */
  border: 1px solid rgba(249, 115, 22, 0.7);

  /* subtle mute – tweak these values to taste */
  filter: brightness(0.96) saturate(0.9);
}

/* Responsive: stack columns on small screens */
@media (max-width: 900px) {
  .content-split,
  .what-is-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.live-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.live-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.live-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.live-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
}

.live-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

#live-chart {
  width: 100%;
  height: 620px; /* tweak as desired */
  border-radius: 0.75rem;
  background: radial-gradient(circle at top left, rgba(249,115,22,0.15), transparent 45%),
              radial-gradient(circle at bottom right, rgba(37,99,235,0.12), transparent 40%),
              #020617;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.75rem;
  box-sizing: border-box;
}

.live-help {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Wider layout just for the live page */
.page-live .content-section {
  /* override the shared grid layout */
  display: block;            /* instead of the 2-column grid used on About/Legal */
  max-width: 1400px;         /* was ~1100px; tweak to taste (1300–1500 works well) */
  margin: 3rem auto 4rem;    /* keep it centered like other pages */
  padding: 0 1.5rem;
}

/* Let the main content stretch to fill that width */
.page-live .content-main {
  max-width: none;
}

.page-live .live-header {
  max-width: 1200px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-soft {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}



