/* ═══════════════════════════════════════════════════════════
   NEXCHAIN — STYLES.CSS
   Bloomberg Terminal × Cyberpunk Fintech
   Fonts: Syne (display) + IBM Plex Mono (data) + Inter (body)
═══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Colors */
  --bg-void:        #080A0F;
  --bg-deep:        #0D1117;
  --bg-surface:     #111820;
  --bg-elevated:    #161E2A;
  --bg-card:        #0F1923;

  --cyan:           #00F5FF;
  --cyan-dim:       rgba(0, 245, 255, 0.15);
  --cyan-glow:      rgba(0, 245, 255, 0.3);
  --cyan-glow-lg:   rgba(0, 245, 255, 0.5);
  --green-neon:     #39FF14;
  --green-neon-dim: rgba(57, 255, 20, 0.12);

  --price-up:       #00C896;
  --price-up-dim:   rgba(0, 200, 150, 0.15);
  --price-down:     #FF4757;
  --price-down-dim: rgba(255, 71, 87, 0.15);

  --text-primary:   #E8EDF5;
  --text-secondary: #8B9EB7;
  --text-muted:     #4A5568;
  --text-accent:    #00F5FF;

  --border:         rgba(255, 255, 255, 0.06);
  --border-bright:  rgba(0, 245, 255, 0.2);

  /* Typography */
  --font-display:   'Syne', sans-serif;
  --font-mono:      'IBM Plex Mono', monospace;
  --font-body:      'Inter', sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radii */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   200ms ease;
  --t-slow:   400ms ease;

  /* Shadows */
  --shadow-cyan:  0 0 20px rgba(0, 245, 255, 0.25);
  --shadow-green: 0 0 20px rgba(57, 255, 20, 0.2);
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.4);
}

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

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

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── UTILITY ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-lg { margin-top: var(--space-lg); }

.up   { color: var(--price-up); }
.down { color: var(--price-down); }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--green-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: var(--space-md);
  line-height: 1.7;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header.centered .section-sub {
  margin: var(--space-md) auto 0;
}

/* ─── PULSE DOT ─────────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--price-up);
  box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.4);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 200, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0); }
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--cyan) 0%, #00B8CC 100%);
  color: var(--bg-void);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-md);
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-bright);
  border-radius: var(--r-md);
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-base);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
  background: var(--bg-elevated);
}

.btn-wallet {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-base);
}

.btn-wallet:hover {
  border-color: var(--border-bright);
  background: var(--bg-surface);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}

/* ─── TICKER BAR ────────────────────────────────────────── */
.ticker-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 36px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep), transparent);
}

.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  border-right: 1px solid var(--border);
}

.ticker-symbol {
  color: var(--text-secondary);
  font-weight: 600;
}

.ticker-price {
  color: var(--text-primary);
}

.ticker-change {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: var(--r-sm);
}

.ticker-change.up {
  color: var(--price-up);
  background: var(--price-up-dim);
}

.ticker-change.down {
  color: var(--price-down);
  background: var(--price-down-dim);
}

/* ─── NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow);
}

.nav.scrolled {
  background: rgba(8, 10, 15, 0.97);
  border-bottom-color: var(--border-bright);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 60px;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 22px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px var(--cyan));
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex: 1;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--t-base);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--t-base);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.nav-mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t-base);
}

.nav-mobile-menu a:hover { color: var(--text-primary); }

.nav-mobile-menu.open {
  display: flex;
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(36px + 60px + 60px);
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 var(--space-lg);
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--price-up);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.6s ease both;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-stat {
  background: var(--bg-deep);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background var(--t-base);
}

.hero-stat:hover {
  background: var(--bg-elevated);
}

.stat-value {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Floating coin orbs */
.coin-orb {
  position: absolute;
  z-index: 2;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-xl);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-cyan);
  animation: float 6s ease-in-out infinite;
}

.coin-orb--btc {
  top: 22%;
  right: 8%;
  animation-delay: 0s;
}

.coin-orb--eth {
  top: 55%;
  right: 4%;
  animation-delay: 2s;
}

.coin-orb--sol {
  top: 35%;
  left: 4%;
  animation-delay: 4s;
}

.coin-symbol {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--cyan));
}

