/* ═══════════════════════════════════════════════
   $INCOME Stats - Data Centre Styles
═══════════════════════════════════════════════ */

/* ── Active nav link ── */
.nav-links a.active {
  color: var(--gold);
}

/* ── TICKER BAR ── */
.st-ticker {
  position: fixed;
  top: 76px;
  left: 0; right: 0;
  z-index: 90;
  background: rgba(12,11,9,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196,168,98,0.12);
  padding: 10px 24px;
  overflow-x: auto;
}

.st-ticker::-webkit-scrollbar { display: none; }

.st-ticker-inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.st-ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.st-ticker-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.st-ticker-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--beige);
}

/* ── HERO ── */
.st-hero {
  padding: 192px 48px 56px;
  text-align: center;
  position: relative;
}

.st-hero .section-title {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 8px;
}

.st-hero .section-label {
  margin-bottom: 12px;
}

/* ── KEY STATS ── */
.st-key-stats {
  padding: 0 48px 40px;
  border-top: none;
}

.st-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.st-card-key {
  background: rgba(196,168,98,0.06);
  border: 1px solid rgba(196,168,98,0.15);
  padding: 20px 16px;
  text-align: center;
}

.st-card-key .st-card-label {
  font-size: 8px;
  letter-spacing: 2px;
}

.st-card-key .st-card-val {
  font-size: clamp(18px, 2.5vw, 24px);
}

/* ── SECTIONS ── */
.st-section {
  padding: 80px 48px;
  border-top: 1px solid rgba(196,168,98,0.08);
}

.st-section-alt {
  background: var(--ink);
}

.st-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.st-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(196,168,98,0.08);
}

.st-section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(196,168,98,0.08);
  padding: 6px 14px;
  border: 1px solid rgba(196,168,98,0.15);
}

.st-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--beige);
}

.st-sub-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 36px 0 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(196,168,98,0.05);
}

/* ── STAT CARDS ── */
.st-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.st-grid-2 { grid-template-columns: repeat(2, 1fr); }
.st-grid-3 { grid-template-columns: repeat(3, 1fr); }
.st-grid-4 { grid-template-columns: repeat(4, 1fr); }

.st-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(196,168,98,0.1);
  padding: 28px 24px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.st-card:hover {
  border-color: rgba(196,168,98,0.2);
  background: rgba(0,0,0,0.45);
}

.st-card-lg {
  padding: 32px 28px;
}

.st-card-lg .st-card-val {
  font-size: clamp(30px, 4.5vw, 44px);
  color: var(--gold);
}

.st-card-sm {
  padding: 18px 16px;
}

.st-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.st-card-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--beige);
  line-height: 1.2;
}

.st-card-sm .st-card-val {
  font-size: clamp(17px, 2vw, 24px);
}

.st-card-burn {
  border-color: rgba(239,68,68,0.15);
}
.st-card-burn:hover {
  border-color: rgba(239,68,68,0.3);
}

