/**
 * deposit-animation.css — cinematic money transfer to Deposit Balance.
 */

.deposit-transfer-amount {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  color: #4ade80;
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.9), 0 0 24px rgba(74, 222, 128, 0.45);
  filter: drop-shadow(0 0 14px rgba(74, 222, 128, 0.55));
  will-change: transform, left, top, opacity;
}

.deposit-transfer-trail {
  position: fixed;
  z-index: 2990;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.95) 0%, rgba(74, 222, 128, 0.3) 55%, transparent 100%);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.7);
  opacity: 0.9;
  will-change: left, top, opacity, transform;
}

.deposit-transfer-particle {
  position: fixed;
  z-index: 2991;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.95) 0%, rgba(74, 222, 128, 0.55) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.55);
  will-change: transform, opacity, left, top;
}

.balance-impact-burst {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.8);
  pointer-events: none;
  z-index: 3001;
  animation: balance-impact-wave 0.6s ease-out forwards;
}

@keyframes balance-impact-wave {
  0% {
    transform: scale(0.3);
    opacity: 0.95;
  }
  100% {
    transform: scale(10);
    opacity: 0;
  }
}

.deposit-balance-react {
  animation: deposit-balance-react 0.52s ease-out;
}

@keyframes deposit-balance-react {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(74, 222, 128, 0); }
  35% { transform: scale(1.1); box-shadow: 0 0 28px rgba(74, 222, 128, 0.38); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(74, 222, 128, 0); }
}

.deposit-float-final {
  position: absolute;
  right: 10px;
  top: -12px;
  color: #4ade80;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.8);
  pointer-events: none;
  animation: deposit-final-float 1.2s ease-out forwards;
}

@keyframes deposit-final-float {
  0% { opacity: 0; transform: translateY(4px) scale(0.9); }
  20% { opacity: 1; transform: translateY(-2px) scale(1); }
  100% { opacity: 0; transform: translateY(-18px) scale(0.98); }
}

.deposit-transfer-zoom {
  animation: deposit-transfer-zoom 0.45s ease-out;
}

@keyframes deposit-transfer-zoom {
  0% { transform: scale(1); }
  40% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

