/* ===== URGENCY & SCARCITY ELEMENTS CSS ===== */

/* Live Viewers Badge */
.live-viewers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(231, 121, 3, 0.15) 0%, rgba(242, 44, 5, 0.15) 100%);
    border: 1px solid rgba(231, 121, 3, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--button-orange);
    font-weight: 600;
    margin: 10px 0;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot-small {
    width: 8px;
    height: 8px;
    background: #E77903;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Purchase Notification Popup */
.purchase-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #E77903;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(231, 121, 3, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    max-width: 350px;
    transform: translateX(-400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.purchase-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 3px;
}

.notification-content p {
    color: var(--button-orange);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.notification-close:hover {
    background: rgba(231, 121, 3, 0.1);
    color: var(--button-orange);
}

/* Stock Counter Badge */
.stock-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 249, 247, 0.5);
    border: 1px solid rgba(0, 201, 167, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.stock-badge.low {
    background: rgba(255, 249, 234, 0.5);
    border-color: rgba(231, 121, 3, 0.3);
}

.stock-badge.critical {
    background: rgba(242, 44, 5, 0.1);
    border-color: rgba(242, 44, 5, 0.3);
    animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(242, 44, 5, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(242, 44, 5, 0.4);
    }
}

.stock-icon {
    font-size: 1.2rem;
}

.stock-text strong {
    color: var(--button-red);
    font-weight: 800;
}

/* Price Warning */
.price-warning {
    background: linear-gradient(135deg, #FFF9EA 0%, #FAEDFE 100%);
    border: 2px solid #E77903;
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--button-red);
    box-shadow: 0 4px 15px rgba(231, 121, 3, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

.warning-icon {
    font-size: 1.3rem;
}

/* Urgency Notice */
.urgency-notice {
    background: linear-gradient(135deg, #E77903 0%, #F22C05 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 15px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(231, 121, 3, 0.4);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(231, 121, 3, 0.4);
    }

    50% {
        box-shadow: 0 6px 30px rgba(242, 44, 5, 0.6);
    }
}

.urgency-icon {
    font-size: 1.5rem;
    animation: flash 1.5s ease-in-out infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Bonus Badge */
.bonus-badge {
    background: linear-gradient(135deg, #F7F0FF 0%, #FAEDFE 100%);
    border: 2px dashed #E77903;
    border-radius: 10px;
    padding: 10px 15px;
    margin: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-primary);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.bonus-badge strong {
    color: var(--button-orange);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .purchase-notification {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }

    .live-viewers {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .stock-badge {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .price-warning,
    .urgency-notice {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
}

/* Additional pulsing effect for critical elements */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}