/* ════════════════════════════════════════════════
   AstroE TrendBoard — Redesign Stylesheet
   ════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg-base: #050810;
  --pink-brand: #f472b6;
  --pink-brand-bright: #fb7cc6;
  --pink-brand-glow: rgba(244, 114, 182, 0.35);
  --bg-card: rgba(14, 18, 36, 0.85);
  --bg-card-solid: #0d1120;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);

  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --pink: #ec4899;
  --pink-bright: #f472b6;
  --pink-glow: rgba(236, 72, 153, 0.3);
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.3);
  --green: #10b981;
  --green-bright: #34d399;
  --red: #ef4444;
  --red-bright: #f87171;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'Orbitron', monospace;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Ambient Gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(236, 72, 153, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.app-flash {
  position: fixed;
  top: 54px;
  left: 50%;
  z-index: 2000;
  max-width: min(92vw, 680px);
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  background: rgba(12, 16, 32, 0.94);
  box-shadow: var(--shadow-xl);
}

.app-flash.alert {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

[data-token-card][hidden],
.token-row-clickable[hidden] {
  display: none !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ════════════════════════════════════════════════
   TICKER TAPE
   ════════════════════════════════════════════════ */
.ticker-wrap {
  background: rgba(6, 182, 212, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-base), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-base), transparent); }

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

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

.ticker-item {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-item.up  { color: var(--green-bright); }
.ticker-item.down { color: var(--red-bright); }
.ticker-item span { opacity: 0.85; }
.ticker-sep { color: var(--text-muted); font-size: 10px; }

/* ════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════ */
#mainNav {
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  z-index: 99;
}

/* ── Logo brand ── */
.brand-logo-wrap {
  position: relative;
  flex-shrink: 0;
}
.brand-logo-img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 12px var(--pink-brand-glow), 0 0 0 3px rgba(244,114,182,0.1);
  transition: box-shadow 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.navbar-brand:hover .brand-logo-img {
  box-shadow: 0 0 20px var(--pink-brand-glow), 0 0 0 4px rgba(244,114,182,0.2);
  transform: scale(1.05);
}

.brand-text-block { display: flex; flex-direction: column; gap: 1px; }

.brand-name-astroe {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(135deg, #fb7cc6, #f9a8d4, #e879f9, #fb7cc6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-brand 3s linear infinite;
}
@keyframes shimmer-brand {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* keep old brand-name for any fallback references */
.brand-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: 0.05em;
}
.brand-sub {
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── Footer logo ── */
.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 0 10px var(--pink-brand-glow);
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, #fb7cc6, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand-sub {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.nav-link {
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary) !important;
  background: var(--bg-glass-hover);
}
.nav-link.active { color: var(--purple-bright) !important; }

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  cursor: pointer;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav-panel {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-nav-panel.is-open {
    display: flex !important;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    background: rgba(8, 12, 26, 0.98);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary) !important;
    padding: 11px 12px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--pink-brand-bright) !important;
    background: rgba(244, 114, 182, 0.12);
  }

  .mobile-nav-link i {
    width: 18px;
    color: var(--cyan-bright);
    text-align: center;
  }

  .mobile-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 8px;
  }
}

.live-badge {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: 99px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 6px var(--green-bright);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.btn-dashboard {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #d946a8, var(--purple), #6366f1);
  background-size: 200% auto;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--pink-brand-glow);
  letter-spacing: 0.02em;
  animation: shimmer-brand 3s linear infinite;
}
.btn-dashboard:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--pink-brand-glow);
}

/* ════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
  z-index: 1;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(139, 92, 246, 0.18);
  top: -100px; right: 100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(6, 182, 212, 0.12);
  bottom: -50px; left: 200px;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-eyebrow {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pink-brand-bright), var(--purple-bright), var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

.hero-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  padding: 6px 14px;
  border-radius: 99px;
  transition: var(--transition);
}
.hero-stat-pill i { color: var(--purple); font-size: 11px; }
.hero-stat-pill.up i { color: var(--green-bright); }
.hero-stat-pill:hover { border-color: var(--purple); color: var(--text-primary); }

.hero-chart-preview {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
  position: relative;
}
.hero-chart-preview::before {
  content: 'LIVE TREND · $PEPE vs $TRUMP';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--cyan);
  background: var(--bg-card);
  padding: 3px 12px;
  border: 1px solid var(--border-card);
  border-radius: 99px;
}

/* ════════════════════════════════════════════════
   STATS SECTION
   ════════════════════════════════════════════════ */
