/* ═══════════════════════════════════════════════════════════════════
   CoinLab — Modern Design System v3
   Professional crypto platform UI
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
  --bg-base: #06080f;
  --bg-surface: #0c1120;
  --bg-elevated: #111827;
  --bg-card: #141c2e;
  --bg-card-hover: #1a2540;
  --bg-input: #0f172a;
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --gradient-primary: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #a5b4fc;
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-default: rgba(148, 163, 184, 0.15);
  --border-accent: rgba(99, 102, 241, 0.4);
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --max-width: 1280px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.25);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Accessibility ──────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10000;
  background: var(--accent-1); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-md); font-weight: 600;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus-visible { top: 16px; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent-1); outline-offset: 2px;
}


/* ═══════ SPLASH SCREEN ═══════ */
.splash {
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center;
  background: radial-gradient(ellipse 800px 600px at 50% 40%, rgba(99,102,241,0.12), transparent 70%), var(--bg-base);
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.splash.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }

.splash-logo { display: flex; flex-direction: column; align-items: center; gap: 20px; animation: splashEntry 0.5s var(--ease-out) both; }

.splash-icon { width: 80px; height: 80px; animation: splashFloat 3s ease-in-out infinite, splashPulse 2s ease-in-out infinite; }

.splash-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
.splash-title span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.splash-loader { width: 200px; height: 3px; background: rgba(255,255,255,0.06); border-radius: var(--radius-full); overflow: hidden; animation: splashEntry 0.5s 0.1s var(--ease-out) both; }
.splash-progress { height: 100%; width: 0; background: var(--gradient-primary); border-radius: inherit; animation: splashLoad 1s 0.2s var(--ease-out) forwards; }

.splash-text { font-size: 0.875rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; animation: splashEntry 0.5s 0.2s var(--ease-out) both; }

@keyframes splashEntry { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes splashFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-6px) rotate(3deg); } 75% { transform: translateY(4px) rotate(-3deg); } }
@keyframes splashPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes splashLoad { 0% { width: 0; } 40% { width: 45%; } 70% { width: 72%; } 100% { width: 100%; } }


/* ═══════ NAVBAR ═══════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5000;
  padding: 0 24px;
  background: rgba(6, 8, 15, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { background: rgba(6, 8, 15, 0.95); box-shadow: var(--shadow-sm); }

.navbar-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { width: 32px; height: 32px; }
.nav-brand-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.nav-brand-text span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-center { display: flex; gap: 8px; }
.nav-link { padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-btn-ghost {
  padding: 8px 18px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); background: transparent;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-btn-ghost:hover { color: var(--text-primary); border-color: var(--border-accent); background: rgba(99,102,241,0.08); }

.nav-btn-primary {
  padding: 8px 20px; font-size: 0.875rem; font-weight: 600;
  color: #fff; background: var(--gradient-primary); border: none;
  border-radius: var(--radius-sm); transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.nav-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }

.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all 0.3s var(--ease-out); }
.nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-center { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }
  .navbar-inner.mobile-open .nav-center,
  .navbar-inner.mobile-open .nav-actions { display: flex; }
  .navbar-inner.mobile-open { flex-wrap: wrap; height: auto; padding-bottom: 16px; }
  .navbar-inner.mobile-open .nav-center { order: 3; width: 100%; flex-direction: column; gap: 4px; margin-top: 12px; }
  .navbar-inner.mobile-open .nav-actions { order: 4; width: 100%; margin-top: 8px; }
}


/* ═══════ HERO SECTION ═══════ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 100px 24px 80px; overflow: hidden; background: transparent;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero::before { width: 600px; height: 600px; top: -200px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%); }
.hero::after { width: 400px; height: 400px; bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 70%); }

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border-accent); border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08); font-size: 0.8rem; font-weight: 500; color: var(--text-accent);
  margin-bottom: 24px; animation: fadeInUp 0.8s var(--ease-out) both;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); box-shadow: 0 0 12px var(--accent-1); animation: dotPulse 2s ease-in-out infinite; }

.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 24px; animation: fadeInUp 0.8s 0.15s var(--ease-out) both; }
.hero h1 .gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-subtitle { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; animation: fadeInUp 0.8s 0.3s var(--ease-out) both; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; animation: fadeInUp 0.8s 0.45s var(--ease-out) both; }

.btn-hero-primary {
  padding: 14px 32px; font-size: 1rem; font-weight: 600; color: #fff;
  background: var(--gradient-primary); border: none; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.3s;
}
.btn-hero-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 32px rgba(99,102,241,0.35); }
.btn-hero-primary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-hero-primary:hover svg { transform: translateX(3px); }

.btn-hero-secondary {
  padding: 14px 28px; font-size: 1rem; font-weight: 500; color: var(--text-secondary);
  background: transparent; border: 1px solid var(--border-default); border-radius: var(--radius-md);
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-hero-secondary:hover { color: var(--text-primary); border-color: var(--border-accent); background: rgba(99,102,241,0.06); }

.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; animation: fadeInUp 0.8s 0.6s var(--ease-out) both; }
.hero-metric { padding: 20px; background: var(--gradient-surface), var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); backdrop-filter: blur(8px); }
.hero-metric-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-metric-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-1); opacity: 0.3; animation: particleFloat 8s ease-in-out infinite; }
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 80%; top: 30%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { left: 25%; top: 70%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { left: 70%; top: 80%; animation-delay: 3s; animation-duration: 8s; }
.particle:nth-child(5) { left: 50%; top: 15%; animation-delay: 4s; animation-duration: 10s; }
.particle:nth-child(6) { left: 90%; top: 60%; animation-delay: 1.5s; animation-duration: 7.5s; }


/* ═══════ TRUST STRIP ═══════ */
.trust-section { padding: 40px 24px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.trust-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: transparent; border: none; }
.trust-icon { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(99,102,241,0.08); border-radius: var(--radius-md); color: var(--accent-1); }
.trust-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }


/* ═══════ FEATURES SECTION ═══════ */
.features-section { padding: 96px 24px; position: relative; }
.features-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%); pointer-events: none; }

.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-overline { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  position: relative; padding: 32px;
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s; overflow: hidden;
}
.feature-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient-primary); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-accent); }
.feature-card:hover::before { opacity: 0.03; }

.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-md); background: rgba(99,102,241,0.1); color: var(--accent-1); margin-bottom: 20px; position: relative; z-index: 1; }
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1; color: var(--text-primary); }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; position: relative; z-index: 1; }


/* ═══════ STATS ROW ═══════ */
.stats-section { padding: 64px 24px; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.stats-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 24px; }
.stat-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }


