* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Spinners  */
.search-spinner-enhanced {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-top-color: #3b82f6;
  border-right-color: #3b82f6;
  border-radius: 50%;
  animation: spin-enhanced 1s linear infinite;
}

.apply-spinner-enhanced {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(16, 185, 129, 0.1);
  border-top-color: #10b981;
  border-right-color: #10b981;
  border-radius: 50%;
  animation: spin-enhanced 1s linear infinite;
}

@keyframes spin-enhanced {
  to {
    transform: rotate(360deg);
  }
}

/* Progress bars */
.progress-bar-winner {
  animation: progress-fill-winner 2.5s ease-in-out infinite;
}

.progress-bar-apply-winner {
  animation: progress-fill-apply-winner 2.5s ease-in-out infinite;
}

@keyframes progress-fill-winner {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

@keyframes progress-fill-apply-winner {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

/* Winner title  */
.winner-title {
  animation: glow-text-super 2s infinite;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.6);
}

@keyframes glow-text-super {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
      0 0 40px rgba(255, 215, 0, 0.8);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(255, 215, 0, 1), 0 0 100px rgba(255, 215, 0, 0.7);
  }
}

/* Congrats  */
.congrats-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  animation: congrats-shimmer 3s infinite;
}

@keyframes congrats-shimmer {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.9);
  }
}

/* Pulse ring */
.pulse-ring-winner {
  position: absolute;
  inset: -16px;
  border-radius: 1.5rem;
  border: 3px solid #fbbf24;
  animation: pulse-ring-super 2s infinite;
  pointer-events: none;
}

@keyframes pulse-ring-super {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Prize container  */
.prize-container {
  animation: prize-glow-super 2s infinite;
}

@keyframes prize-glow-super {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5),
      0 0 60px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.8),
      0 0 120px rgba(251, 191, 36, 0.4);
  }
}

/* Corner badge */
.corner-badge {
  animation: corner-bounce-super 2s ease-in-out infinite;
}

/* Premium  */
.premium-badge {
  animation: premium-bounce 2s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes corner-bounce-super {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-3px, -3px) rotate(5deg);
  }
}

@keyframes premium-bounce {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(3px, 3px) rotate(-5deg);
  }
}

/* Claim button  */
.winner-claim-btn {
  position: relative;
  overflow: hidden;
}

.winner-claim-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer-super 2s infinite;
}

@keyframes shimmer-super {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(200%);
  }
  100% {
    transform: translateX(200%);
  }
}

/* Floating trophy */
.floating-trophy {
  animation: float-super 3s ease-in-out infinite;
}

@keyframes float-super {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg) scale(1);
  }
  50% {
    transform: translateY(-15px) rotate(5deg) scale(1.1);
  }
}

/* Animate in */
.animate-in {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Plugin */
.iti {
  width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
  .winner-title {
    font-size: 1.875rem;
  }
}

/* Modal fullscreen sin scroll */
#modalCustom {
  overflow: hidden !important;
}

#modalCustomContent {
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

.w-full.bg-white.rounded-3xl {
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

#modalCustomDynamicContent {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

#btnModalCustom {
  flex-shrink: 0;
  margin-top: auto;
}