/* betnays native live support — Comm100-style widget */
.nays-ls-fab {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483000;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9a1a 0%, #ff6a00 100%);
    color: #111;
    box-shadow: 0 10px 28px rgba(255, 140, 0, 0.45);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
body.page-nays.page-mobile .nays-ls-fab {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
.nays-ls-fab:hover { transform: translateY(-2px); }
.nays-ls-fab.is-open { background: #222; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.nays-ls-fab__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
}
.nays-ls-fab__badge.is-on { display: inline-flex; }

.nays-ls-panel {
    position: fixed;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483001;
    width: min(380px, calc(100vw - 24px));
    height: min(560px, calc(100vh - 120px));
    display: none;
    flex-direction: column;
    background: #121212;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    font-family: Manrope, system-ui, sans-serif;
}
body.page-nays.page-mobile .nays-ls-panel {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    height: min(520px, calc(100vh - 180px));
}
.nays-ls-panel.is-open { display: flex; }

.nays-ls-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1808 100%);
    border-bottom: 1px solid rgba(255,140,0,.25);
}
.nays-ls-head__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9a1a, #ff6a00);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.nays-ls-head__meta { flex: 1; min-width: 0; }
.nays-ls-head__meta strong {
    display: block;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}
.nays-ls-head__meta span {
    display: block;
    color: rgba(255,255,255,.65);
    font-size: .72rem;
    margin-top: 2px;
}
.nays-ls-head__meta em {
    color: #4ade80;
    font-style: normal;
    font-weight: 700;
}
.nays-ls-head__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}

.nays-ls-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background:
        radial-gradient(ellipse at top right, rgba(255,140,0,.06), transparent 50%),
        #0e0e0e;
}
.nays-ls-msg {
    max-width: 84%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nays-ls-msg--user { align-self: flex-end; }
.nays-ls-msg--agent,
.nays-ls-msg--system { align-self: flex-start; }
.nays-ls-msg__bubble {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: .86rem;
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-wrap;
}
.nays-ls-msg--user .nays-ls-msg__bubble {
    background: linear-gradient(145deg, #ff9a1a, #ff6a00);
    color: #111;
    border-bottom-right-radius: 4px;
    font-weight: 600;
}
.nays-ls-msg--agent .nays-ls-msg__bubble {
    background: #1e1e1e;
    color: #f2f2f2;
    border: 1px solid rgba(255,255,255,.08);
    border-bottom-left-radius: 4px;
}
.nays-ls-msg--system .nays-ls-msg__bubble {
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    border-radius: 10px;
}
.nays-ls-msg__meta {
    font-size: .65rem;
    color: rgba(255,255,255,.4);
    padding: 0 4px;
}
.nays-ls-msg--user .nays-ls-msg__meta { text-align: right; }

.nays-ls-composer {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: #151515;
}
.nays-ls-composer input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: #0f0f0f;
    color: #fff;
    padding: 0 12px;
    font-size: .88rem;
    outline: none;
}
.nays-ls-composer input:focus { border-color: rgba(255,140,0,.55); }
.nays-ls-composer button {
    height: 42px;
    min-width: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #ff8c00;
    color: #111;
    font-weight: 800;
    cursor: pointer;
}
.nays-ls-composer button:disabled { opacity: .5; cursor: wait; }

.nays-ls-prefill {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nays-ls-prefill p {
    margin: 0 0 4px;
    color: rgba(255,255,255,.75);
    font-size: .84rem;
    line-height: 1.4;
}
.nays-ls-prefill input {
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: #0f0f0f;
    color: #fff;
    padding: 0 12px;
}
.nays-ls-prefill .nays-ls-start {
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, #ff9a1a, #ff6a00);
    color: #111;
    font-weight: 800;
    cursor: pointer;
}
