/* =================================================================
   NFT ALERT X - PREMIUM WEB DESIGN SYSTEM "PHANTOM MERIDIAN"
   ================================================================= */

:root {
  /* Palette - Neon Ledger Design System */
  --abyss: #050505;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-solid: #0a0a0a;
  --relief: rgba(255, 255, 255, 0.05);
  --ghost-edge: rgba(255, 255, 255, 0.05);
  --ghost-edge-50: rgba(255, 255, 255, 0.04);

  --frozen-signal: #ffffff;
  --ash-whisper: #9ca3af;

  --volt: #00FFFF;
  --volt-alpha: rgba(0, 255, 255, 0.12);
  --positive: #4ade80;
  --negative: #f87171;

  /* Premium Tier Tokens */
  --premium-glow: #A855F7;
  --premium-alpha: rgba(168, 85, 247, 0.12);
  --gate-overlay: rgba(5, 5, 5, 0.7);

  /* Exclusive Gradients */
  --grad-btc-1: #f7931a;
  --grad-btc-2: #ffb347;
  --grad-eth-1: #627eea;
  --grad-eth-2: #8b9ff0;
  --grad-nft-1: #00FFFF;
  --grad-nft-2: #99f7ff;

  /* Typography */
  --font-display: 'Inter', sans-serif;
  --font-ui: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Legacy Maps for Chart.ts & Existing logic */
  --bg-card: var(--surface-solid);
  --border-subtle: var(--ghost-edge);
  --text-primary: var(--frozen-signal);
  --text-secondary: var(--ash-whisper);
  --text-muted: #6b7280;
  --accent-primary: var(--grad-nft-2);
  --accent-success: var(--positive);
  --accent-danger: var(--negative);

  /* Shared dimensions */
  --sidebar-w: 240px;
  --ticker-h: 44px;
}

/* Base Rest */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--abyss);
  color: var(--frozen-signal);
  font-family: var(--font-ui);
  line-height: 1.55;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Glass-card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Gradient text for titles */