.coin-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.coin-change {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

.coin-change.up {
  background: var(--price-up-dim);
  color: var(--price-up);
}

.coin-change.down {
  background: var(--price-down-dim);
  color: var(--price-down);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(1deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── MARKETS SECTION ───────────────────────────────────── */
.markets-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.market-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap svg {
  position: absolute;
  left: 10px;
  pointer-events: none;
}

.market-search {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 12px 8px 34px;
  color: var(--text-primary);
  font-size: 13px;
  width: 200px;
  transition: all var(--t-base);
  outline: none;
}

.market-search:focus {
  border-color: var(--border-bright);
  box-shadow: 0 0 0 3px var(--cyan-dim);
  width: 240px;
}

.market-search::placeholder { color: var(--text-muted); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.market-table thead {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.market-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.market-table th.sortable {
  cursor: pointer;
  transition: color var(--t-base);
}

.market-table th.sortable:hover { color: var(--cyan); }

.market-table th.sorted-asc::after  { content: ' ↑'; color: var(--cyan); }
.market-table th.sorted-desc::after { content: ' ↓'; color: var(--cyan); }

.market-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

.market-table tbody tr {
  transition: background var(--t-fast);
}

.market-table tbody tr:hover {
  background: var(--bg-elevated);
}

.market-table tbody tr:last-child td {
  border-bottom: none;
}

.coin-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.coin-name-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.coin-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  font-weight: 700;
}

.coin-name-info .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.coin-name-info .symbol {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.price-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.price-cell.flash-up {
  animation: flashUp 0.5s ease;
}

.price-cell.flash-down {
  animation: flashDown 0.5s ease;
}

@keyframes flashUp {
  0%, 100% { color: var(--text-primary); }
  50%       { color: var(--price-up); background: var(--price-up-dim); border-radius: 4px; }
}

@keyframes flashDown {
  0%, 100% { color: var(--text-primary); }
  50%       { color: var(--price-down); background: var(--price-down-dim); border-radius: 4px; }
}

.change-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.change-badge.up {
  background: var(--price-up-dim);
  color: var(--price-up);
}

.change-badge.down {
  background: var(--price-down-dim);
  color: var(--price-down);
}

.mcap-cell, .vol-cell {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.sparkline-cell canvas {
  display: block;
}

/* ─── CHART SECTION ─────────────────────────────────────── */
.chart-section {
  background: var(--bg-void);
}

.chart-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-lg);
  align-items: start;
}

.chart-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.chart-coin-selector {
  display: flex;
  gap: var(--space-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
}

.coin-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t-base);
}

.coin-tab:hover { color: var(--text-primary); }

.coin-tab.active {
  background: var(--bg-void);
  color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-dim);
}

.coin-tab-icon { font-size: 14px; }

.chart-price-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.chart-current-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.chart-price-change {
  font-size: 14px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

.chart-price-change.up {
  background: var(--price-up-dim);
  color: var(--price-up);
}

.chart-price-change.down {
  background: var(--price-down-dim);
  color: var(--price-down);
}

.chart-range-selector {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.range-btn {
  padding: 5px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--t-base);
}

.range-btn:hover {
  color: var(--text-primary);
  border-color: var(--border);
}

.range-btn.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: var(--border-bright);
}

.chart-canvas-wrap {
  position: relative;
  height: 320px;
}

.chart-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  position: sticky;
  top: calc(36px + 60px + 20px);
}

.chart-stats-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stat-row:last-of-type { border-bottom: none; }

.stat-row-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.stat-row-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.dominance-bar-wrap {
  margin-top: var(--space-md);
}

.dominance-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--r-full);
  overflow: hidden;
}

.dominance-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green-neon));
  border-radius: var(--r-full);
  box-shadow: 0 0 8px var(--cyan-glow);
  transition: width 1s ease;
}

/* ─── PORTFOLIO SECTION ─────────────────────────────────── */
.portfolio-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wallet-connect-btns {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.portfolio-locked {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  border: 1px dashed var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
}

.lock-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
  filter: grayscale(0.5);
}

.portfolio-locked h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.portfolio-locked p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto var(--space-xl);
  font-size: 15px;
  line-height: 1.7;
}