/* ═══════ MARKET PREVIEW ═══════ */
.market-section { padding: 96px 24px; }

.price-grid { background: transparent; padding: 0; border-radius: 0; margin-top: 0; }

.price-container {
  min-height: 120px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}

.price-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 28, 46, 0.9) 0%, rgba(12, 17, 32, 0.95) 100%);
  border: 1px solid var(--border-subtle); color: var(--text-primary);
  padding: 0; border-radius: var(--radius-xl); box-shadow: none;
  text-align: left; cursor: pointer; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.price-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.04));
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.price-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(99,102,241,0.15), 0 4px 12px rgba(0,0,0,0.3);
  border-color: var(--border-accent);
}
.price-card:hover::before { opacity: 1; }

/* ── Card Header Row ── */
.card-header-row {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px 0; position: relative; z-index: 1;
}
.price-card img {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(99,102,241,0.1); flex-shrink: 0;
  border: 2px solid rgba(99,102,241,0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.price-card:hover img {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 16px rgba(99,102,241,0.25);
}
.card-info-col {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
.coin-symbol {
  font-weight: 800; font-size: 1.05rem; color: var(--text-primary);
  letter-spacing: -0.01em;
}
.coin-pair {
  font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
  letter-spacing: 0.03em; text-transform: uppercase;
}

/* ── Change Badge ── */
.coin-change {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em; flex-shrink: 0;
  transition: transform 0.2s;
}
.coin-change:hover { transform: scale(1.08); }
.coin-change.up {
  background: rgba(34,197,94,0.12); color: #4ade80;
  box-shadow: inset 0 0 0 1px rgba(34,197,94,0.2);
}
.coin-change.down {
  background: rgba(239,68,68,0.12); color: #f87171;
  box-shadow: inset 0 0 0 1px rgba(239,68,68,0.2);
}
.coin-change.neutral {
  background: rgba(148,163,184,0.1); color: var(--text-muted);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.15);
}
.coin-change svg { width: 10px; height: 10px; }

/* ── Sparkline ── */
.spark-wrap {
  position: relative; padding: 0 4px; z-index: 1;
  margin-top: 4px;
}
.spark {
  width: 100%; height: 52px; display: block;
}

/* ── Price Row ── */
.card-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 20px 16px; position: relative; z-index: 1;
}
.coin-price {
  font-size: 1.15rem; font-weight: 700; color: var(--text-primary);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  transition: color 0.3s;
}

/* ── Mini variant ── */
.mini-card .card-header-row { padding: 14px 16px 0; }
.mini-card img { width: 34px; height: 34px; }
.mini-card .coin-symbol { font-size: 0.92rem; }
.mini-card .spark { height: 40px; }
.mini-card .card-price-row { padding: 0 16px 12px; }
.mini-card .coin-price { font-size: 1rem; }

.hidden-card { display: none !important; }
.show-more-btn { margin-top: 20px; }


/* ═══════ LANDING DASHBOARD ═══════ */
.landing-dashboard { padding: 0 24px 64px; }

.landing-top-row {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-bottom: 40px;
}

.landing-market-col { min-width: 0; }
.landing-side-col { display: flex; flex-direction: column; gap: 20px; }

/* ── Section Divider ── */
.section-divider {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px; padding: 0 4px;
}
.divider-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(99,102,241,0.1); color: var(--accent-1);
  font-size: 1rem; flex-shrink: 0;
}
.divider-icon svg { width: 18px; height: 18px; }
.divider-text {
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
.divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--border-subtle), transparent);
}

/* ── Landing Card Wrap ── */
.landing-card-wrap {
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: 24px; height: 100%;
}

.landing-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.landing-card-header h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin: 0;
}
.landing-card-header h2 svg { width: 20px; height: 20px; color: var(--accent-1); }

.btn-outline-sm {
  padding: 6px 16px; font-size: 0.78rem; font-weight: 600;
  border: 1px solid var(--border-default); border-radius: var(--radius-full);
  background: transparent; color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-outline-sm:hover {
  background: rgba(99,102,241,0.08); border-color: var(--accent-1);
  color: var(--accent-1);
}

.landing-section-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.landing-section-header h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; color: var(--text-primary);
}
.landing-section-header h2 svg { width: 22px; height: 22px; color: var(--accent-1); }

.btn-sm { padding: 6px 16px !important; font-size: 0.8rem !important; }


/* ── Sentiment Widget (landing) ── */
.landing-sentiment-card {
  padding: 28px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  text-align: center; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px;
}
.landing-sentiment-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }

.sentiment-gauge { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sentiment-circle {
  width: 130px; height: 130px; border-radius: 50%;
  background: conic-gradient(var(--color) calc(var(--score) * 1%), rgba(255,255,255,0.06) 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(255,71,87,0.15);
}
.sentiment-circle::before {
  content: ''; position: absolute; inset: 12px; border-radius: 50%;
  background: var(--bg-card);
}
.sentiment-emoji { position: relative; z-index: 1; font-size: 1.8rem; }
.sentiment-value { position: relative; z-index: 1; font-size: 1.4rem; font-weight: 800; }
.sentiment-label { font-size: 1rem; font-weight: 700; }
.sentiment-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ── Sentiment Bar ── */
.sentiment-bar-wrap { width: 100%; max-width: 200px; margin-top: 16px; }
.sentiment-bar {
  position: relative; width: 100%; height: 6px;
  border-radius: 3px; background: rgba(255,255,255,0.06);
  overflow: visible;
}
.sentiment-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.6s ease;
}
.sentiment-bar-marker {
  position: absolute; top: -3px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 2px solid var(--bg-card);
  box-shadow: 0 0 8px rgba(255,71,87,0.5);
  transform: translateX(-50%);
  transition: left 0.6s ease;
}
.sentiment-bar-labels {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 0.65rem; color: var(--text-muted);
}


/* ── Tags Widget (landing) ── */
.landing-tags-card {
  padding: 24px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  margin-bottom: 32px;
}
.landing-tags-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }

.landing-tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.landing-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
  color: var(--text-accent); font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s;
}
.landing-tag:hover { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.3); }
.landing-tag.hot { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #f87171; }
.landing-tag-count { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }


/* ── Feed (landing all posts) ── */
.landing-feed-section { margin-bottom: 40px; }

.landing-feed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px;
}

.landing-post-card {
  padding: 22px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  cursor: pointer; transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
  display: flex; flex-direction: column; gap: 12px;
}
.landing-post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-accent); }