.gradient-title {
  background: linear-gradient(135deg, #fff 0%, var(--volt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll-reveal animation */
.scroll-reveal {
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.scroll-reveal.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Tethers & Layers */
#noise-layer {
  position: fixed; inset: 0; z-index: -2; opacity: 0.025; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
#dot-grid {
  position: fixed; inset: 0; z-index: -1; opacity: 0.08; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

/* Typography Tools */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.mono-xs { font-family: var(--font-mono); font-size: 12px; }

/* Colors & Helpers */
.abyss-bg { background-color: var(--abyss); }
.surface-slab { background-color: var(--surface-solid, var(--surface)); border: 1px solid var(--ghost-edge); }
.relief-bg { background-color: var(--relief); border: 1px solid var(--ghost-edge); border-radius: 12px; }
.text-volt { color: var(--volt) !important; }
.pct-pos { color: var(--positive); }
.pct-neg { color: var(--negative); }
.pct-muted { color: var(--ash-whisper); }
.pulse-green { color: var(--positive); }
.pulse-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 8px var(--positive); animation: pulse-anim 2s infinite; }
@keyframes pulse-anim { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }

/* Globals */
a { color: inherit; text-decoration: none; transition: 0.2s; }
button { font-family: inherit; border: none; cursor: pointer; transition: 0.2s; }
.btn-volt { background: var(--volt); color: var(--abyss); font-family: var(--font-ui); font-weight: 700; border-radius: 99px; padding: 10px 24px; transition: all 0.2s ease-out; box-shadow: 0 0 15px rgba(0, 255, 255, 0.3); font-size: 14px; }
.btn-volt:hover { transform: scale(1.04); filter: brightness(1.1); box-shadow: 0 0 30px rgba(0, 255, 255, 0.5); }
.btn-ghost { background: transparent; color: var(--frozen-signal); border: 1px solid var(--ghost-edge); border-radius: 99px; padding: 10px 24px; }
.btn-ghost:hover { border-color: rgba(0, 226, 238, 0.5); }
.btn-pulse-green { background: var(--positive); color: var(--abyss); font-weight: 600; border-radius: 12px; padding: 12px; width: 100%; transition: 0.2s; }
.btn-pulse-green:hover { transform: scale(1.02); filter: brightness(1.1); }

/* --- LANDING PAGE (SignIn.tsx) --- */

/* Animated Dark Gradient Background */
.digital-void {
  background: linear-gradient(-45deg, #000000, #001212, #000000, #000808);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow-x: hidden;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Floating Ambient Orbs */
.void-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.void-orb-cyan {
  width: 600px;
  height: 600px;
  background: rgba(0, 255, 255, 0.05);
  top: -100px;
  left: -100px;
  animation: parallaxDrift 20s linear infinite;
}
.void-orb-purple {
  width: 800px;
  height: 800px;
  background: rgba(168, 85, 247, 0.05);
  bottom: -200px;
  right: -100px;
  animation: orbPulse 8s ease-in-out infinite;
}
@keyframes parallaxDrift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
  100% { transform: translate(0, 0); }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.landing-background { position: absolute; inset: 0; overflow: hidden; z-index: -3; }
.giant-bg-text { font-family: var(--font-display); font-weight: 900; font-size: 20vw; color: rgba(0, 255, 255, 0.02); position: absolute; white-space: nowrap; top: -5%; left: -5%; }
.delay-bg-1 { top: 30%; left: -15%; }
.delay-bg-2 { top: 65%; left: 10%; }

.orbital-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94); background: rgba(5, 5, 5, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.orbital-bar.scrolled { background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(24px); }
.orbital-bar.nav-hidden { transform: translateY(-120%); }
.navbar-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; max-width: 1280px; margin: 0 auto; }
.logo-area { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.nav-links { display: flex; gap: 4px; }
.nav-pill { padding: 6px 14px; border-radius: 99px; font-weight: 500; font-size: 14px; color: var(--ash-whisper); transition: color 0.2s; }
.nav-pill:hover { color: var(--frozen-signal); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.hero-section { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; padding: 80px 20px 0; overflow: hidden; }
/* Old static glow replaced by animated void-orbs */
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 700px; }
.hero-headline { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.1; margin-bottom: 24px; font-weight: 800; letter-spacing: -0.03em; }
.hero-headline .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-headline .word { display: inline-block; }
.hero-subtext { font-size: 18px; color: var(--ash-whisper); margin: 0 auto 40px; max-width: 520px; font-weight: 400; }
.hero-cta-row { display: flex; gap: 16px; justify-content: center; }

/* The Orbital Shards */
.shards-container { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.shard { position: absolute; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; padding: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.shard-nft { top: 20%; left: 10%; width: 140px; }
.shard-img { height: 100px; border-radius: 12px; background: linear-gradient(135deg, #FF007A, #7928CA); background-size: cover; background-position: center; margin-bottom: 12px; }
.shard-name { display: block; font-size: 13px; font-weight: 500; }
.shard-price { display: block; font-family: var(--font-mono); color: var(--positive); font-size: 13px; margin-top: 4px; }
.shard-avatars { top: 60%; left: 15%; display: flex; align-items: center; gap: 12px; border-radius: 99px; padding: 10px 20px; }
.avatars-group { display: flex; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--abyss); background: #333; margin-left: -10px; }
.avatar.a1 { margin-left: 0; background: conic-gradient(#e74c3c 0deg 90deg, #3498db 90deg 180deg, #f1c40f 180deg 270deg, #2ecc71 270deg); }
.avatar.a2 { background: conic-gradient(#9b59b6 0deg 120deg, #1abc9c 120deg 240deg, #e67e22 240deg); }
.avatar.a3 { background: conic-gradient(#2980b9 0deg 72deg, #f39c12 72deg 144deg, #e74c3c 144deg 216deg, #8e44ad 216deg 288deg, #27ae60 288deg); }
.shard-spark { top: 15%; right: 12%; width: 180px; }
.shard-svg { width: 100%; height: 30px; margin-top: 8px; }
.shard-whale { top: 45%; right: 8%; display: flex; align-items: center; gap: 12px; border-radius: 99px; padding: 12px 24px; font-size: 14px; }
.shard-rarity { bottom: 20%; right: 8%; background: rgba(0,255,255,0.1); color: var(--volt); border-color: rgba(0,255,255,0.25); border-radius: 99px; padding: 8px 16px; font-weight: 600; }

/* The Network Pulse */
.stats-ribbon { padding: 64px 0; background: rgba(10, 10, 10, 0.3); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto; padding: 0 40px; gap: 32px; }
.stat-block { text-align: center; }
.stat-value-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; font-family: var(--font-ui); font-size: 30px; font-weight: 700; color: var(--volt); }
.stat-icon { color: var(--volt); font-size: 24px; }
.stat-label { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* Features */
.features-section { max-width: 1200px; margin: 0 auto; padding: 96px 40px; }
.section-header { margin-bottom: 64px; text-align: center; }
.section-title { font-size: clamp(28px, 5vw, 48px); font-weight: 700; margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: var(--ash-whisper); }
.artifacts-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.artifact-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 24px; padding: 32px; position: relative; overflow: hidden; display:flex; flex-direction:column; min-height: 400px; }
.live-badge { position: absolute; top: 24px; right: 24px; border: 1px solid rgba(74,222,128,0.2); border-radius: 99px; padding: 6px 16px; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; background: rgba(74,222,128,0.1); color: var(--positive); }
.artifact-meta { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-top: auto; text-align: center; background: linear-gradient(90deg, #ffffff 0%, #00FFFF 100%); background-size: 200% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradient-shift 3s ease-in-out infinite alternate; }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.artifact-desc { font-size: 13px; color: rgba(255,255,255,0.45); text-align: center; margin-top: 6px; font-family: var(--font-ui); line-height: 1.4; }

/* Video embeds for artifact cards */
.artifact-video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; flex: 1; min-height: 0; transform: scale(1.08); }

.term-bg { background: var(--abyss); }
.term-header { padding: 0 0 20px 0; border-bottom: 1px solid var(--ghost-edge); }
.term-dots { display:flex; gap:8px;} .td { width:12px; height:12px; border-radius:50%; }
.td.r { background: #ff5f56; } .td.y { background: #ffbd2e; } .td.g { background: #27c93f; }
.term-body { font-family: var(--font-mono); font-size: 13px; margin-top: 24px; color: var(--frozen-signal); line-height: 1.8; position:relative; }
.tw-cursor { display:inline-block; width:8px; height:15px; background:var(--volt); vertical-align:middle; margin-left:4px;}

/* Chains Carousel — infinite scroll */
.chains-carousel-section { max-width: 1200px; margin: 0 auto; padding: 80px 40px; text-align: center; overflow: hidden; }
.chains-carousel-track-wrapper { overflow: hidden; margin-top: 16px; }
.chains-carousel-track { display: flex; gap: 32px; width: max-content; animation: chains-scroll 25s linear infinite; }
.chains-carousel-track:hover { animation-play-state: paused; }
.chain-carousel-item { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 100px; flex-shrink: 0; }
.chain-carousel-item svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); transition: transform 0.3s; }
.chain-carousel-item:hover svg { transform: scale(1.1); }
.chain-carousel-name { font-family: var(--font-ui); font-size: 10px; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: color 0.3s; }
.chain-carousel-item:hover .chain-carousel-name { color: var(--frozen-signal); }
@keyframes chains-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Protocol - Horizontal Cards */
.protocol-section { max-width: 1200px; margin: 0 auto; padding: 96px 40px; }
.protocol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.protocol-grid-3 { grid-template-columns: repeat(3, 1fr); }
.protocol-card-h { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; padding: 32px; text-align: center; transition: all 0.4s ease; position: relative; display: flex; flex-direction: column; align-items: center; }
.protocol-card-h::before { content: ''; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; background: linear-gradient(180deg, rgba(0,255,255,0), rgba(0,255,255,0)); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; -webkit-mask-composite: xor; transition: background 0.4s; pointer-events: none; }
.protocol-card-h:hover { transform: translateY(-4px); box-shadow: 0 0 40px rgba(0, 255, 255, 0.08), 0 20px 40px rgba(0,0,0,0.3); border-color: rgba(0, 255, 255, 0.15); }
.protocol-card-h:hover::before { background: linear-gradient(180deg, rgba(0,255,255,0.3), rgba(0,255,255,0)); }
.protocol-card-h:hover .pc-icon-box { color: var(--volt) !important; transform: scale(1.1); }
.pc-icon-box { width: 64px; height: 64px; background: rgba(255,255,255,0.05); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 24px; color: var(--volt); transition: 0.3s; }
.pc-title-h { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 16px; background: linear-gradient(135deg, #fff 0%, var(--volt) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pc-desc-h { font-size: 14px; color: var(--ash-whisper); line-height: 1.7; }

/* Footer */
.footer { background: #000; border-top: 1px solid rgba(255,255,255,0.05); border-radius: 0; padding: 80px 24px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto; }
.f-logo { font-family: var(--font-display); font-size: 18px; font-weight: 700; display:flex; align-items:center; gap:8px; margin-bottom:24px;}
.f-tagline { color: var(--text-muted); max-width: 280px; margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
.f-title { font-size: 12px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ash-whisper); font-weight: 700; }
.f-link { display: block; color: var(--text-muted); margin-bottom: 16px; font-size: 14px; transition: color 0.2s; }
.f-link:hover { color: var(--volt); }
.f-network-badge { display:inline-flex; align-items:center; gap:8px; background: var(--relief); padding: 8px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; border: 1px solid var(--ghost-edge); }
.f-legal { color: var(--text-muted); font-size: 13px; margin-top: 32px; }


/* --- DASHBOARD SYSTEM --- */
.app-container { display: flex; min-height: 100dvh; }
.app-container { --surface: #0a0a0a; --relief: #111; }
.sidebar { width: var(--sidebar-w); position: fixed; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--ghost-edge); z-index: 50; background: var(--surface); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.sidebar-separator { height: 1px; background: var(--ghost-edge); }
.sidebar-nav { padding: 24px 16px; flex: 1; overflow-y: auto; }
.nav-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ash-whisper); font-weight: 600; margin: 24px 0 12px 12px; }
.nav-group-title:first-child { margin-top: 0; }
.sidebar-link { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; color: var(--ash-whisper); font-weight: 500; transition: all 0.2s; position: relative; }
.sidebar-link .nav-icon { font-size: 20px; margin-right: 12px; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.03); color: var(--frozen-signal); }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(0,226,238,0.0) 0%, rgba(0,226,238,0.04) 40%, rgba(0,226,238,0.10) 100%);
  border-right: 2px solid rgba(0, 226, 238, 0.5);
  color: var(--frozen-signal);
  animation: meridian-pulse 3s ease-in-out infinite;
}
.sidebar-link.active .nav-icon { color: var(--volt); filter: drop-shadow(0 0 6px rgba(0, 226, 238, 0.4)); }
.sidebar-link.disabled { opacity: 0.5; pointer-events: none; }
.beta-pill { background: var(--volt-alpha); color: var(--volt); font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: auto; }
.sidebar-bottom { padding: 16px; border-top: 1px solid var(--ghost-edge); }
.sidebar-action-btn { width: 100%; display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; background: transparent; color: var(--ash-whisper); font-size: 14px; font-weight: 500; text-decoration: none; }
.sidebar-action-btn:hover { background: rgba(255, 255, 255, 0.03); color: var(--frozen-signal); }

@keyframes meridian-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

/* Wallet menu trigger & popup */
.wallet-menu-trigger { position: relative; }
.sidebar-wallet-btn { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ash-whisper); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.sidebar-wallet-btn:hover { background: rgba(255, 255, 255, 0.03); color: var(--frozen-signal); }
.wallet-popup { display: none; position: absolute; bottom: 100%; left: 0; right: 0; margin-bottom: 8px; background: var(--relief); border: 1px solid var(--ghost-edge); border-radius: 12px; padding: 8px; box-shadow: 0 -8px 24px rgba(0,0,0,0.5); z-index: 100; }
.wallet-menu-trigger:hover .wallet-popup { display: block; }
.wallet-popup-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; background: transparent; border: none; color: var(--ash-whisper); font-family: var(--font-ui); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.wallet-popup-item:hover { background: rgba(255, 255, 255, 0.03); color: var(--frozen-signal); }
.wallet-popup-item.logout-btn:hover { color: var(--negative); }

/* Read-Only Badge (wallet trust architecture) */
.readonly-badge { display: inline-flex; align-items: center; font-size: 9px; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--volt); background: rgba(0,226,238,0.1); border: 1px solid rgba(0,226,238,0.25); border-radius: 4px; padding: 2px 5px; margin-left: 8px; white-space: nowrap; }

/* Permissions Notice (sign-in flow) */
.permissions-notice { background: rgba(0,226,238,0.05); border: 1px solid rgba(0,226,238,0.15); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; max-width: 420px; }
.permissions-badge { font-size: 14px; font-weight: 700; color: var(--volt); margin-bottom: 10px; }
.permissions-list { display: flex; flex-direction: column; gap: 6px; }
.perm-item { font-size: 12px; font-family: var(--font-ui); display: flex; align-items: center; gap: 8px; }
.perm-icon { font-size: 13px; width: 16px; text-align: center; flex-shrink: 0; }
.perm-can { color: var(--positive); }
.perm-cannot { color: rgba(255,255,255,0.4); }

/* Wallet Guidance (no extension detected) */
.wallet-guidance-container { max-width: 420px; }
.wallet-guidance { background: var(--relief); border: 1px solid var(--ghost-edge); border-radius: 12px; padding: 20px; }
.guidance-title { font-size: 15px; font-weight: 700; color: var(--frozen-signal); margin-bottom: 8px; }
.guidance-text { font-size: 13px; color: var(--ash-whisper); margin-bottom: 12px; }
.guidance-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.guidance-link { display: block; padding: 10px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--ghost-edge); border-radius: 8px; color: var(--frozen-signal); text-decoration: none; font-size: 13px; transition: all 0.2s; }
.guidance-link:hover { background: rgba(255,255,255,0.06); border-color: var(--volt); }
.guidance-link strong { color: var(--volt); }
.guidance-alt { font-size: 12px; color: var(--ash-whisper); font-style: italic; }

/* Shard cycling pulse classes */
.pulse-red { color: var(--negative) !important; }
.pulse-green { color: var(--positive) !important; }

/* Holdings Section (zero-config intelligence) */
.holdings-container { border-radius: 12px; padding: 16px 20px; min-height: 80px; }
.holdings-loading { display: flex; align-items: center; justify-content: center; padding: 24px; }
.loading-text { color: var(--ash-whisper); font-size: 13px; font-family: var(--font-ui); }
.holdings-empty { text-align: center; color: var(--ash-whisper); font-size: 13px; padding: 24px; }
.holdings-summary { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ghost-edge); flex-wrap: wrap; }
.holdings-stat { display: flex; flex-direction: column; }
.holdings-stat-value { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--frozen-signal); }
.holdings-stat-label { font-size: 11px; color: var(--ash-whisper); text-transform: uppercase; letter-spacing: 0.05em; }
.holdings-list { display: flex; flex-direction: column; gap: 2px; }
.holdings-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; padding: 8px 4px; align-items: center; border-radius: 6px; transition: background 0.15s; }
.holdings-row:hover { background: rgba(255,255,255,0.02); }
.holdings-row.untracked { opacity: 0.5; }
.holdings-name { font-size: 13px; font-weight: 500; color: var(--frozen-signal); }
.holdings-name-link { color: var(--volt); text-decoration: none; }
.holdings-name-link:hover { text-decoration: underline; }
.holdings-count, .holdings-floor, .holdings-value { font-size: 12px; color: var(--ash-whisper); }

/* Dashboard card pager */
.dash-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0 2px; border-top: 1px solid var(--ghost-edge); margin-top: auto; }
.dash-pager-btn { background: none; border: 1px solid var(--ghost-edge); color: var(--frozen-signal); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.dash-pager-btn:hover:not(:disabled) { background: rgba(255,255,255,0.05); border-color: var(--frozen-signal); }
.dash-pager-btn:disabled { opacity: 0.3; cursor: default; }
.dash-pager-info { font-size: 12px; color: var(--ash-whisper); font-family: var(--font-mono); min-width: 40px; text-align: center; }

/* My Collections */
.mc-panel { padding:20px; border-radius:16px; border:1px solid var(--ghost-edge); }
.mc-stats-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.mc-stat { text-align:center; }
.mc-stat-value { font-size:20px; font-weight:700; color:var(--frozen-signal); }
.mc-stat-label { font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--ash-whisper); margin-top:4px; }
.mc-warnings { margin-top:16px; display:flex; flex-direction:column; gap:6px; }
.mc-warning { font-size:12px; color:var(--grad-btc-1); padding:8px 12px; background:rgba(247,147,26,0.08); border:1px solid rgba(247,147,26,0.2); border-radius:8px; }
.mc-legend { display:flex; flex-direction:column; gap:6px; }
.mc-legend-item { display:flex; align-items:center; gap:8px; font-size:12px; }
.mc-legend-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.mc-legend-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--frozen-signal); }
.mc-legend-pct { color:var(--ash-whisper); min-width:40px; text-align:right; font-size:11px; }
.mc-pnl-row { display:grid; grid-template-columns:2fr 50px 80px 80px 90px 70px; gap:8px; padding:8px 0; border-bottom:1px solid var(--ghost-edge-50); font-size:12px; align-items:center; }
.mc-pnl-header { font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--ash-whisper); font-weight:500; border-bottom-color:var(--ghost-edge); }
.mc-pnl-row a:hover { color:var(--volt) !important; }
.mc-cards-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:16px; }
.mc-card { padding:16px; border-radius:12px; border:1px solid var(--ghost-edge); transition:border-color 0.2s; }
.mc-card:hover { border-color:rgba(0,226,238,0.3); }
.mc-card a:hover { color:var(--volt) !important; }

/* Backtester */
.bt-panel { padding:20px; border-radius:16px; border:1px solid var(--ghost-edge); }
.bt-strategy-card { background:var(--surface); border:1px solid var(--ghost-edge); border-radius:10px; padding:12px; text-align:left; cursor:pointer; transition:all 0.2s; font-family:var(--font-ui); }
.bt-strategy-card:hover { border-color:rgba(0,226,238,0.3); background:var(--relief); }
.bt-strategy-card.active { border-color:var(--volt); background:var(--relief); box-shadow:0 0 0 1px rgba(0,226,238,0.15); }
.bt-input { width:100%; box-sizing:border-box; background:var(--surface); border:1px solid var(--ghost-edge); border-radius:8px; padding:10px 12px; color:var(--frozen-signal); font-family:var(--font-mono); font-size:13px; outline:none; transition:border-color 0.2s; }
.bt-input:focus { border-color:rgba(0,226,238,0.3); }
.bt-input::placeholder { color:var(--ash-whisper); opacity:0.5; }
.bt-autocomplete-dropdown { display:none; position:absolute; top:100%; left:0; right:0; z-index:50; background:rgba(20,20,24,0.97); border:1px solid var(--ghost-edge); border-radius:8px; margin-top:4px; max-height:200px; overflow-y:auto; box-shadow:0 8px 24px rgba(0,0,0,0.5); backdrop-filter:blur(12px); }
.bt-ac-item { padding:8px 12px; font-size:13px; color:var(--frozen-signal); cursor:pointer; border-bottom:1px solid var(--ghost-edge-50, rgba(255,255,255,0.03)); display:flex; align-items:center; gap:8px; }
.bt-ac-item:last-child { border-bottom:none; }
.bt-ac-item:hover { background:rgba(0,255,255,0.06); color:var(--volt); }
.bt-ac-chain { font-size:10px; padding:1px 6px; border-radius:4px; background:var(--surface); color:var(--ash-whisper); border:1px solid var(--ghost-edge); text-transform:uppercase; }
.bt-run-btn { width:100%; margin-top:20px; padding:12px; background:var(--volt); color:var(--abyss); border:none; border-radius:10px; font-weight:600; font-size:14px; cursor:pointer; transition:all 0.2s; font-family:var(--font-ui); }
.bt-run-btn:hover:not(:disabled) { filter:brightness(1.1); box-shadow:0 0 20px rgba(0,226,238,0.2); }
.bt-run-btn:disabled { opacity:0.35; cursor:default; }
.bt-trade-row { display:grid; grid-template-columns:1fr 90px 1fr 90px 80px 60px; gap:8px; padding:8px 0; border-bottom:1px solid var(--ghost-edge-50); font-size:12px; }
.bt-trade-header { font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--ash-whisper); font-weight:500; border-bottom-color:var(--ghost-edge); }

/* Alert Manager */
.alerts-container { border-radius: 12px; padding: 16px 20px; min-height: 60px; }
.alerts-loading, .alerts-empty { text-align: center; color: var(--ash-whisper); font-size: 13px; padding: 20px; }
.alerts-list { display: flex; flex-direction: column; gap: 4px; }
.alert-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; border-radius: 8px; transition: background 0.15s; }
.alert-row:hover { background: rgba(255,255,255,0.02); }
.alert-row.alert-paused { opacity: 0.5; }
.alert-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert-collection { font-size: 13px; font-weight: 600; color: var(--frozen-signal); }
.alert-type-badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.05); border: 1px solid var(--ghost-edge); color: var(--ash-whisper); }
.alert-value { font-size: 12px; color: var(--volt); }
.alert-actions { display: flex; align-items: center; gap: 8px; }
.alert-status-badge { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.alert-status-badge.alert-active { color: var(--positive); background: rgba(142,255,113,0.1); }
.alert-status-badge.alert-paused { color: var(--ash-whisper); background: rgba(255,255,255,0.05); }
.btn-sm { font-size: 12px; padding: 4px 10px; }
.btn-xs { font-size: 11px; padding: 2px 8px; }

/* Alert Creation Form Overlay */
.alert-form-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; align-items: center; justify-content: center; }
.alert-form { width: 90%; max-width: 400px; border-radius: 16px; padding: 24px; border: 1px solid var(--ghost-edge); }
.alert-form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.alert-form-header h3 { font-size: 16px; color: var(--frozen-signal); margin: 0; }
.form-label { display: block; font-size: 12px; color: var(--ash-whisper); margin-bottom: 4px; margin-top: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-input { width: 100%; padding: 8px 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--ghost-edge); border-radius: 8px; color: var(--frozen-signal); font-family: var(--font-mono); font-size: 13px; outline: none; box-sizing: border-box; }
.form-input:focus { border-color: var(--volt); }
.alert-form-status { font-size: 12px; color: var(--negative); margin-top: 8px; }

