.sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparkle-explosion 1.5s ease-out forwards;
  z-index: 1000;
  font-size: 75px;
  transform: translate(-50%, -50%);
  --angle: 0deg; /* Default angle, will be set by JavaScript */
}

@keyframes sparkle-explosion {
  0% {
    transform: 
      translate(-50%, -50%) 
      rotate(calc(var(--angle) - 45deg)) 
      translateX(0px) 
      scale(0.3);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: 
      translate(-50%, -50%) 
      rotate(calc(var(--angle) - 45deg)) 
      translateX(100px) 
      scale(0.1);
    opacity: 0;
  }
}

.copy-popup {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(127, 251, 255, 0.95);
  color: rgb(0, 0, 128);
  padding: 12px 24px;
  border-radius: 25px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.copy-popup.show {
  animation: popup-fade 3s ease-in-out forwards;
}

@keyframes popup-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  90% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

/* Adjust popup size for mobile screens */
@media (max-width: 768px) {
  .copy-popup {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    /* bottom: 80px; */
  }
}

/* Even smaller for very small screens */
@media (max-width: 480px) {
  .copy-popup {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 15px;
    /* bottom: 60px; */
  }
}