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

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #151c2c;
  --bg-card-hover: #1a2235;
  --bg-elevated: #1e2740;
  --border: #1e293b;
  --border-light: #2a3548;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #22c55e;
  --accent-light: #4ade80;
  --accent-dark: #16a34a;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --yellow: #eab308;
  --yellow-bg: rgba(234, 179, 8, 0.1);
  --orange: #f59e0b;
  --gradient-1: linear-gradient(135deg, #16a34a, #4ade80);
  --gradient-2: linear-gradient(135deg, #22c55e, #86efac);
  --gradient-hero: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --radius: 3px;
  --radius-sm: 2px;
  --radius-xs: 1px;
  --nav-height: 64px;
  --sidebar-width: 340px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: inset 0 0 30px rgba(34, 197, 94, 0.03), inset 0 0 80px rgba(34, 197, 94, 0.02);
}

/* Animated energy border around entire site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  border: 1px solid transparent;
  background: conic-gradient(
    from var(--energy-angle, 0deg) at 50% 50%,
    transparent 0%,
    rgba(34, 197, 94, 0) 10%,
    rgba(34, 197, 94, 0.25) 18%,
    rgba(74, 222, 128, 0.4) 22%,
    rgba(34, 197, 94, 0.25) 26%,
    rgba(34, 197, 94, 0) 35%,
    transparent 50%,
    rgba(34, 197, 94, 0) 65%,
    rgba(34, 197, 94, 0.2) 72%,
    rgba(74, 222, 128, 0.35) 76%,
    rgba(34, 197, 94, 0.2) 80%,
    rgba(34, 197, 94, 0) 88%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  z-index: 9999;
  animation: energySpin 12s linear infinite;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}

.logo-text .accent, .footer-brand .accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.active { color: var(--accent); background: rgba(34, 197, 94, 0.1); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-credit {
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.7);
  text-shadow: 0 0 8px rgba(226, 232, 240, 0.2);
}

.nav-credit strong {
  color: rgba(226, 232, 240, 0.95);
  text-shadow: 0 0 10px rgba(226, 232, 240, 0.3);
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(226, 232, 240, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.15);
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.85rem;
  transition: all 0.2s;
  text-shadow: 0 0 6px rgba(226, 232, 240, 0.3);
  box-shadow: 0 0 8px rgba(226, 232, 240, 0.05);
}

.nav-social:hover {
  color: white;
  background: rgba(226, 232, 240, 0.15);
  border-color: rgba(226, 232, 240, 0.3);
  box-shadow: 0 0 14px rgba(226, 232, 240, 0.15);
  text-shadow: 0 0 10px rgba(226, 232, 240, 0.5);
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== PAGE MANAGEMENT ===== */
.page { display: none; padding-top: var(--nav-height); }
.page.active { display: block; }

/* ===== HERO SECTION ===== */
.hero, .edu-hero, .platforms-hero, .fg-hero {
  position: relative;
  padding: 28px 24px 18px;
  text-align: center;
  overflow: hidden;
  max-width: 1392px;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(74, 222, 128, 0.04) 0%, transparent 50%);
}

/* ===== TRON CITYSCAPE ===== */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  background:
    /* Ground reflection line - green to red */
    linear-gradient(90deg, transparent 0%, rgba(34,197,94,0.3) 15%, rgba(74,222,128,0.5) 40%, rgba(239,68,68,0.4) 65%, rgba(239,68,68,0.3) 85%, transparent 100%) 0% 100% / 100% 1px no-repeat,
    /* Ground glow */
    linear-gradient(to top, rgba(34,197,94,0.04) 0%, transparent 30%) 0% 100% / 50% 40% no-repeat,
    linear-gradient(to top, rgba(239,68,68,0.03) 0%, transparent 30%) 100% 100% / 50% 40% no-repeat;
}

/* SVG Tron buildings injected via JS - see .tron-city class */

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 5;
}

.hero h1, .edu-hero h1, .platforms-hero h1, .fg-hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-title-main {
  margin-bottom: 0;
  line-height: 1;
}

/* ===== TRON TITLE ===== */
.tron-title-perp {
  font-family: 'Orbitron', var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.tron-title {
  font-family: 'Orbitron', var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(34, 197, 94, 0.9);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.2), 0 0 30px rgba(34, 197, 94, 0.08);
}

/* Inner fill - more visible */
.tron-title::before {
  content: 'CENTRAL';
  position: absolute;
  inset: 0;
  color: rgba(34, 197, 94, 0.22);
  -webkit-text-stroke: 0;
  z-index: 0;
  animation: tronFillPulse 8s ease-in-out infinite;
}

@keyframes tronFillPulse {
  0%, 100% { color: rgba(34, 197, 94, 0.18); }
  50% { color: rgba(34, 197, 94, 0.3); }
}

/* Slow green shimmer moving across letters */
.tron-title::after {
  content: 'CENTRAL';
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 1.5px transparent;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 197, 94, 0) 30%,
    rgba(74, 222, 128, 0.6) 42%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(74, 222, 128, 0.6) 58%,
    rgba(34, 197, 94, 0) 70%,
    transparent 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tronShimmer 14s ease-in-out infinite;
  z-index: 1;
}

@keyframes tronShimmer {
  0% { background-position: 300% 0; }
  100% { background-position: -100% 0; }
}

