/* ==========================================================================
   SALES & PURCHASE NOTIFICATIONS (POPUP SOCIAL PROOF)
   High-converting floating card with live purchase updates & variations
   ========================================================================== */

.sales-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    max-width: 400px;
    width: calc(100% - 48px);
    background: rgba(14, 15, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 170, 0, 0.28);
    border-left: 4px solid #FFAA00;
    border-radius: 14px;
    padding: 13px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 170, 0, 0.12);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #FFFFFF;
    
    /* Animation: slide up smoothly from bottom */
    transform: translateY(140%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, box-shadow 0.3s ease;
}

.sales-notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.sales-card-inner {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
}

/* Icon & Pulse Badge */
.sales-icon-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 42, 85, 0.18), rgba(255, 170, 0, 0.22));
    border: 1px solid rgba(255, 170, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-icon {
    font-size: 20px;
    color: #FFAA00;
}

.sales-pulse-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    border: 2px solid rgba(255, 170, 0, 0.6);
    animation: salesPulseRing 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    pointer-events: none;
}

@keyframes salesPulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.12); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* Content */
.sales-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Row 1: User & Location */
.sales-user-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    line-height: 1.3;
}

.sales-name {
    font-weight: 700;
    color: #FFFFFF;
}

.sales-dot {
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
}

.sales-location {
    color: #9CA3AF;
    font-size: 11.5px;
}

/* Row 2: Product Name + Badge */
.sales-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1px 0;
}

.sales-product-title {
    font-size: 13px;
    font-weight: 700;
    color: #F9FAFB;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

/* Badges */
.sales-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sales-badge.recommended {
    background: linear-gradient(135deg, #FFB800, #FF8800);
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.4);
}

.sales-badge.bump {
    background: rgba(255, 42, 85, 0.2);
    border: 1px solid rgba(255, 42, 85, 0.45);
    color: #FF4D6D;
}

.sales-badge.combo {
    background: linear-gradient(135deg, rgba(255, 42, 85, 0.3), rgba(255, 170, 0, 0.35));
    border: 1px solid rgba(255, 170, 0, 0.5);
    color: #FFAA00;
}

.sales-badge.vip {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #C084FC;
}

/* Row 3: Meta (Price, Verified, Time) */
.sales-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
}

.sales-price {
    color: #FFAA00;
    font-weight: 800;
    font-size: 12px;
}

.sales-verified {
    color: #10B981;
    font-size: 10.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
}

.sales-time {
    color: #9CA3AF;
    font-size: 10.5px;
}

/* Close button */
.sales-close-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: transparent;
    border: none;
    color: #6B7280;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sales-close-btn:hover {
    color: #FFFFFF;
    transform: scale(1.15);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .sales-notification {
        left: 12px;
        right: 12px;
        bottom: 16px;
        width: auto;
        max-width: calc(100% - 24px);
        padding: 11px 14px;
        border-radius: 12px;
    }
    
    .sales-product-title {
        max-width: 170px;
    }

    .sales-icon-wrap {
        width: 38px;
        height: 38px;
    }

    .sales-icon {
        font-size: 17px;
    }
}
