/* ==========================================
   GraphRider - Futuristic Trading Platform
   Light Orange-White Theme / Modern Glass
   ========================================== */

/* CSS Variables - Design System */
:root {
  /* Orange Brand Palette */
  --orange-primary: #FF6B00;
  --orange-bright: #FF8C00;
  --orange-neon: #FF5500;
  --orange-glow: #FFA347;
  --orange-deep: #E55100;
  --orange-light: #FFD3A8;
  --orange-lighter: #FFEDD9;
  --orange-tint: #FFF5EB;
  --amber-gold: #FFB800;
  --amber-soft: #FFE0A8;

  /* Light Backgrounds */
  --bg-primary: #FFFDFB;        /* nearly white with warm tint */
  --bg-secondary: #FFF8F2;      /* soft peach-white */
  --bg-tertiary: #FFF3E8;       /* light peach */
  --bg-card: rgba(255, 255, 255, 0.75);

  /* Glass Effects - light */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 107, 0, 0.18);
  --glass-border-strong: rgba(255, 107, 0, 0.35);
  --glass-hover: rgba(255, 248, 240, 0.95);
  --glass-shadow: 0 8px 32px rgba(255, 107, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --glass-shadow-hover: 0 12px 40px rgba(255, 107, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);

  /* Text Colors */
  --text-primary: #1A1625;       /* dark navy-black */
  --text-secondary: #4A4556;     /* medium grey */
  --text-muted: #8A8596;         /* light grey */
  --text-accent: #E55100;        /* deep orange for emphasis */
  --text-on-orange: #ffffff;

  /* Glow Effects - softer on light bg */
  --glow-sm: 0 0 14px rgba(255, 107, 0, 0.35);
  --glow-md: 0 6px 24px rgba(255, 107, 0, 0.3), 0 0 40px rgba(255, 140, 0, 0.15);
  --glow-lg: 0 10px 40px rgba(255, 107, 0, 0.35), 0 0 60px rgba(255, 140, 0, 0.2);
  --glow-text: 0 0 8px rgba(255, 107, 0, 0.25);

  /* Gradients */
  --grad-orange: linear-gradient(135deg, #FF5500 0%, #FF8C00 50%, #FFB800 100%);
  --grad-orange-soft: linear-gradient(135deg, rgba(255, 85, 0, 0.12) 0%, rgba(255, 184, 0, 0.08) 100%);
  --grad-orange-light: linear-gradient(135deg, #FFF3E8 0%, #FFFAF4 100%);
  --grad-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 245, 235, 0.7) 100%);
  --grad-hero: linear-gradient(135deg, #FFFDFB 0%, #FFF3E8 50%, #FFE8D5 100%);
  --grad-dark: linear-gradient(180deg, #FFFDFB 0%, #FFF8F2 100%);

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Transitions */
  --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(255, 107, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(255, 107, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(255, 107, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);

  /* Typography - Numeric / Tabular
     IBM Plex Mono = clean, readable, professional trading-platform feel.
     tabular-nums keeps columns of numbers perfectly aligned. */
  --font-num: 'IBM Plex Mono', 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: 'Prompt', sans-serif;
}

/* Apply tabular figures to every numeric-font usage for clean alignment */
.num,
[class*="price"],
[class*="value"],
[class*="stat-value"],
[class*="-num"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Prompt', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Animated Background - light orbs */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(255, 140, 0, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 85% 90%, rgba(255, 184, 0, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 220, 180, 0.25) 0%, transparent 60%);
  z-index: -2;
  animation: bgShift 22s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes bgShift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-2%, 2%) scale(1.05); }
  66% { transform: translate(2%, -2%) scale(0.95); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans-base);
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
}

.text-gradient {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-glow {
  text-shadow: var(--glow-text);
}

.text-center { text-align: center; }
.text-accent { color: var(--text-accent); }
.text-muted { color: var(--text-muted); }

/* Glass Card */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.4), transparent);
}

.glass-card {
  padding: 32px;
  transition: var(--trans-base);
}

.glass-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--trans-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35), 0 1px 3px rgba(255, 85, 0, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: var(--trans-slow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.45), 0 2px 6px rgba(255, 85, 0, 0.25);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--orange-deep);
  border: 1.5px solid var(--orange-primary);
}

.btn-outline:hover {
  background: var(--orange-tint);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--orange-deep);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--orange-tint);
  border-color: var(--orange-primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 253, 251, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 107, 0, 0.12);
  transition: var(--trans-base);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 253, 251, 0.92);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-orange);
  display: grid;
  place-items: center;
  box-shadow: var(--glow-sm);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  position: relative;
  z-index: 1;
}