.stats-section {
  padding: 0 0 32px;
  position: relative;
  z-index: 1;
}

.stat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
  backdrop-filter: blur(10px);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.14);
}
.stat-card:hover .stat-card-glow { opacity: 1; }

.stat-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.stat-card[data-color="purple"] .stat-card-glow {
  background: radial-gradient(circle at 0% 0%, var(--purple-glow) 0%, transparent 70%);
}
.stat-card[data-color="cyan"] .stat-card-glow {
  background: radial-gradient(circle at 0% 0%, var(--cyan-glow) 0%, transparent 70%);
}
.stat-card[data-color="pink"] .stat-card-glow {
  background: radial-gradient(circle at 0% 0%, var(--pink-glow) 0%, transparent 70%);
}
.stat-card[data-color="amber"] .stat-card-glow {
  background: radial-gradient(circle at 0% 0%, var(--amber-glow) 0%, transparent 70%);
}

.stat-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 14px;
}
.stat-card[data-color="purple"] .stat-card-icon { background: rgba(139,92,246,0.15); color: var(--purple-bright); }
.stat-card[data-color="cyan"]   .stat-card-icon { background: rgba(6,182,212,0.15); color: var(--cyan-bright); }
.stat-card[data-color="pink"]   .stat-card-icon { background: rgba(236,72,153,0.15); color: var(--pink-bright); }
.stat-card[data-color="amber"]  .stat-card-icon { background: rgba(245,158,11,0.15); color: var(--amber-bright); }

.stat-card-eyebrow {
  font-family: var(--font-main);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card-value {
  font-family: var(--font-main);
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-card-value.token-val {
  font-size: clamp(20px, 2.5vw, 26px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-card-value.import-val { font-size: clamp(16px, 2vw, 20px); }

.token-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.token-dot.cyan  { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.token-dot.pink  { background: var(--pink); box-shadow: 0 0 8px var(--pink); }

.stat-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
}
.status-badge.failed { background: rgba(239,68,68,0.15); color: var(--red-bright); }
.status-badge.success { background: rgba(16,185,129,0.15); color: var(--green-bright); }

/* ════════════════════════════════════════════════
   TABLE SECTION
   ════════════════════════════════════════════════ */
.table-section {
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.updated-badge {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* datetime-local fix */
input[type="datetime-local"] { color-scheme: dark; }

/* ════════════════════════════════
   SMART FILTER BAR
   ════════════════════════════════ */
.smart-filter-wrap {
  position: relative;
  margin-bottom: 16px;
}

.smart-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.sfb-left { flex-shrink: 0; min-width: 0; }

.sfb-title {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.sfb-title i { color: var(--purple); }
.sfb-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.sfb-center {
  flex: 1;
  min-width: 160px;
  max-width: 340px;
}

.sfb-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sfb-search-wrap > i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}
.sfb-search {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  border-radius: 99px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  padding: 8px 36px 8px 34px;
  outline: none;
  transition: var(--transition);
}
.sfb-search:focus {
  border-color: var(--purple);
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
.sfb-search::placeholder { color: var(--text-muted); }
.sfb-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12px;
  transition: color var(--transition);
}
.sfb-search-clear:hover { color: var(--text-primary); }

.sfb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.sfb-sort-label {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sfb-sort-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.sfb-sort-select:focus { border-color: var(--purple); }
.sfb-sort-select option { background: var(--bg-card-solid); }

.sfb-filter-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.sfb-filter-toggle:hover,
.sfb-filter-toggle.active {
  color: var(--purple-bright);
  border-color: var(--purple);
  background: rgba(139,92,246,0.1);
}
.sfb-chevron { font-size: 10px; transition: transform 0.25s; }

.sfb-filter-count {
  background: var(--purple);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Dropdown Panel ── */
.filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s, box-shadow 0.25s;
  z-index: 50;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.1);
}
.filter-dropdown-panel.open {
  max-height: 400px;
  opacity: 1;
  pointer-events: all;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 40px rgba(139,92,246,0.08);
}

.filter-dropdown-inner {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0;
  padding: 20px 24px;
}

.fdp-section { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.fdp-section:first-child { padding-left: 0; }

.fdp-section-label {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.fdp-section-label i { color: var(--purple); }

.fdp-row { display: flex; align-items: flex-end; gap: 6px; }
.fdp-sep { color: var(--text-muted); font-size: 12px; padding-bottom: 10px; }

.fdp-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-subtle);
  margin: 0 4px;
  flex-shrink: 0;
}

.fdp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  flex-shrink: 0;
}

.filter-group { display: flex; flex-direction: column; gap: 5px; }

.filter-label {
  font-family: var(--font-main);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-input-wrap { position: relative; }
.filter-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
}

.filter-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  padding: 8px 11px;
  transition: var(--transition);
  outline: none;
  appearance: none;
  min-width: 90px;
}
.filter-input.has-icon { padding-left: 32px; }
.filter-input:focus {
  border-color: var(--purple);
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
.filter-input::placeholder { color: var(--text-muted); font-size: 12px; }
.filter-input option { background: var(--bg-card-solid); }

.btn-apply {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--purple), #6366f1);
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--purple-glow);
  white-space: nowrap;
}
.btn-apply:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--purple-glow); }

.btn-reset {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.btn-reset:hover { color: var(--red-bright); border-color: rgba(239,68,68,0.4); }

/* Token Table Wrapper */
.token-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.token-table-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}

.table-title {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}
.table-title i { color: var(--purple); }

.view-toggle {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.view-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 11px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
}
.view-btn.active, .view-btn:hover { color: var(--purple-bright); background: rgba(139,92,246,0.12); }

.result-count {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  padding: 4px 10px;
  border-radius: 99px;
}

/* ── GRID VIEW ── */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding-top: 16px;
}

