/* Fade In Up Animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25,0.1,0.25,1), transform 0.8s cubic-bezier(0.25,0.1,0.25,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.fade-in.delay-1 { transition-delay: 0.15s }
.fade-in.delay-2 { transition-delay: 0.3s }
.fade-in.delay-3 { transition-delay: 0.45s }
.fade-in.delay-4 { transition-delay: 0.6s }
.fade-in.delay-5 { transition-delay: 0.75s }

/* Fade In from Left */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25,0.1,0.25,1), transform 0.8s cubic-bezier(0.25,0.1,0.25,1);
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade In from Right */
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25,0.1,0.25,1), transform 0.8s cubic-bezier(0.25,0.1,0.25,1);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Equity Curve - Line Draw */
.equity-svg .equity-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}
.equity-svg .equity-fill {
  opacity: 0;
  transition: opacity 1.2s ease 1s;
}
.equity-svg.animate .equity-line {
  stroke-dashoffset: 0;
}
.equity-svg.animate .equity-fill {
  opacity: 1;
}

/* Monthly Bars - Grow Up */
.monthly-bars .bar {
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(0.25,0.1,0.25,1);
}
.monthly-bars.animate .bar {
  transform: scaleY(1);
}
.monthly-bars.animate .bar:nth-child(1) { transition-delay: 0.05s }
.monthly-bars.animate .bar:nth-child(2) { transition-delay: 0.1s }
.monthly-bars.animate .bar:nth-child(3) { transition-delay: 0.15s }
.monthly-bars.animate .bar:nth-child(4) { transition-delay: 0.2s }
.monthly-bars.animate .bar:nth-child(5) { transition-delay: 0.25s }
.monthly-bars.animate .bar:nth-child(6) { transition-delay: 0.3s }
.monthly-bars.animate .bar:nth-child(7) { transition-delay: 0.35s }
.monthly-bars.animate .bar:nth-child(8) { transition-delay: 0.4s }
.monthly-bars.animate .bar:nth-child(9) { transition-delay: 0.45s }
.monthly-bars.animate .bar:nth-child(10) { transition-delay: 0.5s }
.monthly-bars.animate .bar:nth-child(11) { transition-delay: 0.55s }
.monthly-bars.animate .bar:nth-child(12) { transition-delay: 0.6s }

/* Performance Number Count */
.perf-big {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.dash-panel.animate .perf-big {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Values */
.stats-grid .v, .perf-grid .v {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.dash-panel.animate .stats-grid .v,
.dash-panel.animate .perf-grid .v {
  opacity: 1;
}
.dash-panel.animate .stats-grid div:nth-child(1) .v { transition-delay: 0.2s }
.dash-panel.animate .stats-grid div:nth-child(2) .v { transition-delay: 0.4s }
.dash-panel.animate .stats-grid div:nth-child(3) .v { transition-delay: 0.6s }
.dash-panel.animate .perf-grid div:nth-child(1) .v { transition-delay: 0.4s }
.dash-panel.animate .perf-grid div:nth-child(2) .v { transition-delay: 0.6s }

/* === PERMANENT DASHBOARD ANIMATIONS === */

/* Pulsing dot at end of equity curve */
.equity-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}
.equity-pulse-ring {
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { r: 3; opacity: 1 }
  50% { r: 4; opacity: 0.8 }
}
@keyframes pulse-ring {
  0% { r: 3; opacity: 0.6 }
  100% { r: 10; opacity: 0 }
}

/* Scan line sweeping across equity chart */
.equity-svg::after {
  content: '';
  position: absolute;
  top: 0; left: -20%;
  width: 8%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(95,217,138,0.08), transparent);
  animation: scanline 4s linear infinite;
}
@keyframes scanline {
  0% { left: -20% }
  100% { left: 120% }
}

/* Monthly bars subtle pulse */
.monthly-bars .bar {
  animation: bar-breathe 3s ease-in-out infinite;
}
.monthly-bars .bar:nth-child(odd) { animation-delay: 0s }
.monthly-bars .bar:nth-child(even) { animation-delay: 1.5s }
@keyframes bar-breathe {
  0%, 100% { opacity: 1 }
  50% { opacity: 0.75 }
}

/* Performance number gentle pulse */
.perf-big {
  animation: num-glow 3s ease-in-out infinite;
}
@keyframes num-glow {
  0%, 100% { text-shadow: 0 0 0 transparent }
  50% { text-shadow: 0 0 12px rgba(95,217,138,0.3) }
}

/* Scale In */
.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.25,0.1,0.25,1), transform 0.8s cubic-bezier(0.25,0.1,0.25,1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}