.logo-text {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--trans-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-deep);
  background: rgba(255, 140, 0, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--grad-orange);
  border-radius: 2px;
  box-shadow: var(--glow-sm);
}

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

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 140, 0, 0.3);
  color: var(--orange-deep);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 22px;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--orange-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.6); }
  50% { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 0 8px rgba(255, 107, 0, 0); }
}

.hero-title {
  margin-bottom: 24px;
  font-weight: 900;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.stat-value {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Visual - Chart */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-left: auto;
}

.chart-panel {
  width: 100%;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--grad-card);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  position: relative;
  box-shadow: var(--glass-shadow-hover);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-pair-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-orange);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  box-shadow: var(--glow-sm);
}

.chart-pair-name {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.chart-pair-full {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-price {
  text-align: right;
}

.chart-price-value {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 900;
  color: var(--orange-deep);
}

.chart-price-change {
  font-size: 12px;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 2px;
  font-weight: 600;
}

.chart-price-change.down {
  color: #dc2626;
}

.chart-canvas {
  width: 100%;
  height: calc(100% - 90px);
  position: relative;
}

.chart-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating cards */
.floating-card {
  position: absolute;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: float 3s ease-in-out infinite;
  color: var(--text-primary);
}

.floating-card.fc-1 {
  top: -20px;
  left: -20px;
  animation-delay: 0s;
}

.floating-card.fc-2 {
  bottom: 40px;
  right: -30px;
  animation-delay: 1.5s;
}

.floating-card strong {
  color: var(--orange-deep);
  display: block;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}

.floating-card span {
  color: var(--text-muted);
  font-size: 11px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--grad-orange);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #fff;
  box-shadow: var(--glow-sm);
}

.feature-card h4 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* EA Cards */
.ea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.ea-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ea-card-header {
  padding: 24px 28px;
  background: var(--grad-orange-light);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.ea-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--grad-orange);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--glow-sm);
}

.ea-badge.badge-hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  animation: pulse 2s ease-in-out infinite;
}

.ea-badge.badge-new {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.ea-name {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.ea-symbol {
  font-size: 13px;
  color: var(--orange-deep);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ea-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.6);
}

.ea-description {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.ea-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--orange-tint);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 140, 0, 0.15);
  margin-bottom: 20px;
}

.ea-stat {
  text-align: center;
}

.ea-stat-value {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange-deep);
}

.ea-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
}

.ea-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ea-tag {
  padding: 4px 10px;
  background: var(--orange-tint);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--orange-deep);
  font-weight: 500;
}

.ea-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.ea-actions .btn {
  flex: 1;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--trans-base);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--orange-primary);
  color: var(--orange-deep);
  background: var(--orange-tint);
}

.filter-btn.active {
  background: var(--grad-orange);
  border-color: var(--orange-primary);
  color: #fff;
  box-shadow: var(--glow-sm);
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--grad-orange);
  display: grid;
  place-items: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.article-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.3), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255, 220, 180, 0.35), transparent 50%);
}

.article-image-icon {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7);
}

.article-category {
  font-size: 11px;
  color: var(--orange-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 140, 0, 0.15);
  font-size: 12px;
  color: var(--text-muted);
}

.article-read-more {
  color: var(--orange-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Live Ticker */
.ticker {
  overflow: hidden;
  padding: 14px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 243, 232, 0.9), rgba(255, 255, 255, 0.9));
  border-top: 1px solid rgba(255, 140, 0, 0.2);
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
  white-space: nowrap;
  position: relative;
  backdrop-filter: blur(12px);
}

.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: tickerScroll 40s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}

.ticker-symbol {
  font-weight: 700;
  color: var(--orange-deep);
}

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