.hero-subtitle-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(226, 232, 240, 0.3), 0 0 24px rgba(226, 232, 240, 0.1);
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.9);
  max-width: 600px;
  margin: 0 auto 10px;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(148, 163, 184, 0.15);
}

/* Stat change arrows */
.stat-change {
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 1px;
}
.stat-change.positive { color: var(--green); }
.stat-change.negative { color: var(--red); }
.stat-change i { font-size: 0.65rem; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 10;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 5px 24px;
  background: rgba(21, 28, 44, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.stat-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== DASHBOARD LAYOUT ===== */
.landing-intro {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px 20px;
}
.landing-intro .section-title { margin-bottom: 8px; }
.landing-intro .section-subtitle { margin-bottom: 0; }

.dashboard-layout {
  display: flex;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 60px;
  align-items: flex-start;
}

.main-content { flex: 1; min-width: 0; }

/* ===== TABS ===== */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab {
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab:hover { color: var(--text-primary); background: var(--bg-elevated); }
.tab.active { color: var(--accent); background: var(--bg-card); box-shadow: var(--shadow-sm); }

.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

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

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover { border-color: rgba(34, 197, 94, 0.3); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.card-header h3 i { color: var(--accent); font-size: 0.85rem; }

.card-actions { display: flex; gap: 4px; }

.time-btn {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-main);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.time-btn:hover { color: var(--text-primary); border-color: var(--border-light); }
.time-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(34, 197, 94, 0.1); }

.card-body { padding: 20px; }

/* ===== OVERVIEW GRID ===== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card-large { grid-column: 1 / -1; }

/* ===== Market Overview Exchange Tabs ===== */
.mo-exchange-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.mo-ex-tab,
.oi-dex-tab,
.oi-cex-tab,
.fr-dex-tab,
.fr-cex-tab {
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.mo-ex-tab:hover,
.oi-dex-tab:hover,
.oi-cex-tab:hover,
.fr-dex-tab:hover,
.fr-cex-tab:hover { color: var(--text-primary); border-color: var(--border-light); }

.mo-ex-tab.active,
.oi-dex-tab.active,
.oi-cex-tab.active,
.fr-dex-tab.active,
.fr-cex-tab.active { border-color: var(--accent); background: rgba(34,197,94,0.1); }
.mo-ex-tab.active span,
.oi-dex-tab.active span,
.oi-cex-tab.active span,
.fr-dex-tab.active span,
.fr-cex-tab.active span { filter: brightness(1.3); }

.mo-metric-btn,
.oi-metric-btn {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.mo-metric-btn:hover,
.oi-metric-btn:hover { color: var(--text-primary); border-color: var(--border-light); }
.mo-metric-btn.active,
.oi-metric-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(34,197,94,0.1); }

/* ===== Horizontal Bar Chart ===== */
.mo-chart {
  max-height: 450px;
  overflow-y: auto;
  padding: 8px 0;
}

.mo-chart::-webkit-scrollbar { width: 4px; }
.mo-chart::-webkit-scrollbar-track { background: transparent; }
.mo-chart::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.mo-chart-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mo-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 14px;
  transition: background 0.15s;
}

.mo-bar-row:hover { background: var(--bg-elevated); }

.mo-bar-rank {
  font-size: 0.62rem;
  color: var(--text-muted);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.mo-bar-name {
  font-size: 0.75rem;
  font-weight: 700;
  width: 55px;
  flex-shrink: 0;
}

.mo-bar-track {
  flex: 1;
  height: 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
}

.mo-bar-fill {
  height: 100%;
  border-radius: var(--radius-xs);
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  padding-left: 6px;
  min-width: 2px;
}

.mo-bar-fill-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.mo-bar-value {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-secondary);
  width: 65px;
  text-align: right;
  flex-shrink: 0;
}

.mo-bar-price {
  font-size: 0.62rem;
  color: var(--text-muted);
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

/* Long/Short Ratio */
.ratio-display { margin-bottom: 20px; }

.ratio-bar {
  display: flex;
  border-radius: 2px;
  overflow: hidden;
  height: 32px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ratio-long {
  background: linear-gradient(90deg, var(--green), rgba(34, 197, 94, 0.7));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ratio-short {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.7), var(--red));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ratio-assets { display: flex; flex-direction: column; gap: 10px; }

.ratio-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-name {
  font-size: 0.82rem;
  font-weight: 600;
  width: 50px;
  color: var(--text-secondary);
}

.mini-ratio {
  flex: 1;
  height: 6px;
  background: var(--red-bg);
  border-radius: 3px;
  overflow: hidden;
}

.mini-long {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
}

.ratio-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 45px;
  text-align: right;
}

/* Platform Rankings */
.platform-ranks { display: flex; flex-direction: column; gap: 8px; }

.platform-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.platform-rank:hover { background: var(--bg-card-hover); }

.rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  width: 28px;
}

.platform-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
}

.platform-vol {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-light);
  font-family: var(--font-display);
}

/* ===== DATA TABLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 14px;
  font-size: 0.87rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--bg-elevated); }
.data-table tbody tr:last-child td { border-bottom: none; }

.positive { color: var(--green); font-weight: 500; }
.negative { color: var(--red); font-weight: 500; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }

.asset-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.side-long {
  padding: 2px 8px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
}

.side-short {
  padding: 2px 8px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
}

.table-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== MOVERS ===== */
.movers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mover-list { display: flex; flex-direction: column; gap: 8px; }

.mover-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s;
}