.landing-post-header {
  display: flex; align-items: center; gap: 10px;
}
.landing-post-user { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.landing-post-role { font-size: 0.72rem; color: var(--text-accent); margin-left: 4px; }
.landing-post-channel {
  margin-left: auto; font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  background: rgba(99,102,241,0.08); padding: 3px 10px; border-radius: var(--radius-full);
}

.landing-post-title { font-size: 0.98rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.landing-post-body { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; flex: 1; }

.landing-post-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-subtle);
}
.landing-post-tag { font-size: 0.75rem; font-weight: 600; color: var(--text-accent); background: rgba(99,102,241,0.12); padding: 2px 8px; border-radius: var(--radius-full); }
.landing-post-stats { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }


/* ═══════ NEWS SECTION (community page) ═══════ */
.community-news-section { padding: 0 0 40px; }

.news-section-card {
  padding: 24px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
}
.news-section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.news-section-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.news-section-badge {
  padding: 4px 12px; border-radius: var(--radius-full);
  background: rgba(34,197,94,0.1); color: #4ade80;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  border: 1px solid rgba(34,197,94,0.2);
  animation: dotPulse 2s infinite;
}

.news-section-list { display: flex; flex-direction: column; gap: 2px; }

.news-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: var(--radius-md);
  text-decoration: none; color: inherit;
  transition: background 0.2s;
}
.news-item:hover { background: rgba(255,255,255,0.03); }

.news-item-img {
  width: 64px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--bg-input);
}
.news-item-content { flex: 1; min-width: 0; }
.news-item-title {
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2;
}
.news-item-meta { display: flex; align-items: center; gap: 12px; }
.news-item-source { font-size: 0.75rem; color: var(--accent-1); font-weight: 600; }
.news-item-time { font-size: 0.72rem; color: var(--text-muted); }


/* ═══════ NEWS PAGE (dedicated) ═══════ */
.news-page-section { padding: 0 0 64px; }
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.news-page-loading {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 16px; padding: 40px;
}
.news-page-card {
  display: flex; flex-direction: column;
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.news-page-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-1);
  box-shadow: 0 12px 32px rgba(99,102,241,0.12);
}
.news-page-card-img {
  width: 100%; height: 200px;
  object-fit: cover; background: var(--bg-input);
}
.news-page-card-img-placeholder {
  width: 100%; height: 200px;
  display: grid; place-items: center;
  font-size: 3rem; background: var(--bg-input);
}
.news-page-card-content {
  padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.news-page-card-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
  line-height: 1.45; margin: 0;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  line-clamp: 3;
}
.news-page-card-body {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; margin: 0;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2;
}
.news-page-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.news-page-card-source { font-size: 0.78rem; color: var(--accent-1); font-weight: 600; }
.news-page-card-time { font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .news-page-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-page-card-img, .news-page-card-img-placeholder { height: 160px; }
}


/* ═══════ COMMUNITY PREVIEW ═══════ */
.community-section { padding: 96px 24px; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }


/* ═══════ CTA SECTION ═══════ */
.cta-section { padding: 96px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 400px at 50% 50%, rgba(99,102,241,0.15), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-section p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 32px; }


/* ═══════ FOOTER ═══════ */
.site-footer { padding: 48px 24px 32px; border-top: 1px solid var(--border-subtle); background: var(--bg-base); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--text-secondary); }
.footer-brand span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-vercel-link { color: var(--accent-1) !important; font-weight: 600; }
.footer-vercel-link:hover { color: var(--accent-3) !important; text-decoration: underline; }
.footer-copy { width: 100%; text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }


/* ═══════ AUTH MODAL ═══════ */
.auth-modal { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; padding: 16px; }
.auth-modal[hidden] { display: none; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); }

.auth-dialog {
  position: relative; width: min(440px, 100%);
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 32px;
  animation: modalEntry 0.4s var(--ease-out); box-shadow: var(--shadow-lg);
}

.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo-mini { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(99,102,241,0.1); border-radius: var(--radius-md); margin-bottom: 16px; }
.auth-header h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); }

.auth-error { color: var(--error); min-height: 1.2em; margin-bottom: 8px; font-size: 0.875rem; text-align: center; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; z-index: 1; }

.form-field input {
  width: 100%; padding: 12px 14px 12px 44px;
  background: var(--bg-input); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder { color: var(--text-muted); }
.form-field input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); outline: none; }
.form-field input.invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

.auth-submit-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; font-size: 0.95rem; font-weight: 600; color: #fff;
  background: var(--gradient-primary); border: none; border-radius: var(--radius-md);
  margin-top: 8px; transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.auth-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.auth-submit-arrow { transition: transform 0.2s; }
.auth-submit-btn:hover .auth-submit-arrow { transform: translateX(3px); }

.auth-footer { text-align: center; margin-top: 20px; }
.auth-switch { font-size: 0.85rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent-1); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-close-btn {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  padding: 6px; border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s;
}
.auth-close-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

@keyframes modalEntry { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }


/* ═══════ TOAST ═══════ */
.toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; }

.toast {
  min-width: 240px; max-width: 360px; border-radius: var(--radius-md);
  border: 1px solid var(--border-default); padding: 12px 16px;
  background: rgba(17, 24, 39, 0.96); backdrop-filter: blur(12px);
  color: var(--text-primary); font-size: 0.875rem;
  opacity: 0; transform: translateY(8px) scale(0.95); transition: all 0.25s var(--ease-out);
}
.toast.visible { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { border-color: rgba(34, 197, 94, 0.4); }
.toast-error { border-color: rgba(239, 68, 68, 0.4); }
.toast-info { border-color: rgba(59, 130, 246, 0.4); }


/* ═══════ SKELETON ═══════ */
.skeleton-line {
  list-style: none; height: 12px; margin: 10px 0; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 37%, var(--bg-card) 63%);
  background-size: 400% 100%; animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
@keyframes skeleton-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }


/* ═══════ DASHBOARD ═══════ */
.dashboard-header {
  background: var(--gradient-surface), var(--bg-card); border: 1px solid var(--border-subtle);
  padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-radius: var(--radius-xl); margin-bottom: 24px;
}
.dash-header-left { display: flex; align-items: center; gap: 16px; }
.dash-avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient-primary); color: #fff; font-size: 1.2rem; font-weight: 800;
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.dash-header-info h2 { margin: 0; color: var(--text-primary); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700; }
.dash-header-info h2 .gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dash-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.dash-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-market-section { margin-top: 32px; }

.dash-nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border-default); border-radius: var(--radius-full);
  background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.dash-nav-btn svg { width: 14px; height: 14px; }
.dash-nav-btn:hover { border-color: var(--border-accent); color: var(--text-primary); background: rgba(99,102,241,0.06); }
.dash-nav-btn.active { background: rgba(99,102,241,0.12); border-color: var(--accent-1); color: var(--accent-1); font-weight: 600; }

