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

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35); }
  50% { box-shadow: 0 12px 35px rgba(59, 130, 246, 0.65); }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-up { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-fade-down { animation: fadeInDown 0.5s ease forwards; }
.animate-slide-in-right { animation: slideInRight 0.4s ease forwards; }
.animate-slide-in-left { animation: slideInLeft 0.4s ease forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2.5s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }
.delay-600 { animation-delay: 0.6s; opacity: 0; }

/* Step transitions */
.step-pane {
  animation: slideInRight 0.4s ease forwards;
}

.step-pane.leaving {
  animation: slideInLeft 0.3s ease reverse forwards;
}

/* Success checkmark */
@keyframes checkmark {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}

@keyframes circleDraw {
  0% { stroke-dashoffset: 220; }
  100% { stroke-dashoffset: 0; }
}

.success-check circle {
  fill: none;
  stroke: var(--success);
  stroke-width: 4;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: circleDraw 0.6s ease forwards;
}

.success-check path {
  fill: none;
  stroke: var(--success);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmark 0.4s 0.5s ease forwards;
}

/* Ripple effect for cards */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.6s;
}

.ripple:active::after { opacity: 1; transition: opacity 0s; }