.mover-item:hover { transform: translateX(4px); }

.positive-bg { background: var(--green-bg); border: 1px solid rgba(34, 197, 94, 0.15); }
.negative-bg { background: var(--red-bg); border: 1px solid rgba(239, 68, 68, 0.15); }

.mover-asset {
  font-weight: 700;
  font-size: 0.9rem;
  width: 55px;
}

.mover-change {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
  width: 80px;
}

.mover-detail {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== LIQUIDATIONS ===== */
.liq-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.liq-stat {
  flex: 1;
  min-width: 160px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  text-align: center;
}

.liq-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.liq-value {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
}

/* ===== NEWS SIDEBAR ===== */
.news-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  /* margin-top set by inline flex alignment; see .dashboard-layout */
  max-height: calc(100vh - var(--nav-height) - 40px);
  background: transparent;
  border: none;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-sidebar > .sidebar-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

.news-sidebar > .news-feed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header h3 i { color: var(--accent); }

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
}

.news-feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.news-feed::-webkit-scrollbar { width: 4px; }
.news-feed::-webkit-scrollbar-track { background: transparent; }
.news-feed::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.news-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: background 0.2s, border-color 0.2s;
  border-left: 3px solid transparent;
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-item:hover { background: var(--bg-elevated); color: inherit; }

/* Category-based full-row styling */
.news-item-alert {
  border-left-color: var(--red) !important;
  background: rgba(239, 68, 68, 0.04);
}
.news-item-alert:hover { background: rgba(239, 68, 68, 0.08); }
.news-item-alert .news-text { color: #fca5a5; }

.news-item-market {
  border-left-color: var(--accent) !important;
  background: rgba(34, 197, 94, 0.03);
}

.news-item-platform {
  border-left-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.03);
}

.news-item-insight {
  border-left-color: var(--orange) !important;
  background: rgba(245, 158, 11, 0.03);
}

.news-time { font-size: 0.7rem; color: var(--text-muted); }

.news-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: 8px;
  vertical-align: middle;
}