.dashboard-header h2 { margin: 0; color: var(--text-primary); font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 700; }

.pro-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-full);
  border: 1px solid rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.08);
  color: #86efac; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
}
.pro-badge svg { width: 14px; height: 14px; }

.btn-secondary {
  padding: 8px 18px; border: 1px solid var(--border-default); background: transparent;
  color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 0.875rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary svg { width: 14px; height: 14px; }
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--border-accent); color: var(--text-primary); }

/* ── Quick Stats ── */
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.quick-stat-card {
  padding: 18px 20px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 14px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, border-color 0.2s;
}
.quick-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-accent); }
.stat-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: rgba(99,102,241,0.1); color: var(--accent-1); flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon-purple { background: rgba(139,92,246,0.1); color: #a78bfa; }
.stat-icon-cyan { background: rgba(6,182,212,0.1); color: #22d3ee; }
.stat-icon-green { background: rgba(34,197,94,0.1); color: #4ade80; }
.stat-content { display: flex; flex-direction: column; gap: 2px; }
.quick-stat-card strong { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.quick-stat-card span { font-size: 1.05rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Movers Bar (Gainers/Losers) ── */
.dash-movers-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: 20px 24px; margin-bottom: 24px;
}
.dash-movers-divider {
  width: 1px; background: var(--border-subtle); margin: 0 24px;
}
.dash-movers-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.dash-movers-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.dash-movers-dot.green { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.4); }
.dash-movers-dot.red { background: #f87171; box-shadow: 0 0 8px rgba(248,113,113,0.4); }
.dash-movers-list { display: flex; flex-direction: column; gap: 8px; }
.dash-mover-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
}
.dash-mover-item:hover { background: rgba(255,255,255,0.04); }
.dash-mover-sym {
  font-size: 0.88rem; font-weight: 700; color: var(--text-primary);
  min-width: 50px;
}
.dash-mover-price {
  font-size: 0.82rem; color: var(--text-secondary); flex: 1;
  font-variant-numeric: tabular-nums;
}
.dash-mover-pct {
  font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: var(--radius-full);
}
.dash-mover-pct.green { color: #4ade80; background: rgba(34,197,94,0.1); }
.dash-mover-pct.red { color: #f87171; background: rgba(239,68,68,0.1); }

/* ── Dashboard Grid ── */
.dash-grid-main {
  display: grid; grid-template-columns: 1fr 380px; gap: 24px;
}
.dash-col-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dash-col-right { display: flex; flex-direction: column; gap: 20px; }

.dash-card {
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: 24px; transition: border-color 0.2s;
}
.dash-card:hover { border-color: var(--border-accent); }
.dash-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
}
.dash-card-head h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0;
}
.dash-card-head h3 svg { width: 20px; height: 20px; color: var(--accent-1); }
.dash-live-dot {
  font-size: 0.72rem; font-weight: 600; color: #4ade80; letter-spacing: 0.04em;
  animation: dotPulse 2s infinite;
}

/* ── Dashboard News ── */
.dash-news-list { display: flex; flex-direction: column; gap: 2px; }
.dash-news-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--radius-md);
  text-decoration: none; color: inherit; transition: background 0.2s;
}
.dash-news-item:hover { background: rgba(255,255,255,0.03); }
.dash-news-img {
  width: 64px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--bg-input);
}
.dash-news-img-placeholder {
  width: 64px; height: 48px; border-radius: var(--radius-sm);
  background: var(--bg-input); display: grid; place-items: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.dash-news-content { flex: 1; min-width: 0; }
.dash-news-title {
  font-size: 0.88rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2;
}
.dash-news-meta { display: flex; align-items: center; gap: 10px; }
.dash-news-source { font-size: 0.72rem; color: var(--accent-1); font-weight: 600; }
.dash-news-time { font-size: 0.7rem; color: var(--text-muted); }

/* ── Dashboard Portfolio ── */
.dash-portfolio-content { display: flex; flex-direction: column; gap: 16px; }
.dash-portfolio-total {
  text-align: center; padding: 16px;
  background: rgba(99,102,241,0.04); border-radius: var(--radius-lg);
  border: 1px dashed rgba(99,102,241,0.15);
}
.dash-portfolio-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.dash-portfolio-value {
  display: block; font-size: 1.3rem; font-weight: 800;
  background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dash-portfolio-change {
  display: inline-block; font-size: 0.72rem; font-weight: 600; margin-top: 4px;
  padding: 2px 8px; border-radius: var(--radius-full);
}
.dash-portfolio-change.up { color: #4ade80; background: rgba(34,197,94,0.08); }
.dash-portfolio-change.down { color: #f87171; background: rgba(239,68,68,0.08); }

.dash-portfolio-coins { display: flex; flex-direction: column; gap: 8px; }
.dash-portfolio-coin {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02); transition: background 0.2s;
}
.dash-portfolio-coin:hover { background: rgba(255,255,255,0.04); }
.dash-portfolio-coin img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.2); flex-shrink: 0;
}
.dash-portfolio-coin-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.dash-portfolio-coin-info strong { font-size: 0.88rem; color: var(--text-primary); }
.dash-portfolio-coin-info span { font-size: 0.82rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dash-portfolio-coin-change {
  font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: var(--radius-full);
}
.dash-portfolio-coin-change.up { color: #4ade80; background: rgba(34,197,94,0.1); }
.dash-portfolio-coin-change.down { color: #f87171; background: rgba(239,68,68,0.1); }

/* ── Dashboard Feed ── */
.dash-feed-list { display: flex; flex-direction: column; gap: 4px; }
.dash-feed-item {
  display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md);
  cursor: pointer; transition: background 0.2s;
}
.dash-feed-item:hover { background: rgba(255,255,255,0.03); }
.dash-feed-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient-primary); color: #fff; font-size: 0.78rem; font-weight: 700;
  flex-shrink: 0;
}
.dash-feed-body { flex: 1; min-width: 0; }
.dash-feed-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dash-feed-meta strong { font-size: 0.82rem; color: var(--text-primary); }
.dash-feed-channel {
  font-size: 0.68rem; font-weight: 600; color: var(--text-muted);
  background: rgba(99,102,241,0.08); padding: 1px 6px; border-radius: var(--radius-full);
}
.dash-feed-text {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-feed-stats {
  display: flex; gap: 10px; margin-top: 4px;
  font-size: 0.7rem; color: var(--text-muted);
}

.modern-main { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }


/* ═══════ CARDS ═══════ */
.card {
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: none; transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-accent); }
.card h3 { margin-bottom: 10px; color: var(--text-primary); font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3 svg { width: 18px; height: 18px; color: var(--accent-1); flex-shrink: 0; }


/* ═══════ NEWS ═══════ */
.news-list { list-style: none; padding: 0; }
.news-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); line-height: 1.6; }
.news-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-list a { color: var(--text-accent); text-decoration: none; transition: color 0.2s; }
.news-list a:hover { color: var(--accent-1); }


