/* Modern White Theme - High Precision FinTech UI */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-canvas: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  
  --border-card: rgba(226, 232, 240, 0.85);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-primary: 0 8px 20px -4px rgba(79, 70, 229, 0.25);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modern White Card & Elevation */
.white-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.white-card:hover {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: var(--shadow-md);
}

.white-card-elevated {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

/* Strategy Marketplace Card */
.strategy-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.strategy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.strategy-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 210, 254, 0.9);
  box-shadow: var(--shadow-lg);
}

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

/* Stat Grid Number */
.stat-value {
  font-family: var(--font-sans);
  font-feature-settings: "tnum" 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mono-tag {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* Live Pulse Indicator */
.live-pulse-container {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
}

.live-pulse-ping {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: #22c55e;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-pulse-dot {
  position: relative;
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background-color: #16a34a;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Interactive Tabs & Navigation System */
.tab-btn {
  position: relative;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: #4f46e5;
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link-item:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.nav-link-item.active {
  color: #4338ca;
  background-color: #eef2ff;
  border: 1px solid rgba(199, 210, 254, 0.8);
  box-shadow: 0 1px 2px 0 rgba(79, 70, 229, 0.06);
  font-weight: 700;
}

.nav-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.42rem 0.85rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-btn-outline:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.06);
}

.nav-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.42rem 0.95rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 8px -1px rgba(79, 70, 229, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px -2px rgba(79, 70, 229, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px 0 rgba(79, 70, 229, 0.3);
}

/* Gradient buttons */
.btn-primary-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  box-shadow: 0 6px 16px -2px rgba(79, 70, 229, 0.45);
  transform: translateY(-1px);
}

.btn-primary-gradient:active {
  transform: translateY(0);
}

/* Modern White Modal Backdrop */
.modal-backdrop-blur {
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
}

/* Action Badges */
.badge-buy {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-sell {
  background-color: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.badge-active {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.badge-paused {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ========================================================
   3D Design System & Micro-Animations
   ======================================================== */

.perspective-1000 {
  perspective: 1000px;
}

.perspective-1200 {
  perspective: 1200px;
}

/* 3D Depth Card */
.card-3d {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 
              0 8px 10px -6px rgba(15, 23, 42, 0.03), 
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease;
  position: relative;
  will-change: transform, box-shadow;
}

.card-3d:hover {
  transform: translateY(-8px) scale(1.008);
  border-color: rgba(165, 180, 252, 0.8);
  box-shadow: 0 24px 48px -12px rgba(79, 70, 229, 0.16), 
              0 12px 24px -4px rgba(15, 23, 42, 0.07), 
              inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 3D Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-0.6deg);
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
  }
}

@keyframes shimmerGlow {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: floatSlow 3.2s ease-in-out infinite;
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s infinite;
}

/* 3D Tactile Buttons */
.btn-3d-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border-radius: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 0 #3730a3, 0 10px 22px -3px rgba(79, 70, 229, 0.4);
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-3d-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #3730a3, 0 14px 26px -3px rgba(79, 70, 229, 0.5);
}

.btn-3d-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #3730a3, 0 6px 12px -2px rgba(79, 70, 229, 0.3);
}

.btn-3d-white {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-weight: 700;
  box-shadow: 0 3px 0 #cbd5e1, 0 8px 18px -2px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-3d-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #cbd5e1, 0 12px 22px -2px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-3d-white:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #cbd5e1, 0 4px 8px -2px rgba(15, 23, 42, 0.08);
}

/* 3D Isometric Icon Badges */
.icon-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px -3px rgba(79, 70, 229, 0.4), 
              inset 0 2px 0 rgba(255, 255, 255, 0.35), 
              inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-3d:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 24px -3px rgba(79, 70, 229, 0.5), 
              inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

.icon-3d-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 8px 18px -3px rgba(16, 185, 129, 0.4), 
              inset 0 2px 0 rgba(255, 255, 255, 0.35), 
              inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.icon-3d-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  box-shadow: 0 8px 18px -3px rgba(6, 182, 212, 0.4), 
              inset 0 2px 0 rgba(255, 255, 255, 0.35), 
              inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.icon-3d-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 8px 18px -3px rgba(245, 158, 11, 0.4), 
              inset 0 2px 0 rgba(255, 255, 255, 0.35), 
              inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.icon-3d-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 8px 18px -3px rgba(168, 85, 247, 0.4), 
              inset 0 2px 0 rgba(255, 255, 255, 0.35), 
              inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* 3D Glass Surface */
.glass-surface-3d {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 
              0 1px 3px 0 rgba(15, 23, 42, 0.04), 
              inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 3D Interactive Tilt card */
.interactive-tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