.token-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.token-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.token-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.token-card:hover::before { transform: scaleX(1); }

.token-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.token-card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
}

.token-symbol {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.token-rank-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.rank-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}
.rank-badge.top-3  { background: rgba(251,191,36,0.15); color: var(--amber-bright); border: 1px solid rgba(251,191,36,0.3); }
.rank-badge.top-10 { background: rgba(139,92,246,0.15); color: var(--purple-bright); border: 1px solid rgba(139,92,246,0.25); }
.rank-badge.normal { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

.token-card-sparkline {
  height: 48px;
  margin-bottom: 14px;
}

.token-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.token-metric { display: flex; flex-direction: column; gap: 2px; }
.token-metric-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.token-metric-val {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.change-badge {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}
.change-badge.up   { background: rgba(16,185,129,0.15); color: var(--green-bright); }
.change-badge.down { background: rgba(239,68,68,0.15); color: var(--red-bright); }

/* ── LIST TABLE ── */
.token-list-table {
  border-collapse: separate;
  border-spacing: 0;
}
.token-list-table thead tr {
  border-bottom: 1px solid var(--border-subtle);
}
.token-list-table th {
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.token-list-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 14px;
  color: var(--text-primary);
  transition: background var(--transition);
}
.token-list-table tbody tr:hover td { background: rgba(139,92,246,0.05); }
.token-list-table tbody tr:last-child td { border-bottom: none; }

.token-row-clickable {
  cursor: pointer;
  transition: background var(--transition);
}
.token-row-clickable:hover td { background: rgba(139,92,246,0.07) !important; }
.token-row-clickable:hover .row-arrow { opacity: 1; transform: translateX(2px); }

.row-arrow-cell { width: 28px; }
.row-arrow {
  color: var(--purple-bright);
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.list-token-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.list-token-name .token-avatar { width: 36px; height: 36px; font-size: 10px; flex-shrink: 0; }
.list-token-symbol {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  display: block;
}
.list-token-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.mentions-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}
.mentions-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.mentions-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.score-pill {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(139,92,246,0.15);
  color: var(--purple-bright);
  border: 1px solid rgba(139,92,246,0.25);
}

.btn-view {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-bright);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.btn-view:hover {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 12px var(--purple-glow);
}

.mini-sparkline { display: block; }

.load-more-wrap { border-top: 1px solid var(--border-subtle); }
.btn-load-more {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.btn-load-more:hover { border-color: var(--purple); color: var(--purple-bright); }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--purple-bright); }

.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover { color: var(--purple-bright); border-color: var(--purple); }

.footer-copy { font-size: 12px; color: var(--text-muted); margin-bottom: 0; }

/* ════════════════════════════════════════════════
   TOKEN DETAIL PAGE
   ════════════════════════════════════════════════ */
.detail-hero {
  padding: 40px 0 32px;
  position: relative;
  z-index: 1;
}

.back-btn {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
}
.back-btn:hover { border-color: var(--purple); color: var(--purple-bright); }

.detail-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.detail-header-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
}