/* FUNDING SPIKE = red/hot */
.tag-alert { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
/* FUNDING (normal) = blue */
.tag-insight { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
/* OPEN INTEREST = green */
.tag-platform { background: rgba(34, 197, 94, 0.15); color: var(--accent); border: 1px solid rgba(34, 197, 94, 0.25); }
/* VOLUME = orange */
.tag-market { background: rgba(245, 158, 11, 0.15); color: var(--orange); border: 1px solid rgba(245, 158, 11, 0.25); }

.news-text {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== START TRADING TAB ===== */
.trading-section { margin-bottom: 48px; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i { color: var(--accent); }
.section-subtitle { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 24px; }
.trading-platforms-list { display: flex; flex-direction: column; gap: 16px; }

/* ===== EXCHANGE BRAND COLORS ===== */
.exchange-hl { --ex-color: #00d4aa; --ex-rgb: 0,212,170; }
.exchange-lt { --ex-color: #3b82f6; --ex-rgb: 59,130,246; }
.exchange-edgex { --ex-color: #06b6d4; --ex-rgb: 6,182,212; }
.exchange-as { --ex-color: #f59e0b; --ex-rgb: 245,158,11; }
.exchange-na { --ex-color: #8b5cf6; --ex-rgb: 139,92,246; }
.exchange-va { --ex-color: #ec4899; --ex-rgb: 236,72,153; }
.exchange-bn { --ex-color: #f0b90b; --ex-rgb: 240,185,11; }
.exchange-bb { --ex-color: #f7931a; --ex-rgb: 247,147,26; }
.exchange-okx { --ex-color: #a3a3a3; --ex-rgb: 163,163,163; }
.exchange-gmx { --ex-color: #4f8fea; --ex-rgb: 79,143,234; }
.exchange-dydx { --ex-color: #6366f1; --ex-rgb: 99,102,241; }
.exchange-vest { --ex-color: #14b8a6; --ex-rgb: 20,184,166; }
.exchange-jup { --ex-color: #c7f284; --ex-rgb: 199,242,132; }
.exchange-vtx { --ex-color: #7c3aed; --ex-rgb: 124,58,237; }

.trading-platform-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  border-left: 3px solid rgba(var(--ex-rgb, 34,197,94), 0.4);
  background: linear-gradient(135deg, rgba(var(--ex-rgb, 34,197,94), 0.03) 0%, var(--bg-card) 40%);
}
.trading-platform-entry:hover {
  border-color: rgba(var(--ex-rgb, 34,197,94), 0.4);
  box-shadow: 0 0 24px rgba(var(--ex-rgb, 34,197,94), 0.08);
}

/* Collapsed state (default) */
.tp-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.tp-header:hover { background: rgba(var(--ex-rgb, 34,197,94), 0.03); }

.tp-icon {
  width: 36px; height: 36px;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; flex-shrink: 0; font-size: 0.75rem;
  overflow: hidden;
}
.tp-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.tp-info { flex: 1; min-width: 0; }
.tp-info h3 { font-size: 1rem; font-weight: 700; color: var(--ex-color, var(--text-primary)); }
.tp-tagline { font-size: 0.78rem; color: var(--text-muted); }

/* Inline stats in header (always visible) */
.tp-header-stats {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.tp-header-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.tp-header-stat-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tp-header-stat-value { font-size: 0.85rem; font-weight: 700; font-family: var(--font-display); color: var(--text-primary); }

.tp-volume-badge {
  padding: 5px 12px;
  background: rgba(var(--ex-rgb, 34,197,94), 0.1);
  border: 1px solid rgba(var(--ex-rgb, 34,197,94), 0.2);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ex-color, var(--accent));
  font-family: var(--font-display);
  flex-shrink: 0;
}

/* Quick trade button in header */
.tp-trade-btn {
  padding: 6px 14px;
  background: rgba(var(--ex-rgb, 34,197,94), 0.25);
  border: 1px solid rgba(var(--ex-rgb, 34,197,94), 0.5);
  border-radius: var(--radius-sm);
  color: var(--ex-color, var(--accent));
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 12px rgba(var(--ex-rgb, 34,197,94), 0.25), inset 0 0 8px rgba(var(--ex-rgb, 34,197,94), 0.08);
  text-shadow: 0 0 6px rgba(var(--ex-rgb, 34,197,94), 0.5);
  animation: tradeBtnPulse 3s ease-in-out infinite;
}

@keyframes tradeBtnPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(var(--ex-rgb, 34,197,94), 0.25), inset 0 0 8px rgba(var(--ex-rgb, 34,197,94), 0.08); }
  50% { box-shadow: 0 0 20px rgba(var(--ex-rgb, 34,197,94), 0.4), inset 0 0 12px rgba(var(--ex-rgb, 34,197,94), 0.12); }
}

.tp-trade-btn:hover {
  background: rgba(var(--ex-rgb, 34,197,94), 0.35);
  border-color: rgba(var(--ex-rgb, 34,197,94), 0.7);
  box-shadow: 0 0 24px rgba(var(--ex-rgb, 34,197,94), 0.5), inset 0 0 12px rgba(var(--ex-rgb, 34,197,94), 0.15);
  color: white;
  text-shadow: 0 0 8px rgba(var(--ex-rgb, 34,197,94), 0.8);
}

/* Referral popup overlay */
.tp-referral-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.tp-referral-popup.open { display: flex; animation: refFadeIn 0.25s ease; }
@keyframes refFadeIn { from { opacity: 0; } to { opacity: 1; } }

.tp-referral-box {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(var(--ex-rgb, 34,197,94), 0.4);
  border-radius: var(--radius);
  padding: 0 0 28px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 40px rgba(var(--ex-rgb, 34,197,94), 0.25);
  animation: refSlideUp 0.3s ease;
  overflow: hidden;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes refSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Brand-colored banner strip at top */
.tp-ref-banner {
  height: 6px;
  background: linear-gradient(90deg,
    rgba(var(--ex-rgb, 34,197,94), 1) 0%,
    rgba(var(--ex-rgb, 34,197,94), 0.6) 50%,
    rgba(var(--ex-rgb, 34,197,94), 1) 100%);
  box-shadow: 0 0 20px rgba(var(--ex-rgb, 34,197,94), 0.6);
}

/* Logo circle */
.tp-ref-logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: -36px;
  margin-bottom: 14px;
  padding: 0 24px;
}
.tp-ref-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(var(--ex-rgb, 34,197,94), 0.15),
    rgba(var(--ex-rgb, 34,197,94), 0.05));
  border: 2px solid rgba(var(--ex-rgb, 34,197,94), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(var(--ex-rgb, 34,197,94), 0.4);
  padding: 14px;
}
.tp-ref-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.tp-referral-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 24px 6px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.tp-ref-tagline {
  font-size: 0.88rem;
  color: rgba(var(--ex-rgb, 34,197,94), 1);
  font-weight: 500;
  margin: 0 24px 16px;
  letter-spacing: 0.3px;
}

.tp-ref-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 24px 22px;
  text-align: left;
}

/* Incentives block */
.tp-ref-incentives-wrap {
  margin: 0 24px 24px;
  padding: 18px 20px;
  background: rgba(var(--ex-rgb, 34,197,94), 0.05);
  border: 1px solid rgba(var(--ex-rgb, 34,197,94), 0.15);
  border-radius: var(--radius-sm);
  text-align: left;
}
.tp-ref-incentives-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(var(--ex-rgb, 34,197,94), 1);
  margin: 0 0 12px;
}
.tp-ref-incentives {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-ref-incentives li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.tp-ref-incentives li i {
  color: rgba(var(--ex-rgb, 34,197,94), 1);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.tp-ref-incentives li span { flex: 1; }

/* CTA */
.tp-referral-box .tp-ref-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  margin: 0 24px 12px;
  background: linear-gradient(135deg,
    rgba(var(--ex-rgb, 34,197,94), 0.95),
    rgba(var(--ex-rgb, 34,197,94), 0.75));
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(var(--ex-rgb, 34,197,94), 0.35);
  letter-spacing: 0.3px;
}
.tp-referral-box .tp-ref-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--ex-rgb, 34,197,94), 0.5);
}
.tp-referral-box .tp-ref-link i { font-size: 0.95rem; }

.tp-ref-footnote {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0 24px;
  line-height: 1.5;
  font-style: italic;
}

.tp-referral-close {
  position: absolute;
  top: 12px; right: 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.tp-referral-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.tp-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.tp-expand-btn:hover { color: var(--ex-color, var(--accent)); border-color: rgba(var(--ex-rgb, 34,197,94), 0.3); }
.tp-expand-btn.expanded { transform: rotate(180deg); color: var(--ex-color, var(--accent)); }

/* Expandable body */
.tp-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.tp-body.expanded {
  max-height: 600px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}

.tp-description { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }
.tp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.tp-stat { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--bg-elevated); border-radius: var(--radius-sm); }
.tp-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tp-stat-value { font-size: 0.9rem; font-weight: 700; font-family: var(--font-display); }

.tp-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tp-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(var(--ex-rgb, 34,197,94), 0.06);
  border: 1px solid rgba(var(--ex-rgb, 34,197,94), 0.12);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ex-color, var(--accent));
  font-weight: 500;
}
.tp-offer i { font-size: 0.9rem; }

.tp-footer { padding: 12px 20px; border-top: 1px solid var(--border); }
.tp-footer.collapsed { display: none; }
.tp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: linear-gradient(135deg, rgba(var(--ex-rgb, 34,197,94), 0.8), rgba(var(--ex-rgb, 34,197,94), 0.6));
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}
.tp-cta:hover { opacity: 0.9; transform: scale(1.01); color: white; }

/* ===== CTA BANNERS ===== */
.cta-banner {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-banner p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cta-btn {
  padding: 10px 24px;
  background: var(--gradient-1);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.cta-btn:hover { opacity: 0.9; color: white; }

.edu-cta {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.edu-cta p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== EDUCATION PAGE ===== */
.edu-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.edu-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 32px;
  overflow-x: auto;
  flex-wrap: wrap;
}

.edu-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.edu-tab:hover { color: var(--text-primary); background: var(--bg-elevated); }
.edu-tab.active { color: var(--accent); background: var(--bg-card); box-shadow: var(--shadow-sm); }

.edu-panel { display: none; animation: fadeIn 0.3s ease; }
.edu-panel.active { display: block; }

.edu-section {
  margin-bottom: 56px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.edu-section:last-child { border-bottom: none; }

.edu-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.edu-section h2 i { color: var(--accent); font-size: 1.3rem; }

.edu-lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 900px;
}
.edu-lead strong { color: var(--accent); font-weight: 600; }

.edu-closing {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(34,197,94,0.02));
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-style: italic;
}

.edu-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.edu-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.edu-card-icon {
  width: 48px; height: 48px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.edu-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.edu-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

.edu-highlight {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(74, 222, 128, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  padding: 28px;
}

.edu-highlight h4 { font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.edu-highlight p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/* Steps */
.edu-steps { display: flex; flex-direction: column; gap: 24px; }

.edu-step { display: flex; gap: 20px; align-items: flex-start; }

.step-num {
  width: 44px; height: 44px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.step-content { flex: 1; }
.step-content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* Concepts */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.concept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}

.concept-card:hover { border-color: var(--border-light); }
.concept-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.concept-card h4 i { color: var(--accent); font-size: 0.85rem; }
.concept-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; }

/* Examples */
.example-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.example-badge {
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.long-badge { background: var(--green-bg); color: var(--green); }
.short-badge { background: var(--red-bg); color: var(--red); }

.example-asset { font-family: var(--font-display); font-weight: 600; color: var(--text-secondary); }
.example-body { padding: 20px; }

.example-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.param {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
}

.param-label { font-size: 0.8rem; color: var(--text-muted); }
.param-value { font-size: 0.85rem; font-weight: 600; }

.example-scenario {
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.example-scenario:last-child { margin-bottom: 0; }
.example-scenario h5 { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.example-scenario p { font-size: 0.88rem; color: var(--text-primary); }

/* Risk Cards */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.risk-card { padding: 24px; border-radius: var(--radius); transition: transform 0.2s; }
.risk-card:hover { transform: translateY(-2px); }
.risk-warning { background: var(--red-bg); border: 1px solid rgba(239, 68, 68, 0.15); }
.risk-tip { background: var(--green-bg); border: 1px solid rgba(34, 197, 94, 0.15); }
.risk-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.risk-warning h4 i { color: var(--red); }
.risk-tip h4 i { color: var(--green); }
.risk-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ===== PLATFORMS PAGE ===== */
.platforms-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.platform-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-main);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.filter-btn.active { background: rgba(34, 197, 94, 0.1); border-color: var(--accent); color: var(--accent); }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.platform-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.platform-card.hidden { display: none; }

.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.platform-info { display: flex; align-items: center; gap: 12px; }

.platform-icon {
  width: 42px; height: 42px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
}

.platform-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }

.platform-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dex-badge { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.cex-badge { background: rgba(245, 158, 11, 0.15); color: var(--orange); }

.platform-chain {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: 2px;
}

.platform-card-body { padding: 18px 20px; flex: 1; }

.platform-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.p-stat { display: flex; flex-direction: column; gap: 2px; }
.p-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.p-stat-value { font-size: 1rem; font-weight: 700; font-family: var(--font-display); }

.platform-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.feature-tag {
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.platform-fees {
  display: flex;
  gap: 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.platform-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }

.platform-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}

.platform-cta:hover { opacity: 0.9; transform: scale(1.02); color: white; }

/* Comparison */
.comparison-section { margin-top: 20px; }
.comparison-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comparison-section h2 i { color: var(--accent); }

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

.comparison-table td, .comparison-table th { white-space: nowrap; }

/* ===== FEAR & GREED PAGE ===== */
.fg-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.fg-main-gauge {
  text-align: center;
  margin-bottom: 24px;
}

.fg-main-gauge h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.gauge-container {
  display: inline-block;
  position: relative;
  margin-bottom: 16px;
}

.gauge-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-top: -8px;
}

.gauge-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gauge-label.fear { color: var(--red); }
.gauge-label.neutral { color: var(--yellow); }
.gauge-label.greed { color: var(--green); }

.fg-cta-row {
  margin-top: 20px;
}

.fg-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.fg-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px;
  margin-bottom: 24px;
}

.fg-asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.fg-asset-card:hover { border-color: rgba(var(--fg-card-rgb, 34,197,94), 0.5); box-shadow: 0 0 12px rgba(var(--fg-card-rgb, 34,197,94), 0.15); }
.fg-asset-card.active { border-color: rgba(var(--fg-card-rgb, 34,197,94), 0.6); box-shadow: 0 0 16px rgba(var(--fg-card-rgb, 34,197,94), 0.2); }

.fg-asset-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.fg-asset-card canvas { display: none; } /* Hide individual gauges, use heatmap style instead */

.fg-asset-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.fg-asset-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
  margin-bottom: 4px;
}

/* Historical context bar (RSI-style) */
.fg-history-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  margin: 4px 0 2px;
  position: relative;
  overflow: visible;
}

.fg-history-bar .fg-history-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.fg-history-bar .fg-history-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 10px;
  background: white;
  border-radius: 1px;
  transform: translateX(-50%);
}

.fg-history-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.fg-trade-link {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

/* Detail Panel */
.fg-detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
  animation: fadeIn 0.3s ease;
}

.fg-detail-panel h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.fg-detail-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 12px;
}

.fg-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.fg-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.fg-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.fg-metric-value { font-size: 1.1rem; font-weight: 700; font-family: var(--font-display); }

/* Info tooltip */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.55rem;
  font-weight: 700;
  font-style: italic;
  font-family: serif;
  cursor: help;
  flex-shrink: 0;
}

.info-tip .info-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 400;
  font-style: normal;
  font-family: var(--font-main);
  color: var(--text-secondary);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.info-tip .info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-light);
}

.info-tip:hover .info-tooltip { display: block; }

/* Sort toggles for asset grid */
.fg-sort-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  align-items: center;
}

.fg-sort-bar span {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.fg-sort-btn {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.fg-sort-btn:hover { color: var(--text-primary); border-color: var(--border-light); }
.fg-sort-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(34, 197, 94, 0.1); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-brand { flex: 1; min-width: 250px; }
.footer-brand .logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.footer-brand p { margin-top: 10px; font-size: 0.88rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dashboard-layout { flex-direction: column; }
  .news-sidebar { width: 100%; position: static; max-height: 400px; margin-top: 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .movers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1, .edu-hero h1, .platforms-hero h1, .fg-hero h1 { font-size: 1.8rem; }
  .tron-title-perp { font-size: 2rem; letter-spacing: 0.08em; }
  .tron-title { font-size: 2rem; letter-spacing: 0.08em; }
  .tron-title::before, .tron-title::after { content: 'CENTRAL'; }
  .hero-subtitle-tagline { font-size: 0.85rem; }
  .hero-stats { gap: 8px; flex-wrap: wrap; }
  .hero-stat { padding: 8px 12px; }
  .stat-value { font-size: 1rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 8px;
  }
  .mobile-toggle { display: block; }
  .nav-right { margin-left: auto; margin-right: 8px; }
  .platforms-grid { grid-template-columns: 1fr; }
  .example-cards { grid-template-columns: 1fr; }
  .example-params { grid-template-columns: 1fr; }
  .edu-nav { flex-wrap: wrap; }
  .footer-content { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .tab-bar { overflow-x: auto; }
  .tp-stats { grid-template-columns: 1fr 1fr; }
  .tp-header { flex-wrap: wrap; }
  .tp-header-stats { display: none; }
  .tp-volume-badge { order: -1; }
  .fg-asset-grid { grid-template-columns: repeat(3, 1fr); }
  .fg-detail-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== SELECTION ===== */
::selection {
  background: rgba(34, 197, 94, 0.3);
  color: white;
}

/* ===== TRON CITYSCAPE (SVG injected by JS) ===== */
.tron-city {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0);
}

.tron-city svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Building edge glow animation */
@keyframes energyPulse {
  0%, 100% { opacity: 0.3; filter: drop-shadow(0 0 2px rgba(34,197,94,0.3)); }
  50% { opacity: 0.6; filter: drop-shadow(0 0 4px rgba(74,222,128,0.4)); }
}

@keyframes energyFlow {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

@keyframes energySweep {
  0% { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}

.tron-city .building-edge {
  stroke: rgba(34, 197, 94, 0.5);
  stroke-width: 0.8;
  fill: none;
  animation: energyPulse 6s ease-in-out infinite;
}

.tron-city .building-fill {
  fill: rgba(10, 14, 23, 0.8);
  stroke: rgba(34, 197, 94, 0.15);
  stroke-width: 0.5;
}

.tron-city .building-glow {
  stroke: rgba(74, 222, 128, 0.45);
  stroke-width: 1;
  fill: none;
  animation: energyPulse 8s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(74,222,128,0.3));
}

.tron-city .window-light {
  fill: rgba(34, 197, 94, 0.25);
  animation: energyPulse 6s ease-in-out infinite;
}

/* Solid red on building bases - matching logo */
.tron-city .building-red-glow {
  fill: rgba(239, 68, 68, 0.45);
}

.tron-city .ground-line {
  stroke: rgba(34, 197, 94, 0.5);
  stroke-width: 1;
  filter: drop-shadow(0 0 8px rgba(34,197,94,0.4));
}

.tron-city .energy-beam {
  display: none;
}

/* Energy chart line in the sky */
.tron-city .energy-chart {
  stroke: rgba(34, 197, 94, 0.7);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5)) drop-shadow(0 0 12px rgba(34, 197, 94, 0.3));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: chartDraw 4s ease-out forwards;
}

.tron-city .energy-chart-glow {
  stroke: rgba(34, 197, 94, 0.1);
  stroke-width: 6;
  fill: none;
  filter: blur(4px);
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: chartDraw 4s ease-out forwards;
}

.tron-city .energy-chart-arrow {
  fill: rgba(34, 197, 94, 0.9);
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.8));
  transition: transform 0.3s;
}

@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}

/* ===== ENERGY BORDER HOVER EFFECT ===== */
.energy-border {
  position: relative;
  overflow: hidden;
}

.energy-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--energy-angle, 0deg),
    transparent 0%,
    rgba(34, 197, 94, 0) 20%,
    rgba(74, 222, 128, 0.6) 30%,
    rgba(34, 197, 94, 0.8) 35%,
    rgba(74, 222, 128, 0.6) 40%,
    rgba(34, 197, 94, 0) 50%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: energySpin 3s linear infinite;
  pointer-events: none;
}

