/* ============================================================
   YEIMER APP — ANIMATIONS
   Micro-interactions & Motion Design System
   Version 1.0 · 2026
   ============================================================ */

/* ============================================================
   ── @KEYFRAMES LIBRARY ────────────────────────────────────
   ============================================================ */

/* ── FADE IN UP ───────────────────────────────────────────── */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FADE IN DOWN ─────────────────────────────────────────── */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FADE IN ──────────────────────────────────────────────── */
@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* ── FADE OUT ─────────────────────────────────────────────── */
@keyframes fadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ── SLIDE IN RIGHT ───────────────────────────────────────── */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── SLIDE IN LEFT ────────────────────────────────────────── */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── SLIDE OUT RIGHT ──────────────────────────────────────── */
@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ── SLIDE OUT LEFT ───────────────────────────────────────── */
@keyframes slideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

/* ── PULSE ────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.92);
  }
}

/* ── PULSE RING ───────────────────────────────────────────── */
@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(255, 107, 53, 0);
  }
  100% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

/* ── GLOW ─────────────────────────────────────────────────── */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 8px  rgba(255, 107, 53, 0.30),
                0 0 20px rgba(255, 107, 53, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.60),
                0 0 40px rgba(255, 107, 53, 0.35),
                0 0 60px rgba(255, 107, 53, 0.15);
  }
}

/* ── GLOW SECONDARY ───────────────────────────────────────── */
@keyframes glowSecondary {
  0%, 100% {
    box-shadow: 0 0 8px  rgba(124, 58, 237, 0.30),
                0 0 20px rgba(124, 58, 237, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.60),
                0 0 40px rgba(124, 58, 237, 0.35),
                0 0 60px rgba(124, 58, 237, 0.15);
  }
}

/* ── SHIMMER (SKELETON) ───────────────────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ── FLOAT ────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ── FLOAT SLOW ───────────────────────────────────────────── */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-8px) rotate(1deg);
  }
  66% {
    transform: translateY(-4px) rotate(-1deg);
  }
}

/* ── ROTATE ───────────────────────────────────────────────── */
@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── ROTATE COUNTER ───────────────────────────────────────── */
@keyframes rotateCounter {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* ── SCALE IN ─────────────────────────────────────────────── */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  70% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── SCALE OUT ────────────────────────────────────────────── */
@keyframes scaleOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.85);
  }
}

/* ── RIPPLE ───────────────────────────────────────────────── */
@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ── DOT MOVE (Spinner dots) ──────────────────────────────── */
@keyframes dotMove {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ── DOT BOUNCE (Typing indicator) ───────────────────────── */
@keyframes dotBounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
}

/* ── GRADIENT SHIFT ───────────────────────────────────────── */
@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ── BOUNCE IN ────────────────────────────────────────────── */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(-30px);
  }
  60% {
    opacity: 1;
    transform: scale(1.08) translateY(4px);
  }
  80% {
    transform: scale(0.97) translateY(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── BOUNCE OUT ───────────────────────────────────────────── */
@keyframes bounceOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  30% {
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(0.7) translateY(-20px);
  }
}

/* ── RIDER DOT MOVE (Map animation) ──────────────────────── */
@keyframes riderMove {
  0%   { transform: translate(0,    0)    rotate(0deg);   }
  20%  { transform: translate(30px, -20px) rotate(15deg);  }
  40%  { transform: translate(70px, 10px)  rotate(-5deg);  }
  60%  { transform: translate(110px,-15px) rotate(10deg);  }
  80%  { transform: translate(150px, 5px)  rotate(-8deg);  }
  100% { transform: translate(0,    0)    rotate(0deg);   }
}

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

/* ── SLIDE UP (Page) ──────────────────────────────────────── */
@keyframes slideUpPage {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SLIDE DOWN (Page) ────────────────────────────────────── */
@keyframes slideDownPage {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SHAKE (Error) ────────────────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-6px); }
  30%, 70% { transform: translateX(6px); }
}

/* ── JELLY ────────────────────────────────────────────────── */
@keyframes jelly {
  0%   { transform: scale(1,    1);    }
  30%  { transform: scale(1.25, 0.75); }
  40%  { transform: scale(0.75, 1.25); }
  50%  { transform: scale(1.15, 0.85); }
  65%  { transform: scale(0.95, 1.05); }
  75%  { transform: scale(1.05, 0.95); }
  100% { transform: scale(1,    1);    }
}

/* ── FLIP IN ──────────────────────────────────────────────── */
@keyframes flipIn {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateX(-90deg);
  }
  40% {
    transform: perspective(400px) rotateX(20deg);
  }
  60% {
    opacity: 1;
    transform: perspective(400px) rotateX(-10deg);
  }
  80% {
    transform: perspective(400px) rotateX(5deg);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg);
  }
}

