

.button-wrapper {
  position: relative;
  display: inline-block;
}

.shiny-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 18px;
  color: white;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

.shiny-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.3)
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.shiny-button:hover::before {
  animation: shine 1.2s ease forwards;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 600ms linear;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 0;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.icon {
  font-size: 18px;
}

.star {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  clip-path: polygon(
    50% 0%, 60% 35%, 100% 50%, 
    60% 65%, 50% 100%, 40% 65%, 
    0% 50%, 40% 35%
  );
  opacity: 0;
  animation: fly 0.8s forwards;
  z-index: 2;
}

@keyframes fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.5);
    opacity: 0;
  }
}

.svg-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.svg-border path {
  fill: none;
  stroke: #ffffffcc;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw-path 1s ease-in-out forwards;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}