.portfolio-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.portfolio-value-card {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pv-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pv-amount {
  font-size: 42px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pv-change {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.pv-address {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  padding: 6px 10px;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: inline-block;
}

.portfolio-donut-wrap {
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-name {
  color: var(--text-secondary);
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
}

.legend-pct {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.holdings-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.holdings-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.holdings-table th {
  padding: 10px 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.holdings-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.holdings-table tbody tr:last-child td { border-bottom: none; }

.holdings-table tbody tr:hover { background: var(--bg-elevated); }

.holding-asset {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.holding-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.holding-name { font-weight: 600; font-size: 14px; }
.holding-sym  { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.holding-amount { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.holding-value  { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }

.holding-gl {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.alloc-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.alloc-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--r-full);
  overflow: hidden;
  min-width: 60px;
}

.alloc-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--cyan), var(--green-neon));
}

.alloc-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 32px;
}

/* ─── FEATURES SECTION ──────────────────────────────────── */
.features-section {
  background: var(--bg-void);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--cyan-dim), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
}

.feature-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 36px;
  margin-bottom: var(--space-lg);
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.3));
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── TESTIMONIALS ──────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform var(--t-slow);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 11px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  transition: all var(--t-base);
}

.testimonial-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-cyan);
}

.testimonial-stars {
  color: #FFB800;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  font-style: italic;
  quotes: "\201C" "\201D";
}

.testimonial-text::before { content: open-quote; color: var(--cyan); }
.testimonial-text::after  { content: close-quote; color: var(--cyan); }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green-neon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--bg-void);
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
}

.carousel-btn:hover {
  border-color: var(--border-bright);
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.carousel-dots {
  display: flex;
  gap: var(--space-sm);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  padding: 0;
}

.carousel-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  width: 24px;
  border-radius: var(--r-full);
}

/* ─── NEWS SECTION ──────────────────────────────────────── */
.news-section {
  background: var(--bg-void);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-4px);
}

.news-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.news-thumb-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.4));
}

.news-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.news-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.news-tag {
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-btc       { background: rgba(247, 147, 26, 0.15); color: #F7931A; }
.tag-eth       { background: rgba(98, 126, 234, 0.15); color: #627EEA; }
.tag-defi      { background: var(--cyan-dim); color: var(--cyan); }
.tag-nft       { background: rgba(123, 104, 238, 0.15); color: #7B68EE; }
.tag-regulation{ background: var(--price-down-dim); color: var(--price-down); }
.tag-layer2    { background: var(--green-neon-dim); color: var(--green-neon); }

.news-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.news-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
}

.news-source {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
}

.news-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.news-time::before { content: '·'; margin-right: var(--space-sm); }

.news-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  transition: gap var(--t-base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-sm);
}

.news-read-more:hover { gap: 8px; }

/* ─── NEWSLETTER ────────────────────────────────────────── */
.newsletter-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
}

.newsletter-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 245, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
  display: block;
  animation: float 4s ease-in-out infinite;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.newsletter-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.newsletter-form { width: 100%; }

.newsletter-input-wrap {
  display: flex;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto var(--space-md);
}

.newsletter-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all var(--t-base);
}

.newsletter-input:focus {
  border-color: var(--border-bright);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.newsletter-input::placeholder { color: var(--text-muted); }

.newsletter-success {
  color: var(--price-up);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: var(--space-sm);
  background: var(--price-up-dim);
  border-radius: var(--r-md);
  margin-bottom: var(--space-md);
}

.newsletter-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--bg-deep);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-logo { margin-bottom: var(--space-xs); }

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-base);
}

.social-link:hover {
  color: var(--cyan);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--t-base);
  line-height: 1.5;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  opacity: 0.7;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .chart-layout {
    grid-template-columns: 1fr;
  }

  .chart-stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .chart-stats-title { grid-column: 1 / -1; }
  .dominance-bar-wrap { grid-column: 1 / -1; }
  .chart-stats .btn-primary { grid-column: 1 / -1; }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coin-orb--btc { right: 2%; }
  .coin-orb--eth { display: none; }
  .coin-orb--sol { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex: 0 0 calc(100% - 0px);
  }

  .portfolio-top {
    grid-template-columns: 1fr;
  }

  .portfolio-donut-wrap {
    flex-direction: column;
  }

  .newsletter-input-wrap {
    flex-direction: column;
  }

  .newsletter-input-wrap .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .coin-orb { display: none; }

  .hide-sm { display: none; }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hide-md { display: none; }

  .section { padding: var(--space-2xl) 0; }

  .chart-coin-selector { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    justify-content: center;
    text-align: center;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

/* ─── CUSTOM SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── FOCUS STYLES ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── SELECTION ─────────────────────────────────────────── */
::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}