/* Custom select & number input styling */
.custom-select-wrap { position: relative; }
.form-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 32px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 5l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; cursor: pointer; }
.form-select:focus { border-color: var(--volt); }
.form-select option { background: var(--surface); color: var(--frozen-signal); padding: 8px; }
.form-number { -moz-appearance: textfield; }
.form-number::-webkit-outer-spin-button, .form-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Autocomplete dropdown */
.autocomplete-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--ghost-edge); border-top: none; border-radius: 0 0 8px 8px; z-index: 210; max-height: 200px; overflow-y: auto; }
.ac-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; cursor: pointer; transition: background 0.15s; }
.ac-item:hover { background: var(--relief); }
.ac-name { font-size: 13px; color: var(--frozen-signal); }
.ac-slug { font-size: 11px; color: var(--ash-whisper); }

.main-wrapper { margin-left: var(--sidebar-w); flex: 1; display:flex; flex-direction:column; min-height:100vh; position:relative; overflow-x:hidden; max-width: calc(100vw - var(--sidebar-w)); }

/* The Price Ribbon */
.ticker-bar { height: var(--ticker-h); display: flex; align-items: center; border-bottom: 1px solid var(--ghost-edge); overflow: hidden; width:100%; position:sticky; top:0; z-index:40; }
.ticker-content { display: flex; white-space: nowrap; animation: marquee 60s linear infinite; padding: 0 20px; }
.ticker-content:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-pair { display: inline-flex; align-items: center; font-size: 13px; margin-right: 24px; font-weight: 500;}
.ticker-icon { width: 16px; height: 16px; border-radius: 50%; margin-right: 8px; display:inline-block; }
.ticker-icon.btc { background: linear-gradient(135deg, var(--grad-btc-1), var(--grad-btc-2)); }
.ticker-icon.eth { background: linear-gradient(135deg, var(--grad-eth-1), var(--grad-eth-2)); }
.ticker-icon.sol { background: linear-gradient(135deg, #14F195, #9945FF); }
.ticker-icon.doge { background: #F3BA2F; }
.ticker-icon.nft { background: linear-gradient(135deg, var(--grad-nft-1), var(--grad-nft-2)); }
.ticker-name { color: var(--frozen-signal); margin-right: 8px; }
.ticker-price { font-family: var(--font-mono); margin-right: 8px; }
.ticker-change { font-family: var(--font-mono); }
.ticker-event { color: var(--volt); }
.ticker-sep { width: 1px; height: 16px; background: var(--ghost-edge); margin-right: 24px; display:inline-block; }

/* The Greeting / Dashboard Header */
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; padding: 40px 48px; }
.greeting-subtitle { font-size: 15px; color: var(--ash-whisper); margin-bottom: 4px; }
.greeting-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--frozen-signal); }
.wallet-badge { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.wallet-badge:hover { border-color: rgba(0,226,238,0.3); }

/* Main layout grid */
.main-content { padding: 0 24px 48px; }
.grid-layout { display: grid; grid-template-columns: auto 320px; gap: 32px; }

/* Section Tops */
.section-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-heading { font-size: 20px; margin: 0; }
.live-indicator { font-size: 13px; color: var(--ash-whisper); display: flex; align-items: center; gap: 8px; }

/* The Vital Monitors */
.vital-monitors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.monitor-card { padding: 24px; position: relative; overflow: hidden; }
.glow-layer { position: absolute; width: 200px; height: 200px; border-radius: 50%; top: -50px; right: -50px; opacity: 0.06; filter: blur(100px); pointer-events: none; }
.bg-btc { background: linear-gradient(to right, var(--grad-btc-1), var(--grad-btc-2)); }
.bg-eth { background: linear-gradient(to right, var(--grad-eth-1), var(--grad-eth-2)); }
.bg-nft { background: linear-gradient(to right, var(--grad-nft-1), var(--grad-nft-2)); }
.grad-btc { background: linear-gradient(135deg, var(--grad-btc-1), var(--grad-btc-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.grad-eth { background: linear-gradient(135deg, var(--grad-eth-1), var(--grad-eth-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.grad-nft { background: linear-gradient(135deg, var(--grad-nft-1), var(--grad-nft-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.monitor-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.coin-icon { font-size: 28px; line-height: 1; display:flex;}
.coin-icon.small { font-size: 20px;}
.coin-name { font-weight: 500; font-size: 15px; }
.pill-badge { background: rgba(255,255,255,0.05); border: 1px solid var(--ghost-edge); border-radius: 99px; padding: 4px 10px; font-size: 11px; font-weight: 600; font-family: var(--font-ui); }
.pill-badge.check { background: var(--volt-alpha); color: var(--volt); border-color: rgba(0,226,238,0.3); padding: 4px; font-size: 14px; display:inline-flex;}
.monitor-mid { margin-bottom: 16px; }
.monitor-val { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--frozen-signal); }
.monitor-change { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

/* Data Freshness Indicators */
.freshness-badge { display: inline-block; font-size: 10px; font-weight: 500; font-family: var(--font-mono); margin-left: 6px; padding: 1px 5px; border-radius: 4px; vertical-align: middle; }
.freshness-badge.fresh { color: var(--positive); background: rgba(142,255,113,0.1); }
.freshness-badge.stale { color: var(--negative); background: rgba(255,113,108,0.15); }

/* The Ledger (Table) */
.table-container { overflow-x: auto; border-radius: 12px; max-width: 100%; }
.market-ledger { width: 100%; border-collapse: collapse; text-align: left; }
.market-ledger th { padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ash-whisper); font-weight: 500; border-bottom: 1px solid var(--ghost-edge); white-space: nowrap; }
.market-ledger td { padding: 10px 12px; border-bottom: 1px solid var(--ghost-edge); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-row { transition: all 0.15s; background: var(--abyss); }
.ledger-row:nth-child(even) { background: rgba(25, 25, 28, 0.3); }
.ledger-row:hover { background: rgba(31, 31, 34, 0.8) !important; cursor: pointer; }
.market-ledger tr:last-child td { border-bottom: none; }
.market-ledger th[data-sort] { cursor: pointer; }
.market-ledger th[data-sort]:hover { color: var(--frozen-signal); }

.mini-coin { width: 20px; height: 20px; border-radius: 4px; display: inline-block; vertical-align: middle; margin-right: 8px; flex-shrink: 0; }
.bg-muted { background: var(--ash-whisper); }
.outline-dot { border: 2px solid var(--volt); background: transparent; }
.col-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-name .mini-coin { vertical-align: middle; }
.col-name-wrap { display: inline-flex; align-items: center; max-width: 100%; overflow: hidden; }
.col-name a:hover { color: var(--volt) !important; }
.nft-badge { margin-left:8px; background: rgba(0, 226, 238, 0.15); color: var(--grad-nft-1); border-color: rgba(0, 226, 238, 0.3); font-family:var(--font-mono); }
.col-num { color: var(--ash-whisper); min-width: 28px; text-align: right; padding-right: 8px !important; white-space: nowrap; overflow: visible; }

/* Notice Cards (Dashboard subscription alerts) */
.notice-card { padding: 20px; margin-bottom: 24px; border-radius: 16px; border: 1px solid var(--ghost-edge); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.notice-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.notice-body { font-size: 14px; color: var(--ash-whisper); }

/* Tab Controls (Chart page time range, currency toggle) */
.ew-tabs { display: flex; background: var(--abyss); border-radius: 8px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--ghost-edge); }
.ew-tab { flex: 1; padding: 8px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ash-whisper); background: transparent; }
.ew-tab.active { background: var(--volt-alpha); color: var(--volt); border: 1px solid var(--ghost-edge-50); box-shadow: 0 0 8px rgba(0,226,238,0.15); }
.ew-input { flex: 1; background: transparent; border: none; color: var(--frozen-signal); font-size: 16px; padding: 12px 0; outline: none; }

/* Screener specific */
.screener-top-bar { display: flex; flex-direction: column; margin-bottom: 24px; gap: 16px; }
.chain-chips { display: flex; gap: 8px; }
.chain-chip { background: var(--surface); border: 1px solid var(--ghost-edge); color: var(--ash-whisper); padding: 8px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; }
.chain-chip:hover { border-color: rgba(0,226,238,0.3); color: var(--frozen-signal); }
.chain-chip.active { background: var(--relief); border-color: rgba(0,226,238,0.5); color: var(--frozen-signal); }
.screener-search { width: 100%; background: var(--surface); border: 1px solid var(--ghost-edge); border-radius: 99px; padding: 10px 20px; color: var(--frozen-signal); font-size: 14px; outline: none; font-family: var(--font-ui); box-sizing: border-box; }
.screener-search:focus { border-color: rgba(0, 226, 238, 0.3); }

/* Screener Filter Adjustments */
.screener-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 16px 24px; margin-bottom: 24px; }
.filter-section { display: flex; align-items: center; gap: 12px; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--ash-whisper); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-chips, .filter-presets { display: flex; gap: 4px; }
.filter-chip, .preset-btn { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--ghost-edge); background: var(--abyss); color: var(--ash-whisper); font-size: 12px; font-weight: 500; }
.filter-chip:hover, .preset-btn:hover { border-color: var(--ghost-edge-50); color: var(--frozen-signal); }
.filter-chip.active, .preset-btn.active { background: rgba(0,226,238,0.1); border-color: rgba(0,226,238,0.4); color: var(--volt); }
.filter-clear-btn { background: transparent; border: 1px solid var(--negative); color: var(--negative); padding: 6px 14px; border-radius: 99px; font-size: 12px; margin-left: auto;}
.filter-clear-btn:hover { background: rgba(255,113,108,0.1); }

/* Extra Badges */
.badge-eth { background: rgba(98, 126, 234, 0.15); color: #8b9ff0; border-color: rgba(98, 126, 234, 0.3); }
.badge-sol { background: rgba(20, 241, 149, 0.15); color: #14F195; border-color: rgba(20, 241, 149, 0.3); }
.badge-base { background: rgba(0, 82, 255, 0.15); color: #4b88ff; border-color: rgba(0, 82, 255, 0.3); }
.pill-pos { background: rgba(142, 255, 113, 0.15); color: var(--positive); border-color: rgba(142, 255, 113, 0.3); }
.pill-neg { background: rgba(255, 113, 108, 0.15); color: var(--negative); border-color: rgba(255, 113, 108, 0.3); }
.pill-muted { background: var(--surface); color: var(--ash-whisper); }
.pill-border { background: var(--abyss); border-color: var(--ghost-edge); color: var(--frozen-signal); }
.chain-icon-cell { text-align: center; vertical-align: middle; }
.chain-icon-cell svg { display: inline-block; vertical-align: middle; }
.sparkline-cell svg { overflow: visible !important; }
.sparkline-cell svg polyline, .sparkline-cell svg path { filter: drop-shadow(0 0 4px currentColor); }
.sparkline-cell svg polyline { animation: glow-breathe 4s ease-in-out infinite; }
@keyframes glow-breathe { 0%,100% { filter: drop-shadow(0 0 4px currentColor); } 50% { filter: drop-shadow(0 0 7px currentColor); } }

/* Signal Row Overrides */
.signal-row-golden { border-left: 3px solid var(--positive); background: rgba(142, 255, 113, 0.04); }
.signal-row-dead { border-left: 3px solid var(--negative); background: rgba(255, 113, 108, 0.04); }
.signal-row:hover { background: rgba(31, 31, 34, 0.9) !important; }

/* Fix chart UI sizing */
.chart-container { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; }
.ma-values-table { margin-top: 16px; }

/* Chart Tooltip */
.chart-tooltip { position: absolute; z-index: 100; pointer-events: none; background: var(--relief); border: 1px solid var(--ghost-edge); border-radius: 12px; padding: 12px; font-size: 13px; font-family: var(--font-mono); color: var(--frozen-signal); box-shadow: 0 8px 24px rgba(0,0,0,0.5); max-width: 280px; }

/* Legend Toggle */
.legend-item { transition: all 0.2s; user-select: none; }
.legend-item:hover { border-color: rgba(0,226,238,0.3); }
.legend-item.legend-hidden { opacity: 0.35; text-decoration: line-through; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* Watchlist star button */
.watchlist-btn { background: transparent; border: none; cursor: pointer; color: rgba(255,255,255,0.2); font-size: 18px; padding: 4px; transition: all 0.2s; line-height: 1; }
.watchlist-btn:hover { color: #b884ff; }
.watchlist-btn.watched { color: #b884ff; }
.watchlist-btn.watched:hover { color: #f59e0b; }

/* ── Premium Gate Components ── */

.upgrade-prompt {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 480px;
  margin: 4rem auto;
  background: var(--relief);
  border: 1px solid var(--ghost-edge);
  border-radius: 12px;
}
.upgrade-prompt h2 {
  color: var(--premium-glow);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.upgrade-prompt p {
  color: var(--ash-whisper);
  line-height: 1.6;
}
.upgrade-prompt code {
  color: var(--volt);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* Upgrade Card — contextual upgrade prompt with data teaser */
.upgrade-card {
  max-width: 520px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--relief);
  border: 1px solid var(--ghost-edge);
  border-radius: 12px;
  text-align: center;
}
.upgrade-card .upgrade-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.upgrade-card h2 {
  color: var(--frozen-signal);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.upgrade-card .upgrade-card-name {
  color: var(--premium-glow);
}
.upgrade-card .upgrade-card-teaser {
  color: var(--ash-whisper);
  font-size: 0.9rem;
  margin: 1rem 0;
  line-height: 1.5;
}
.upgrade-card .upgrade-card-teaser .teaser-stat {
  color: var(--frozen-signal);
  font-family: var(--font-mono);
}
.upgrade-card .upgrade-card-value {
  color: var(--ash-whisper);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.upgrade-card .btn-volt {
  display: inline-block;
  background: var(--volt);
  color: var(--abyss);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.upgrade-card .btn-volt:hover { opacity: 0.85; }

/* Gate Row — screener boundary at collection limit */
.gate-row td {
  padding: 1rem 0 !important;
  text-align: center;
  background: var(--gate-overlay);
  border-top: 1px solid var(--ghost-edge);
  border-bottom: 1px solid var(--ghost-edge);
}
.gate-row .gate-row-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ash-whisper);
  font-size: 0.85rem;
}
.gate-row .gate-row-inner .gate-lock {
  color: var(--premium-glow);
  font-size: 1rem;
}
.gate-row .gate-row-inner a {
  color: var(--premium-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gate-row .gate-row-inner a:hover {
  color: var(--frozen-signal);
}

/* =====================================================
   NEW CSS CLASSES (replacing inline styles from TSX)
   ===================================================== */
.dash-holdings-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; min-width: 0;
}
.dash-intel-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.chart-overview-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px;
}
.chart-stability-grid {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; margin-top: 24px;
}
.chart-signal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px;
}
.mc-top-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; margin-bottom: 24px;
}
.pred-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px;
}
.bt-layout {
  display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start;
}

/* =====================================================
   MOBILE NAVIGATION
   ===================================================== */
.mobile-nav-toggle {
  position: fixed; top: 12px; left: 12px; z-index: 201;
  width: 44px; height: 44px;
  background: var(--surface-solid); border: 1px solid var(--ghost-edge);
  border-radius: 10px; color: var(--frozen-signal);
  display: none; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer;
}
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 199;
}
.mobile-nav-overlay.active { display: block; }

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* --- 1024px: Tablet landscape / sidebar collapse --- */
@media (max-width: 1024px) {
  .artifacts-grid { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: repeat(2, 1fr); }
  .protocol-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-layout { grid-template-columns: 1fr; }
  .main-wrapper { margin-left: 0; max-width: 100vw; }
  /* Sidebar: hidden by default, slide-in on mobile */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    position: fixed; top: 0; left: 0; z-index: 200;
    height: 100vh; height: 100dvh;
  }
  .sidebar.open { transform: translateX(0); display: flex; }
  .mobile-nav-toggle { display: flex; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-block { border: none; }
  .hero-headline { font-size: 40px; }
  .shards-container { display: none; }
  .protocol-grid { grid-template-columns: 1fr; }
  .glow-layer { opacity: 0.03; }
  .sparkline-cell svg polyline { animation: none; }
}

/* =================================================================
   SCREENER TABLE v2 — Clean layout inspired by reference
   ================================================================= */

.screener-panel {
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
  border-radius: 16px;
  overflow: hidden;
}

.screener-tbl {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

/* Header */
.sc-th {
  padding: 16px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--ghost-edge-50);
  white-space: nowrap;
  cursor: default;
}
.sc-th[data-sort] { cursor: pointer; }
.sc-th-star { width: 48px; text-align: center; }
.sc-th-rank { width: 48px; text-align: center; }
.sc-th-name { }
.sc-th-price { width: 180px; }
.sc-th-pct { width: 90px; text-align: right; }
.sc-th-mcap { width: 120px; text-align: right; }
.sc-th-spark { width: 120px; text-align: right; }

/* Rows */
.sc-row {
  border-bottom: 1px solid var(--ghost-edge-50);
  transition: background 0.12s;
  cursor: pointer;
}
.sc-row:hover { background: rgba(255,255,255,0.02); }
.sc-row:last-child { border-bottom: none; }
.sc-row.sc-hidden { display: none; }

/* Cells */
.sc-td {
  padding: 12px 16px;
  font-size: 13px;
  vertical-align: middle;
}
.sc-td-star { text-align: center; width: 48px; }
.sc-td-rank {
  text-align: center;
  width: 48px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
}
.sc-td-pct { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.sc-td-mcap {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--frozen-signal);
  font-size: 13px;
}
.sc-td-spark { text-align: right; }

/* Name cell */
.sc-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-img-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--relief);
}
.sc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--relief);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
}
.sc-name-text {
  min-width: 0;
  overflow: hidden;
}
.sc-collection-name {
  font-weight: 700;
  color: var(--frozen-signal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 220px;
}
.sc-row:hover .sc-collection-name { color: var(--volt); }

/* Chain/Price merged cell */
.sc-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-chain-dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-chain-dot svg { width: 22px; height: 22px; }
.sc-price-main {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--frozen-signal);
  font-size: 13px;
  line-height: 1.3;
}
.sc-price-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sc-price-usd {
  font-size: 11px;
  color: var(--ash-whisper);
  font-family: var(--font-mono);
}

/* Percentage */
.sc-pct-value { font-size: 13px; }

/* Watchlist button */
.watchlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.15);
  font-size: 18px;
  padding: 4px;
  transition: color 0.15s;
}
.watchlist-btn:hover { color: var(--volt); }
.watchlist-btn.watched { color: var(--volt); }

/* Pagination */
.sc-pagination {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ghost-edge-50);
  background: rgba(255,255,255,0.01);
}
.sc-pagination-info {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sc-pagination-btns {
  display: flex;
  gap: 4px;
}
.sc-page-btn {
  padding: 6px 10px;
  min-width: 32px;
  text-align: center;
  border-radius: 6px;
  border: none;
  background: var(--relief);
  color: var(--ash-whisper);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.12s;
}
.sc-page-btn:hover { background: rgba(255,255,255,0.08); color: var(--frozen-signal); }
.sc-page-btn.active { background: var(--volt); color: var(--abyss); }
.sc-page-btn:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 768px) {
  .sc-th-mcap, .sc-td-mcap { display: none; }
  .sc-th-spark, .sc-td-spark { display: none; }
  .sc-collection-name { max-width: 140px; }
  .sc-img-box { width: 32px; height: 32px; }
}

/* =================================================================
   INTELLIGENCE TEMPLATES — Sidebar + Table Layout
   ================================================================= */

.tpl-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
  min-height: 600px;
}

/* ── Sidebar ── */
.tpl-sidebar {
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tpl-sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--ghost-edge-50);
}

.tpl-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ash-whisper);
}

.tpl-sidebar-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.tpl-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ash-whisper);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: var(--font-ui);
}

