@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%) !important;
  color: #ffffff !important;
  border: 2px solid #fff37a !important;
  box-shadow: 0 4px 18px rgba(255, 106, 0, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px) scale(1.05) !important;
}

/* 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 dim when any modal is active (hardware-accelerated 60/120fps for mobile) */
.modal-active-blur {
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.15s ease-out;
}

/* iOS Safari Tap & Click Optimization (Removes 300ms delay & tap highlight gray box) */
* {
  -webkit-tap-highlight-color: transparent;
}

button, a, [role="button"], .cursor-pointer {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* CPA Offers & Verification Modal */
.brawl-offers-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 8px;
}

.brawl-offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, #17377f 0%, #0d2055 100%);
  border: 2px solid #2854bf;
  border-radius: 16px;
  padding: 10px 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.brawl-offer-card:hover {
  transform: translateY(-2px);
  border-color: #ffd000;
  box-shadow: 0 6px 18px rgba(255, 208, 0, 0.3);
}

.brawl-offer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.brawl-offer-img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #08153d;
  border: 1.5px solid #3b72f2;
}

.brawl-offer-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: start;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.brawl-offer-title {
  font-family: 'Lilita One', cursive, system-ui, -apple-system, sans-serif;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: start;
}

.brawl-offer-desc {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #cbd5e1;
  margin-top: 2px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  width: 100%;
  text-align: start;
}

.brawl-offer-btn {
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #38d432 0%, #1f8b1c 100%);
  border-bottom: 3px solid #146112;
  font-family: 'Lilita One', cursive;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  flex-shrink: 0;
}

.brawl-offer-card:hover .brawl-offer-btn {
  filter: brightness(1.15);
}

.brawl-status-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 14px;
  margin-top: 4px;
}

.brawl-pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffd000;
  animation: brawlPulse 1.4s infinite;
}

@keyframes brawlPulse {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(255, 208, 0, 0.7); }
  70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 6px rgba(255, 208, 0, 0); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(255, 208, 0, 0); }
}

/* Anti-inspect: Prevent text selection & element dragging */
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: auto;
  user-select: auto;
}



