/* Trade Bargains Growth Engine — Social Proof & Scarcity
   Module 5 — product page signals
---------------------------------------------------- */
.tbge-sp-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0 16px;
    padding: 0;
}

.tbge-sp-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    background: #f9fafb;
    border-radius: 6px;
    padding: 7px 12px;
    width: fit-content;
}

.tbge-sp-row--urgent {
    background: #fff5f5;
    color: #dc2626;
    font-weight: 600;
}

.tbge-sp-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.tbge-sp-text strong {
    font-weight: 700;
    color: #1a2332;
}

.tbge-sp-row--urgent .tbge-sp-text strong {
    color: #dc2626;
}

/* Live viewer dot — pulsing green */
.tbge-sp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
    display: inline-block;
}

.tbge-sp-dot--pulse {
    animation: tbge-sp-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
}

@keyframes tbge-sp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Viewers row — slightly more prominent */
.tbge-sp-viewers {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.tbge-sp-viewers .tbge-sp-text strong { color: #166534; }

/* Stock row */
.tbge-sp-stock {
    background: #fff8f0;
    border: 1px solid #fed7aa;
    color: #92400e;
}
.tbge-sp-stock .tbge-sp-text strong { color: #92400e; }
.tbge-sp-stock.tbge-sp-row--urgent {
    background: #fef2f2;
    border-color: #fecaca;
}

/* Sales row */
.tbge-sp-sales {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #075985;
}

/* Recent purchase row */
.tbge-sp-recent {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Fade-in on load */
.tbge-sp-wrap {
    animation: tbge-sp-fade-in 0.4s ease;
}
@keyframes tbge-sp-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Number update animation */
.tbge-sp-updating {
    animation: tbge-sp-count-update 0.3s ease;
}
@keyframes tbge-sp-count-update {
    0%   { opacity: 0.4; transform: scale(0.95); }
    100% { opacity: 1;   transform: scale(1); }
}

@media (max-width: 640px) {
    .tbge-sp-row { font-size: 12px; padding: 6px 10px; }
}