.ticker-change {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.ticker-change.up {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.ticker-change.down {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

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

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 140, 0, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: var(--trans-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
  background: #fff;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E55100'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 44px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 48px;
  background: var(--glass-bg-strong);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--orange-deep);
  font-weight: 700;
}

/* Alert / Toast */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.alert-success {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.alert-info {
  background: var(--orange-tint);
  border-color: rgba(255, 140, 0, 0.3);
  color: var(--orange-deep);
}

.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--orange-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  min-width: 260px;
  animation: slideIn 0.3s ease-out;
  font-size: 14px;
}

.toast.success {
  border-color: #22c55e;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
}

.toast.error {
  border-color: #ef4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 100px 24px 60px;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
}

.sidebar {
  padding: 24px 0;
  height: fit-content;
  position: sticky;
  top: 90px;
  background: var(--glass-bg-strong);
}

.sidebar-title {
  padding: 0 24px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
}

.sidebar-nav {
  list-style: none;
  padding: 0 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--trans-base);
  cursor: pointer;
}

.sidebar-link:hover {
  background: var(--orange-tint);
  color: var(--orange-deep);
}

.sidebar-link.active {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: var(--glow-sm);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dashboard-main {
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  background: var(--glass-bg-strong);
}

.stat-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-card-value {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card-change {
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 140, 0, 0.1);
  color: var(--text-primary);
}

.data-table th {
  background: var(--orange-tint);
  font-weight: 700;
  color: var(--orange-deep);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.data-table tr:hover {
  background: rgba(255, 245, 235, 0.7);
}

.table-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: 8px;
  color: var(--orange-deep);
  cursor: pointer;
  transition: var(--trans-base);
  font-size: 14px;
}

.icon-btn:hover {
  background: var(--grad-orange);
  color: #fff;
  border-color: var(--orange-primary);
  box-shadow: var(--glow-sm);
}

.icon-btn.danger {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(254, 242, 242, 0.9);
}

.icon-btn.danger:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-neutral {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 30, 0.5);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 520px;
  padding: 36px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--glass-bg-strong);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.modal-close {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 140, 0, 0.2);
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: var(--trans-base);
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
  background: var(--grad-orange);
  border-color: var(--orange-primary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer */
.footer {
  background: var(--grad-hero);
  border-top: 1px solid rgba(255, 140, 0, 0.2);
  padding: 60px 0 30px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-orange);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-about p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--orange-deep);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: var(--radius-md);
  color: var(--orange-deep);
  transition: var(--trans-base);
  box-shadow: var(--shadow-sm);
}

.social-link:hover {
  background: var(--grad-orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
  border-color: var(--orange-primary);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 140, 0, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: var(--trans-base);
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--orange-tint);
}

.faq-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange-tint);
  display: grid;
  place-items: center;
  color: var(--orange-deep);
  flex-shrink: 0;
  margin-left: 16px;
  transition: var(--trans-base);
  font-size: 18px;
}

.faq-item.active .faq-toggle {
  background: var(--grad-orange);
  color: #fff;
  transform: rotate(45deg);
  box-shadow: var(--glow-sm);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 28px 20px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  position: relative;
}

.cta-box {
  padding: 60px 48px;
  text-align: center;
  background: var(--grad-orange);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(255, 107, 0, 0.25);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15), transparent 50%);
  pointer-events: none;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  margin-bottom: 16px;
  color: #fff;
}

.cta-box h2 .text-gradient {
  background: linear-gradient(135deg, #FFF5E0, #FFE0A8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-box p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--orange-deep);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-box .btn-primary:hover {
  background: #fff9f0;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Article Detail */
.article-detail {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.article-header {
  margin-bottom: 40px;
}

.article-header .article-category {
  margin-bottom: 16px;
}

.article-header h1 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-detail-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 20px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 32px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.article-content h2,
.article-content h3 {
  color: var(--text-primary);
  margin: 40px 0 20px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content strong {
  color: var(--orange-deep);
  font-weight: 700;
}

.article-content blockquote {
  border-left: 4px solid var(--orange-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--orange-tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
}

.article-content code {
  padding: 2px 8px;
  background: var(--orange-tint);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: var(--orange-deep);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
}

.page-item {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-base);
  padding: 0 12px;
}

.page-item:hover:not(.disabled) {
  background: var(--orange-tint);
  color: var(--orange-deep);
  border-color: var(--orange-primary);
}

.page-item.active {
  background: var(--grad-orange);
  color: #fff;
  border-color: var(--orange-primary);
  box-shadow: var(--glow-sm);
}

.page-item.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Loader */
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 140, 0, 0.15);
  border-top-color: var(--orange-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-muted);
}

/* Scroll animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.8s ease-out both;
}

.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }

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

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 253, 251, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .mobile-toggle {
    display: grid;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .modal {
    padding: 28px 20px;
  }

  .floating-card {
    display: none;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .ea-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }

  .ea-stat-value {
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange-primary), var(--orange-deep));
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--orange-bright), var(--orange-primary));
}

/* Selection */
::selection {
  background: rgba(255, 107, 0, 0.25);
  color: var(--orange-deep);
}

/* ==========================================
   Realtime Market Table
   ========================================== */
.market-section {
  padding: 80px 0 40px;
  position: relative;
}

.market-table-wrap {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.mt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.12);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.6), transparent);
}

.mt-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mt-live-dot {
  width: 12px; height: 12px;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: mt-pulse 1.6s infinite;
  flex-shrink: 0;
}