@keyframes energySpin {
  from { --energy-angle: 0deg; }
  to { --energy-angle: 360deg; }
}

/* For browsers that support @property */
@property --energy-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.energy-border:hover::before {
  opacity: 1;
}

/* Also add glow shadow on hover */
.energy-border:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1), 0 0 40px rgba(34, 197, 94, 0.05);
}

/* Apply energy-border to interactive elements */
.card:hover,
.tab.active,
.trading-platform-entry:hover,
.fg-asset-card:hover,
.edu-card:hover,
.concept-card:hover,
.risk-card:hover,
.platform-card:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1), 0 0 40px rgba(34, 197, 94, 0.05);
}

/* ===== SCROLLING ASSET TICKER ===== */
.asset-ticker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

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

.ticker-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-header h3 i { color: var(--accent); }

.ticker-scroll-container {
  height: 520px;
  overflow-y: auto;
  position: relative;
}

.ticker-scroll-container::-webkit-scrollbar { width: 4px; }
.ticker-scroll-container::-webkit-scrollbar-track { background: transparent; }
.ticker-scroll-container::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.ticker-scroll {
  display: flex;
  flex-direction: column;
  animation: tickerScroll 150s linear infinite;
}

/* Pause auto-scroll when user hovers or scrolls */
.ticker-scroll-container:hover .ticker-scroll,
.ticker-scroll.paused { animation-play-state: paused; }

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

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.4);
  transition: background 0.15s;
  flex-shrink: 0;
}

