/* Additive NightClub social tools, original style-v44.css is untouched. */
.presence-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#e05860;box-shadow:0 0 0 2px #283045;vertical-align:middle;margin-right:6px;flex-shrink:0}
.presence-dot.online{background:#30d878;box-shadow:0 0 9px rgba(48,216,120,.65)}
.chat-presence{display:inline-flex;align-items:center;gap:3px;font-size:12px;opacity:.86}
.chat-receipt{font-size:11px;letter-spacing:-2px;margin:0 6px;color:#adb4ce}
.chat-receipt.read{color:#79d5fa}
.chat-reply-action{background:none;border:0;color:inherit;opacity:.65;cursor:pointer;padding:0 8px;font-size:15px}
.chat-reply-quote{font-size:12px;opacity:.8;border-left:3px solid #a5b8f6;padding:4px 7px;margin:0 0 5px;max-width:100%;overflow-wrap:anywhere}
.chat-open-media{font:inherit;display:block;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.07);color:inherit;padding:10px 12px;cursor:pointer;margin:7px 0}
.chat-photo-preview{display:block;max-width:min(100%,300px);max-height:350px;object-fit:contain;border-radius:12px;margin:7px 0}
.chat-voice-player{max-width:min(100%,265px);height:40px;margin:5px 0}
.chat-gift-bubble .bubble-text{font-weight:600}
.chat-tools{display:flex;gap:5px;padding:5px 8px;align-items:center;justify-content:space-evenly;background:var(--surface,#141a2b);flex-wrap:wrap}
.chat-tools button{background:rgba(255,255,255,.06);color:inherit;border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:7px 11px;font-size:13px;cursor:pointer}
.chat-tools .chat-recording{color:#ff9b9b;outline:1px solid #ff7474}
.chat-gift-list{display:flex;flex-wrap:wrap;gap:8px;padding:8px;background:#141b2b}
.chat-gift-list[hidden]{display:none}
.chat-gift-list button{background:#252f4a;border:1px solid #394461;color:white;border-radius:10px;padding:9px;cursor:pointer;font-size:13px}
.chat-reply-compose{font-size:12px;padding:7px 12px;background:#1d2640;border-left:3px solid #aaa5ed;display:flex;justify-content:space-between;gap:10px}
.chat-reply-compose[hidden]{display:none}
.chat-reply-compose button{border:0;background:none;color:white;font-size:19px}
.online-badge{display:inline-flex;align-items:center;gap:2px;font-size:11px;color:#c8d4e3}
.online-badge .presence-dot{width:8px;height:8px;margin-right:2px}
.social-toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0}
.social-toggle input{width:20px;height:20px;accent-color:#8270dc}
.social-rank{font-weight:700;color:#b9a5ff}
.social-controls{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px}
.social-controls button{font-size:12px}
@media(max-width:390px){.chat-tools button{padding:6px 7px}.chat-presence{font-size:11px}.chat-reply-action{padding:0 5px}}

body.kb-open .chat-tools, body.kb-open .chat-gift-list{display:none}

/* Keyboard state is derived from focus + visualViewport and reset on Android Back. */
body.kb-open.msg-mode .msg-screen .chat-tools{display:none}
body:not(.kb-open).msg-mode .msg-screen .chat-tools{display:flex}