@keyframes mt-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mt-title-main {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.mt-title-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mt-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-full);
  flex-wrap: wrap;
}

.mt-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-base);
  white-space: nowrap;
}

.mt-tab:hover {
  color: var(--orange-deep);
  background: rgba(255, 107, 0, 0.08);
}

.mt-tab.active {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.mt-table-scroll {
  overflow-x: auto;
  max-height: 620px;
  overflow-y: auto;
}

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

.mt-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 253, 251, 0.95), rgba(255, 247, 237, 0.85));
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

.mt-table thead th.num { text-align: right; }
.mt-table thead th.spark-col { text-align: center; }

.mt-row {
  cursor: pointer;
  transition: background var(--trans-base);
  opacity: 0;
  transform: translateY(6px);
  position: relative;
}

.mt-row-enter {
  animation: mt-row-in 420ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes mt-row-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mt-row td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.06);
  vertical-align: middle;
}

.mt-row td.num { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.mt-row td.spark-col { text-align: center; padding: 8px; }

.mt-row:hover {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.06) 0%, rgba(255, 184, 0, 0.03) 100%);
}

.mt-row:hover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-orange);
  border-radius: 0 2px 2px 0;
  animation: mt-bar-in 240ms ease-out;
}

@keyframes mt-bar-in {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.mt-asset {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mt-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--trans-base);
}

.mt-row:hover .mt-icon {
  transform: scale(1.08) rotate(-3deg);
}

.mt-asset-symbol {
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.mt-asset-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mt-price {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 8px;
  transition: background var(--trans-base);
}

.mt-price.flash-up {
  animation: flash-up 900ms ease-out;
}
.mt-price.flash-down {
  animation: flash-down 900ms ease-out;
}

@keyframes flash-up {
  0%   { background: rgba(16, 185, 129, 0.35); color: #059669; }
  100% { background: transparent; color: var(--text-primary); }
}
@keyframes flash-down {
  0%   { background: rgba(239, 68, 68, 0.32); color: #DC2626; }
  100% { background: transparent; color: var(--text-primary); }
}

.mt-change {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  min-width: 72px;
  text-align: center;
}

.mt-change.up {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.mt-change.down {
  color: #DC2626;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.mt-range {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  gap: 2px;
}
.mt-range-high { color: #059669; }
.mt-range-low  { color: #DC2626; }

.mt-spark {
  width: 110px; height: 36px;
  display: inline-block;
  vertical-align: middle;
}

.mt-btn-open {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange-tint);
  border: 1px solid rgba(255, 107, 0, 0.2);
  color: var(--orange-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-base);
}

.mt-row:hover .mt-btn-open {
  background: var(--grad-orange);
  color: #fff;
  border-color: transparent;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

/* Hide columns on small screens */
@media (max-width: 720px) {
  .mt-table .hide-sm { display: none; }
  .mt-tabs { font-size: 12px; }
  .mt-header { padding: 16px 18px 14px; }
}
@media (max-width: 520px) {
  .mt-table .hide-xs { display: none; }
  .mt-row td { padding: 12px 12px; }
}

/* ==========================================
   Market Modal
   ========================================== */
.mt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 22, 15, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 240ms ease-out;
}

.mt-modal-overlay.show { opacity: 1; }

.mt-modal {
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  border-radius: var(--radius-lg);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: all 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}

.mt-modal-overlay.show .mt-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mt-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 107, 0, 0.15);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--trans-base);
}
.mt-modal-close:hover {
  background: var(--grad-orange);
  color: #fff;
  transform: rotate(90deg);
  border-color: transparent;
}

.mt-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
  flex-wrap: wrap;
}

.mt-modal-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.mt-modal-symbol {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.mt-modal-name {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mt-modal-tf {
  margin-left: auto;
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: var(--radius-full);
}

.mt-tf-btn {
  border: 0;
  background: transparent;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-base);
}
.mt-tf-btn:hover { color: var(--orange-deep); }
.mt-tf-btn.active {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.35);
}

.mt-modal-chart {
  padding: 20px 20px 0;
}

.mt-modal-chart .chart-canvas { height: 280px; }

.mt-modal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px 28px;
}