/* Price change coloring */
.st-change.up { color: #4ade80; }
.st-change.down { color: #ef4444; }

/* Buy/sell ratio bar */
.st-ratio-bar {
  margin-top: 8px;
  height: 4px;
  background: #ef4444;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.st-ratio-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: #4ade80;
  width: var(--buy-pct, 50%);
  border-radius: 2px;
}

.st-txn {
  font-size: clamp(13px, 1.5vw, 16px) !important;
  font-family: var(--font-mono) !important;
  font-weight: 400 !important;
}

/* ── BURN PROGRESS BAR ── */
.st-burn-bar-wrap {
  height: 24px;
  background: rgba(196,168,98,0.08);
  border: 1px solid rgba(196,168,98,0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.st-burn-bar {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316);
  transition: width 0.6s ease;
  border-radius: 2px;
}

.st-burn-bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── CHARTS ── */
.st-chart-container {
  margin-top: 32px;
  padding: 24px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(196,168,98,0.08);
}

.st-chart-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.st-chart-wrap-sm {
  max-width: 280px;
  margin: 0 auto;
}

.st-chart-wrap-wide {
  max-width: 600px;
  height: 260px;
  margin: 0 auto;
}

/* ── HOLDERS TABLE ── */
.st-holders-table {
  margin-top: 20px;
  border: 1px solid rgba(196,168,98,0.12);
  border-radius: 4px;
  overflow-x: auto;
  background: rgba(12,11,9,0.5);
}

.st-holders-head, .st-holders-row {
  display: grid;
  grid-template-columns: 28px 1fr 90px 68px 42px 48px 72px 72px 78px 48px;
  gap: 4px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  align-items: center;
}

.st-holders-head {
  background: rgba(196,168,98,0.08);
  color: var(--gold-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 9px;
  border-bottom: 1px solid rgba(196,168,98,0.15);
  position: sticky;
  top: 0;
}

.st-holders-row {
  color: var(--beige-dark);
  border-bottom: 1px solid rgba(196,168,98,0.05);
  transition: background 0.15s;
}

.st-holders-row:hover {
  background: rgba(196,168,98,0.04);
}

.st-holders-row:last-child { border-bottom: none; }

.st-holders-row:nth-child(even) {
  background: rgba(196,168,98,0.02);
}
.st-holders-row:nth-child(even):hover {
  background: rgba(196,168,98,0.05);
}

.st-holders-row > span:first-child,
.st-holders-row > a:first-child {
  color: var(--muted);
  font-weight: 600;
}

.st-holder-addr {
  color: var(--gold) !important;
  font-size: 10px;
  text-decoration: none;
}
a.st-holder-addr:hover {
  text-decoration: underline;
}

.hld-value {
  color: var(--beige);
  font-weight: 500;
}

.hld-since {
  color: var(--muted);
  font-size: 10px;
}

.hld-entry, .hld-avg, .hld-sold, .hld-bs {
  font-size: 9px;
}

.hld-sold {
  color: #ef4444;
}

.hld-bs {
  color: var(--muted);
  font-size: 8px;
}

.st-card-src {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.st-holders-row.st-special-row {
  background: rgba(196,168,98,0.04);
  border-bottom: 1px solid rgba(196,168,98,0.1);
}

/* ── TOKEN INFO ── */
.st-info-grid {
  border: 1px solid rgba(196,168,98,0.1);
}

.st-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(196,168,98,0.06);
}

.st-info-row:last-child { border-bottom: none; }

.st-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.st-info-val {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--beige);
  text-align: right;
}

.st-info-val a {
  color: var(--gold);
  text-decoration: none;
}
.st-info-val a:hover { text-decoration: underline; }

.st-info-addr {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  word-break: break-all;
  max-width: 300px;
}

/* ── BURNS TABLE ── */
.st-burns-table {
  margin-top: 8px;
  border: 1px solid rgba(196,168,98,0.1);
  border-radius: 4px;
  max-height: 620px;
  overflow-y: auto;
  background: rgba(12,11,9,0.5);
}

.st-burns-head, .st-burns-row {
  display: grid;
  grid-template-columns: 28px 72px 110px 1fr;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  align-items: center;
}

.st-burns-head {
  background: rgba(196,168,98,0.08);
  color: var(--gold-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 8px;
  border-bottom: 1px solid rgba(196,168,98,0.15);
  position: sticky;
  top: 0;
  padding: 7px 12px;
}

.st-burns-row {
  color: var(--beige-dark);
  border-bottom: 1px solid rgba(196,168,98,0.03);
}

.st-burns-row:nth-child(even) {
  background: rgba(196,168,98,0.02);
}

.st-burns-row:hover {
  background: rgba(196,168,98,0.04);
}

.st-burns-row:last-child { border-bottom: none; }

.st-burns-row .burn-idx {
  color: var(--muted);
  font-size: 9px;
}

.st-burns-row .burn-time {
  color: var(--muted);
  font-size: 9px;
}

.st-burns-row .burn-amount {
  color: var(--beige);
  font-weight: 500;
}

.st-burns-row .burn-tx {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-burns-row a {
  color: var(--gold);
  text-decoration: none;
  font-size: 9px;
}
.st-burns-row a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .st-section { padding: 56px 20px; }
  .st-key-stats { padding: 0 20px 32px; }
  .st-hero { padding: 172px 20px 40px; }
  .st-grid-3 { grid-template-columns: 1fr; }
  .st-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .st-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .st-grid-2 { grid-template-columns: 1fr; }
  .st-ticker-inner { justify-content: flex-start; gap: 20px; }
  .st-holders-head, .st-holders-row {
    grid-template-columns: 20px 1fr 62px 50px 32px 36px 54px 54px 58px 36px;
    font-size: 7px;
    padding: 6px 8px;
  }
  .st-burns-head, .st-burns-row {
    grid-template-columns: 22px 56px 90px 1fr;
    font-size: 9px;
    padding: 4px 8px;
  }
  .st-info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .st-info-val { text-align: left; }
  .st-info-addr { max-width: 100%; }
  .st-chart-wrap-wide { height: 220px; }
}

@media (max-width: 500px) {
  .st-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .st-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .st-key-stats { padding: 0 16px 24px; }
  .st-ticker { top: 64px; padding: 8px 12px; }
  .st-ticker-val { font-size: 13px; }
  .st-hero { padding: 148px 16px 32px; }
  .st-section { padding: 48px 16px; }
  .whale-intel-grid { grid-template-columns: repeat(2, 1fr); }
  .whale-intel { padding: 16px; }
  .wi-val { font-size: 13px; }
}
