/* Custom Scrollbar */
#offers-list::-webkit-scrollbar {
    width: 4px;
}
#offers-list::-webkit-scrollbar-track {
    background: transparent;
}
#offers-list::-webkit-scrollbar-thumb {
    background-color: #ff0055;
    border-radius: 20px;
    opacity: 0.2;
}

/* Confetti Animation */
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100px) rotate(720deg); opacity: 0; }
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
    animation: confetti-fall 0.8s ease-out forwards;
    z-index: 50;
    border-radius: 2px;
}

/* Animations */
@keyframes pop-in {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.animate-pop-in {
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.animate-slide-up {
    animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Utility */
.sticky-visible {
    transform: translateY(0) !important;
}

/* Form Styles */
input::placeholder {
    color: #9ca3af;
}

/* Hit Badge CSS Version */
.hit {
    border-color: #ff0055 !important;
    border-width: 1.5px;
}

.hit::before {
    content: "Хит";
    position: absolute;
    top: -1px; /* Align with top border */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background: linear-gradient(90deg, #ff0055 0%, #ff4d8d 100%);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 0 0 8px 8px; /* Rounded only at the bottom */
    z-index: 20;
    text-transform: none;
    line-height: 1;
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

@keyframes bounce-custom {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  50% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
}

.animate-bounce-twice {
    animation: bounce-custom 1s infinite;
    animation-iteration-count: 2;
}

/* Hit Badge Gradient (keeping for reference if needed elsewhere) */
.bg-hit-gradient {
    background: linear-gradient(90deg, #ff0055 0%, #ff4d4d 100%);
}