.tpl-sidebar-btn:hover {
  background: var(--relief);
  color: var(--frozen-signal);
}

.tpl-sidebar-btn.active {
  background: var(--relief);
  border-color: var(--volt-alpha);
  color: var(--volt);
}

.tpl-sidebar-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.tpl-sidebar-btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tpl-sidebar-btn-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl-sidebar-btn.active .tpl-sidebar-btn-title {
  color: var(--volt);
}

.tpl-sidebar-btn-params {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Main Panel ── */
.tpl-main {
  min-width: 0;
}

.tpl-panel {
  display: none;
}

.tpl-panel.active {
  display: block;
}

.tpl-panel-header {
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.tpl-panel-info {
  flex: 1;
  min-width: 0;
}

.tpl-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--frozen-signal);
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.tpl-panel-desc {
  font-size: 13px;
  color: var(--ash-whisper);
  margin: 0;
  line-height: 1.6;
}

.tpl-panel-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.tpl-param-row {
  display: flex;
  gap: 12px;
}

.tpl-param-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tpl-param-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ash-whisper);
}

.tpl-param-input {
  width: 110px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  background: var(--relief);
  border: 1px solid var(--ghost-edge);
  border-radius: 8px;
  color: var(--frozen-signal);
  transition: border-color 0.2s;
}

