/**
 * TICKS // Custom Fintech Theme & Micro-Interactions
 * Zero-jitter tabular numerals, glassmorphism, glowing borders & silky animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #09090b;
  --surface-card: #121215;
  --surface-border: #27272a;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: #f4f4f5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tabular Monospace Numerals to Guarantee ZERO Horizontal Jitter */
.font-mono,
.tabular-nums {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* Glassmorphism & Neon Glow Utilities */
.glass-panel {
  background: rgba(18, 18, 21, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(39, 39, 42, 0.8);
}

.glow-emerald {
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.25);
}

.glow-cyan {
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.25);
}

.glow-amber {
  box-shadow: 0 0 25px -5px rgba(245, 158, 11, 0.25);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.7));
  }
}

.live-pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Live Ticker tape animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Range input styling */
input[type="range"] {
  accent-color: #06b6d4;
}
