/* SocialBar — Cialdini / FOMO conversion layer (design tokens) */

.sb-live-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 14px;
    font-family: var(--sb-font, Inter, system-ui, sans-serif);
    font-size: var(--sb-fs-small, 13px);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: var(--sb-grad, linear-gradient(to bottom, #7C3AED, #6366F1));
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
    transition: transform 0.35s ease;
}
.sb-live-strip__dot {
    width: 7px;
    height: 7px;
    border-radius: var(--sb-radius-pill, 9999px);
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: sb-pulse-dot 1.8s ease infinite;
    flex-shrink: 0;
}
@keyframes sb-pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.sb-live-strip__stat {
    opacity: 0.92;
    font-weight: 500;
}
.sb-live-strip__stat strong {
    font-weight: 700;
}

html[data-sb-ready] body:not(.fullpage) {
    padding-top: calc(var(--sb-topbar-h, 56px) + 32px);
}
@media (min-width: 993px) {
    html[data-sb-ready] body:not(.fullpage) {
        padding-top: 32px;
    }
    .sb-live-strip {
        left: var(--sb-sidebar-w, 260px);
    }
    html[data-sb-ready][data-sb-collapsed] .sb-live-strip {
        left: var(--sb-sidebar-w-collapsed, 72px);
    }
}
body.sb-indigo-home .sb-live-strip {
    left: 0;
}
body.sb-indigo-home {
    padding-top: 32px !important;
}

.sb-topbar {
    top: 32px;
}

.sb-fomo-toast-wrap {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10040;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: min(360px, calc(100vw - 40px));
}
.sb-fomo-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--sb-surface, #fff);
    border: none;
    border-radius: var(--sb-radius-card, 20px);
    box-shadow: var(--sb-shadow-card, 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.08));
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.sb-fomo-toast.is-in {
    transform: translateX(0);
    opacity: 1;
}
.sb-fomo-toast.is-out {
    transform: translateX(-30px);
    opacity: 0;
}
.sb-fomo-toast__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--sb-radius-pill, 9999px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    color: var(--sb-accent, #6366F1);
    font-size: 18px;
    flex-shrink: 0;
}
.sb-fomo-toast__body {
    flex: 1;
    min-width: 0;
}
.sb-fomo-toast__title {
    font-family: var(--sb-font, Inter, sans-serif);
    font-size: var(--sb-fs-small, 13px);
    font-weight: 700;
    color: var(--sb-text-primary, #0f172a);
    line-height: 1.35;
    margin: 0 0 3px;
}
.sb-fomo-toast__meta {
    font-size: 11px;
    color: var(--sb-text-muted, #64748b);
    margin: 0;
}
.sb-fomo-toast__badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: var(--sb-radius-pill, 9999px);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.sb-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 28px;
    max-width: 960px;
    padding: 0 16px;
}
.sb-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--sb-radius-pill, 9999px);
    font-family: var(--sb-font, Inter, sans-serif);
    font-size: var(--sb-fs-small, 13px);
    font-weight: 600;
    color: var(--sb-text-secondary, #334155);
    background: var(--sb-surface, #fff);
    border: none;
    box-shadow: var(--sb-shadow-card);
}
.sb-trust-chip i {
    color: var(--sb-accent, #6366F1);
}
.sb-trust-chip--hot {
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
    color: #b91c1c;
}
.sb-trust-chip--hot i {
    color: #ef4444;
}

.sb-scarcity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--sb-radius-pill, 9999px);
    font-family: var(--sb-font, Inter, sans-serif);
    font-size: var(--sb-fs-small, 13px);
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    margin-bottom: 12px;
}
.sb-scarcity-badge i {
    color: #f59e0b;
}

.sb-viewers-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sb-font, Inter, sans-serif);
    font-size: var(--sb-fs-small, 13px);
    font-weight: 600;
    color: #059669;
    margin-top: 8px;
}
.sb-viewers-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--sb-radius-pill, 9999px);
    background: #10b981;
    animation: sb-pulse-dot 2s ease infinite;
}

.sb-hero-card__feed {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sb-border, #e2e8f0);
    max-height: 88px;
    overflow: hidden;
}
.sb-hero-card__feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: var(--sb-fs-small, 13px);
    color: var(--sb-text-muted, #64748b);
    padding: 4px 0;
    animation: sb-feed-in 0.5s ease;
}
@keyframes sb-feed-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.sb-hero-card__feed-item strong {
    color: var(--sb-text-primary, #0f172a);
    font-weight: 600;
}

.sbx-svc .svc-hero__copy .sb-scarcity-badge,
.sbx-svc .svc-hero__copy .sb-viewers-pill {
    margin-top: 0;
    margin-bottom: 10px;
}

[data-theme="dark"] .sb-fomo-toast {
    background: #1e293b;
}
[data-theme="dark"] .sb-fomo-toast__title {
    color: #f1f5f9;
}
[data-theme="dark"] .sb-trust-chip {
    background: #1e293b;
    color: #cbd5e1;
}

@media (max-width: 600px) {
    .sb-fomo-toast-wrap {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
    .sb-live-strip {
        font-size: 11px;
        padding: 6px 10px;
    }
}