.detail-token-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-token-avatar {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.detail-token-symbol {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.solana-badge {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-bright);
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 4px 12px;
  border-radius: 99px;
}

.detail-token-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.detail-token-rank {
  text-align: right;
}
.detail-rank-label {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.detail-rank-value {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-bright), var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.detail-rank-score {
  font-size: 13px;
  color: var(--text-muted);
}

/* Charts section */
.charts-section {
  padding: 0 0 32px;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════
   INTEL STRIP (token detail page)
   ════════════════════════════════════════════════ */
.intel-strip-section {
  padding: 0 0 24px;
  position: relative;
  z-index: 1;
}

.istrip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  height: 100%;
}
.istrip-card:hover { transform: translateY(-2px); }
.istrip-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
}
.istrip-card[data-color="purple"]::after { background: linear-gradient(90deg, var(--purple), transparent); }
.istrip-card[data-color="cyan"]::after   { background: linear-gradient(90deg, var(--cyan), transparent); }
.istrip-card[data-color="pink"]::after   { background: linear-gradient(90deg, var(--pink), transparent); }
.istrip-card[data-color="amber"]::after  { background: linear-gradient(90deg, var(--amber), transparent); }

.istrip-icon { font-size: 18px; margin-bottom: 10px; }
.istrip-card[data-color="purple"] .istrip-icon { color: var(--purple-bright); }
.istrip-card[data-color="cyan"]   .istrip-icon { color: var(--cyan-bright); }
.istrip-card[data-color="pink"]   .istrip-icon { color: var(--pink-bright); }
.istrip-card[data-color="amber"]  .istrip-icon { color: var(--amber-bright); }

.istrip-label {
  font-family: var(--font-main);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.istrip-value {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.istrip-sub { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════════════════
   TABBED CHART CARD
   ════════════════════════════════════════════════ */
.chart-tabbed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}

.ctc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.ctc-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.ctc-tab {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 7px 16px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.ctc-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.ctc-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), #6366f1);
  box-shadow: 0 2px 10px var(--purple-glow);
}

.ctc-body { padding: 16px 24px 0; }
.ctc-pane { position: relative; height: 260px; }
.ctc-pane canvas { height: 260px !important; }

.ctc-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
}
.ctc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border-subtle);
  gap: 3px;
  text-align: center;
}
.ctc-stat:last-child { border-right: none; }
.ctc-stat-label {
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ctc-stat-val {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-bright);
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
  height: 100%;
}

.chart-card-title {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 140px;
  color: var(--text-muted);
  font-size: 13px;
  gap: 8px;
}
.chart-no-data i { font-size: 24px; opacity: 0.4; }

/* Snapshots chart */
.snapshots-section {
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}
.snapshots-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(10px);
}

/* ════════════════════════════════════════════════
   INTEL SECTION (Posts · Hashtags · Tickers · Snapshots)
   ════════════════════════════════════════════════ */
.intel-section {
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}

.intel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.intel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  gap: 12px;
}

.intel-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.intel-card-title {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.intel-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.intel-live-tag {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 4px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

/* ── Posts Feed ── */
.posts-feed {
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}
.posts-feed::-webkit-scrollbar { width: 4px; }
.posts-feed::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 2px; }

.post-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
  cursor: default;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: rgba(255,255,255,0.025); }

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.post-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.post-username {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-handle {
  font-size: 11px;
  color: var(--text-muted);
}

.post-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.post-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  word-break: break-word;
}
.post-body .post-cashtag {
  color: var(--purple-bright);
  font-weight: 600;
}
.post-body .post-hashtag {
  color: var(--cyan);
}
.post-body .post-link {
  color: var(--cyan);
  opacity: 0.7;
  font-size: 11px;
}

.post-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-metric {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}
.post-metric:hover { color: var(--purple-bright); }
.post-metric i { font-size: 11px; }

/* ── Hashtag Cloud ── */
.hashtag-cloud {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hashtag-pill {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-bright);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.hashtag-pill:hover {
  background: rgba(139,92,246,0.22);
  border-color: var(--purple);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--purple-glow);
}
.hashtag-pill.size-lg { font-size: 13px; padding: 6px 14px; }
.hashtag-pill.size-sm { font-size: 11px; padding: 4px 10px; opacity: 0.8; }