.tpl-param-input:focus {
  outline: none;
  border-color: var(--volt);
}

.tpl-premium-gate {
  padding: 10px 20px;
  background: var(--premium-alpha);
  border: 1px solid rgba(184, 132, 255, 0.25);
  border-radius: 99px;
  color: var(--premium-glow);
  font-size: 12px;
  font-weight: 600;
}

/* ── Results Table ── */
.tpl-results-area {
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
  border-radius: 16px;
  overflow: hidden;
}

.tpl-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ghost-edge-50);
}

.tpl-results-count {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ash-whisper);
}

.tpl-results-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tpl-export-btn {
  background: var(--relief);
  border: 1px solid var(--ghost-edge);
  border-radius: 8px;
  color: var(--ash-whisper);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all 0.15s;
}
.tpl-export-btn:hover {
  color: var(--volt);
  border-color: var(--volt-alpha);
}

.tpl-table {
  width: 100%;
  border-collapse: collapse;
}

.tpl-table thead th {
  padding: 12px 24px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--ghost-edge-50);
  white-space: nowrap;
}

.tpl-table thead th:last-child {
  text-align: right;
}

.tpl-table tbody tr {
  transition: background 0.15s;
  border-bottom: 1px solid var(--ghost-edge-50);
}

.tpl-table tbody tr:last-child {
  border-bottom: none;
}

