/* ==============================================================
   live-widget.css — плавающий виджет: счётчик клиентов
   ============================================================== */

.live-widget{
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 14px;
    padding: 16px 18px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: transform .25s ease, box-shadow .25s ease,
                border-color .25s ease, opacity .25s ease;
    display: block;
    font-family: 'Inter', sans-serif;
}
.live-widget.visible{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.live-widget:hover{
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(255,107,1,.25);
}
.live-widget:focus-visible{
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.live-widget .lw-head{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.live-widget .lw-dot{
    width: 8px; height: 8px;
    background: var(--success, #22c55e);
    border-radius: 50%;
}
.live-widget .lw-label{
    font-size: 11px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: 1;
}
.live-widget .lw-arrow{
    font-size: 14px;
    color: #999;
    transition: transform .25s ease, color .25s ease;
}
.live-widget:hover .lw-arrow{
    color: var(--accent);
    transform: translateX(3px);
}

.live-widget .lw-count{
    margin: 0 0 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.live-widget .lw-count .num{
    font-size: 44px;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.02em;
}
.live-widget .lw-count .up{
    font-size: 14px;
    color: var(--success, #22c55e);
    margin-left: 4px;
}

.live-widget .lw-sub{
    font-size: 13px;
    color: #666;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.08);
    line-height: 1.4;
}

@keyframes lwPulse{
    0%, 100%{
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255,107,1,.25);
    }
    50%{
        transform: scale(1.04);
        box-shadow: 0 12px 36px rgba(255,107,1,.55);
    }
}
@keyframes lwBlink{
    0%, 100%{ opacity: 1; }
    50%{ opacity: 0.3; }
}
.live-widget.pulsing{
    animation: lwPulse 1.6s ease-in-out infinite;
    border-color: var(--accent);
}
.live-widget.pulsing .lw-dot{
    animation: lwBlink 1s ease-in-out infinite;
}
.live-widget.pulsing:hover{ animation: none; }

/* ---- Мобильный FAB ---- */
.live-fab{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(255,107,1,.45);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.live-fab.visible{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.live-fab:active{
    transform: scale(0.95);
}
.live-fab svg{
    width: 26px;
    height: 26px;
}

@keyframes fabPulse{
    0%, 100%{ box-shadow: 0 6px 20px rgba(255,107,1,.45); }
    50%{ box-shadow: 0 6px 20px rgba(255,107,1,.45),
                     0 0 0 14px rgba(255,107,1,.15); }
}
.live-fab.pulsing{
    animation: fabPulse 1.8s ease-in-out infinite;
}

@media (max-width: 640px){
    .live-widget{ display: none; }
    .live-fab{ display: flex; }
}

@media (prefers-reduced-motion: reduce){
    .live-widget.pulsing,
    .live-fab.pulsing{ animation: none; }
    .live-widget{ transition: opacity .25s ease; }
}