/* ═══════ COMMUNITY / FEED ═══════ */
.community { display: flex; flex-direction: column; gap: 16px; }
.community-subtitle { margin: 4px 0 12px; color: var(--text-secondary); font-size: 0.9rem; }

.group-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.group-list button {
  padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--border-default);
  background: transparent; color: var(--text-secondary); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.group-list button.active { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.group-list button:hover:not(.active) { border-color: var(--border-accent); color: var(--text-primary); }

.post-input { display: grid; gap: 10px; }
.post-input input, .post-input select, .post-input textarea, .comment-input {
  width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-default);
  background: var(--bg-input); color: var(--text-primary); padding: 10px 14px; font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-input input:focus, .post-input textarea:focus, .comment-input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); outline: none; }
.post-input select { max-width: 200px; }
.post-input textarea { min-height: 72px; resize: vertical; }

.posts { display: grid; gap: 14px; }

.post {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  background: var(--gradient-surface), rgba(20, 28, 46, 0.6); padding: 16px; transition: border-color 0.2s;
}
.post:hover { border-color: var(--border-accent); }
.post.flagged { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.04); }

.post-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.post-user-meta { display: flex; gap: 10px; align-items: center; }
.post-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--gradient-primary); color: #fff; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.post-role { font-size: 0.75rem; color: var(--text-accent); }
.post-time { font-size: 0.72rem; color: var(--text-muted); }
.post-title { margin: 10px 0 6px; color: var(--text-primary); font-size: 1.02rem; font-weight: 600; }
.post-body { color: var(--text-secondary); line-height: 1.7; font-size: 0.9rem; }
.post-metrics { margin-top: 10px; font-size: 0.78rem; color: var(--text-muted); }

.post-tag { display: inline-block; background: rgba(99,102,241,0.15); color: var(--text-accent); font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); }

.post-actions { display: flex; gap: 8px; margin: 10px 0; }
.post-actions button, .comment-submit {
  padding: 6px 14px; border: 1px solid var(--border-default); background: transparent;
  color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
}
.post-actions button:hover, .comment-submit:hover { background: rgba(99,102,241,0.08); border-color: var(--border-accent); color: var(--text-primary); }

.like-btn.liked { border-color: rgba(34, 197, 94, 0.4); color: #86efac; background: rgba(34, 197, 94, 0.06); }

.post-comments { border-top: 1px solid var(--border-subtle); margin-top: 12px; padding-top: 12px; display: grid; gap: 8px; }
.comment-item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: rgba(15, 23, 42, 0.5); padding: 10px 12px; color: var(--text-secondary); font-size: 0.88rem; }
.comment-empty { color: var(--text-muted); font-size: 0.85rem; }
.comment-box { margin-top: 10px; display: flex; gap: 8px; }

.post-controls { display: inline-flex; gap: 6px; font-size: 0.78rem; margin-top: 8px; }
.post-controls button { padding: 4px 10px; border: 1px solid var(--border-default); background: transparent; color: var(--text-muted); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.78rem; transition: all 0.2s; }
.post-controls button:hover { background: rgba(99,102,241,0.08); color: var(--text-primary); }

.report-btn, .unflag-btn { background: transparent; color: var(--error); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: var(--radius-sm); padding: 4px 10px; cursor: pointer; font-size: 0.78rem; transition: all 0.2s; }
.report-btn:hover, .unflag-btn:hover { background: rgba(239, 68, 68, 0.1); }

.edit-input { width: 100%; min-height: 60px; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 10px 12px; font-size: 0.9rem; margin-top: 8px; resize: vertical; }
.edit-input:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.empty-state { text-align: center; padding: 32px 16px; color: var(--text-muted); }
.empty-state p:first-child { font-size: 1rem; margin-bottom: 6px; }


/* ═══════ TAG STATS / SENTIMENT / GEO ═══════ */
.tag-stats { background: var(--bg-card); color: var(--text-primary); border-radius: var(--radius-lg); padding: 16px 20px; border: 1px solid var(--border-subtle); }
.tag-stats h3 { margin-bottom: 10px; font-size: 1rem; font-weight: 700; }
.tag-stats ul { list-style: none; padding: 0; margin: 0; }
.tag-stats li { margin: 6px 0; font-size: 0.88rem; color: var(--text-secondary); }
.tag-stats li.hot::after { content: " 🔥"; }

.sentiment-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 16px 20px; margin: 0; border: 1px solid var(--border-subtle); border-left: 4px solid var(--accent-1); color: var(--text-secondary); }

/* ── Dashboard Sentiment Widget ── */
.dash-card-sentiment { padding: 24px; }
.dash-sentiment-body {
  display: flex; align-items: center; gap: 24px;
}
.dash-sentiment-circle {
  width: 90px; height: 90px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--color) calc(var(--score) * 1%), rgba(255,255,255,0.06) 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.dash-sentiment-circle::before {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--bg-card);
}
.dash-sentiment-emoji { position: relative; z-index: 1; font-size: 1.3rem; }
.dash-sentiment-score {
  position: relative; z-index: 1; font-size: 1.1rem; font-weight: 800;
}
.dash-sentiment-info { flex: 1; }
.dash-sentiment-label { font-size: 1rem; font-weight: 700; display: block; margin-bottom: 10px; }
.dash-sentiment-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.dash-sentiment-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.dash-sentiment-bar-labels {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 0.65rem; color: var(--text-muted);
}

.geo-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 16px 20px; border: 1px solid var(--border-subtle); color: var(--text-primary); }
.geo-card a { color: var(--accent-1); text-decoration: none; }
.geo-card a:hover { text-decoration: underline; }


/* ═══════ PROFILE ═══════ */
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-primary); color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.user-role { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }


/* ═══════ CHART OVERLAY ═══════ */
.chart-overlay { position: fixed; inset: 0; z-index: 7000; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.chart-container { width: min(1000px, 95vw); height: min(600px, 80vh); background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.chart-container iframe { width: 100%; height: calc(100% - 48px); border: none; }
.chart-close { position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,0.08); border: 1px solid var(--border-default); color: var(--text-secondary); padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; z-index: 1; }
.chart-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }


/* ═══════ ACTIVE NAV LINK ═══════ */
.nav-link.active { color: var(--accent-1); background: rgba(99,102,241,0.1); }


/* ═══════ PAGE HERO (dedicated pages) ═══════ */
.page-main { padding-top: 88px; padding-bottom: 0; }