.mt-stat-box {
  background: var(--orange-tint);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all var(--trans-base);
}
.mt-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mt-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.mt-stat-val {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.mt-stat-val.up   { color: #059669; }
.mt-stat-val.down { color: #DC2626; }

.mt-modal-foot {
  padding: 0 28px 20px;
}
.mt-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .mt-modal-stats { grid-template-columns: repeat(2, 1fr); }
  .mt-modal-tf { margin-left: 0; width: 100%; justify-content: center; }
  .mt-modal-head { padding: 20px 18px 16px; }
  .mt-modal-chart { padding: 16px 10px 0; }
}

/* ==========================================
   Modern Animations - Global Enhancements
   ========================================== */

/* Scroll reveal - only activates when JS has set html.js-reveal
   (prevents invisible content if JS fails to load) */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.js-reveal .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

html.js-reveal .reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.js-reveal .reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
html.js-reveal .reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(2) { transition-delay: 70ms; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(3) { transition-delay: 140ms; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(4) { transition-delay: 210ms; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(5) { transition-delay: 280ms; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(6) { transition-delay: 350ms; }

/* Floating orbs in hero background */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: orb-float 14s ease-in-out infinite;
}

.hero::before {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.45), rgba(255, 184, 0, 0.15) 60%, transparent 70%);
  top: -80px; left: -120px;
}

.hero::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.35), rgba(255, 140, 0, 0.12) 55%, transparent 70%);
  bottom: -160px; right: -120px;
  animation-delay: -7s;
  animation-duration: 18s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(0.94); }
}

.hero > .container { position: relative; z-index: 1; }

/* Shimmer sweep on primary button hover */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: skewX(-20deg);
  transition: left 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover::after { left: 140%; }

/* Card lift refinement */
.glass-card {
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-strong);
}

/* Feature icon bounce on hover */
.feature-card:hover .feature-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.05);
}
.feature-icon { transition: transform var(--trans-base); }

/* Hero title subtle float */
.hero-title .text-gradient {
  background-size: 200% 100%;
  animation: grad-shift 5s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Section fade-in stagger on section-header */
.section-header { overflow: visible; }

/* Hero badge float */
.hero-badge {
  animation: hero-badge-fade 900ms ease-out both;
}
@keyframes hero-badge-fade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stats counter entrance */
.stat {
  animation: stat-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.stat:nth-child(1) { animation-delay: 200ms; }
.stat:nth-child(2) { animation-delay: 320ms; }
.stat:nth-child(3) { animation-delay: 440ms; }
@keyframes stat-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Floating cards in hero - subtle breathe */
.floating-card {
  animation: fc-breathe 6s ease-in-out infinite;
}
.floating-card.fc-2 { animation-delay: -3s; }

@keyframes fc-breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Ticker hover pause */
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ==========================================
   Live / Sim Badges + Chart Loading
   ========================================== */

/* Data source badge in table rows */
.mt-src {
  display: inline-block;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.mt-src.live {
  color: #059669;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: live-pulse 2s infinite;
}
.mt-src.sim {
  color: var(--text-muted);
  background: rgba(138, 133, 150, 0.1);
  border: 1px solid rgba(138, 133, 150, 0.25);
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* Source label in chart header */
.chart-source-live,
.chart-source-sim {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.chart-source-live {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.chart-source-sim {
  color: var(--text-muted);
  background: rgba(138, 133, 150, 0.08);
  border: 1px solid rgba(138, 133, 150, 0.2);
}
.chart-source-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: mt-pulse 1.4s infinite;
}

/* Chart loading state */
.chart-loading {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.chart-loading-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--orange-lighter);
  border-top-color: var(--orange-primary);
  animation: cl-spin 0.8s linear infinite;
}
@keyframes cl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==========================================
   ChartLW (Lightweight Charts) - pro candlestick layout
   ========================================== */
.lw-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 380px;
  position: relative;
}
.lw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px 14px;
  border-bottom: 1px solid var(--orange-lighter);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.lw-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lw-head-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}
.lw-head-symbol {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lw-head-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.lw-head-right {
  text-align: right;
}
.lw-last-price {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.lw-last-change {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
  margin-top: 3px;
}
.lw-last-change.up   { color: #10B981; }
.lw-last-change.down { color: #EF4444; }

.lw-canvas {
  position: relative;
  flex: 1;
  min-height: 320px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 245, 235, 0.35) 0%, rgba(255, 250, 245, 0.15) 100%);
}
.lw-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(255, 252, 248, 0.75);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 2;
}

/* Make the modal chart container tall enough for Lightweight Charts */
.mt-modal-chart {
  min-height: 420px;
}

@media (max-width: 640px) {
  .lw-head { padding: 4px 2px 10px; }
  .lw-last-price { font-size: 18px; }
  .lw-head-icon { width: 38px; height: 38px; font-size: 12px; }
  .lw-canvas { min-height: 260px; }
  .mt-modal-chart { min-height: 320px; }
}
