@keyframes ts-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ts-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ts-fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ts-fade-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ts-fade-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ts-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ts-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes ts-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes ts-slide-in-right {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes ts-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ts-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ts-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes ts-shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes ts-lift-up {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@keyframes ts-scale-up {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes ts-pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(74, 126, 255, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(74, 126, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 126, 255, 0); }
}

@keyframes ts-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ts-progress-stripes {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

@keyframes ts-blob-morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  34% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  67% { border-radius: 50% 60% 30% 60% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

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

@keyframes ts-button-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.animate-fade-in { animation: ts-fade-in var(--ts-duration-300) ease-out both; }
.animate-fade-in-up { animation: ts-fade-in-up var(--ts-duration-300) ease-out both; }
.animate-fade-in-down { animation: ts-fade-in-down var(--ts-duration-300) ease-out both; }
.animate-fade-in-left { animation: ts-fade-in-left var(--ts-duration-300) ease-out both; }
.animate-fade-in-right { animation: ts-fade-in-right var(--ts-duration-300) ease-out both; }
.animate-scale-in { animation: ts-scale-in var(--ts-duration-300) ease-out both; }
.animate-slide-up { animation: ts-slide-up var(--ts-duration-300) ease-out both; }
.animate-slide-down { animation: ts-slide-down var(--ts-duration-300) ease-out both; }
.animate-bounce { animation: ts-bounce 1s infinite; }
.animate-spin { animation: ts-spin 1s linear infinite; }
.animate-pulse { animation: ts-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-shimmer { animation: ts-shimmer 2s infinite; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); background-size: 1000px 100%; }
.animate-gradient { background-size: 200% 200%; animation: ts-gradient-shift 3s ease infinite; }
.animate-pulse-glow { animation: ts-pulse-glow 2s infinite; }
.animate-blob { animation: ts-blob-morph 8s ease-in-out infinite, ts-blob-float 6s ease-in-out infinite; }
.animate-pop { animation: ts-button-pop 0.3s ease-out; }

.hover-lift { transition: var(--ts-transition-default); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--ts-shadow-md); }

.hover-glow { transition: var(--ts-transition-default); }
.hover-glow:hover { box-shadow: var(--ts-glow-primary); }

.hover-scale { transition: var(--ts-transition-default); }
.hover-scale:hover { transform: scale(1.05); }

.transition-all { transition: all var(--ts-duration-300) var(--ts-timing-ease-in-out); }
.transition-colors { transition: background-color var(--ts-duration-300) var(--ts-timing-ease-in-out), color var(--ts-duration-300) var(--ts-timing-ease-in-out), border-color var(--ts-duration-300) var(--ts-timing-ease-in-out); }
.transition-transform { transition: transform var(--ts-duration-300) var(--ts-timing-ease-in-out); }
.transition-opacity { transition: opacity var(--ts-duration-300) var(--ts-timing-ease-in-out); }

.stagger-item {
  animation: ts-fade-in-up var(--ts-duration-500) ease-out backwards;
}
.stagger-item:nth-child(1) { animation-delay: 0ms; }
.stagger-item:nth-child(2) { animation-delay: 100ms; }
.stagger-item:nth-child(3) { animation-delay: 200ms; }
.stagger-item:nth-child(4) { animation-delay: 300ms; }
.stagger-item:nth-child(5) { animation-delay: 400ms; }
.stagger-item:nth-child(6) { animation-delay: 500ms; }
.stagger-item:nth-child(7) { animation-delay: 600ms; }
.stagger-item:nth-child(8) { animation-delay: 700ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}