.tpl-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tpl-table td {
  padding: 14px 24px;
  font-size: 13px;
}

.tpl-table .tpl-col-name {
  font-weight: 600;
  color: var(--frozen-signal);
}

.tpl-table .tpl-col-name a {
  color: var(--volt);
  text-decoration: none;
  transition: opacity 0.15s;
}

.tpl-table .tpl-col-name a:hover {
  opacity: 0.8;
}

.tpl-table .tpl-col-chain {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2px;
}

.tpl-table .tpl-col-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--frozen-signal);
  white-space: nowrap;
}

.tpl-table .tpl-col-label {
  font-size: 11px;
  color: var(--ash-whisper);
  margin-left: 6px;
  font-weight: 400;
}

.tpl-table .tpl-col-explanation {
  color: var(--ash-whisper);
  font-size: 12px;
  line-height: 1.5;
  max-width: 360px;
}

.tpl-col-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  font-weight: 600;
}

/* Signal badges */
.tpl-signal-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tpl-signal-high {
  background: var(--volt-alpha);
  color: var(--volt);
  border: 1px solid rgba(0, 226, 238, 0.2);
}

.tpl-signal-medium {
  background: rgba(255, 200, 55, 0.1);
  color: #ffc837;
  border: 1px solid rgba(255, 200, 55, 0.2);
}

.tpl-signal-low {
  background: rgba(255, 113, 108, 0.1);
  color: var(--negative);
  border: 1px solid rgba(255, 113, 108, 0.2);
}

/* Activity bar */
.tpl-activity-bar {
  width: 100%;
  max-width: 120px;
  height: 6px;
  background: var(--relief);
  border-radius: 99px;
  overflow: hidden;
}

.tpl-activity-fill {
  height: 100%;
  background: var(--volt);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Pagination */
.tpl-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--ghost-edge-50);
}

.tpl-pagination-info {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.tpl-pagination-btns {
  display: flex;
  gap: 4px;
}

.tpl-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  color: var(--ash-whisper);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.tpl-page-btn:hover {
  background: var(--relief);
  color: var(--frozen-signal);
}

.tpl-page-btn.active {
  background: var(--volt);
  color: var(--abyss);
}

/* Empty state */
.tpl-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
  border-radius: 16px;
}

/* Loading */
.tpl-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  color: var(--ash-whisper);
  font-size: 14px;
}

