@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scaleIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Top Toast Animations */
@keyframes topToastSlideIn {
  0% { transform: translate(-50%, -140%) scale(0.88); opacity: 0; }
  60% { transform: translate(-50%, 4px) scale(1.02); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

@keyframes topToastSlideOut {
  0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -140%) scale(0.88); opacity: 0; }
}

.animate-top-toast-in {
  animation: topToastSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-top-toast-out {
  animation: topToastSlideOut 0.35s ease-in forwards;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.6)) drop-shadow(0 0 20px rgba(234, 88, 12, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.9)) drop-shadow(0 0 35px rgba(234, 88, 12, 0.6)); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}

@keyframes radarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Elegant glowing border for new items */
@keyframes newGoldGlow {
  0%, 100% {
    border-color: #ffd000;
    box-shadow: 0 0 14px rgba(255, 208, 0, 0.5), inset 0 0 8px rgba(255, 208, 0, 0.25);
  }
  50% {
    border-color: #fff37a;
    box-shadow: 0 0 24px rgba(255, 208, 0, 0.8), inset 0 0 14px rgba(255, 208, 0, 0.45);
  }
}

.new-item-glow {
  animation: newGoldGlow 2.2s infinite ease-in-out;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-shimmer {
  animation: shimmer 2.5s infinite;
}

.animate-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-radar {
  animation: radarSpin 4s linear infinite;
}

/* Glassmorphism utility */
.brawl-glass {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Category Filter Active Tab Glow */
.tab-active {
  background: linear-gradient(180deg, #ffd000 0%, #ff6a00 100%);
  color: #ffffff;
  border-color: #fff37a;
  box-shadow: 0 4px 18px rgba(255, 106, 0, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Halftone Comic Pattern background */
.comic-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}

/* Hide scrollbar for category tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Floating Back To Top Button */
@keyframes backToTopBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.back-to-top-btn {
  animation: backToTopBounce 2.5s ease-in-out infinite;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 12px rgba(250, 204, 21, 0.35);
}

.back-to-top-btn:hover {
  animation: none;
  transform: translateY(-2px) scale(1.08);
}

.back-to-top-btn:active {
  transform: translateY(2px) scale(0.95);
}

/* Step Progress Badge */
.step-badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Background blur when any modal is active */
.modal-active-blur {
  filter: blur(14px) brightness(0.65);
  transform: scale(0.99);
  transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  user-select: none;
}