.page-hero {
  padding: 40px 0 48px; position: relative;
}
.page-hero::before {
  content: ''; position: absolute; top: -88px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(99,102,241,0.1), transparent 70%); pointer-events: none;
}

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); background: transparent;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s; margin-bottom: 24px;
}
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { color: var(--text-primary); border-color: var(--border-accent); background: rgba(99,102,241,0.06); }


/* ═══════ FEATURES DETAIL PAGE ═══════ */
.features-detail-grid { display: flex; flex-direction: column; gap: 20px; }

.feature-detail-card {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.feature-detail-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--border-accent); }

.feature-detail-icon {
  width: 56px; height: 56px; min-width: 56px; display: grid; place-items: center;
  border-radius: var(--radius-md); background: rgba(99,102,241,0.1); color: var(--accent-1);
}
.feature-detail-icon svg { width: 28px; height: 28px; }

.feature-detail-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.feature-detail-summary { font-size: 0.9rem; color: var(--text-accent); margin-bottom: 8px; font-weight: 500; }
.feature-detail-body { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }


/* ═══════ MARKET TOOLBAR ═══════ */
.market-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.market-search-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px;
  padding: 10px 16px; background: var(--bg-input); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); transition: border-color 0.2s;
}
.market-search-wrap:focus-within { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.market-search-wrap svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.market-search-input {
  flex: 1; background: transparent; border: none; color: var(--text-primary);
  font-size: 0.9rem; outline: none;
}
.market-search-input::placeholder { color: var(--text-muted); }

.market-filter-btns { display: flex; gap: 8px; }
.market-filter-btn {
  padding: 8px 18px; font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--border-default); border-radius: var(--radius-full);
  background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.market-filter-btn.active { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.market-filter-btn:hover:not(.active) { border-color: var(--border-accent); color: var(--text-primary); }


/* ═══════ COMMUNITY CHANNELS PAGE ═══════ */
.community-channels-section { padding: 0 0 64px; }

.channels-category { margin-bottom: 0; }
.channels-category-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary);
}
.channels-category-title svg { width: 22px; height: 22px; color: var(--accent-1); }
.channels-category-desc { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 24px; }

.channels-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}

.channel-card {
  padding: 24px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  cursor: pointer; transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column; gap: 12px;
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-accent); }

.channel-card-header { display: flex; align-items: center; gap: 14px; }
.channel-card-logo { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(99,102,241,0.2); background: rgba(99,102,241,0.08); }
.channel-card-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-md); background: rgba(99,102,241,0.1); color: var(--accent-1);
}
.channel-card-icon svg { width: 22px; height: 22px; }
.channel-card-info { flex: 1; }
.channel-card-info h4 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.channel-card-members { font-size: 0.78rem; color: var(--text-muted); }

.channel-joined-badge {
  padding: 4px 10px; border-radius: var(--radius-full);
  background: rgba(34,197,94,0.1); color: #4ade80;
  font-size: 0.72rem; font-weight: 600; flex-shrink: 0;
  border: 1px solid rgba(34,197,94,0.2);
}

.channel-card-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.channel-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.channel-card-tag { font-size: 0.75rem; font-weight: 600; color: var(--text-accent); background: rgba(99,102,241,0.12); padding: 3px 10px; border-radius: var(--radius-full); }
.channel-card-arrow { color: var(--text-muted); transition: transform 0.2s, color 0.2s; }
.channel-card-arrow svg { width: 16px; height: 16px; }
.channel-card:hover .channel-card-arrow { color: var(--accent-1); transform: translateX(4px); }


/* ═══════ CHANNEL DETAIL PAGE ═══════ */
.channel-hero-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
}
.channel-hero-left { display: flex; align-items: center; gap: 18px; }
.channel-hero-logo { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(99,102,241,0.3); }
.channel-hero-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: var(--radius-lg); background: rgba(99,102,241,0.12); color: var(--accent-1);
}
.channel-hero-icon svg { width: 28px; height: 28px; }
.channel-hero-title { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); }
.channel-hero-desc { font-size: 0.88rem; color: var(--text-secondary); margin-top: 4px; max-width: 500px; }

.channel-hero-right { display: flex; align-items: center; gap: 20px; }
.channel-stat { text-align: center; }
.channel-stat-value { font-size: 1.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.channel-stat-label { font-size: 0.75rem; color: var(--text-muted); }

.btn-channel-join {
  padding: 10px 24px; font-size: 0.9rem; font-weight: 600; color: #fff;
  background: var(--gradient-primary); border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.btn-channel-join:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.btn-channel-join.joined {
  background: transparent; border: 1px solid rgba(34,197,94,0.4); color: #4ade80;
}
.btn-channel-join.joined:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.4); color: #f87171; }

.channel-content { padding: 0 0 64px; }

.channel-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }

.channel-sidebar {
  padding: 20px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  height: fit-content; position: sticky; top: 88px;
}
.channel-sidebar h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }

.channel-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.channel-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s; text-decoration: none;
}
.channel-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.channel-nav-item.active { background: rgba(99,102,241,0.1); color: var(--accent-1); font-weight: 600; }
.channel-nav-logo { width: 22px; height: 22px; border-radius: 50%; }
.channel-nav-icon { width: 22px; height: 22px; display: grid; place-items: center; color: var(--text-muted); }
.channel-nav-icon svg { width: 16px; height: 16px; }

.channel-feed {
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 24px;
}

.login-prompt {
  padding: 20px; text-align: center; background: rgba(99,102,241,0.04);
  border: 1px dashed var(--border-default); border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.login-prompt p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 12px; }


/* ═══════ COMMUNITY PREVIEW (landing page) ═══════ */
.channels-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.channel-preview-card {
  padding: 28px; text-align: center; cursor: pointer;
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.channel-preview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-accent); }
.channel-preview-logo { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; border: 2px solid rgba(99,102,241,0.2); }
.channel-preview-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.channel-preview-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.channel-preview-members {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  background: rgba(34,197,94,0.08); color: #4ade80; font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(34,197,94,0.15);
}