/* Error state */
.tpl-error {
  padding: 24px;
  text-align: center;
  color: var(--negative);
  font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .tpl-layout {
    grid-template-columns: 1fr;
  }
  .tpl-sidebar {
    position: static;
  }
  .tpl-sidebar-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tpl-panel-header {
    flex-direction: column;
  }
  .tpl-panel-controls {
    align-items: stretch;
  }
  .tpl-param-row {
    flex-wrap: wrap;
  }
  .tpl-param-input {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Custom Tooltips (dark themed)
   ═══════════════════════════════════════════════════════════════ */

.custom-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.custom-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 10px 14px;
  background: rgba(20, 20, 24, 0.95);
  border: 1px solid var(--ghost-edge);
  border-radius: 10px;
  color: var(--frozen-signal);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 1px rgba(0,255,255,0.15);
  backdrop-filter: blur(12px);
  z-index: 100;
  pointer-events: none;
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(20, 20, 24, 0.95);
}

.custom-tooltip-wrap:hover .custom-tooltip {
  display: block;
}

/* ── Widget detail link ── */

.widget-detail-link {
  color: var(--volt);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.widget-detail-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   Trend Radar Panel
   ═══════════════════════════════════════════════════════════════ */

.trend-summary-bar {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
}

.trend-summary-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: rgba(0, 0, 0, 0.8);
  transition: width 0.4s ease;
  min-width: 0;
}

.trend-bull { background: var(--positive); }
.trend-neutral { background: rgba(255, 255, 255, 0.12); color: var(--ash-whisper); }
.trend-bear { background: var(--negative); }

.trend-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--frozen-signal);
  flex-wrap: wrap;
}

.trend-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.trend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.trend-dot-bull { background: var(--positive); }
.trend-dot-neutral { background: rgba(255, 255, 255, 0.25); }
.trend-dot-bear { background: var(--negative); }

.trend-column-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ash-whisper);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ghost-edge);
}

.trend-mover-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--ghost-edge-50, rgba(255,255,255,0.03));
}

.trend-mover-row:last-child {
  border-bottom: none;
}

.trend-mover-name {
  color: var(--volt);
  text-decoration: none;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}

.trend-mover-name:hover {
  text-decoration: underline;
}

.trend-mover-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-momentum-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.trend-momentum-bull {
  background: rgba(74, 222, 128, 0.15);
  color: var(--positive);
}

.trend-momentum-bear {
  background: rgba(248, 113, 113, 0.15);
  color: var(--negative);
}

.trend-conf-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.trend-conf-high {
  background: rgba(74, 222, 128, 0.1);
  color: var(--positive);
}

.trend-conf-med {
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
}

.trend-conf-low {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ash-whisper);
}

.trend-disclaimer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--ghost-edge);
  font-size: 11px;
  color: var(--ash-whisper);
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .trend-mover-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .trend-mover-name {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ML Predictions Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Market Regime Gauge ── */

.pred-regime-card {
  padding: 24px;
  border-radius: 16px;
}

.pred-regime-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pred-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pred-gauge-arc {
  width: 180px;
  height: 90px;
  border-radius: 90px 90px 0 0;
  background: conic-gradient(
    from 180deg at 50% 100%,
    #f87171 0deg, #fb923c 36deg, #facc15 72deg,
    #94a3b8 108deg, #86efac 144deg, #4ade80 180deg
  );
  position: relative;
  opacity: 0.8;
}

.pred-gauge-needle {
  width: 2px;
  height: 70px;
  background: var(--frozen-signal);
  transform-origin: bottom center;
  margin-top: -10px;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
}

.pred-gauge-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.pred-gauge-score {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ash-whisper);
}

.pred-regime-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.pred-regime-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pred-regime-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.pred-regime-stat-label {
  font-size: 11px;
  color: var(--ash-whisper);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pred-risk-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pred-risk-pip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
}

/* ── Chip filters ── */

.pred-chain-filters,
.pred-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pred-chip {
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
  color: var(--ash-whisper);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-ui);
}

.pred-chip:hover {
  border-color: var(--volt);
  color: var(--frozen-signal);
}

.pred-chip.active {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--volt);
  color: var(--volt);
}

/* ── Momentum Heatmap ── */

.pred-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 4px;
}

.pred-heatmap-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 52px;
  border: 1px solid transparent;
}

.pred-heatmap-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  border-color: var(--ghost-edge);
  z-index: 1;
}

.pred-heatmap-name {
  font-size: 10px;
  color: var(--frozen-signal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.pred-heatmap-score {
  font-size: 12px;
  font-weight: 700;
}

/* ── Pattern Scanner ── */

.pred-pattern-group {
  margin-bottom: 14px;
}

.pred-pattern-group:last-child {
  margin-bottom: 0;
}

.pred-pattern-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--frozen-signal);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ghost-edge);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pred-pattern-count {
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ash-whisper);
  font-family: var(--font-mono);
}

.pred-pattern-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--ghost-edge-50, rgba(255,255,255,0.03));
}

.pred-pattern-item:last-child {
  border-bottom: none;
}

/* ── Risk rows ── */

.pred-risk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--ghost-edge-50, rgba(255,255,255,0.03));
}

.pred-risk-row:last-child {
  border-bottom: none;
}

/* ── Signal breakdown mini bars ── */