/* ── NUMBER TICK ──────────────────────────────────────────── */
@keyframes numberTick {
  0%   { transform: translateY(0); opacity: 1; }
  50%  { transform: translateY(-100%); opacity: 0; }
  50.01% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ── SWIPE HINT ───────────────────────────────────────────── */
@keyframes swipeHint {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50%       { transform: translateX(12px); opacity: 1; }
}

/* ── HERO GRADIENT ANIMATION ──────────────────────────────── */
@keyframes heroGradient {
  0%   { background-position: 0%   50%; filter: hue-rotate(0deg); }
  50%  { background-position: 100% 50%; filter: hue-rotate(30deg); }
  100% { background-position: 0%   50%; filter: hue-rotate(0deg); }
}

/* ── SPARK ────────────────────────────────────────────────── */
@keyframes spark {
  0%   { transform: scale(0) rotate(0deg);   opacity: 1; }
  50%  { opacity: 1; }
  100% { transform: scale(1.5) rotate(180deg); opacity: 0; }
}

/* ============================================================
   ── ANIMATION UTILITY CLASSES ─────────────────────────────
   ============================================================ */

/* --- Core Animations --- */
.animate-fadeInUp     { animation: fadeInUp     0.45s var(--ease-out) both; }
.animate-fadeInDown   { animation: fadeInDown   0.45s var(--ease-out) both; }
.animate-fadeIn       { animation: fadeIn       0.3s  var(--ease-out) both; }
.animate-fadeOut      { animation: fadeOut      0.25s var(--ease-in)  both; }
.animate-slideInRight { animation: slideInRight 0.4s  var(--ease-spring) both; }
.animate-slideInLeft  { animation: slideInLeft  0.4s  var(--ease-spring) both; }
.animate-scaleIn      { animation: scaleIn      0.4s  var(--ease-spring) both; }
.animate-scaleOut     { animation: scaleOut     0.25s var(--ease-in)     both; }
.animate-bounceIn     { animation: bounceIn     0.6s  var(--ease-spring) both; }
.animate-bounceOut    { animation: bounceOut    0.4s  var(--ease-in)     both; }
.animate-shake        { animation: shake        0.5s  var(--ease-default); }
.animate-jelly        { animation: jelly        0.6s  var(--ease-default); }
.animate-flipIn       { animation: flipIn       0.6s  var(--ease-spring) both; }
.animate-float        { animation: float        3s    ease-in-out infinite; }
.animate-floatSlow    { animation: floatSlow    6s    ease-in-out infinite; }
.animate-pulse        { animation: pulse        2s    ease-in-out infinite; }
.animate-glow         { animation: glow         2.5s  ease-in-out infinite; }
.animate-glowSecondary{ animation: glowSecondary 2.5s ease-in-out infinite; }
.animate-rotate       { animation: rotate       1s    linear infinite; }
.animate-ping         { animation: ping         1.5s  cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-swipeHint    { animation: swipeHint    2s    ease-in-out infinite; }

/* Gradient background classes */
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.animate-hero-gradient {
  background: var(--gradient-banner);
  background-size: 300% 300%;
  animation: heroGradient 8s ease infinite;
}

/* Shimmer (skeleton) */
.animate-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* ── DURATION MODIFIERS ───────────────────────────────────── */
.duration-fast   { animation-duration: 0.2s !important; }
.duration-base   { animation-duration: 0.35s !important; }
.duration-slow   { animation-duration: 0.6s !important; }
.duration-slower { animation-duration: 1s !important; }
.duration-1      { animation-duration: 1s !important; }
.duration-2      { animation-duration: 2s !important; }
.duration-3      { animation-duration: 3s !important; }

/* ── DELAY MODIFIERS ──────────────────────────────────────── */
.delay-0    { animation-delay: 0ms !important; }
.delay-75   { animation-delay: 75ms !important; }
.delay-100  { animation-delay: 100ms !important; }
.delay-150  { animation-delay: 150ms !important; }
.delay-200  { animation-delay: 200ms !important; }
.delay-300  { animation-delay: 300ms !important; }
.delay-400  { animation-delay: 400ms !important; }
.delay-500  { animation-delay: 500ms !important; }
.delay-600  { animation-delay: 600ms !important; }
.delay-700  { animation-delay: 700ms !important; }
.delay-800  { animation-delay: 800ms !important; }
.delay-1000 { animation-delay: 1000ms !important; }

/* ── STAGGER ANIMATIONS (for lists) ──────────────────────── */
/* Parent: .stagger-list | Children: .stagger-item */
.stagger-list > .stagger-item { opacity: 0; }
.stagger-list.is-visible > .stagger-item {
  animation: fadeInUp 0.45s var(--ease-out) both;
}

.stagger-list.is-visible > .stagger-item:nth-child(1)  { animation-delay: 0ms;   }
.stagger-list.is-visible > .stagger-item:nth-child(2)  { animation-delay: 60ms;  }
.stagger-list.is-visible > .stagger-item:nth-child(3)  { animation-delay: 120ms; }
.stagger-list.is-visible > .stagger-item:nth-child(4)  { animation-delay: 180ms; }
.stagger-list.is-visible > .stagger-item:nth-child(5)  { animation-delay: 240ms; }
.stagger-list.is-visible > .stagger-item:nth-child(6)  { animation-delay: 300ms; }
.stagger-list.is-visible > .stagger-item:nth-child(7)  { animation-delay: 360ms; }
.stagger-list.is-visible > .stagger-item:nth-child(8)  { animation-delay: 420ms; }
.stagger-list.is-visible > .stagger-item:nth-child(9)  { animation-delay: 480ms; }
.stagger-list.is-visible > .stagger-item:nth-child(10) { animation-delay: 540ms; }

/* Horizontal stagger (cards in scroll) */
.stagger-row > .stagger-item { opacity: 0; }
.stagger-row.is-visible > .stagger-item {
  animation: slideInRight 0.4s var(--ease-spring) both;
}
.stagger-row.is-visible > .stagger-item:nth-child(1) { animation-delay: 0ms;   }
.stagger-row.is-visible > .stagger-item:nth-child(2) { animation-delay: 80ms;  }
.stagger-row.is-visible > .stagger-item:nth-child(3) { animation-delay: 160ms; }
.stagger-row.is-visible > .stagger-item:nth-child(4) { animation-delay: 240ms; }
.stagger-row.is-visible > .stagger-item:nth-child(5) { animation-delay: 320ms; }

/* Grid stagger */
.stagger-grid > .stagger-item { opacity: 0; }
.stagger-grid.is-visible > .stagger-item {
  animation: scaleIn 0.4s var(--ease-spring) both;
}
.stagger-grid.is-visible > .stagger-item:nth-child(1)  { animation-delay: 0ms;   }
.stagger-grid.is-visible > .stagger-item:nth-child(2)  { animation-delay: 50ms;  }
.stagger-grid.is-visible > .stagger-item:nth-child(3)  { animation-delay: 100ms; }
.stagger-grid.is-visible > .stagger-item:nth-child(4)  { animation-delay: 150ms; }
.stagger-grid.is-visible > .stagger-item:nth-child(5)  { animation-delay: 200ms; }
.stagger-grid.is-visible > .stagger-item:nth-child(6)  { animation-delay: 250ms; }

/* ── PAGE TRANSITIONS ─────────────────────────────────────── */
.page-enter {
  animation: slideInRight 0.4s var(--ease-spring) both;
}

.page-exit {
  animation: slideOutLeft 0.3s var(--ease-in) both;
}

.page-enter-back {
  animation: slideInLeft 0.4s var(--ease-spring) both;
}

.page-exit-back {
  animation: slideOutRight 0.3s var(--ease-in) both;
}

.page-fade-enter {
  animation: fadeIn 0.3s var(--ease-out) both;
}

.page-fade-exit {
  animation: fadeOut 0.25s var(--ease-in) both;
}

.page-up-enter {
  animation: slideUpPage 0.45s var(--ease-spring) both;
}

/* ── RIPPLE EFFECT (Click) ────────────────────────────────── */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  transform: scale(0);
  animation: rippleExpand 0.6s var(--ease-out);
}

@keyframes rippleExpand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── HOVER EFFECTS ────────────────────────────────────────── */
.hover-lift {
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-scale {
  transition: transform var(--transition-spring);
}
.hover-scale:hover { transform: scale(1.04); }
.hover-scale:active { transform: scale(0.96); }

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

.hover-bright {
  transition: filter var(--transition-base);
}
.hover-bright:hover {
  filter: brightness(1.15);
}

/* ── PRESS EFFECT ─────────────────────────────────────────── */
.press-effect {
  transition: transform var(--transition-fast);
}
.press-effect:active {
  transform: scale(0.95);
}

/* ── SKELETON LOADERS ─────────────────────────────────────── */
.skeleton-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line--short { width: 60%; }
.skeleton-line--medium { width: 80%; }
.skeleton-line--full { width: 100%; }
.skeleton-line--sm { height: 8px; }
.skeleton-line--lg { height: 18px; }

.skeleton-circle {
  border-radius: var(--radius-full);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ── SUCCESS CHECK ANIMATION ──────────────────────────────── */
@keyframes checkDraw {
  0%   { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}

.success-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkDraw 0.5s var(--ease-out) 0.3s both;
}

/* ── NUMBER COUNTER ───────────────────────────────────────── */
.number-tick {
  display: inline-block;
  overflow: hidden;
}

.number-tick.updating {
  animation: numberTick 0.3s var(--ease-default) both;
}

/* ── PARALLAX HINT ────────────────────────────────────────── */
.parallax-slow   { will-change: transform; transition: transform 0.1s linear; }
.parallax-medium { will-change: transform; transition: transform 0.15s linear; }
.parallax-fast   { will-change: transform; transition: transform 0.05s linear; }

/* ── ENTRANCE SEQUENCE (Splash Screen) ───────────────────── */
.splash-logo {
  animation: scaleIn 0.7s var(--ease-spring) both;
}

.splash-tagline {
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.splash-cta {
  animation: fadeInUp 0.6s var(--ease-out) 0.7s both;
}

.splash-bg-orb-1 {
  animation: float 8s ease-in-out infinite, glow 4s ease-in-out infinite;
}

.splash-bg-orb-2 {
  animation: floatSlow 10s ease-in-out infinite, glowSecondary 5s ease-in-out infinite;
  animation-delay: -3s;
}

/* ── HOME SCREEN ENTRANCE ─────────────────────────────────── */
.home-header     { animation: fadeInDown 0.5s var(--ease-out) 0.0s both; }
.home-search     { animation: fadeInUp   0.5s var(--ease-out) 0.1s both; }
.home-categories { animation: fadeInUp   0.5s var(--ease-out) 0.2s both; }
.home-banner     { animation: fadeIn     0.6s var(--ease-out) 0.25s both; }
.home-section-1  { animation: fadeInUp   0.5s var(--ease-out) 0.3s both; }
.home-section-2  { animation: fadeInUp   0.5s var(--ease-out) 0.4s both; }

/* ── CART ITEM ADD ANIMATION ──────────────────────────────── */
@keyframes cartItemAdd {
  0%   { transform: scale(0.85) translateX(20px); opacity: 0; }
  60%  { transform: scale(1.03) translateX(0px);  opacity: 1; }
  100% { transform: scale(1)    translateX(0px);  opacity: 1; }
}

.cart-item-enter {
  animation: cartItemAdd 0.4s var(--ease-spring) both;
}

@keyframes cartItemRemove {
  0%   { transform: scale(1) translateX(0); opacity: 1; max-height: 120px; }
  40%  { transform: scale(0.95) translateX(10px); }
  100% { transform: scale(0.8) translateX(50px); opacity: 0; max-height: 0; padding: 0; margin: 0; }
}

.cart-item-exit {
  animation: cartItemRemove 0.35s var(--ease-in) both;
}

/* ── PAGE ENTER (Fade + Slide from right) ────────────────── */
@keyframes pageEnter {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── PAGE EXIT (Fade + Slide to left) ────────────────────── */
@keyframes pageExit {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-40px);
  }
}

/* ── SLIDE UP (For toasts) ───────────────────────────────── */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SLIDE DOWN (For notifications) ──────────────────────── */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── MODAL FADE IN ───────────────────────────────────────── */
@keyframes modalFadeIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

/* ── COUNT UP (For number animations) ────────────────────── */
@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── ANIMATION UTILITY CLASSES (New) ─────────────────────── */
.animate-pageEnter    { animation: pageEnter    0.4s  var(--ease-spring) both; }
.animate-pageExit     { animation: pageExit     0.3s  var(--ease-in)     both; }
.animate-slideUp      { animation: slideUp      0.35s var(--ease-spring) both; }
.animate-slideDown    { animation: slideDown    0.35s var(--ease-spring) both; }
.animate-modalFadeIn  { animation: modalFadeIn  0.3s  var(--ease-out)    both; }
.animate-countUp      { animation: countUp      0.5s  var(--ease-spring) both; }

/* Page transition helper classes */
.page-slide-enter {
  animation: pageEnter 0.4s var(--ease-spring) both;
}

.page-slide-exit {
  animation: pageExit 0.3s var(--ease-in) both;
}

/* Toast slide-up animation */
.toast-slide-enter {
  animation: slideUp 0.35s var(--ease-spring) both;
}

/* Notification slide-down animation */
.notif-slide-enter {
  animation: slideDown 0.35s var(--ease-spring) both;
}

/* Modal overlay animation */
.modal-overlay-enter {
  animation: modalFadeIn 0.3s var(--ease-out) both;
}

/* Number count-up animation */
.number-count-enter {
  animation: countUp 0.5s var(--ease-spring) both;
}

/* ── PERFORMANCE: Respect Motion Preferences ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

