:root {
  --stats-gold: #d4af37;
  --stats-gold-soft: rgba(212, 175, 55, 0.34);
  --stats-border: rgba(212, 175, 55, 0.18);
  --stats-text-soft: rgba(255,255,255,0.72);
}

body {
  background:
    linear-gradient(180deg, rgba(4,4,4,0.68) 0%, rgba(4,4,4,0.84) 100%),
    url('/bg-desktop-correct.webp') center center / cover fixed no-repeat;
  color: #fff;
}

.stats-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 32px 24px 140px;
}

.empty-card {
  width: min(100%, 620px);
  margin: 80px auto 0;
  text-align: center;
  padding: 40px 24px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.38);
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
  backdrop-filter: blur(20px);
}

.empty-icon {
  font-size: 28px;
  color: var(--stats-gold);
}

.empty-title {
  margin-top: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
}

.empty-text {
  margin-top: 10px;
  color: var(--stats-text-soft);
}

.stats-layout {
  display: grid;
  gap: 44px;
}

.stats-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 14px;
  text-align: center;
}

.stats-hero-avatar-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(180deg, #f5d876 0%, #d4af37 45%, #6e5212 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,0.42);
}

.stats-hero-avatar,
.stats-hero-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.stats-hero-avatar {
  display: block;
  object-fit: cover;
  background: #0e0e0e;
}

.stats-hero-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), rgba(0,0,0,0.8));
}

.stats-hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.stats-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--stats-text-soft);
  font-size: clamp(18px, 2vw, 20px);
}

.meta-dot {
  opacity: 0.5;
}

.stats-details,
.stats-chart-area {
  border-top: 1px solid var(--stats-border);
  padding-top: 26px;
}

.stats-row {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stats-row-bio {
  align-items: start;
}

.stats-label {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.stats-value {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.35;
  text-align: left;
}

.stats-bio {
  max-width: 42ch;
  font-size: 18px;
}

.stats-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stats-chart-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.stats-chart-kicker {
  color: var(--stats-gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  margin-bottom: 8px;
}

.stats-chart-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.stats-chart-select-wrap {
  display: inline-flex;
  align-items: center;
}

.stats-chart-select {
  appearance: none;
  min-width: 280px;
  border-radius: 999px;
  padding: 14px 52px 14px 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    radial-gradient(circle at top left, rgba(212,175,55,0.16), rgba(0,0,0,0.2));
  font: 500 15px 'Manrope', sans-serif;
}

.stats-chart-select option {
  color: #111;
}

.stats-chart-note {
  margin: 14px 0 0;
  color: var(--stats-text-soft);
}

.stats-chart-canvas-wrap {
  margin-top: 22px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#statsTrendCanvas {
  display: block;
  width: 100%;
  height: auto;
}

.stats-chart-empty {
  margin-top: 16px;
  color: var(--stats-text-soft);
}

.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6cb 0%, #e9c75f 24%, #d4af37 52%, #b98714 76%, #826113 100%);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(4,4,4,0.72) 0%, rgba(4,4,4,0.88) 100%),
      url('/bg-mobile-final-1080x1920.webp') center top / cover fixed no-repeat;
  }

  .stats-page {
    padding: 18px 16px 130px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stats-value {
    font-size: 22px;
    text-align: center;
  }

  .stats-chart-select {
    min-width: 100%;
  }

  .stats-chart-topline {
    align-items: stretch;
  }
}


.stats-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.stats-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  min-width: 1.45em;
  font-size: 1.45em;
  line-height: 1;
}

.stats-label-coin {
  width: 1.8em;
  height: 1.8em;
  object-fit: contain;
  flex: 0 0 auto;
}

.stats-label-coin--gold {
  filter: sepia(1) saturate(4.2) hue-rotate(2deg) brightness(1.08);
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
    justify-items: center;
  }

  .stats-label,
  .stats-value {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .stats-hero-copy,
  .stats-hero-name,
  .stats-hero-meta {
    text-align: center;
    justify-content: center;
  }
}