/* ═══════ UTILITY ANIMATIONS ═══════ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.3; }
  25% { transform: translateY(-30px) translateX(10px); opacity: 0.6; }
  50% { transform: translateY(-15px) translateX(-10px); opacity: 0.2; }
  75% { transform: translateY(-40px) translateX(15px); opacity: 0.5; }
}

.fade-in-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }


/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics { grid-template-columns: 1fr; gap: 12px; }
  .channels-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-layout { grid-template-columns: 1fr; }
  .channel-sidebar { position: static; }
  .channel-hero-card { flex-direction: column; align-items: flex-start; }
  .channel-hero-right { width: 100%; justify-content: space-between; }
  .landing-top-row { grid-template-columns: 1fr; }
  .landing-side-col { flex-direction: row; }
  .landing-feed-grid { grid-template-columns: 1fr; }
  .landing-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dash-grid-main { grid-template-columns: 1fr; }
  .dash-col-right { order: -1; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-movers-bar { grid-template-columns: 1fr; padding: 16px 20px; }
  .dash-movers-divider { width: 100%; height: 1px; margin: 16px 0; }
  .dash-header-right { justify-content: flex-end; }
  .dash-nav-btn { display: none; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-stats { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .hero { padding: 88px 16px 48px; min-height: 80vh; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .price-container { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 12px; }
  .auth-dialog { padding: 24px; }
  .dashboard-header { flex-wrap: wrap; }
  .dash-header-left { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dash-header-right { width: 100%; justify-content: flex-end; }
  .dash-nav-btn { display: none; }
  .comment-box { flex-direction: column; }
  .post-head { flex-direction: column; }
  .post-input select { max-width: none; }
  .channels-preview-grid { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: 1fr; }
  .feature-detail-card { flex-direction: column; }
  .market-toolbar { flex-direction: column; }
  .market-search-wrap { min-width: unset; width: 100%; }
  .market-filter-btns { width: 100%; justify-content: center; }
  .channel-nav-list { flex-direction: row; overflow-x: auto; gap: 6px; }
  .channel-sidebar { padding: 14px; }
  .landing-top-row { grid-template-columns: 1fr; }
  .landing-side-col { flex-direction: column; }
  .landing-feed-grid { grid-template-columns: 1fr; }
  .landing-card-header { flex-direction: column; align-items: flex-start; }
  .section-divider { margin-bottom: 20px; }
  .news-item-img { width: 48px; height: 36px; }
  .dash-grid-main { grid-template-columns: 1fr; }
}

@media print {
  .navbar, .splash, .toast-region, .auth-modal, .clab-fab, .clab-window { display: none !important; }
  body { background: #fff; color: #000; }
}


/* ═══════ CLab AI CHATBOT ═══════ */
.clab-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 7000;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: none; border-radius: var(--radius-full);
  background: var(--gradient-primary); color: #fff;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 32px rgba(99,102,241,0.35), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  animation: clabFabEntry 0.6s var(--ease-out) both;
  animation-delay: 1.5s;
}
.clab-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 40px rgba(99,102,241,0.45), 0 4px 12px rgba(0,0,0,0.3);
}
.clab-fab-active { transform: scale(0.9); opacity: 0.7; }
.clab-fab-icon { width: 20px; height: 20px; }
.clab-fab-label { letter-spacing: 0.02em; }

@keyframes clabFabEntry {
  from { opacity: 0; transform: translateY(24px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Chat Window ── */
.clab-window {
  position: fixed; right: 20px; bottom: 80px; z-index: 7001;
  width: 380px; height: 520px;
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.95);
  transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-out);
}
.clab-window-open {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}

/* ── Chat Header ── */
.clab-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.04));
  flex-shrink: 0;
}
.clab-header-left { display: flex; align-items: center; gap: 10px; }
.clab-header-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--gradient-primary); display: grid; place-items: center; color: #fff;
}
.clab-header-title {
  display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
}
.clab-header-status {
  display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 1px;
}
.clab-close {
  background: none; border: none; color: var(--text-muted); padding: 6px;
  border-radius: var(--radius-sm); cursor: pointer; transition: color 0.2s, background 0.2s;
}
.clab-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ── Messages ── */
.clab-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
}
.clab-messages::-webkit-scrollbar { width: 4px; }
.clab-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.clab-msg { display: flex; gap: 8px; max-width: 92%; animation: clabMsgIn 0.3s var(--ease-out) both; }
.clab-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.clab-msg-ai { align-self: flex-start; }

.clab-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.85rem; flex-shrink: 0;
  background: rgba(99,102,241,0.1);
}
.clab-msg-user .clab-msg-avatar { background: rgba(6,182,212,0.1); }

.clab-msg-bubble {
  padding: 10px 14px; border-radius: 16px; font-size: 0.85rem; line-height: 1.55;
  color: var(--text-primary);
}
.clab-msg-ai .clab-msg-bubble {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  border-top-left-radius: 4px;
}
.clab-msg-user .clab-msg-bubble {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.15));
  border: 1px solid rgba(99,102,241,0.2);
  border-top-right-radius: 4px;
}
.clab-msg-bubble p { margin: 0 0 6px; }
.clab-msg-bubble p:last-child { margin-bottom: 0; }
.clab-msg-bubble strong { color: var(--text-accent); }
.clab-msg-bubble code {
  padding: 2px 6px; border-radius: 4px; font-size: 0.8rem;
  background: rgba(99,102,241,0.1); color: var(--accent-1);
}
.clab-msg-bubble ul { padding-left: 16px; margin: 6px 0; }
.clab-msg-bubble li { margin-bottom: 4px; list-style: disc; }
.clab-msg-hint {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--border-subtle);
}

@keyframes clabMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Typing Indicator ── */
.clab-typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.clab-typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
  animation: clabDot 1.4s ease-in-out infinite;
}
.clab-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.clab-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes clabDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* ── Input Area ── */
.clab-input-area {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-top: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02); flex-shrink: 0;
}
.clab-input {
  flex: 1; padding: 10px 14px; background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 0.85rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.clab-input::placeholder { color: var(--text-muted); }
.clab-input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

.clab-send {
  width: 38px; height: 38px; border: none; border-radius: var(--radius-md);
  background: var(--gradient-primary); color: #fff; display: grid; place-items: center;
  cursor: pointer; flex-shrink: 0;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.clab-send:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(99,102,241,0.3); }

/* ── Mobile responsive ── */
@media (max-width: 480px) {
  .clab-window {
    right: 0; bottom: 0; left: 0; width: 100%; height: 100%;
    border-radius: 0; border: none;
  }
  .clab-fab { right: 14px; bottom: 14px; padding: 10px 16px; font-size: 0.8rem; }
}


/* ═══════ ACCESSIBILITY: REDUCED MOTION ═══════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .splash { transition: opacity 0.01ms !important; }
  .particle { animation: none !important; }
}


/* ═══════ SCROLL PROGRESS BAR ═══════ */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gradient-primary);
  z-index: 10000; transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
}


/* ═══════ BUTTON RIPPLE EFFECT ═══════ */
.ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0); animation: rippleAnim 0.6s ease-out;
  pointer-events: none; z-index: 10;
}
@keyframes rippleAnim {
  to { transform: scale(2.5); opacity: 0; }
}


