/* ============================================================
   $BIBI Token — Stylesheet
   Fonts: Bebas Neue (display), Space Grotesk (body)
   Primary: #F0B90B | Background: #0a0a0a
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Base ── */
body {
  font-family: 'Space Grotesk', sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

a { color: #F0B90B; text-decoration: none; }
a:hover { color: #fff; }

/* ── Animations ── */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-5deg); }
  50%       { transform: translateY(-12px) rotate(-5deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.22; }
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Background glows ── */
.bg-glows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  background: #F0B90B;
  filter: blur(180px);
}

.bg-glow--top {
  width: 700px;
  height: 700px;
  opacity: 0.06;
  top: -200px;
  right: -150px;
  animation: glow-pulse 4s ease-in-out infinite;
}

.bg-glow--bottom {
  width: 500px;
  height: 500px;
  opacity: 0.04;
  bottom: -150px;
  left: -100px;
  animation: glow-pulse 6s ease-in-out infinite 2s;
}

/* ── Ticker strip ── */
.ticker {
  width: 100%;
  background: #F0B90B;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker__segment {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #0a0a0a;
  letter-spacing: 1px;
}

/* ── Page container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 60px;
  position: relative;
  z-index: 1;
}

/* ── Hero header ── */
.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero__mascot {
  margin: 0 auto 24px;
  width: 100px;
  height: 100px;
  animation: float 4s ease-in-out infinite;
}

.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 110px);
  line-height: 0.9;
  letter-spacing: 4px;
  color: #F0B90B;
  margin-bottom: 10px;
}

.hero__tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 4px;
  color: #555;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(240, 185, 11, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  background: rgba(240, 185, 11, 0.06);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F0B90B;
  animation: live-blink 1.5s ease-in-out infinite;
}

.hero__badge-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #F0B90B;
}

/* ── Stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
  margin-bottom: 40px;
  border: 1px solid rgba(240, 185, 11, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(240, 185, 11, 0.06);
}

.stat-card {
  padding: 22px 20px;
  background: #0d0d0d;
  text-align: center;
}

.stat-card__label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #444;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-card__value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: #fff;
}

.stat-card__value--yellow { color: #F0B90B; }

.stat-card__sub {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  color: #555;
}

.stat-card__sub--green { color: #00d084; }
.stat-card__sub--red   { color: #ff4d4d; }

.mcap-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
}

.mcap-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mcap-toggle__track {
  position: relative;
  width: 32px;
  height: 18px;
  background: #1a1a1a;
  border: 1px solid rgba(240, 185, 11, 0.2);
  border-radius: 9px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.mcap-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #444;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.mcap-toggle input:checked + .mcap-toggle__track {
  background: rgba(240, 185, 11, 0.15);
  border-color: rgba(240, 185, 11, 0.4);
}

.mcap-toggle input:checked + .mcap-toggle__track::after {
  transform: translateX(14px);
  background: #F0B90B;
}

.mcap-toggle__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  transition: color 0.2s;
}

.mcap-toggle input:checked ~ .mcap-toggle__label {
  color: #F0B90B;
}

/* ── Main grid ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ── DexScreener embed ── */
.dex-chart {
  margin-bottom: 24px;
}

.dex-chart__frame {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 12px;
  background: #0d0d0d;
  display: block;
}

@media (max-width: 800px) {
  .dex-chart__frame { height: 400px; }
  .main-grid { grid-template-columns: 1fr; }
}

/* ── Panel (shared card shell) ── */
.panel {
  background: #0d0d0d;
  border: 1px solid rgba(240, 185, 11, 0.12);
  border-radius: 20px;
  padding: 36px;
}

.panel__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: #F0B90B;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel__title-bar {
  width: 3px;
  height: 22px;
  background: #F0B90B;
  border-radius: 2px;
  flex-shrink: 0;
}

.panel__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d084;
  animation: live-blink 1.5s infinite;
  margin-left: 4px;
}

.panel__subtitle {
  font-size: 11px;
  color: #333;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-left: 13px;
}

/* ── Chart ── */
.chart-wrap {
  max-width: 380px;
  margin: 0 auto;
}

/* ── Concentration bar ── */
.concentration {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(240, 185, 11, 0.08);
}

.concentration__label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #444;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.concentration__bar {
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.concentration__segment {
  height: 100%;
  transition: width 0.5s ease;
}

.concentration__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.concentration__legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.concentration__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* ── Holders list ── */
.holder-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(240, 185, 11, 0.08);
  gap: 14px;
}

.holder-item:last-child { border-bottom: none; }

.holder-rank {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #666;
}

.holder-rank--top {
  background: #F0B90B;
  color: #000;
}

.holder-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.holder-info { flex: 1; min-width: 0; }

.holder-name {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.holder-address {
  font-size: 11px;
  color: #444;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.holder-address a { color: #444; }
.holder-address a:hover { color: #F0B90B; }

.holder-percent { text-align: right; flex-shrink: 0; }

.holder-pct-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #fff;
}

.holder-pct-value--binance { color: #F0B90B; }

.holder-pct-label { font-size: 11px; color: #444; }

/* ── Badges ── */
.badge {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid;
}

.badge--cex      { background: rgba(240,185,11,0.2);  color: #F0B90B; border-color: rgba(240,185,11,0.4); }
.badge--lp       { background: rgba(255,255,255,0.08); color: #aaa;    border-color: rgba(255,255,255,0.12); }
.badge--contract { background: rgba(46,204,113,0.15);  color: #2ecc71; border-color: rgba(46,204,113,0.3); }
.badge--whale    { background: rgba(240,185,11,0.1);   color: #F0B90B; border-color: rgba(240,185,11,0.2); }

/* ── Footer ── */
.footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(240, 185, 11, 0.08);
}

.footer__watermark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 4px;
  color: #222;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #444;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 50px;
  transition: color 0.2s, border-color 0.2s;
}

.footer__link:hover {
  color: #F0B90B;
  border-color: rgba(240, 185, 11, 0.3);
}

.footer__meta {
  font-size: 11px;
  color: #2a2a2a;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.loading { opacity: 0.5; }