.ticker-item:hover { background: var(--bg-elevated); }

.ticker-name {
  font-size: 0.78rem;
  font-weight: 700;
  width: 55px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.ticker-price {
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  width: 70px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.ticker-change {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-display);
  width: 50px;
  flex-shrink: 0;
  text-align: right;
}

.ticker-stats {
  display: flex;
  gap: 8px;
  margin-left: auto;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ticker-stat-label { text-transform: uppercase; letter-spacing: 0.03em; }
.ticker-stat-val { font-weight: 600; color: var(--text-secondary); font-family: var(--font-display); }

/* ===== NEWS ITEM LINKS ===== */
.news-item {
  cursor: pointer;
}

.news-item a.news-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-item:hover .news-text {
  color: var(--text-primary);
}

.news-item .news-source {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.news-item:hover .news-source {
  opacity: 1;
}

/* ===== MOBILE RESPONSIVE ===== */

/* Mobile Navigation */
@media (max-width: 768px) {
  .main-nav .nav-container {
    padding: 12px 16px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .logo-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg-card);
  }
  
  .nav-right {
    display: none;
  }
  
  .nav-right.mobile-show {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 12px 16px;
    justify-content: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 998;
  }
  
  .mobile-toggle {
    display: flex !important;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
  }
  
  .nav-credit {
    display: none;
  }
}

/* Hero Section Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding: 80px 16px 40px;
  }
  
  .hero-content {
    padding: 0 8px;
  }
  
  .hero-title-main {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
  }
  
  .tron-title-perp,
  .tron-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle-tagline {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .hero-sub {
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0 8px;
  }
  
  .tron-city {
    opacity: 0.3;
  }
}

/* Dashboard Layout Mobile */
@media (max-width: 1024px) {
  .dashboard-layout {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  
  .main-content {
    width: 100%;
    order: 1;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
    flex-direction: column;
  }
  
  .sidebar-panel {
    width: 100%;
  }
}

/* Landing Intro Mobile */
@media (max-width: 768px) {
  .landing-intro {
    padding: 24px 16px;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* Trading Platform Entries Mobile */
@media (max-width: 768px) {
  .trading-platform-entry {
    margin-bottom: 12px;
  }
  
  .tp-header {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  
  .tp-icon {
    width: 36px;
    height: 36px;
  }
  
  .tp-info {
    flex: 1;
    min-width: 120px;
  }
  
  .tp-info h3 {
    font-size: 1rem;
  }
  
  .tp-tagline {
    font-size: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .tp-header-stats {
    display: none;
  }
  
  .tp-volume-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
    order: 10;
  }
  
  .tp-trade-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    order: 11;
  }
  
  .tp-expand-btn {
    padding: 8px;
    order: 12;
  }
  
  .tp-body {
    padding: 12px;
  }
  
  .tp-description {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  
  .tp-features {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .feature-tag {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  
  .tp-offer {
    font-size: 0.75rem;
    padding: 10px;
  }
  
  .tp-footer {
    padding: 12px;
  }
  
  .tp-cta {
    font-size: 0.8rem;
    padding: 10px 16px;
  }
}

/* Show mobile stats grid when expanded */
@media (max-width: 768px) {
  .tp-body::before {
    content: '';
    display: block;
  }
  
  .trading-platform-entry.expanded .tp-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
  }
  
  .tp-mobile-stats .stat {
    text-align: center;
  }
  
  .tp-mobile-stats .stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
  }
  
  .tp-mobile-stats .stat-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
  }
}

/* Cards Mobile */
@media (max-width: 768px) {
  .card {
    border-radius: 12px;
  }
  
  .card-header {
    padding: 12px 14px;
  }
  
  .card-header h3 {
    font-size: 0.85rem;
  }
  
  .card-body {
    padding: 12px 14px;
  }
}

/* Asset Ticker Mobile */
@media (max-width: 768px) {
  .asset-ticker {
    padding: 8px 0;
  }
  
  .ticker-item {
    padding: 6px 12px;
    min-width: 100px;
  }
  
  .ticker-symbol {
    font-size: 0.7rem;
  }
  
  .ticker-price {
    font-size: 0.75rem;
  }
  
  .ticker-change {
    font-size: 0.65rem;
  }
}

/* Sidebar Panels Mobile */
@media (max-width: 768px) {
  .sidebar-panel {
    padding: 14px;
  }
  
  .panel-title {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .mini-chart {
    height: 120px;
  }
}

/* Market Stats Grid Mobile */
@media (max-width: 768px) {
  .market-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .market-stat {
    padding: 12px;
  }
  
  .market-stat-label {
    font-size: 0.65rem;
  }
  
  .market-stat-value {
    font-size: 1rem;
  }
}

/* Liquidations Table Mobile */
@media (max-width: 768px) {
  .liq-table {
    font-size: 0.7rem;
  }
  
  .liq-table th,
  .liq-table td {
    padding: 8px 6px;
  }
  
  .liq-table th:nth-child(3),
  .liq-table td:nth-child(3) {
    display: none;
  }
}

/* Funding Rates Mobile */
@media (max-width: 768px) {
  .funding-list {
    gap: 6px;
  }
  
  .funding-item {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}

/* Data Page Mobile */
@media (max-width: 768px) {
  .data-dashboard {
    padding: 16px;
  }
  
  .data-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .data-card {
    padding: 16px;
  }
  
  .data-table {
    font-size: 0.7rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 6px;
  }
}

/* Education Page Mobile */
@media (max-width: 768px) {
  .education-content {
    padding: 16px;
  }
  
  .edu-section {
    padding: 16px;
  }
  
  .edu-title {
    font-size: 1.1rem;
  }
  
  .edu-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* Gauge Component Mobile */
@media (max-width: 768px) {
  .gauge-container {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* News Feed Mobile */
@media (max-width: 768px) {
  .news-feed {
    gap: 8px;
  }
  
  .news-item {
    padding: 10px;
  }
  
  .news-text {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }
  
  .news-time {
    font-size: 0.6rem;
  }
}

/* CEX Section Mobile */
@media (max-width: 768px) {
  .cex-section {
    margin-top: 24px;
  }
  
  .cex-disclaimer {
    font-size: 0.75rem;
    padding: 12px;
  }
}

/* Tooltips Mobile - convert to tap */
@media (max-width: 768px) {
  [data-tooltip]:hover::after {
    display: none;
  }
  
  [data-tooltip].tooltip-active::after {
    display: block;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-title-main,
  .tron-title-perp,
  .tron-title {
    font-size: 1.8rem;
  }
  
  .tp-info h3 {
    font-size: 0.9rem;
  }
  
  .tp-trade-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  
  .market-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
    padding: 60px 24px 30px;
  }
  
  .hero-title-main {
    font-size: 1.8rem;
  }
  
  .dashboard-layout {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .main-content {
    flex: 2;
    min-width: 300px;
  }
  
  .sidebar {
    flex: 1;
    min-width: 250px;
  }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  a, button, .clickable {
    min-height: 44px;
    min-width: 44px;
  }
  
  .tp-header {
    min-height: auto;
  }
}

/* Smooth scroll on iOS */
@supports (-webkit-overflow-scrolling: touch) {
  .scrollable {
    -webkit-overflow-scrolling: touch;
  }
}

/* Hide desktop-only elements */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* Show mobile-only elements */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}