/* ═══════ GLASSMORPHISM CARD GLOW ═══════ */
.feature-card,
.price-card,
.landing-post-card,
.news-page-card,
.channel-card,
.staking-exchange-card {
  position: relative;
}
.feature-card::after,
.price-card::after,
.landing-post-card::after,
.news-page-card::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(6,182,212,0.2), rgba(139,92,246,0.3));
  opacity: 0; transition: opacity 0.4s ease;
  filter: blur(12px);
}
.feature-card:hover::after,
.price-card:hover::after,
.landing-post-card:hover::after,
.news-page-card:hover::after {
  opacity: 1;
}


/* ═══════ GRADIENT ANIMATED BORDER ═══════ */
@keyframes gradientBorderRotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.staking-exchange-card,
.channel-card {
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.staking-exchange-card:hover,
.channel-card:hover {
  border-image: linear-gradient(var(--border-angle, 0deg), var(--accent-1), var(--accent-3), var(--accent-2)) 1;
  animation: gradientBorderRotate 3s linear infinite;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99,102,241,0.12);
}


/* ═══════ STAKING PAGE ═══════ */

/* ── Loading state ── */
.staking-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 80px 20px; text-align: center;
}
.staking-loading p {
  font-size: 0.9rem; color: var(--text-secondary); font-weight: 500;
}
.staking-spinner {
  width: 44px; height: 44px; border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-1); border-radius: 50%;
  animation: stakingSpin 0.8s linear infinite;
}
@keyframes stakingSpin { to { transform: rotate(360deg); } }

/* ── Status bar ── */
.staking-status-bar { padding: 0 24px 24px; }
.staking-status-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  font-size: 0.82rem; color: var(--text-secondary); font-weight: 500;
}
.staking-status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.staking-status-dot.live {
  background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: statusPulse 2s ease-in-out infinite;
}
.staking-status-dot.ref {
  background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.3);
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.staking-status-time {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 0.78rem; color: var(--text-muted);
}
.staking-status-time svg { width: 14px; height: 14px; }
.staking-refresh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--border-default);
  border-radius: var(--radius-md); background: transparent;
  color: var(--accent-1); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.staking-refresh-btn:hover {
  background: rgba(99,102,241,0.1); border-color: var(--accent-1);
}
.staking-refresh-btn svg { width: 14px; height: 14px; }

/* ── Live/Reference badges ── */
.staking-live-badge {
  margin-left: auto; font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-full);
  white-space: nowrap; flex-shrink: 0;
}
.staking-live-badge.is-live {
  background: rgba(34,197,94,0.1); color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}
.staking-live-badge.is-ref {
  background: rgba(245,158,11,0.1); color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.2);
}

.staking-overview { padding: 0 24px 40px; }
.staking-overview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.staking-stat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.staking-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.staking-stat-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(99,102,241,0.1); border-radius: var(--radius-md);
  color: var(--accent-1); flex-shrink: 0;
}
.staking-stat-icon svg { width: 24px; height: 24px; }
.staking-stat-info { display: flex; flex-direction: column; gap: 2px; }
.staking-stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.staking-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* ── Calculator ── */
.staking-calculator-section { padding: 0 24px 40px; }
.staking-calc-card {
  padding: 28px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
}
.staking-calc-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary);
}
.staking-calc-card h3 svg { width: 20px; height: 20px; color: var(--accent-1); }
.staking-calc-form {
  display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}
.staking-calc-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.staking-calc-field label { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); }
.staking-calc-input {
  padding: 12px 14px; background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.staking-calc-input:focus {
  border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.staking-calc-result {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 20px; background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15); border-radius: var(--radius-md);
  min-width: 200px;
}
.calc-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.calc-value { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.calc-value small { font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }

/* ── Exchange Grid ── */
.staking-grid-section { padding: 0 24px 48px; }
.staking-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px;
}

.staking-exchange-card {
  padding: 0; border-radius: var(--radius-xl); overflow: hidden;
  animation: fadeInUp 0.5s var(--ease-out) both;
}
.staking-best {
  border-color: rgba(99,102,241,0.4) !important;
  box-shadow: 0 0 24px rgba(99,102,241,0.12);
}
.staking-best-badge {
  padding: 6px 16px; font-size: 0.72rem; font-weight: 700;
  background: var(--gradient-primary); color: #fff; letter-spacing: 0.04em;
  text-align: center;
}

.staking-exchange-header {
  display: flex; align-items: center; gap: 14px; padding: 22px 24px 16px;
}
.staking-exchange-logo {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1); flex-shrink: 0;
  background: var(--bg-input);
}
.staking-exchange-name {
  font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin: 0;
}
.staking-exchange-best {
  font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px;
}

/* ── Products table ── */
.staking-products { padding: 0 24px 22px; }
.staking-products-header {
  display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 8px;
  padding: 8px 0; margin-bottom: 4px;
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-subtle);
}
.staking-products-header span:nth-child(n+3) { display: none; }
.staking-product-row {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
  align-items: center; padding: 10px 0;
  border-bottom: 1px solid rgba(148,163,184,0.06);
  transition: background 0.2s;
}
.staking-product-row:hover { background: rgba(255,255,255,0.02); }
.staking-product-row:last-child { border-bottom: none; }

.staking-product-term { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

.staking-product-apr {
  position: relative; font-size: 0.9rem; font-weight: 700;
  color: var(--accent-3); display: flex; align-items: center; gap: 8px;
}
.staking-apr-bar {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 4px; border-radius: 2px; background: var(--gradient-primary);
  opacity: 0.2; min-width: 4px;
}

.staking-product-min { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Exchange link button ── */
.staking-exchange-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 10px 16px;
  background: var(--gradient-primary); color: #fff;
  border-radius: var(--radius-md); font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.staking-exchange-link:hover { opacity: 0.9; transform: translateY(-1px); }
.staking-exchange-link svg { width: 16px; height: 16px; }

/* ── Disclaimer ── */
.staking-disclaimer {
  padding: 20px 24px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-xl);
}
.staking-disclaimer p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin: 0;
}

/* ── Info cards ── */
.staking-info-section { padding: 0 24px 48px; }
.staking-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.staking-info-card {
  padding: 24px; background: var(--gradient-surface), var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
}
.staking-info-card h4 {
  font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary);
}
.staking-info-card p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7;
}

/* ── Staking responsive ── */
@media (max-width: 768px) {
  .staking-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .staking-grid { grid-template-columns: 1fr; }
  .staking-info-grid { grid-template-columns: 1fr; }
  .staking-calc-form { flex-direction: column; }
  .staking-products-header,
  .staking-product-row { grid-template-columns: 1fr 1.5fr; font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .staking-overview-grid { grid-template-columns: 1fr; }
}