/* ── Ticker Cloud ── */
.ticker-cloud {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticker-pill {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-bright);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.ticker-pill:hover {
  background: rgba(6,182,212,0.16);
  border-color: var(--cyan);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--cyan-glow);
}
.ticker-pill.active-ticker {
  background: rgba(139,92,246,0.15);
  border-color: var(--purple);
  color: var(--purple-bright);
}
.ticker-pill .ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* ── Snapshots Table ── */
.snapshots-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,158,11,0.3) transparent;
}
.snapshots-table-wrap::-webkit-scrollbar { width: 4px; }
.snapshots-table-wrap::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.3); border-radius: 2px; }

.snapshots-table {
  border-collapse: separate;
  border-spacing: 0;
}
.snapshots-table th {
  padding: 10px 20px;
  font-family: var(--font-main);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.snapshots-table td {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
  color: var(--text-primary);
  transition: background var(--transition);
  vertical-align: middle;
}
.snapshots-table tbody tr:hover td { background: rgba(245,158,11,0.04); }
.snapshots-table tbody tr:last-child td { border-bottom: none; }

.snapshot-time {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.snapshot-score {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber-bright);
}
.snapshot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}
.snapshot-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.snapshot-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
}

/* ════════════════════════════════════════════════
   AVATAR PALETTE
   ════════════════════════════════════════════════ */
.av-0  { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.av-1  { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }
.av-2  { background: linear-gradient(135deg, #ec4899, #db2777); color: white; }
.av-3  { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.av-4  { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.av-5  { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.av-6  { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; }
.av-7  { background: linear-gradient(135deg, #22d3ee, #6366f1); color: white; }
.av-8  { background: linear-gradient(135deg, #fbbf24, #f97316); color: white; }
.av-9  { background: linear-gradient(135deg, #34d399, #06b6d4); color: white; }

/* ════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.4s ease both;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
  .sfb-title-block .sfb-subtitle { display: none; }
}

@media (max-width: 991.98px) {
  .hero-section { padding: 40px 0 32px; }
  .detail-token-rank { text-align: left; }
  .filter-dropdown-inner { gap: 12px; }
  .fdp-divider { display: none; }
  .fdp-section { padding: 0; width: 100%; }
  .fdp-row { flex-wrap: wrap; }
  .fdp-actions { padding-left: 0; width: 100%; }
  /* Intel section stacks */
  .intel-section .col-lg-7,
  .intel-section .col-lg-5 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 30px; }
  .token-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 16px 14px; }
  .stat-card-value { font-size: 22px; }
  .token-table-header { flex-wrap: wrap; gap: 10px; }
  /* Charts 2-up on tablet */
  .charts-section .col-6 { flex: 0 0 100%; max-width: 100%; }
  /* Smart filter bar stacks */
  .smart-filter-bar { gap: 8px; }
  .sfb-center { max-width: 100%; width: 100%; order: 3; }
  .sfb-left { order: 1; }
  .sfb-right { order: 2; margin-left: auto; }
  /* Table scroll */
  .token-list-table th:nth-child(4),
  .token-list-table td:nth-child(4),
  .token-list-table th:nth-child(5),
  .token-list-table td:nth-child(5) { display: none; }
  /* Snapshots table */
  .snapshots-table th:last-child,
  .snapshots-table td:last-child { display: none; }
  /* Intel sidebar stacks */
  .intel-card + .intel-card { margin-top: 0; }
}

@media (max-width: 575.98px) {
  .token-grid { grid-template-columns: 1fr 1fr; }
  .hero-stat-pill { font-size: 11px; padding: 5px 10px; }
  .sfb-title { font-size: 14px; }
  .sfb-filter-toggle span { display: none; }
  .sfb-sort-label { display: none; }
  /* Token table: hide trend column */
  .token-list-table th:nth-child(3),
  .token-list-table td:nth-child(3) { display: none; }
  /* Detail hero */
  .detail-header-card { padding: 20px; }
  .detail-token-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .detail-token-symbol { font-size: 28px; }
  .detail-rank-value { font-size: 36px; }
}

@media (max-width: 399.98px) {
  .token-grid { grid-template-columns: 1fr; }
  .stat-card-value.token-val { font-size: 18px; }
}