.pred-signal-bars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pred-mini-bar-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.pred-mini-bar-label {
  font-size: 9px;
  color: var(--ash-whisper);
  width: 24px;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.pred-mini-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.pred-mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ── Correlation Clusters ── */

.pred-clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.pred-cluster-card {
  background: var(--surface);
  border: 1px solid var(--ghost-edge);
  border-radius: 10px;
  padding: 12px 14px;
}

.pred-cluster-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--frozen-signal);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pred-cluster-members {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pred-cluster-member {
  font-size: 11px;
  color: var(--volt);
  text-decoration: none;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.pred-cluster-member:hover {
  background: rgba(0, 255, 255, 0.15);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .pred-regime-stats {
    gap: 16px;
  }
  .pred-heatmap-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

@media (max-width: 768px) {
  .pred-signal-bars {
    display: none;
  }
}

/* =================================================================
   MOBILE RESPONSIVENESS FIXES — 2026-03-30
   Appended overrides for Issues A-D (375px mobile, 768px tablet)
   ================================================================= */

/* ── Issue B: Dashboard grid & layout (768px) ── */
@media (max-width: 768px) {
  .grid-layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .main-content {
    padding: 0 12px 32px;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
    gap: 12px;
  }
  .greeting-title {
    font-size: 22px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .greeting-subtitle {
    font-size: 13px;
  }
  .vital-monitors {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .holdings-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .holdings-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8px;
    font-size: 12px;
  }
  .holdings-value {
    display: none;
  }
  .section-heading {
    font-size: 17px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .mc-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mc-pnl-row {
    grid-template-columns: 1.5fr 40px 70px 70px;
    font-size: 11px;
  }
  .mc-cards-grid {
    grid-template-columns: 1fr;
  }
  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .wallet-badge {
    font-size: 11px;
    padding: 6px 10px;
  }
  .notice-card {
    padding: 14px;
    margin-bottom: 16px;
  }
}

/* ── Issue D: Tablet screener (768px) — hide sparkline ── */
@media (max-width: 768px) {
  .sc-th-spark,
  .sc-td-spark {
    display: none;
  }
}

/* ── Issue A: Mobile screener (480px and below) ── */
@media (max-width: 480px) {
  /* Hide star column on small mobile */
  .sc-th-star,
  .sc-td-star {
    display: none;
  }
  /* Tighten cell padding */
  .sc-th {
    padding: 10px 6px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .sc-td {
    padding: 8px 6px;
    font-size: 12px;
  }
  /* Rank column narrower */
  .sc-th-rank,
  .sc-td-rank {
    width: 32px;
    padding-left: 4px;
    padding-right: 2px;
  }
  /* Name column — truncate aggressively */
  .sc-collection-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  .sc-name-wrap {
    gap: 6px;
  }
  .sc-img-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
  /* Price column — compress */
  .sc-th-price {
    width: auto;
  }
  .sc-price-main {
    font-size: 12px;
  }
  .sc-price-usd {
    font-size: 10px;
  }
  .sc-chain-dot {
    width: 18px;
    height: 18px;
  }
  .sc-chain-dot svg {
    width: 16px;
    height: 16px;
  }
  /* Percentage column — tighten */
  .sc-th-pct {
    width: 60px;
  }
  .sc-pct-value {
    font-size: 11px;
  }
  /* Ensure mcap and sparkline stay hidden */
  .sc-th-mcap, .sc-td-mcap,
  .sc-th-spark, .sc-td-spark {
    display: none;
  }
  /* Screener panel overflow */
  .screener-panel {
    border-radius: 10px;
    overflow-x: auto;
  }
  .screener-tbl {
    min-width: 320px;
  }
  /* Screener top bar */
  .screener-top-bar {
    margin-bottom: 16px;
    gap: 10px;
  }
  .screener-search {
    padding: 8px 14px;
    font-size: 13px;
  }
  /* Filter chips scroll horizontally */
  .chain-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .chain-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
  .screener-filters {
    padding: 10px 12px;
    gap: 10px;
  }
  .filter-chips,
  .filter-presets {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .filter-chip,
  .preset-btn {
    flex-shrink: 0;
  }
  /* Pagination — compact */
  .sc-pagination {
    padding: 10px 8px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sc-pagination-info {
    font-size: 10px;
  }
  .sc-page-btn {
    padding: 4px 8px;
    min-width: 28px;
    font-size: 11px;
  }
}

/* ── Issue A+B: Extreme mobile (375px) ── */
@media (max-width: 375px) {
  .main-content {
    padding: 0 8px 24px;
  }
  .dashboard-header {
    padding: 16px 10px;
  }
  .greeting-title {
    font-size: 20px;
  }
  .sc-collection-name {
    max-width: 70px;
  }
  .sc-td {
    padding: 6px 4px;
  }
  .sc-th {
    padding: 8px 4px;
  }
  .sc-price-label {
    display: none;
  }
  .holdings-stat-value {
    font-size: 15px;
  }
  .holdings-stat-label {
    font-size: 10px;
  }
  .mc-stat-value {
    font-size: 16px;
  }
  .monitor-val {
    font-size: 22px;
  }
}

/* ── Issue C: Collection detail — chart & legend on mobile ── */
@media (max-width: 768px) {
  /* Chart title — reduce size to prevent 4-line wrap */
  .chart-container h2,
  .chart-container h3,
  .chart-container .section-heading {
    font-size: 16px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  /* Legend items — inline-flex for horizontal flow */
  .legend-item {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 3px 8px;
    gap: 4px;
  }
  .legend-dot {
    width: 6px;
    height: 6px;
    margin-right: 4px;
  }
  /* Tab controls — compact for mobile */
  .ew-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  .ew-tab {
    padding: 6px 4px;
    font-size: 11px;
    flex: 0 1 auto;
    min-width: 0;
  }
  /* MA values table — scroll if needed */
  .ma-values-table {
    overflow-x: auto;
    font-size: 12px;
  }
  /* Collection overview text clipping */
  .collection-overview,
  .tpl-col-explanation {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  /* Monitor card compact */
  .monitor-card {
    padding: 16px;
  }
  .monitor-val {
    font-size: 24px;
  }
}

/* ── Intelligence layout on mobile ── */
@media (max-width: 480px) {
  .tpl-layout {
    grid-template-columns: 1fr;
  }
  .tpl-sidebar-list {
    grid-template-columns: 1fr;
  }
  .tpl-panel-header {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .tpl-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
  .tpl-table thead th {
    padding: 10px 12px;
    font-size: 9px;
  }
  .tpl-results-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tpl-pagination {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  /* Backtester compact */
  .bt-trade-row {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 11px;
  }
}

/* --- 768px additions: grid collapses for new classes --- */
@media (max-width: 768px) {
  .dash-holdings-grid { grid-template-columns: 1fr; }
  .dash-intel-grid { grid-template-columns: 1fr; }
  .chart-overview-grid { grid-template-columns: 1fr 1fr; }
  .chart-stability-grid { grid-template-columns: 1fr; }
  .chart-signal-grid { grid-template-columns: 1fr; }
  .mc-top-row { grid-template-columns: 1fr; }
  .pred-two-col { grid-template-columns: 1fr; }
  .bt-layout { grid-template-columns: 1fr; }
  .bt-layout .bt-panel { position: static !important; }
}

/* --- 480px: Phone --- */
@media (max-width: 480px) {
  /* Landing page */
  .navbar-wrapper { padding: 12px 16px; }
  .nav-links { display: none; }
  .hero-section { padding: 60px 16px 0; }
  .hero-headline { font-size: 32px; }
  .hero-subtext { font-size: 15px; margin-bottom: 24px; }
  .hero-cta-row { flex-direction: column; gap: 12px; align-items: center; }
  .hero-cta-row .btn-volt,
  .hero-cta-row .btn-ghost { width: 100%; text-align: center; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 20px; }
  .stats-ribbon { padding: 40px 0; }
  .stat-value-row { font-size: 22px; }
  .features-section { padding: 48px 16px; }
  .artifacts-grid { gap: 16px; }
  .artifact-card { min-height: auto; padding: 20px; border-radius: 16px; }
  .protocol-grid, .protocol-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .protocol-section { padding: 48px 16px; }
  .protocol-card-h { padding: 24px; }
  .chains-carousel-section { padding: 40px 16px; }
  /* Responsive orbs: shrink on mobile to avoid overflow */
  .void-orb-cyan { width: 300px; height: 300px; top: -50px; left: -80px; }
  .void-orb-purple { width: 400px; height: 400px; bottom: -100px; right: -80px; }
  .footer { padding: 40px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .f-tagline { max-width: 100%; }

  /* Dashboard */
  .mobile-nav-toggle { top: 8px; left: 8px; }
  .ticker-bar { height: auto; min-height: var(--ticker-h); }
  .ticker-pair { font-size: 12px; margin-right: 16px; }
  .ticker-icon { width: 12px; height: 12px; }

  /* Chart page */
  .chart-overview-grid { grid-template-columns: 1fr; }
  .chart-controls-bar { flex-wrap: wrap; gap: 8px; }
  #chart-container { height: 300px !important; }
  .chart-tooltip { max-width: calc(100vw - 32px); font-size: 12px; padding: 8px 10px; }

  /* My Collections */
  .mc-panel { padding: 14px; border-radius: 12px; }
  .mc-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mc-pnl-row { font-size: 11px; }
  .mc-cards-grid { grid-template-columns: 1fr; }
  .mc-card { padding: 12px; }

  /* Predictions */
  .pred-heatmap-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important; gap: 3px; }
  .pred-heatmap-cell { min-height: 44px; padding: 6px 3px; }
  .pred-heatmap-name { font-size: 9px; }
  .pred-heatmap-score { font-size: 11px; }
  .pred-chip { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 12px; }
  .pred-gauge-arc { width: 140px; height: 70px; }
  .pred-gauge-needle { height: 55px; }
  .pred-gauge-label { font-size: 18px; }
  .pred-regime-stats { gap: 12px; }
  .pred-clusters-grid { grid-template-columns: 1fr; }

  /* Backtester */
  .bt-input { font-size: 16px; }
  .bt-run-btn { min-height: 48px; font-size: 15px; }
  .bt-strategy-card { padding: 14px; }

  /* Templates */
  .tpl-sidebar-btn { min-height: 44px; padding: 10px 12px; }

  /* Global touch targets */
  button, .btn-volt, .btn-ghost, .sidebar-link { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
  .main-wrapper { overflow-x: hidden; }
  .main-content { overflow-x: hidden; }
  .table-container { -webkit-overflow-scrolling: touch; }

  /* Screener */
  .sc-page-btn { min-width: 44px; min-height: 44px; }
  .chain-chip { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- 375px: Small phone --- */
@media (max-width: 375px) {
  .void-orb-cyan { width: 200px; height: 200px; top: -40px; left: -60px; filter: blur(80px); }
  .void-orb-purple { width: 260px; height: 260px; bottom: -60px; right: -60px; filter: blur(80px); }
  .hero-headline { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-value-row { font-size: 20px; }
  .features-section { padding: 32px 12px; }
  .protocol-section { padding: 32px 12px; }

  /* Chart */
  #chart-container { height: 260px !important; }

  /* My Collections */
  .mc-stat-value { font-size: 14px; }
  .mc-stat-label { font-size: 9px; }

  /* Screener extras */
  .sc-td-rank, .sc-th-rank { display: none; }
  .sc-price-usd { display: none; }
  .sc-name-wrap { gap: 4px; }
  .sc-img-box { width: 24px; height: 24px; }

  /* Templates */
  .tpl-table td { padding: 8px; font-size: 11px; }
  .tpl-table thead th { padding: 8px; font-size: 8px; }
}

/* --- 320px: Smallest phones --- */
@media (max-width: 320px) {
  .sc-collection-name { max-width: 55px; font-size: 11px; }
  .sc-td { padding: 6px 2px; font-size: 11px; }
  .sc-th { padding: 6px 2px; font-size: 8px; }
  .sc-price-main { font-size: 11px; }
  .screener-search { font-size: 12px; padding: 6px 10px; }
  .dashboard-header { padding: 12px 6px; }
  .greeting-title { font-size: 18px; }
  .greeting-subtitle { font-size: 11px; }
}
