/* Live chat widget styles - used by the homepage widget in index.php (api/chat.php backed). */

/* ===== Live chat widget (top of Blog & News) ===== */
.lcw,.lc-dark{
    --lc-surface:#16161e;--lc-surface-2:#1e1e2a;--lc-surface-3:#262636;
    --lc-border:rgba(255,255,255,.08);--lc-text:#e8e8ee;--lc-text-2:#9494a8;--lc-text-3:#6b6b80;
    --lc-primary:#5b5fea;--lc-primary-hover:#7074f0;--lc-primary-rgb:91,95,234;
    --lc-green:#22c55e;--lc-red:#ef4444;--lc-bubble-mine:#5b5fea;
}
.lcw{background:var(--lc-surface);border:1px solid rgba(56,189,248,.35);border-radius:var(--radius);margin-bottom:30px;overflow:hidden;color:var(--lc-text);box-shadow:0 0 0 1px rgba(56,189,248,.18),0 0 26px rgba(56,189,248,.30),0 0 60px rgba(56,189,248,.12),0 12px 30px rgba(0,0,0,.35)}
.lcw *{box-sizing:border-box}
.lcw-head{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #000029f2;
    border-bottom: 1px solid var(--lc-border);
    flex-wrap: wrap;
}
.lcw-title{font-family:var(--font-head);font-weight:700;text-transform:uppercase;letter-spacing:1.4px;font-size:.86rem;color:#fff}
.lcw-title i{color:var(--accent1);margin-right:8px}
.lcw-status{margin-left:8px;display:inline-flex;align-items:center;gap:6px;font-size:.7rem;letter-spacing:.6px;color:var(--muted);text-transform:uppercase}
.lcw-status i{font-size:.55rem;color:var(--lc-text-3)}
.lcw-status.on i{color:var(--lc-green)}
.lcw-status.reconnecting i{color:var(--accent1);animation:lcwSpin 1s linear infinite}
.lcw-status.off i{color:var(--lc-red)}
@keyframes lcwSpin{to{transform:rotate(360deg)}}
.lcw-online{margin-left:auto;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);background:transparent;color:var(--muted);font-size:.72rem;letter-spacing:.8px;padding:5px 11px;border-radius:20px;cursor:pointer;font-family:inherit;text-transform:uppercase}
.lcw-online:hover{border-color:var(--accent1);color:#fff}
.lcw-online i{color:var(--lc-green);font-size:.5rem}
.lcw-online b{color:var(--accent1)}
.lcw-userchip{display:inline-flex;align-items:center;gap:7px;background:var(--lc-surface-2);border:1px solid var(--border);border-radius:20px;padding:3px 10px 3px 4px;max-width:170px;cursor:pointer}
.lcw-userchip-av{position:relative;width:26px;height:26px;flex-shrink:0}
.lcw-userchip-av img{width:26px;height:26px;border-radius:50%;object-fit:cover;background:var(--lc-surface-3)}
.lcw-userchip span{font-size:.76rem;font-weight:600;color:var(--lc-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lcw-logout{border:1px solid var(--border);background:transparent;color:var(--muted);border-radius:8px;padding:5px 9px;font-size:.7rem;cursor:pointer;font-family:inherit}
.lcw-logout:hover{color:var(--lc-red);border-color:var(--lc-red)}
.lcw-stream{position:relative;display:flex;flex-direction:column}
.lcw [hidden],.lcw-overlay[hidden],.lcw-lightbox[hidden],.lcw-avlightbox[hidden],.lcw-react-pop[hidden],.lcw-picker[hidden],.lcw-preview[hidden],.lcw-replybar[hidden]{display:none!important}
.lcw-login{padding:20px 18px}
.lcw-login-title{font-family:var(--font-head);font-weight:700;font-size:1rem;margin-bottom:4px;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.65)}
.lcw-login-title i{color:var(--accent1);margin-right:8px}
.lcw-login p{color:#fff;font-size:.78rem;margin-bottom:16px;line-height:1.6;text-shadow:0 2px 4px rgba(0,0,0,.65)}
.lcw-login p a{color:var(--accent1);font-weight:600}
.lcw-link{display:inline-flex;align-items:center;gap:5px;background:#1c66f9;border:1px solid #1c66f9;border-radius:8px;padding:5px 11px;margin:0;color:#fff;font:inherit;font-size:.78rem;font-weight:700;cursor:pointer;vertical-align:middle;transition:background .2s,border-color .2s,color .2s}
.lcw-link i{margin-right:0}
.lcw-link:hover{background:#1554d1;border-color:#1554d1;color:#fff;text-decoration:none}
.lcw-login .btn{justify-content:center}
.lcw-logo-wrap{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--lc-border);background:rgba(255,255,255,.02)}
.lcw.lcw-h-fixed{display:flex;flex-direction:column}
.lcw.lcw-h-fixed .lcw-stream{flex:1;min-height:0}
.lcw.lcw-h-fixed .lcw-msgs{flex:1;min-height:0;max-height:none}
.lcw-logo{display:block;width:150px;max-width:70%;height:auto;object-fit:contain;opacity:.95;filter:drop-shadow(0 0 12px rgba(56,189,248,.55)) drop-shadow(0 0 26px rgba(56,189,248,.30))}
.lcw-friends-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:150px;background:linear-gradient(135deg,var(--accent1),var(--accent2));color:#14161a;border:none;border-radius:12px;padding:8px 14px;font-family:inherit;font-size:.74rem;font-weight:800;letter-spacing:.5px;text-transform:uppercase;text-decoration:none;cursor:pointer;transition:transform .15s,box-shadow .2s;box-shadow:0 4px 14px rgba(255,198,0,.35)}
.lcw-friends-btn i{color:#14161a}
.lcw-friends-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(255,198,0,.5);color:#14161a;text-decoration:none}
.lcw-login input{width:100%;background:var(--bg-soft);border:1px solid var(--border);border-radius:8px;color:#fff;padding:11px 14px;font-size:.92rem;outline:none;margin-bottom:10px;transition:border-color .2s}
.lcw-login input:focus{border-color:var(--accent1)}
.lcw-err{display:none;color:var(--danger);font-size:.82rem;margin-bottom:10px}
.lcw-err.on{display:block}
.lcw-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.lcw-actions a{font-size:.8rem}
/* Logged out: center the whole login panel inside the chat box */
#live-chat:has(#lcwLogin:not([hidden])){display:flex;flex-direction:column;min-height:800px}
#live-chat:has(#lcwLogin:not([hidden])) .lcw-stream{display:none}
#live-chat:has(#lcwLogin:not([hidden])) .lcw-login{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
#live-chat:has(#lcwLogin:not([hidden])) .lcw-login > *{width:100%;max-width:380px}
/* Message stream */
.lcw-msgs{max-height:700px;min-height:400px;overflow-y:auto;overflow-x:hidden;padding:14px 14px 6px;display:flex;flex-direction:column;scroll-behavior:smooth;overscroll-behavior:contain}
/* Input position = Top: prepend new messages so they start at the top (see appendMessage) */
.lcw-in-top .lcw-empty{margin:auto}
.lcw-empty{color:var(--muted);text-align:center;padding:30px 16px;font-size:.86rem}
.lcw-day{display:flex;align-items:center;gap:12px;margin:16px 0 8px;color:var(--lc-text-3);font-size:.68rem;font-weight:700;letter-spacing:.6px;text-transform:uppercase}
.lcw-day::before,.lcw-day::after{content:"";flex:1;height:1px;background:var(--lc-border)}
/* System */
.lcw-sys{display:flex;justify-content:center;margin:12px 0}
.lcw-sys-inner{max-width:92%;background:rgba(255,255,255,.05);border:1px solid var(--lc-border);color:var(--lc-text-2);font-size:.76rem;text-align:center;padding:7px 14px;border-radius:999px;line-height:1.5}
.lcw-sys.lcw-sys-welcome .lcw-sys-inner{border-color:rgba(var(--lc-primary-rgb),.55);background:linear-gradient(120deg,rgba(var(--lc-primary-rgb),.18),rgba(var(--lc-primary-rgb),.42),rgba(var(--lc-primary-rgb),.18));color:#fff;font-weight:600;box-shadow:0 0 14px rgba(var(--lc-primary-rgb),.28)}
/* Welcome bubble: radio badge with the station name above the message */
.lcw-sys.lcw-sys-welcome{display:block}
.lcw-welcome-bubble{display:flex;flex-direction:column;align-items:center;gap:6px;animation:lcwWelcomeIn .7s cubic-bezier(.2,.9,.3,1.2) both}
.lcw-welcome-radio{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:#bbe51e;background:rgba(187,229,30,.12);border:1px solid rgba(187,229,30,.4);box-shadow:0 0 10px rgba(187,229,30,.18);animation:lcwWelcomeIn .7s cubic-bezier(.2,.9,.3,1.2) both}
.lcw-welcome-dot{width:7px;height:7px;border-radius:50%;background:#bbe51e;box-shadow:0 0 0 0 rgba(187,229,30,.5);animation:lcwWelcomePulse 1.4s ease-in-out infinite}
.lcw-welcome-eq{display:inline-flex;align-items:flex-end;gap:2px;height:11px}
.lcw-welcome-eq i{display:block;width:3px;background:#bbe51e;border-radius:2px;animation:lcwWelcomeEq 1s ease-in-out infinite}
.lcw-welcome-eq i:nth-child(1){animation-delay:-.9s}
.lcw-welcome-eq i:nth-child(2){animation-delay:-.6s}
.lcw-welcome-eq i:nth-child(3){animation-delay:-.3s}
.lcw-welcome-eq i:nth-child(4){animation-delay:-.7s}
.lcw-welcome-fm{display:inline-flex}
.lcw-welcome-fm-letter{display:inline-block;animation:lcwWelcomeRainbow 3s linear infinite}
@keyframes lcwWelcomeIn{0%{opacity:0;transform:translateY(10px) scale(.85)}60%{opacity:1;transform:translateY(-2px) scale(1.03)}100%{opacity:1;transform:none}}
@keyframes lcwWelcomePulse{0%,100%{box-shadow:0 0 0 0 rgba(187,229,30,.5)}70%{box-shadow:0 0 0 6px rgba(187,229,30,0)}}
@keyframes lcwWelcomeEq{0%,100%{height:3px}50%{height:11px}}
@keyframes lcwWelcomeRainbow{0%{filter:hue-rotate(0deg)}100%{filter:hue-rotate(360deg)}}
/* Message row */
.lcw-msg{display:flex;gap:9px;margin-top:8px;position:relative;animation:lcwIn .22s cubic-bezier(.4,0,.2,1)}
@keyframes lcwIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.lcw-msg.mine{flex-direction:row-reverse}
.lcw-msg-av{position:relative;width:34px;height:34px;flex-shrink:0;margin-top:20px}
.lcw-msg-av img{width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--lc-surface-3)}
.lcw-frame{position:absolute;inset:-1px;border-radius:50%;background-size:cover;background-position:center;pointer-events:none;z-index:2}
.lcw-msg-av .lcw-item-frame{position:relative;display:block;line-height:0}
.lcw-body{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.lcw-msg.mine .lcw-body{align-items:flex-end}
.lcw-msg:not(.mine) .lcw-body{padding-right:30px}
.lcw-msg.mine .lcw-body{padding-left:30px}
.lcw-meta{display:flex;align-items:baseline;gap:8px;margin:0 4px 3px;max-width:100%}
.lcw-msg.mine .lcw-meta{flex-direction:row-reverse}
.lcw-name{font-size:.8rem;font-weight:800;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px;cursor:pointer;text-shadow:0 2px 3px rgba(0,0,0,.6)}
.lcw-name-bg{padding:1px 7px;border-radius:8px;background:#2a2a3a}
.lcw-time{font-size:.66rem;color:var(--lc-text-3);flex-shrink:0}
.lcw-reply{font-size:.7rem;color:var(--lc-text-3);background:var(--lc-surface-2);border-left:2px solid var(--lc-primary);border-radius:7px;padding:4px 9px;margin:0 4px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(86%,420px)}
.lcw-reply b{color:var(--lc-text-2);font-weight:700}
.lcw-msg.mine .lcw-reply{margin-left:auto}
.lcw-bubble{max-width:min(82%,460px);padding:8px 12px;border-radius:16px 16px 6px 16px;background:var(--lc-surface-2);color:var(--lc-text);font-size:17px;line-height:1.5;word-break:break-word;white-space:pre-wrap;overflow-wrap:anywhere;position:relative;text-shadow:0 2px 4px rgba(0,0,0,.45)}
.lcw-msg.mine .lcw-bubble{background:var(--lc-bubble-mine);color:#fff;border-radius:16px 16px 6px 16px;text-shadow:0 2px 4px rgba(0,0,0,.45)}
.lcw-bubble a{color:#dbeafe;text-decoration:underline}
.lcw-bubble.lcw-media-only{padding:0;background:transparent;border-radius:14px;line-height:0}
.lcw-bubble img.lcw-msg-img{display:block;max-width:240px;max-height:300px;border-radius:12px;object-fit:cover;cursor:zoom-in;background:var(--lc-surface-3)}
.lcw-bubble img.lcw-msg-sticker{width:auto;height:auto;max-width:140px;max-height:140px;object-fit:contain}
.lcw-bubble img.lcw-msg-gif{max-width:220px;max-height:220px;width:auto;height:auto;border-radius:10px;display:block}
/* avatar/item frames */
.lcw-item-frame-neon::before,.lcw-item-frame-crown::before,.lcw-item-frame-galaxy::before,.lcw-item-frame-cute::before{content:"";position:absolute;top:50%;left:50%;width:100%;height:100%;margin:-50% 0 0 -50%;border-radius:50%;pointer-events:none;z-index:2;box-sizing:border-box}
.lcw-item-frame-neon::before{border:3px solid #22d3ee;animation:lcwFrameNeon 2s ease-in-out infinite}
.lcw-item-frame-crown::before{border:3px solid #fbbf24;box-shadow:0 0 12px rgba(251,191,36,.6)}
.lcw-item-frame-galaxy::before{border:3px solid #a855f7;box-shadow:0 0 14px rgba(168,85,247,.8)}
.lcw-item-frame-cute::before{border:3px solid #f472b6;box-shadow:0 0 10px rgba(244,114,182,.6)}
@keyframes lcwFrameNeon{0%,100%{box-shadow:0 0 8px rgba(34,211,238,.5)}50%{box-shadow:0 0 16px rgba(34,211,238,.9)}}
/* name text effects (store) */
.text-effect-rainbow{background:linear-gradient(90deg,#f00,#f80,#ff0,#0f0,#0ff,#08f,#80f,#f0f,#f00)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important;animation:textEffectRainbow 2s linear infinite}
@keyframes textEffectRainbow{0%{filter:hue-rotate(0)}100%{filter:hue-rotate(360deg)}}
.text-effect-glitter{background-image:radial-gradient(circle,#fff 1.5px,transparent 2px),radial-gradient(circle,#ffe066 1.5px,transparent 2px),linear-gradient(135deg,#f9d423,#ff4e50,#f9d423)!important;background-size:30px 30px,45px 45px,300% 100%!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important;animation:textEffectGlitter 2.2s linear infinite}
@keyframes textEffectGlitter{0%{background-position:0 0,0 0,0 50%}100%{background-position:30px 30px,45px 45px,300% 50%}}
.text-effect-shimmer{background:linear-gradient(90deg,#b8b8c4 0,#fff 25%,#b8b8c4 50%,#fff 75%,#b8b8c4 100%)!important;background-size:200% 100%!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important;animation:textEffectShimmer 2s linear infinite}
@keyframes textEffectShimmer{0%{background-position:0 0}100%{background-position:-200% 0}}
.text-effect-glow{color:#fff!important;text-shadow:0 0 6px rgba(255,193,7,.9),0 0 14px rgba(255,193,7,.7)}
.text-effect-neon{color:#fff!important;text-shadow:0 0 4px #fff,0 0 10px #00e5ff,0 0 22px #00e5ff,0 0 40px #f0f}
.text-effect-flicker{color:#fff!important;animation:textEffectFlicker 1.5s linear infinite}
@keyframes textEffectFlicker{0%,100%{opacity:1}42%{opacity:.3}45%{opacity:.2}71%{opacity:.4}}
.lcw-name-fx-neon{color:#a5b4fc;text-shadow:0 0 10px rgba(165,180,252,.9)}
.lcw-name-fx-gold{color:#fcd34d;text-shadow:0 0 10px rgba(252,211,77,.6)}
.lcw-name-fx-galaxy{color:#c4b5fd;text-shadow:0 0 12px rgba(196,181,253,.9)}
/* chat bubble themes */
.lcw-bubble-neon{background:linear-gradient(135deg,rgba(34,211,238,.62),rgba(168,85,247,.62)),#0f2836!important;border:1px solid rgba(34,211,238,.7);box-shadow:0 0 12px rgba(34,211,238,.3)}
.lcw-bubble-royal{background:linear-gradient(135deg,rgba(251,191,36,.62),rgba(234,179,8,.55)),#2a2109!important;border:1px solid rgba(251,191,36,.65);box-shadow:0 0 12px rgba(251,191,36,.25)}
.lcw-bubble-heart{background:linear-gradient(135deg,rgba(236,72,153,.62),rgba(244,114,182,.55)),#33101f!important;border:2px solid rgba(244,114,182,.7);box-shadow:0 0 16px rgba(244,114,182,.35)}
/* chat effects */
.lcw-hearts-float{position:absolute;bottom:4px;pointer-events:none;animation:lcwHeartUp linear infinite;z-index:2;line-height:1}
@keyframes lcwHeartUp{0%{transform:translateY(0) scale(.7);opacity:0}15%{opacity:.9}100%{transform:translateY(-46px) scale(1.15);opacity:0}}
.lcw-sparkle{position:absolute;border-radius:50%;background:#fde047;box-shadow:0 0 8px 2px rgba(253,224,71,.85);pointer-events:none;animation:lcwSparkle 2.4s ease-in-out forwards;z-index:5}
@keyframes lcwSparkle{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1.15)}100%{opacity:0;transform:scale(.3)}}
.lcw-starry{position:absolute;border-radius:50%;background:#fff;box-shadow:0 0 6px 1px rgba(255,255,255,.7);pointer-events:none;animation:lcwTwinkle ease-in-out infinite;z-index:5}
@keyframes lcwTwinkle{0%,100%{opacity:.15;transform:scale(.7)}50%{opacity:1;transform:scale(1.2)}}
.lcw-rocket{position:absolute;pointer-events:none;animation:lcwRocket 1.4s ease-in infinite;z-index:2}
@keyframes lcwRocket{0%{transform:translate(0,0) rotate(-8deg);opacity:0}20%{opacity:1}100%{transform:translate(-26px,26px) rotate(12deg);opacity:0}}
.lcw-animal{position:absolute;top:-22px;left:50%;margin-left:-16px;z-index:4;width:32px;height:24px;padding:3px 4px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1;background:#fff;border-radius:8px 8px 8px 3px;box-shadow:0 2px 7px rgba(0,0,0,.22);pointer-events:none}
.lcw-animal .lcw-flag{width:24px;height:auto;object-fit:cover;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.35);flex:0 0 auto;}
.lcw-animal::after{content:"";position:absolute;left:50%;margin-left:-6px;bottom:-8px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #fff;filter:drop-shadow(0 3px 3px rgba(0,0,0,.18));}
/* delete + reply buttons */
.lcw-del{position:absolute;top:-7px;right:-7px;width:19px;height:19px;border-radius:50%;background:var(--lc-surface-3);border:1px solid var(--lc-border);color:var(--lc-text-3);font-size:9px;display:flex;align-items:center;justify-content:center;opacity:.35;transition:.2s}
.lcw-msg:hover .lcw-del{opacity:1}
.lcw-del:hover{color:var(--lc-red);border-color:var(--lc-red)}
.lcw-reply-btn{position:absolute;top:50%;right:-30px;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;border:1px solid var(--lc-border);background:var(--lc-surface-2);color:var(--lc-text-2);font-size:11px;display:inline-flex;align-items:center;justify-content:center;opacity:0;transition:.15s;z-index:2}
.lcw-msg.mine .lcw-reply-btn{right:auto;left:-30px}
.lcw-msg:hover .lcw-reply-btn{opacity:1}
.lcw-reply-btn:hover{color:#fff;border-color:var(--lc-primary);background:rgba(var(--lc-primary-rgb),.2)}
/* reactions */
.lcw-react-row{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:4px 4px 0}
.lcw-msg.mine .lcw-react-row{justify-content:flex-end}
.lcw-react-pill{display:inline-flex;align-items:center;gap:4px;background:var(--lc-surface-2);border:1px solid var(--lc-border);color:var(--lc-text-2);font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:999px;cursor:pointer;font-family:inherit}
.lcw-react-pill:hover{border-color:var(--lc-primary);color:var(--lc-text)}
.lcw-react-pill.active{background:rgba(var(--lc-primary-rgb),.18);border-color:var(--lc-primary);color:#fff}
.lcw-react-add{width:22px;height:22px;border-radius:50%;border:1px dashed var(--lc-border);background:transparent;color:var(--lc-text-3);font-size:9px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.lcw-react-add:hover{color:var(--lc-primary);border-color:var(--lc-primary)}
.lcw-react-pop{position:fixed;z-index:2147483002;background:var(--lc-surface);border:1px solid var(--lc-border);border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.5);padding:6px;display:flex;gap:2px;flex-wrap:wrap;max-width:calc(100vw - 16px)}
.lcw-react-pop button{width:36px;height:36px;border:none;background:transparent;font-size:19px;border-radius:10px;cursor:pointer}
.lcw-react-pop button:hover{background:var(--lc-surface-3);transform:scale(1.12)}
/* new messages pill */
.lcw-newpill{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:20;display:none;align-items:center;gap:7px;background:var(--lc-primary);color:#fff;border:none;border-radius:999px;padding:4px 14px 5px 4px;font-size:.74rem;font-weight:700;box-shadow:0 8px 24px rgba(var(--lc-primary-rgb),.45);cursor:pointer;font-family:inherit}
.lcw-newpill::after{content:"";position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);border:7px solid transparent;border-top:7px solid var(--lc-primary);border-bottom:0}
.lcw-newpill-av{width:26px;height:26px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.55);flex-shrink:0}
.lcw-newpill-txt{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lcw-newpill i{flex-shrink:0;font-size:.72rem}
.lcw-in-top .lcw-newpill{bottom:auto;top:10px}
.lcw-in-top .lcw-newpill::after{bottom:auto;top:-6px;border:7px solid transparent;border-bottom:7px solid var(--lc-primary);border-top:0}
.lcw-in-top .lcw-newpill i.fa-arrow-down{transform:rotate(180deg)}
/* quiz banner */
.lcw .lc-quiz{flex:0 0 auto;display:flex;align-items:center;gap:9px;padding:8px 12px;background:linear-gradient(356deg,#1c66f9,rgba(251,191,36,.04));border-bottom:1px solid rgba(251,191,36,.28)}
.lc-quiz-icon{color:#fbbf24;font-size:15px;flex-shrink:0}
.lc-quiz-body{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1 1 auto}
.lc-quiz-label{font-size:10px;font-weight:800;letter-spacing:.08em;color:#fbbf24;line-height:1.2}
.lc-quiz-q{font-size:13px;font-weight:600;color:var(--lc-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lc-quiz-prize{display:inline-flex;align-items:center;gap:5px;margin-left:auto;font-size:12px;font-weight:700;color:#fbbf24;white-space:nowrap;flex-shrink:0}
/* quiz winner board */
.lcw .lcw-sys.lcw-quiz-win{display:block;margin:14px 0}
.lcw .lcw-quiz-win{text-align:center}
.lcw .lcw-quiz-win .quiz-win-board{position:relative;width:100%;box-sizing:border-box;overflow:hidden;border-radius:14px;padding:16px 14px;background:linear-gradient(135deg,rgba(255,193,7,.18),rgba(255,46,99,.16),rgba(168,85,247,.18));border:1px solid rgba(255,193,7,.55);box-shadow:0 0 24px rgba(255,193,7,.35),inset 0 0 18px rgba(255,46,99,.15);animation:quizWinPop .6s cubic-bezier(.2,.9,.3,1.4),quizWinGlow 1.8s ease-in-out infinite;display:flex;flex-direction:column;align-items:center;gap:4px}
@keyframes quizWinPop{0%{transform:scale(.5);opacity:0}60%{transform:scale(1.06);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes quizWinGlow{0%,100%{box-shadow:0 0 20px rgba(255,193,7,.3)}50%{box-shadow:0 0 34px rgba(255,46,99,.55)}}
.quiz-win-glow{position:absolute;top:-60%;left:-30%;width:160%;height:220%;background:conic-gradient(from 0deg,transparent 0 40deg,rgba(255,255,255,.12) 50deg,transparent 60deg);animation:quizWinSweep 2.4s linear infinite;pointer-events:none}
@keyframes quizWinSweep{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.quiz-win-crown{font-size:2rem;line-height:1;animation:quizWinBounce 1s ease-in-out infinite;filter:drop-shadow(0 0 12px rgba(255,193,7,.9))}
@keyframes quizWinBounce{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-6px) scale(1.08)}}
.quiz-win-title{font-size:.95rem;font-weight:800;letter-spacing:.18em;color:#ffc107;text-shadow:0 0 14px rgba(255,193,7,.8)}
.quiz-win-text{color:#fff;font-size:.8rem;font-weight:600;line-height:1.4;max-width:95%}
/* lightbox */
.lcw-lightbox{position:fixed;inset:0;z-index:2147483010;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:24px}
.lcw-lightbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.lcw-lightbox-close{position:absolute;top:18px;right:18px;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font-size:16px;cursor:pointer}
/* composer */
.lcw-composer{position:relative;padding:10px 14px;border-top:1px solid var(--lc-border);background:var(--lc-surface)}
.lcw-preview{display:flex;align-items:center;gap:8px;padding:6px 8px;margin-bottom:8px;background:var(--lc-surface-2);border:1px solid var(--lc-border);border-radius:12px}
.lcw-preview img{width:42px;height:42px;border-radius:8px;object-fit:cover}
.lcw-preview span{flex:1;font-size:.76rem;color:var(--lc-text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lcw-preview-x{width:24px;height:24px;border-radius:50%;border:none;background:var(--lc-surface-3);color:var(--lc-text-2);font-size:11px;cursor:pointer}
.lcw-replybar{display:flex;align-items:center;gap:8px;padding:6px 8px;margin-bottom:8px;background:var(--lc-surface-2);border:1px solid var(--lc-border);border-left:3px solid var(--lc-primary);border-radius:12px}
.lcw-replybar i{color:var(--lc-primary);font-size:12px;flex-shrink:0}
.lcw-replybar-body{flex:1;min-width:0;display:flex;flex-direction:column}
.lcw-replybar-who{font-size:.72rem;font-weight:800;color:var(--lc-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lcw-replybar-text{font-size:.74rem;color:var(--lc-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lcw-replybar-x{width:24px;height:24px;border-radius:50%;border:none;background:var(--lc-surface-3);color:var(--lc-text-2);font-size:11px;flex-shrink:0;cursor:pointer}
.lcw-row{display:flex;align-items:flex-end;gap:8px}
.lcw-cbtn{flex-shrink:0;width:38px;height:38px;border-radius:50%;border:1px solid var(--lc-border);background:var(--lc-surface-2);color:var(--lc-text-2);font-size:15px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.lcw-cbtn:hover,.lcw-cbtn.active{color:#fff;border-color:var(--lc-primary);background:rgba(var(--lc-primary-rgb),.15)}
.lcw-inputwrap{flex:1;display:flex;align-items:flex-end;gap:4px;position:relative;background:var(--lc-surface-2);border:1px solid var(--lc-border);border-radius:20px;padding:6px 8px 6px 6px;min-height:42px;transition:.2s}
.lcw-inputwrap:focus-within{border-color:var(--lc-primary)}
.lcw-sticker-btn{flex-shrink:0;width:34px;height:34px;border-radius:50%;border:1px solid var(--lc-border);background:var(--lc-surface-2);color:var(--lc-text-2);font-size:14px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.lcw-sticker-btn:hover,.lcw-sticker-btn.active{color:#fff;border-color:var(--lc-primary);background:rgba(var(--lc-primary-rgb),.15)}
.lcw-inwrap-col{flex:1;display:flex;flex-direction:column;min-width:0;align-items:stretch}
.lcw-inwrap-col textarea{flex:1;background:transparent;border:none;outline:none;resize:none;color:var(--lc-text);font-family:inherit;font-size:.9rem;line-height:1.45;max-height:108px;padding:7px 6px;overflow-y:auto}
.lcw-inwrap-col textarea::placeholder{color:var(--lc-text-3)}
.lcw-send{flex-shrink:0;width:38px;height:38px;border-radius:50%;border:none;background:var(--lc-primary);color:#fff;font-size:14px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(var(--lc-primary-rgb),.4);cursor:pointer;transition:.2s}
.lcw-send:hover{background:var(--lc-primary-hover)}
.lcw-send:disabled{opacity:.4;cursor:not-allowed}
/* picker (floating popup above the text box) */
.lcw-picker{position:absolute;left:0;right:0;bottom:calc(100% + 8px);background:var(--lc-surface);border:1px solid var(--lc-border);border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.55);overflow:hidden;z-index:5}
.lcw-picker-head{display:flex;gap:4px;padding:6px 6px 0;border-bottom:1px solid var(--lc-border)}
.lcw-picker-tab{flex:1;border:none;background:transparent;color:var(--lc-text-3);font-size:.74rem;font-weight:700;padding:8px 6px;border-radius:9px 9px 0 0;border-bottom:2px solid transparent;cursor:pointer}
.lcw-picker-tab.active{color:#fff;border-bottom-color:var(--accent1)}
.lcw-picker-x{flex-shrink:0;width:28px;height:28px;border-radius:50%;border:none;background:transparent;color:var(--lc-text-2);font-size:12px;cursor:pointer;align-self:center;transition:.15s}
.lcw-picker-x:hover{color:#fff;background:var(--lc-surface-3)}
.lcw-picker-body{padding:8px;max-height:150px;overflow-y:auto}
.lcw-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:2px}
.lcw-emoji-grid button{width:34px;height:34px;border:none;background:transparent;font-size:19px;border-radius:9px;cursor:pointer}
.lcw-emoji-grid button:hover{background:var(--lc-surface-3)}
.lcw-sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px}
.lcw-sticker-grid button{border:none;background:transparent;padding:4px;border-radius:10px;aspect-ratio:1;cursor:pointer}
.lcw-sticker-grid button:hover{background:var(--lc-surface-3)}
.lcw-sticker-grid img{width:100%;height:100%;object-fit:contain;display:block}
.lcw-gif-search{margin-bottom:8px}
.lcw-gif-search input{width:100%;background:var(--lc-surface-2);border:1px solid var(--lc-border);color:var(--lc-text);border-radius:10px;padding:8px 10px;font-size:.82rem;outline:none}
.lcw-gif-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:6px}
.lcw-gif-results button{border:none;background:var(--lc-surface-2);padding:0;border-radius:10px;overflow:hidden;aspect-ratio:1;cursor:pointer}
.lcw-gif-results button:hover{transform:scale(1.05)}
.lcw-gif-results img{width:100%;height:100%;object-fit:cover;display:block}
.lcw-picker-empty{color:var(--lc-text-3);font-size:.8rem;text-align:center;padding:22px 8px}
/* overlays (profile / online / reactions) */
.lcw-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.62);display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(4px)}
.lcw-overlay-card{width:100%;max-width:520px;max-height:90vh;background:var(--lc-surface);border:1px solid var(--lc-border);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.5);overflow:hidden;display:flex;flex-direction:column;color:var(--lc-text)}
.lcw-overlay-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--lc-border);flex-shrink:0}
.lcw-overlay-head b{font-size:.95rem;font-weight:700;display:flex;align-items:center;gap:8px;color:#fff}
.lcw-overlay-head b i{color:var(--accent1)}
.lcw-overlay-head small{color:var(--lc-text-3);font-weight:400}
.lcw-overlay-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:8px;color:var(--lc-text-3);cursor:pointer;font-size:14px}
.lcw-overlay-close:hover{background:var(--lc-surface-2);color:#fff}
.lcw-overlay-body{padding:14px 18px;overflow-y:auto}
.lcw-online-item{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:10px;cursor:pointer}
.lcw-online-item:hover{background:var(--lc-surface-2)}
.lcw-online-av{position:relative;width:40px;height:40px;flex-shrink:0;border-radius:50%;cursor:zoom-in}
.lcw-online-av img{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--lc-surface-3);border:2px solid var(--lc-border)}
.lcw-online-av .lcw-frame{inset:-1px}
.lcw-online-av::after{content:"";position:absolute;inset:-4px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.22),transparent 70%);opacity:0;transition:opacity .2s ease;pointer-events:none}
.lcw-online-item:hover .lcw-online-av::after{opacity:1}
/* Avatar picture lightbox */
.lcw-avlightbox{position:fixed;inset:0;z-index:2147483011;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:24px}
.lcw-avlightbox-content{display:flex;flex-direction:column;align-items:center;gap:14px;animation:lcwAvZoom .25s ease-out}
.lcw-avlightbox-frame{position:relative;display:inline-block;width:min(64vw,420px);height:min(64vw,420px)}
.lcw-avlightbox-frame img{position:absolute;top:50%;left:50%;width:54%;height:54%;margin:-27% 0 0 -27%;border-radius:50%;object-fit:cover;background:var(--lc-surface-3);box-shadow:0 8px 40px rgba(0,0,0,.6)}
.lcw-avlightbox-frame .lcw-frame{position:absolute;inset:0;width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat;pointer-events:none;z-index:2}
.lcw-avlightbox-info{text-align:center;display:flex;flex-direction:column;gap:4px}
.lcw-avlightbox-name{font-size:1.1rem;font-weight:800;color:#fff;letter-spacing:.02em}
.lcw-avlightbox-role{font-size:.78rem;color:rgba(255,198,0,.9);font-weight:600}
@keyframes lcwAvZoom{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}
.lcw-online-body{flex:1;min-width:0}
.lcw-online-name{font-size:.86rem;font-weight:600;color:var(--lc-text);display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lcw-online-sub{font-size:.72rem;color:var(--lc-text-3);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lcw-online-role{font-size:.6rem;font-weight:800;text-transform:uppercase;color:var(--accent1);background:rgba(255,198,0,.14);border-radius:999px;padding:2px 7px;flex-shrink:0}
.lcw-msg-role{font-size:.56rem;font-weight:800;text-transform:uppercase;letter-spacing:.3px;color:var(--accent1);background:rgba(255,198,0,.16);border:1px solid rgba(255,198,0,.3);border-radius:999px;padding:1px 7px;flex-shrink:0;vertical-align:middle;max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* profile modal */
.lcw-profile-top{display:flex;align-items:center;gap:14px}
.lcw-profile-av{position:relative;width:72px;height:72px;flex-shrink:0}
.lcw-profile-av img{width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--lc-surface-3)}
.lcw-profile-id{min-width:0}
.lcw-profile-name{font-size:1.05rem;font-weight:700;color:#fff;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.lcw-profile-role{font-size:.74rem;color:var(--lc-text-2);text-transform:capitalize}
.lcw-profile-uname{font-size:.78rem;color:var(--lc-text-3);display:block}
.lcw-profile-stats{display:flex;gap:8px;margin:14px 0}
.lcw-profile-stat{flex:1;text-align:center;background:var(--lc-surface-2);border:1px solid var(--lc-border);border-radius:12px;padding:10px 6px}
.lcw-profile-stat b{display:block;font-size:.95rem;color:var(--accent1)}
.lcw-profile-stat span{font-size:.62rem;color:var(--lc-text-3);text-transform:uppercase}
.lcw-profile-last{text-align:center;color:var(--lc-text-2);font-size:.76rem;margin-bottom:12px}
.lcw-profile-note{background:var(--lc-surface-2);border:1px solid var(--lc-border);border-radius:10px;padding:10px 12px;margin-bottom:12px}
.lcw-profile-note small{display:block;font-size:.62rem;text-transform:uppercase;letter-spacing:.6px;color:var(--accent1);margin-bottom:4px}
.lcw-profile-note p{font-size:.82rem;color:var(--lc-text);word-break:break-word;overflow-wrap:anywhere}
.lcw-profile-actions{display:flex;flex-wrap:wrap;gap:8px}
.lcw-pbtn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--lc-border);background:var(--lc-surface-2);color:var(--lc-text);border-radius:9px;padding:9px 14px;font-size:.8rem;font-weight:600;cursor:pointer;font-family:inherit;text-decoration:none}
.lcw-pbtn:hover{border-color:var(--accent1);color:#fff}
.lcw-pbtn.following{background:rgba(var(--lc-primary-rgb),.16);border-color:var(--lc-primary);color:#fff}
.lcw-cw-msg{color:var(--muted);text-align:center;padding:20px;font-size:.84rem}
.lcw-note{color:var(--muted);font-size:.84rem;padding:20px;text-align:center}
@media(max-width:560px){
    .lcw-status{display:none}
    .lcw-msgs{max-height:none;height:60vh;min-height:0}
    .lcw-bubble img.lcw-msg-img{max-width:200px}
    .lcw-online-item{padding:8px 4px}
}

/* ---------- Member profile modal ---------- */
.lc-profile-overlay,.lcw-overlay,.lc-pm-overlay,.lc-pm-toast{
    --surface:var(--lc-surface);
    --surface-2:var(--lc-surface-2);
    --surface-3:var(--lc-surface-3);
    --text:var(--lc-text);
    --text-2:var(--lc-text-2);
    --text-3:var(--lc-text-3);
    --border:var(--lc-border);
    --primary:var(--lc-primary);
    --primary-hover:var(--lc-primary-hover);
    --primary-rgb:var(--lc-primary-rgb);
    --bubble-mine:var(--lc-bubble-mine);
    --bubble-them:var(--lc-surface-2);
    --font:inherit;
    --radius-xs:8px;
    --radius-sm:10px;
    --transition:.2s ease;
    --font:inherit;
}
.avatar-frame-overlay{
    position:absolute;top:0;left:0;width:100%;height:100%;
    background-size:cover;background-position:center;background-repeat:no-repeat;
    pointer-events:none;z-index:2;border-radius:50%;
}
.lc-profile-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,.6);
    display:flex;align-items:center;justify-content:center;
    z-index:2147483000;backdrop-filter:blur(4px);padding:16px;
}
.lc-profile-overlay[hidden]{display:none!important;}
.lc-profile-card{
    width:100%;max-width:640px;max-height:92vh;
    background:var(--surface);border:1px solid var(--border);border-radius:16px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);overflow:hidden;
    display:flex;flex-direction:column;
}
.lc-profile-header{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:14px 18px;border-bottom:1px solid var(--border);flex-shrink:0;
}
.lc-profile-title{display:flex;align-items:center;gap:8px;min-width:0;}
.lc-profile-title i{color:var(--primary);}
.lc-profile-title b{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lc-profile-close{
    width:32px;height:32px;display:flex;align-items:center;justify-content:center;
    background:transparent;border:none;border-radius:var(--radius-xs);
    color:var(--text-3);cursor:pointer;transition:var(--transition);font-size:14px;flex-shrink:0;
}
.lc-profile-close:hover{background:var(--surface-2);color:var(--text);}
.lc-profile-body{padding:18px;overflow-y:auto;flex:1;}
.lc-profile-body::-webkit-scrollbar{width:5px;}
.lc-profile-body::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:4px;}

/* profile search */
.chat-profile-search-wrap{position:relative;margin-bottom:14px;}
.chat-profile-search-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--text-3);font-size:13px;pointer-events:none;}
.chat-profile-search-input{
    width:100%;padding:10px 14px 10px 38px;border:1px solid var(--border);
    border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);
    font-size:14px;font-family:var(--font);outline:none;box-sizing:border-box;
}
.chat-profile-search-input:focus{border-color:var(--primary);}
.chat-profile-search-input::placeholder{color:var(--text-3);}
.chat-profile-search-results{
    display:none;position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:60;
    max-height:280px;overflow-y:auto;background:var(--surface-2);
    border:1px solid var(--border);border-radius:var(--radius-sm);
    box-shadow:0 12px 32px rgba(0,0,0,.35);-webkit-overflow-scrolling:touch;
}
.chat-profile-search-result{display:flex;align-items:center;gap:10px;padding:9px 12px;cursor:pointer;transition:background .15s ease;}
.chat-profile-search-result:hover{background:var(--surface-3);}
.chat-profile-search-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.chat-profile-search-meta{display:flex;flex-direction:column;min-width:0;flex:1;}
.chat-profile-search-name{font-size:13.5px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chat-profile-search-uname{font-size:12px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chat-profile-search-arrow{color:var(--text-3);font-size:12px;flex-shrink:0;}
.chat-profile-search-empty{padding:12px 14px;color:var(--text-3);font-size:13px;}

.chat-profile{position:relative;border-radius:14px;overflow:hidden;padding:16px;background:var(--surface-2);}
.chat-profile>*{position:relative;z-index:1;}
.chat-profile-cover{position:relative;margin:-16px -16px 0;padding:16px;border-radius:inherit;}
.chat-profile-cover>*{position:relative;z-index:1;}
.chat-profile-cover.chat-profile-has-bg{background-position:center center;background-size:cover;}
.chat-profile-cover.chat-profile-has-bg::before{
    content:"";position:absolute;inset:0;
    background:rgba(12,12,18,var(--profile-bg-overlay,.72));z-index:0;border-radius:inherit;
}
.chat-profile-top{display:flex;align-items:center;gap:14px;}
.chat-profile-avatar-wrap{position:relative;width:76px;height:76px;flex-shrink:0;}
.chat-profile-avatar{width:76px;height:76px;border-radius:50%;object-fit:cover;background:var(--surface-3);border:2px solid var(--border);}
.chat-profile-avatar-wrap .avatar-frame-overlay{inset:-1px;}
.chat-profile-id{min-width:0;}
.chat-profile-name{font-size:17px;font-weight:700;display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--text);}
.lcw-pv-animal{display:inline-flex;align-items:center;font-size:16px;line-height:1;vertical-align:middle;}
.lcw-pv-animal .lcw-flag{width:22px;height:auto;border-radius:3px;box-shadow:0 1px 4px rgba(0,0,0,.35);vertical-align:middle;}
.chat-profile-role{font-size:11.5px;color:var(--text-2);margin-top:1px;}
.chat-profile-uname{font-size:12px;color:var(--text-3);display:block;}
.chat-profile-stats{display:flex;gap:8px;margin:14px 0 10px;}
.chat-profile-stat{flex:1;text-align:center;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:10px 6px;}
.chat-profile-stat b{display:block;font-size:15px;color:var(--primary);line-height:1.3;}
.chat-profile-stat span{font-size:9.5px;color:var(--text-3);text-transform:uppercase;letter-spacing:.04em;}
.chat-profile-stat-btn{cursor:pointer;transition:border-color .15s ease,background .15s ease;}
.chat-profile-stat-btn:hover{border-color:var(--primary);background:var(--surface-3);}
.chat-profile-stat-btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px;}
.chat-profile-last-seen{text-align:center;color:var(--text-2);font-size:12px;margin-bottom:12px;}
.chat-profile-note{margin:0 2px 12px;padding:11px 14px;border-radius:14px;background:var(--surface-2);border:1px solid var(--border);}
.chat-profile-note-label{display:block;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3);margin-bottom:4px;}
.chat-profile-note-text{margin:0;font-size:13px;line-height:1.45;color:var(--text);word-break:break-word;overflow-wrap:anywhere;}
.profile-btn{
    width:100%;border:none;border-radius:10px;padding:10px;font-weight:600;
    cursor:pointer;font-family:var(--font);font-size:13px;transition:var(--transition);
}
.profile-btn-outline{background:transparent;border:1px solid var(--primary);color:var(--primary);}
.profile-btn-outline:hover{background:var(--primary);color:#fff;}
.profile-btn-outline.following{background:transparent;border-color:var(--text-3);color:var(--text-3);}
.profile-btn:disabled{opacity:.5;cursor:not-allowed;}
.chat-profile-actions{display:flex;gap:8px;margin-top:4px;}
.chat-profile-actions .profile-btn{flex:1;}

@media(max-width:720px){
    .lc-profile-overlay{padding:0;align-items:flex-end;background:rgba(0,0,0,.7);backdrop-filter:blur(6px);}
    .lc-profile-card{
        width:100%;max-width:none;height:100dvh;max-height:none;
        border-radius:18px 18px 0 0;border-bottom:none;
        animation:lcProfileSheetUp .28s cubic-bezier(.2,.9,.3,1);
    }
    .lc-profile-card .lc-profile-header{padding:10px 16px;}
    .lc-profile-card .lc-profile-body{padding:14px;}
    @keyframes lcProfileSheetUp{from{transform:translateY(100%);}to{transform:translateY(0);}}
}

/* ---------- Profile tabs ---------- */
.lc-profile-tabs{
    display:flex;align-items:center;gap:4px;min-width:0;
    padding:3px;border:1px solid var(--border);border-radius:12px;
    background:var(--surface-2);
}
.lc-profile-tab{
    display:inline-flex;align-items:center;gap:6px;
    padding:7px 14px;border:0;border-radius:9px;
    background:transparent;color:var(--text-2);font-family:var(--font);
    font-size:12.5px;font-weight:600;cursor:pointer;transition:var(--transition);
    white-space:nowrap;
}
.lc-profile-tab i{color:var(--text-3);}
.lc-profile-tab:hover{color:var(--text);background:var(--surface-3);}
.lc-profile-tab.active{
    background:linear-gradient(135deg,var(--primary),#818cf8);
    color:#fff;box-shadow:0 4px 12px rgba(var(--primary-rgb),.4);
}
.lc-profile-tab.active i{color:#fff;}
.lcw-flag{height:18px;width:24px;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.35);vertical-align:middle;display:inline-block;object-fit:cover;flex:0 0 auto;}
.lc-set-animal-item .lcw-flag{height:auto;width:38px;border-radius:4px;box-shadow:0 2px 5px rgba(0,0,0,.4);}
.lc-set-prof-icon .lcw-flag{height:32px;}

/* ---------- Account settings ---------- */
.lc-set-msg{padding:9px 12px;border-radius:10px;font-size:12.5px;line-height:1.4;margin-bottom:12px;}
.lc-set-msg.success{background:rgba(99,214,150,.12);border:1px solid rgba(99,214,150,.35);color:#63d696;}
.lc-set-msg.error{background:rgba(239,71,111,.12);border:1px solid rgba(239,71,111,.35);color:#ff7a94;}
.lc-set-head-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.lc-set-title{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:var(--text);}
.lc-set-title i{color:var(--primary);}
.lc-set-logout-btn{display:inline-flex;align-items:center;gap:6px;background:transparent;border:1px solid var(--border);border-radius:8px;padding:6px 11px;font-size:12px;font-weight:600;color:var(--text-3);cursor:pointer;transition:var(--transition);}
.lc-set-logout-btn:hover{border-color:#ef476f;color:#ff7a94;background:rgba(239,71,111,.1);}
.lc-set-section{
    border:1px solid var(--border);border-radius:14px;overflow:hidden;
    background:rgba(255,255,255,.02);margin-bottom:14px;
}
.lc-set-head{
    display:flex;align-items:center;gap:10px;width:100%;
    padding:13px 15px;background:transparent;border:0;cursor:pointer;color:var(--text);
    font-family:inherit;font-size:13.5px;font-weight:700;text-align:left;
}
.lc-set-head > i:first-child{color:var(--primary);font-size:14px;width:18px;flex-shrink:0;}
.lc-set-head:hover{background:var(--surface-2);}
.lc-set-arrow{margin-left:auto;color:var(--text-3);font-size:12px;transition:transform .2s ease;}
.lc-set-section.open .lc-set-arrow{transform:rotate(180deg);}
.lc-set-body{display:none;padding:0 15px 15px;}
.lc-set-section.open .lc-set-body{display:block;}
.lc-set-hint{font-size:11.5px;color:var(--text-3);line-height:1.45;margin:0 0 10px;}
.lc-set-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.lc-set-mini-btn{
    display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:10px;
    border:1px solid var(--border);background:var(--surface-2);color:var(--text);
    font-family:inherit;font-size:12.5px;font-weight:600;cursor:pointer;transition:var(--transition);
}
.lc-set-mini-btn:hover{border-color:var(--primary);color:#fff;}
.lc-set-mini-btn.danger:hover{border-color:#ef476f;color:#ff7a94;}
.lc-set-input{
    flex:1;min-width:0;padding:10px 12px;border-radius:10px;
    border:1px solid var(--border);background:var(--surface-2);color:var(--text);
    font-family:inherit;font-size:13px;outline:none;transition:var(--transition);
}
.lc-set-input:focus{border-color:var(--primary);}
.lc-set-input::placeholder{color:var(--text-3);}
.lc-set-save{
    padding:10px 16px;border-radius:10px;border:0;cursor:pointer;color:#fff;
    background:linear-gradient(135deg,var(--primary),#818cf8);
    font-family:inherit;font-size:13px;font-weight:700;transition:var(--transition);
}
.lc-set-save:hover{filter:brightness(1.1);}
.lc-set-prof{display:flex;align-items:center;gap:12px;padding:2px 0 6px;}
.lc-set-avwrap{position:relative;width:78px;height:78px;flex-shrink:0;}
.lc-set-avwrap img{width:78px;height:78px;border-radius:50%;object-fit:cover;background:var(--surface-3);border:2px solid var(--border);}
.lc-set-avwrap .lcw-frame{width:78px;height:78px;left:-2px;top:-2px;}
.lc-set-prof-id{min-width:0;}
.lc-set-prof-name{font-size:15px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.lc-set-prof-uname{font-size:12px;color:var(--text-3);}
.lc-set-prof-icon{margin-top:6px;font-size:26px;line-height:1;}
.lc-set-animal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:8px;}
.lc-set-animal-item{
    aspect-ratio:1;display:inline-flex;align-items:center;justify-content:center;
    border-radius:11px;border:1px solid var(--border);background:var(--surface-2);
    cursor:pointer;font-size:22px;transition:var(--transition);padding:0;
}
.lc-set-animal-item:hover{border-color:var(--primary);transform:scale(1.06);}
.lc-set-animal-item.active{background:var(--surface-3);border-color:var(--primary);box-shadow:0 0 0 2px var(--primary);}
.lc-set-frame-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;}
.lc-set-frame-item{
    display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px 8px;
    border-radius:12px;border:1px solid var(--border);background:var(--surface-2);cursor:pointer;
    font-family:inherit;color:var(--text);transition:var(--transition);
}
.lc-set-frame-item:hover{border-color:var(--primary);}
.lc-set-frame-item.active{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary);background:var(--surface-3);}
.lc-set-frame-item img{width:58px;height:58px;object-fit:contain;}
.lc-set-frame-item b{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.lc-set-frame-item span{font-size:10.5px;color:var(--text-3);}
.lc-set-bg-preview{
    margin:0 0 10px;height:96px;border-radius:12px;border:1px solid var(--border);
    background-color:var(--surface-2);background-size:cover;background-position:center;position:relative;
}
.lc-set-bg-empty{
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;
    color:var(--text-3);font-size:12px;
}
.lc-set-loading{color:var(--text-3);font-size:12.5px;padding:4px 0;}
.lc-store-balance{
    display:flex;align-items:center;gap:8px;
    padding:11px 14px;margin-bottom:12px;
    border:1px solid rgba(245,166,35,.25);border-radius:12px;
    background:rgba(245,166,35,.07);
    font-size:13.5px;color:var(--text-2);
}
.lc-store-balance i{color:#f5a623;font-size:15px;}
.lc-store-balance b{color:var(--text);font-size:15.5px;}
.lc-store-msg{padding:9px 12px;border-radius:10px;font-size:12.5px;line-height:1.4;margin-bottom:12px;}
.lc-store-msg.success{background:rgba(99,214,150,.12);border:1px solid rgba(99,214,150,.35);color:#63d696;}
.lc-store-msg.error{background:rgba(239,71,111,.12);border:1px solid rgba(239,71,111,.35);color:#ff7a94;}
.lc-store-loading{color:var(--text-3);font-size:12.5px;padding:4px 0;}
.lc-store-empty{color:var(--text-3);font-size:12.5px;text-align:center;padding:18px 4px;}
.lc-store-pack{margin-bottom:16px;}
.lc-store-pack:last-child{margin-bottom:0;}
.lc-store-pack-head{
    display:flex;align-items:center;gap:7px;
    font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;
    color:var(--text-2);margin-bottom:8px;
}
.lc-store-pack-head i{color:var(--primary);}
.lc-store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;}
.lc-store-card{
    border:1px solid var(--border);border-radius:12px;background:var(--surface-2);
    padding:12px;display:flex;flex-direction:column;gap:8px;transition:var(--transition);
}
.lc-store-card:hover{border-color:rgba(var(--primary-rgb),.4);}
.lc-store-thumb{
    width:44px;height:44px;display:flex;align-items:center;justify-content:center;
    border-radius:12px;background:var(--surface-3);color:var(--primary);font-size:20px;
}
.lc-store-name{font-size:13px;font-weight:600;color:var(--text);}
.lc-store-desc{font-size:11.5px;color:var(--text-3);line-height:1.4;}
.lc-store-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.lc-store-type{font-size:10.5px;color:var(--text-2);border:1px solid var(--border);border-radius:6px;padding:2px 7px;align-self:flex-start;}
.lc-store-exp{font-size:10.5px;color:var(--text-3);display:flex;align-items:center;gap:4px;line-height:1.35;}
.lc-store-exp.never{color:#63d696;}
.lc-store-exp.expired{color:#ff7a94;}
.lc-store-card .lc-set-mini-btn{margin-top:auto;justify-content:center;}
.lc-store-card .lc-store-buy{border-color:rgba(245,166,35,.4);color:#f5a623;}
.lc-store-card .lc-store-buy:hover{border-color:#f5a623;color:#fff;}
.lc-store-card .lc-store-use{border-color:var(--primary);color:var(--primary);}
.lc-store-card .lc-store-use:hover{border-color:var(--primary);color:#fff;}
.lc-store-card .lc-store-unequip{border-color:rgba(239,71,111,.4);color:#ff7a94;}
.lc-store-card .lc-store-unequip:hover{border-color:#ef476f;color:#fff;}

/* ---------- Profile wall ---------- */
.chat-pv-cm-pick-pop{
    --surface:var(--lc-surface,#16161e);--surface-2:var(--lc-surface-2,#1e1e2a);--surface-3:var(--lc-surface-3,#262636);
    --text:var(--lc-text,#e8e8ee);--text-2:var(--lc-text-2,#9494a8);--text-3:var(--lc-text-3,#6b6b80);
    --border:var(--lc-border,rgba(255,255,255,.08));--primary:var(--lc-primary,#5b5fea);--primary-hover:var(--lc-primary-hover,#7074f0);
    --font:inherit;
}
.chat-profile-wall{margin-top:14px;border-top:1px solid var(--border);padding-top:12px;}
.chat-profile-wall-head{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);margin-bottom:8px;display:flex;align-items:center;gap:6px;}
.chat-profile-wall-head i{color:var(--primary);}
.chat-profile-wall-composer{display:flex;flex-direction:column;gap:8px;margin-bottom:10px;}
.chat-profile-wall-composer textarea{
    width:100%;background:#fff;border:1px solid var(--border);color:#222;border-radius:10px;
    padding:7px 9px;font-size:13px;font-family:var(--font);resize:vertical;min-height:42px;
    max-height:96px;outline:none;box-sizing:border-box;line-height:1.35;
}
.chat-profile-wall-composer textarea::placeholder{color:#999;}
.chat-profile-wall-composer textarea:focus{border-color:var(--primary);}
.chat-profile-wall-composer-bar{display:flex;align-items:center;gap:8px;justify-content:flex-end;}
.chat-profile-wall-photo-btn{
    flex:0 0 auto;border:1px solid var(--border);background:var(--surface-2);color:var(--text-2);
    border-radius:10px;padding:8px 12px;font-size:13px;font-family:var(--font);cursor:pointer;
    transition:var(--transition);display:flex;align-items:center;gap:6px;
}
.chat-profile-wall-photo-btn:hover{color:var(--primary);border-color:var(--primary);background:var(--surface-3);}
.chat-profile-wall-photo-preview{position:relative;align-self:flex-start;}
.chat-profile-wall-photo-preview img{
    width:120px;height:120px;object-fit:cover;border-radius:12px;border:1px solid var(--border);
    background:var(--surface-3);display:block;
}
.chat-profile-wall-photo-preview-x{
    position:absolute;top:-7px;right:-7px;width:24px;height:24px;border-radius:50%;border:none;
    background:#e0526e;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;
    cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.4);
}
.chat-profile-wall-photo-preview-x:hover{background:#ff5f6d;}
.chat-profile-wall-post-btn{
    align-self:flex-end;border:none;background:var(--primary);color:#fff;border-radius:10px;
    padding:8px 16px;font-weight:600;font-size:12.5px;font-family:var(--font);cursor:pointer;
    transition:var(--transition);display:flex;align-items:center;gap:6px;
}
.chat-profile-wall-post-btn:hover{background:var(--primary-hover);}
.chat-profile-wall-post-btn:disabled{opacity:.5;cursor:not-allowed;}
.chat-profile-wall-list{display:flex;flex-direction:column;gap:8px;}
.chat-profile-wall-empty{font-size:12px;color:var(--text-3);text-align:center;padding:12px 4px;}
.chat-profile-wall-msg{font-size:12px;color:var(--text-3);text-align:center;padding:8px 4px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);margin-bottom:10px;}
.chat-profile-wall-msg.error{color:#e0526e;border-color:rgba(224,82,110,.35);}
.chat-profile-wall-post{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:10px;}
.chat-profile-wall-post-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;}
.chat-profile-wall-av{position:relative;width:30px;height:30px;flex-shrink:0;display:inline-block;}
.chat-profile-wall-av img{width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--surface-3);}
.chat-profile-wall-av .avatar-frame-overlay{inset:0;}
.chat-profile-wall-post-info{min-width:0;line-height:1.3;flex:1;}
.chat-profile-wall-post-name{font-size:12.5px;font-weight:600;color:var(--text);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chat-profile-wall-post-time{font-size:10.5px;color:var(--text-3);}
.chat-profile-wall-post-text{font-size:12.5px;color:var(--text);word-break:break-word;overflow-wrap:anywhere;line-height:1.45;}
.chat-profile-wall-post-text a{color:var(--primary);}
.chat-profile-wall-post-image{width:100%;max-height:220px;object-fit:cover;border-radius:10px;margin-top:8px;cursor:pointer;display:block;}
.chat-profile-wall-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;}
.chat-profile-wall-edit,.chat-profile-wall-del{flex:0 0 auto;width:24px;height:24px;border:1px solid var(--border);border-radius:8px;background:var(--surface-3);color:var(--text-3);cursor:pointer;font-size:10px;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;}
.chat-profile-wall-edit:hover{color:var(--primary);border-color:var(--primary);}
.chat-profile-wall-del:hover{color:#e0526e;border-color:rgba(224,82,110,.5);background:rgba(224,82,110,.12);}
.chat-profile-wall-edit-box{margin-top:2px;display:flex;flex-direction:column;gap:8px;}
.chat-profile-wall-edit-box textarea{width:100%;min-height:64px;resize:vertical;background:var(--surface);color:var(--text);border:1px solid var(--primary);border-radius:10px;padding:8px;font-size:12.5px;font-family:inherit;outline:none;}
.chat-profile-wall-edit-btns{display:flex;justify-content:flex-end;gap:6px;}
.chat-profile-wall-edit-save,.chat-profile-wall-edit-cancel{border:0;border-radius:8px;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;}
.chat-profile-wall-edit-save{background:var(--primary);color:#fff;}
.chat-profile-wall-edit-save:hover{background:var(--primary-hover);}
.chat-profile-wall-edit-save:disabled,.chat-profile-wall-edit-cancel:disabled{opacity:.5;cursor:not-allowed;}
.chat-profile-wall-edit-cancel{background:var(--surface-3);color:var(--text-2);border:1px solid var(--border);}

/* link / video embeds in wall posts */
.chat-pv-links{display:flex;flex-direction:column;gap:8px;margin-top:9px;}
.chat-pv-embed{position:relative;margin-top:4px;border-radius:12px;overflow:hidden;}
.chat-pv-embed .cpv-open{position:relative;display:flex;align-items:flex-start;gap:10px;border:1px solid var(--border);border-radius:12px;padding:10px;background:var(--surface-2);text-decoration:none;color:var(--text);min-width:0;}
.chat-pv-embed .cpv-thumb{flex:0 0 92px;width:92px;height:66px;object-fit:cover;border-radius:9px;background:#000;display:block;}
.chat-pv-embed .cpv-info{display:flex;flex-direction:column;gap:3px;min-width:0;padding-top:1px;}
.chat-pv-embed .cpv-info .cpv-domain{font-size:10.5px;font-weight:700;color:var(--primary);display:flex;align-items:center;gap:5px;text-transform:lowercase;}
.chat-pv-embed .cpv-info .cpv-title{font-size:12.5px;font-weight:600;color:var(--text);line-height:1.3;}
.chat-pv-embed .cpv-info .cpv-desc{font-size:11px;color:var(--text-3);line-height:1.35;}
.chat-pv-embed.cpv-yt{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#000;}
.chat-pv-embed.cpv-yt .cpv-yt-play{position:relative;display:block;width:100%;padding:0;border:0;cursor:pointer;background:#000;font-family:inherit;}
.chat-pv-embed.cpv-yt .cpv-yt-thumb{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.chat-pv-embed.cpv-yt:hover .cpv-yt-thumb{opacity:.86;}
.chat-pv-embed.cpv-yt .cpv-yt-play .fa-play{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;
    background:rgba(91,95,234,.92);color:#fff;display:flex;align-items:center;justify-content:center;
    font-size:1.05rem;box-shadow:0 8px 24px rgba(0,0,0,.5);transition:transform .15s ease;
}
.chat-pv-embed.cpv-yt .cpv-yt-play:hover .fa-play{transform:translate(-50%,-50%) scale(1.08);}
.chat-pv-embed.cpv-yt iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;background:#000;}
.chat-profile-wall-post .chat-pv-embed.cpv-yt{margin-left:-10px;margin-right:-10px;border-radius:12px;}

/* wall post actions + comments */
.chat-pv-actions{display:flex;align-items:center;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border);}
.chat-pv-react-zone{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;}
.chat-pv-react-btn{border:0;background:none;color:var(--text-3);cursor:pointer;font-size:13px;padding:2px 4px;border-radius:6px;line-height:1;font-family:inherit;transition:transform .12s ease;}
.chat-pv-react-btn:hover{color:var(--primary);}
.chat-pv-react-btn.reacted{color:var(--primary);}
.chat-pv-react-pills{display:flex;flex-wrap:wrap;gap:4px;}
.chat-pv-react-pill{font-size:11px;color:var(--text-2);background:var(--surface-3);border:1px solid var(--border);border-radius:999px;padding:2px 8px;cursor:default;font-family:inherit;transition:transform .15s ease;}
.chat-pv-react-pill.active{color:var(--primary);border-color:var(--primary);}
.chat-pv-cm-btn{margin-left:auto;border:0;background:none;color:var(--text-3);cursor:pointer;font-size:11.5px;display:flex;align-items:center;gap:5px;font-family:inherit;padding:0;}
.chat-pv-cm-btn:hover{color:var(--primary);}
.chat-pv-comments{padding-top:8px;display:flex;flex-direction:column;gap:8px;}
.chat-pv-comments.closed{display:none;}
.chat-pv-cm-list{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto;}
.chat-pv-cm-item{display:flex;gap:8px;}
.chat-pv-cm-av{width:26px;height:26px;border-radius:50%;object-fit:cover;background:var(--surface-3);flex-shrink:0;}
.chat-pv-cm-body{flex:1;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:6px 9px;}
.chat-pv-cm-name{font-size:11.5px;font-weight:700;color:var(--primary);}
.chat-pv-cm-text{font-size:12px;color:var(--text);display:block;word-break:break-word;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2px;}
.chat-pv-cm-time{font-size:10px;color:var(--text-3);display:block;margin-top:2px;}
.chat-pv-cm-empty{font-size:12px;color:var(--text-3);text-align:center;padding:8px 4px;}
.chat-pv-cm-react-row{display:flex;align-items:center;gap:8px;margin-top:4px;}
.chat-pv-cm-react-btn{border:0;background:none;color:var(--text-3);cursor:pointer;font-size:11px;padding:0;font-family:inherit;}
.chat-pv-cm-react-btn:hover{color:var(--primary);}
.chat-pv-cm-react-btn.reacted{color:var(--primary);}
.chat-pv-cm-pills{display:flex;flex-wrap:wrap;gap:4px;}
.chat-pv-cm-form{display:flex;flex-direction:column;gap:6px;}
.chat-pv-cm-form-row{display:flex;gap:6px;align-items:flex-end;}
.chat-pv-cm-form textarea{flex:1;resize:none;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:7px 9px;font-size:12px;font-family:inherit;outline:none;line-height:1.35;min-width:0;}
.chat-pv-cm-form textarea:focus{border-color:var(--primary);}
.chat-pv-cm-send{border:0;background:var(--primary);color:#fff;width:30px;height:30px;border-radius:9px;cursor:pointer;font-size:12px;flex-shrink:0;}
.chat-pv-cm-send:hover{background:var(--primary-hover);}
.chat-pv-cm-send:disabled{opacity:.5;cursor:not-allowed;}
.chat-pv-cm-pick{border:1px solid var(--border);background:var(--surface);color:var(--text-2);width:30px;height:30px;border-radius:9px;cursor:pointer;font-size:12px;flex-shrink:0;}
.chat-pv-cm-pick:hover{color:var(--primary);border-color:var(--primary);}
.chat-pv-cm-media{display:none;align-items:center;gap:6px;}
.chat-pv-cm-media img{width:40px;height:40px;object-fit:contain;border-radius:8px;background:var(--surface-3);padding:3px;}
.chat-pv-cm-media-x{border:0;background:none;color:var(--text-3);cursor:pointer;font-size:13px;padding:2px;font-family:inherit;}
.chat-pv-cm-media-x:hover{color:#e74c3c;}
.chat-pv-cm-img{display:block;max-width:150px;max-height:130px;border-radius:8px;margin-top:4px;object-fit:contain;cursor:pointer;}
.chat-pv-cm-sticker{width:56px;max-width:56px;height:56px;cursor:default;}
.chat-pv-cm-gif{max-width:180px;}
.chat-pv-cm-more{background:none;border:0;color:var(--primary);cursor:pointer;font-size:11px;text-align:left;padding:0;font-family:inherit;}
.chat-pv-cm-more:hover{text-decoration:underline;}
.chat-pv-cm-del,.chat-pv-cm-edit{background:none;border:0;cursor:pointer;font-size:11px;padding:0;font-family:inherit;color:var(--text-3);}
.chat-pv-cm-edit:hover{color:var(--primary);}
.chat-pv-cm-del:hover{color:#e0526e;}
.chat-pv-cm-time{margin-left:auto;font-size:10px;color:var(--text-3);}

/* wall comment sticker/GIF picker popover */
.chat-pv-cm-pick-pop{
    position:fixed;z-index:2147483006;width:290px;max-width:calc(100vw - 16px);
    background:var(--surface);border:1px solid var(--border);border-radius:14px;
    box-shadow:0 14px 40px rgba(0,0,0,.5);overflow:hidden;
}
.cw-pick-head{display:flex;border-bottom:1px solid var(--border);}
.cw-pick-tab{flex:1;background:none;border:0;color:var(--text-3);font-size:12px;font-weight:700;padding:9px 6px;cursor:pointer;border-bottom:2px solid transparent;font-family:inherit;}
.cw-pick-tab:hover{color:var(--text-2);}
.cw-pick-tab.active{color:var(--text);border-bottom-color:var(--primary);}
.cw-pick-stickers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px;max-height:260px;overflow-y:auto;}
.cw-pick-stickers button{background:transparent;border:0;border-radius:12px;padding:4px;cursor:pointer;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.cw-pick-stickers button img{width:100%;height:100%;object-fit:contain;display:block;}
.cw-pick-stickers button:hover{background:var(--surface-3);}
.cw-pick-gif{padding:8px;display:flex;flex-direction:column;gap:8px;}
.cw-pick-gif input{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;padding:7px 10px;font-size:12px;outline:none;font-family:inherit;}
.cw-pick-gif input:focus{border-color:var(--primary);}
.cw-pick-gif-results{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;max-height:210px;overflow-y:auto;}
.cw-pick-gif-results button{background:none;border:0;border-radius:8px;padding:0;cursor:pointer;aspect-ratio:1/1;overflow:hidden;}
.cw-pick-gif-results button:hover{outline:2px solid var(--primary);}
.cw-pick-gif-results button img{width:100%;height:100%;object-fit:cover;display:block;}
.cw-pick-empty{grid-column:1/-1;font-size:11px;color:var(--text-3);padding:12px 4px;text-align:center;}
.cw-pick-gif-credit{grid-column:1/-1;font-size:9px;color:var(--text-3);text-align:center;padding:2px 0;}

/* wall reaction effect */
.chat-pv-react-bump{animation:chatPvReactBump .4s ease;}
@keyframes chatPvReactBump{0%{transform:scale(1);}30%{transform:scale(1.45);}60%{transform:scale(.9);}100%{transform:scale(1);}}
.chat-pv-fx-emoji{position:fixed;z-index:2147483004;pointer-events:none;font-size:34px;line-height:1;transform:translate(-50%,-50%);animation:chatPvEmojiBurst .75s ease-out forwards;}
@keyframes chatPvEmojiBurst{0%{transform:translate(-50%,-50%) scale(.35);opacity:0;}25%{transform:translate(-50%,-55%) scale(1.2);opacity:1;}100%{transform:translate(-50%,-190%) scale(.8);opacity:0;}}
.chat-pv-react-pill.hit{animation:chatPvPillPop .35s ease;}
@keyframes chatPvPillPop{0%{transform:scale(1);}40%{transform:scale(1.22);}100%{transform:scale(1);}}

/* profile photo gallery */
.chat-profile-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;}
.chat-profile-gallery-item{padding:0;border:1px solid var(--border);border-radius:var(--radius-xs);background:none;cursor:pointer;overflow:hidden;transition:var(--transition);}
.chat-profile-gallery-item:hover{border-color:var(--primary);transform:translateY(-1px);}
.chat-profile-gallery-item img{width:100%;height:96px;object-fit:cover;display:block;}
.chat-profile-gallery-empty{font-size:12px;color:var(--text-3);text-align:center;padding:12px 4px;}
.lc-gallery-card{max-width:560px;}
.lc-gallery-card .chat-profile-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;}

/* profile photo post viewer */
.lc-photo-card{max-width:520px;}
.lc-photo-body{padding:0;overflow-y:auto;flex:1;}
.lc-photo-img{width:100%;max-height:46vh;object-fit:contain;background:#000;display:block;}
.lc-photo-info{padding:14px 16px;border-bottom:1px solid var(--border);}
.lc-photo-info-head{display:flex;gap:9px;align-items:center;}
.lc-photo-av{position:relative;width:34px;height:34px;flex-shrink:0;display:inline-block;}
.lc-photo-av img{width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--surface-3);}
.lc-photo-info-name{font-size:13px;font-weight:600;color:var(--text);cursor:pointer;}
.lc-photo-info-name:hover{color:var(--primary);}
.lc-photo-info-time{font-size:10.5px;color:var(--text-3);display:block;}
.lc-photo-info-text{font-size:13px;line-height:1.45;color:var(--text);word-break:break-word;overflow-wrap:anywhere;margin-top:8px;}
.lc-photo-info-text a{color:var(--primary);}
.lc-photo-info-react{margin-top:10px;}
.lc-photo-cm{padding:14px 16px;}
.lc-photo-cm-head{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);margin-bottom:10px;display:flex;align-items:center;gap:6px;}
.lc-photo-cm-head i{color:var(--primary);}
.lc-photo-cm-list{display:flex;flex-direction:column;gap:10px;margin-bottom:12px;}
.lc-photo-cm-msg{font-size:12px;color:var(--text-3);text-align:center;padding:8px 4px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);margin-bottom:10px;}
.lc-photo-cm-msg.error{color:#e0526e;border-color:rgba(224,82,110,.35);}
.lc-photo-cm-form{display:flex;flex-direction:column;gap:8px;}
.lc-photo-cm-form textarea{
    width:100%;background:#fff;border:1px solid var(--border);color:#222;border-radius:10px;
    padding:8px 10px;font-size:13px;font-family:var(--font);resize:vertical;min-height:42px;
    max-height:96px;outline:none;box-sizing:border-box;line-height:1.35;
}
.lc-photo-cm-form textarea::placeholder{color:#999;}
.lc-photo-cm-form textarea:focus{border-color:var(--primary);}
.lc-photo-cm-send{align-self:flex-end;border:none;background:var(--primary);color:#fff;border-radius:10px;padding:8px 16px;font-weight:600;font-size:12.5px;font-family:var(--font);cursor:pointer;transition:var(--transition);display:flex;align-items:center;gap:6px;}
.lc-photo-cm-send:hover{background:var(--primary-hover);}
.lc-photo-cm-send:disabled{opacity:.5;cursor:not-allowed;}
.lc-photo-cm-form-row{display:flex;gap:6px;align-items:flex-end;}
.lc-photo-cm-form-row textarea{flex:1;min-width:0;resize:none;min-height:38px;}
.lc-photo-cm-pick{border:1px solid var(--border);background:var(--surface);color:var(--text-2);width:36px;height:36px;border-radius:10px;cursor:pointer;font-size:14px;flex-shrink:0;}
.lc-photo-cm-pick:hover{color:var(--primary);border-color:var(--primary);}
.lc-photo-cm-media{display:none;align-items:center;gap:8px;}
.lc-photo-cm-media img{width:46px;height:46px;object-fit:contain;border-radius:9px;background:var(--surface-3);padding:3px;}
.lc-photo-cm-media-x{border:0;background:none;color:var(--text-3);cursor:pointer;font-size:14px;padding:3px;}
.lc-photo-cm-media-x:hover{color:#e74c3c;}
.lc-photo-cm-react-row{display:flex;align-items:center;gap:8px;margin-top:5px;}
.lc-photo-react-zone{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;}
.lc-photo-react-btn{border:0;background:none;color:var(--text-3);cursor:pointer;font-size:13px;padding:2px 4px;border-radius:6px;line-height:1;font-family:inherit;transition:transform .12s ease;}
.lc-photo-react-btn:hover{color:var(--primary);}
.lc-photo-react-btn.reacted{color:var(--primary);}
.lc-photo-react-btn.chat-pv-react-bump{animation:chatPvReactBump .4s ease;}
.lc-photo-react-pills{display:flex;flex-wrap:wrap;gap:4px;}
.lc-photo-react-pill{font-size:11px;color:var(--text-2);background:var(--surface-3);border:1px solid var(--border);border-radius:999px;padding:2px 8px;cursor:pointer;font-family:inherit;transition:transform .15s ease;}
.lc-photo-react-pill.active{color:var(--primary);border-color:var(--primary);}

/* ---------- Private messages (ported from chat.php) ---------- */
/* private message modal */
.lc-pm-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:320;
  backdrop-filter:blur(4px);
  padding:16px;
}
.lc-pm-card{
  width:100%;
  max-width:460px;
  max-height:86vh;
  background:var(--surface);
  border:1px solid var(--surface-3);
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
overflow:hidden;
  display:flex;
  flex-direction:column;
}
.lc-pm-card{
  --surface:#26262b;--surface-2:#2f2f35;--surface-3:#3a3a41;
  --border:rgba(255,255,255,.14);
  --text:#ffffff;--text-2:#e8e8ec;--text-3:#a6a6b0;
  --primary:#3b82f6;--primary-rgb:59,130,246;
  --bubble-them:#36363d;--bubble-mine:#3b82f6;
  color:#ffffff;
}
.lc-pm-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.lc-pm-head-user{display:flex;align-items:center;gap:10px;min-width:0;cursor:pointer;}
.lc-pm-head-av{position:relative;width:38px;height:38px;flex-shrink:0;}
.lc-pm-head-av img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:var(--surface-3);border:2px solid var(--border);}
.lc-pm-head-av .avatar-frame-overlay{inset:-1px;}
.lc-pm-head-id{display:flex;flex-direction:column;min-width:0;}
.lc-pm-head-id b{font-size:14px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lc-pm-head-id small{font-size:11px;color:var(--text-3);}
.lc-pm-opt-wrap{position:relative;flex-shrink:0;}
.lc-pm-head-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:8px;}
.lc-pm-opt-btn{
  width:34px;height:34px;border-radius:50%;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text-2);
  font-size:14px;
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:var(--transition);
}
.lc-pm-opt-btn:hover,.lc-pm-opt-btn.open{color:#fff;border-color:var(--primary);background:rgba(var(--primary-rgb),.18);}
.lc-pm-opt-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:2147483007;
  background:var(--surface);
  border:1px solid var(--surface-3);
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.55);
  padding:8px;
  width:220px;
  max-height:calc(86vh - 90px);
  overflow-y:auto;
}
.lc-pm-opt-title{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-3);padding:6px 8px 4px;}
.lc-pm-opt-sep{display:block;height:1px;background:var(--border);margin:6px 4px;}
.lc-pm-opt-it{
  display:flex;align-items:center;gap:8px;
  width:100%;
  border:none;background:transparent;
  color:var(--text);
  font-size:13px;
  padding:7px 8px;
  border-radius:10px;
  cursor:pointer;
  text-align:left;
  transition:var(--transition);
}
.lc-pm-opt-it:hover{background:var(--surface-3);}
.lc-pm-opt-it.active{background:rgba(var(--primary-rgb),.16);color:#fff;}
.lc-opt-swatch{width:17px;height:17px;border-radius:50%;flex-shrink:0;border:1px solid rgba(255,255,255,.22);}
.sw-classic{background:linear-gradient(135deg,#5b5fea,#8b5cf6);}
.sw-im{background:linear-gradient(135deg,#06c755,#ffffff 60%);}
.sw-neon{background:linear-gradient(135deg,#22d3ee,#f472b6);}
.sw-paper{background:linear-gradient(135deg,#f3ead8,#e7d3a0);}
.sw-twitter{background:linear-gradient(135deg,#1d9bf0,#7fb7e8);}
.sw-doodle{background:linear-gradient(135deg,#fbbf24,#f59e0b);}
.sw-ocean{background:linear-gradient(135deg,#0ea5e9,#06b6d4);}
.sw-sunset{background:linear-gradient(135deg,#d946ef,#8b5cf6);}
.sw-bg-none{background:#5a5a6a;border-style:dashed;}
.sw-bg-upload{background:#e8e8ee;border-color:rgba(0,0,0,.2);}
.sw-bg-waves{background:linear-gradient(135deg,#0f2b46,#0d5c63);}
.sw-bg-dusk{background:linear-gradient(160deg,#2a1e4a,#6b2d5c);}
.sw-bg-forest{background:linear-gradient(160deg,#14281d,#2f6b3e);}
.sw-bg-midnight{background:linear-gradient(160deg,#0d1226,#1e2a52);}
.sw-bg-slate{background:linear-gradient(160deg,#1b2130,#2c3444);}
.sw-bg-aurora{background:linear-gradient(135deg,#0f2b46,#14525d,#3b2f63);}
/* PM conversation themes (shared per conversation, FB Messenger style) */
.lc-pm-card.lc-pm-theme-im{
  --surface:#f6f7f9;--surface-2:#eef1f4;--surface-3:#e0e3e8;
  --border:rgba(0,0,0,.10);
  --text:#202124;--text-2:#5f6368;--text-3:#9aa0a6;
  --primary:#06c755;--primary-rgb:6,199,85;
  --bubble-them:#128167;--bubble-mine:#06c755;
}
.lc-pm-card.lc-pm-theme-im .lc-pm-bubble a{color:#7dd3fc;}
.lc-pm-card.lc-pm-theme-im .lc-pm-row.mine .lc-pm-bubble a{color:#dbeafe;}
.lc-pm-card.lc-pm-theme-neon{
  --surface:#0a0a12;--surface-2:#16162a;--surface-3:#202038;
  --border:rgba(34,211,238,.16);
  --text:#e8f6ff;--text-2:#9fb4d8;--text-3:#64748b;
  --primary:#22d3ee;--primary-rgb:34,211,238;
  --bubble-them:#1a2b4a;--bubble-mine:#22d3ee;
}
.lc-pm-card.lc-pm-theme-neon .lc-pm-row.mine .lc-pm-bubble{background:linear-gradient(135deg,#0ea5e9,#f472b6);}
.lc-pm-card.lc-pm-theme-paper{
  --surface:#f3ead8;--surface-2:#ece2ca;--surface-3:#e2d5b8;
  --border:rgba(90,72,40,.14);
  --text:#4a402c;--text-2:#776a4c;--text-3:#9c8f6c;
  --primary:#a8d5a2;--primary-rgb:168,213,162;
  --bubble-them:#e7d9bd;--bubble-mine:#c9e3c2;
  --radius:16px;
}
.lc-pm-card.lc-pm-theme-paper .lc-pm-row.mine .lc-pm-bubble{color:#2c3a28;}
.lc-pm-card.lc-pm-theme-paper .lc-pm-bubble a{color:#0d7a4a;}
.lc-pm-card.lc-pm-theme-twitter{
  --surface:#ffffff;--surface-2:#f0f3f6;--surface-3:#e4e9ee;
  --border:rgba(0,0,0,.10);
  --text:#202124;--text-2:#5f6368;--text-3:#9aa0a6;
  --primary:#1d9bf0;--primary-rgb:29,155,240;
  --bubble-them:#e9f0f7;--bubble-mine:#1d9bf0;
}
.lc-pm-card.lc-pm-theme-twitter .lc-pm-bubble{color:#202124;}
.lc-pm-card.lc-pm-theme-twitter .lc-pm-row.mine .lc-pm-bubble{color:#fff;}
.lc-pm-card.lc-pm-theme-twitter .lc-pm-bubble a{color:#1d9bf0;}
.lc-pm-card.lc-pm-theme-doodle{
  --surface:#fff8e7;--surface-2:#fbefd2;--surface-3:#f3e2b8;
  --border:rgba(150,110,30,.16);
  --text:#5b4a24;--text-2:#8a743f;--text-3:#b39a63;
  --primary:#f59e0b;--primary-rgb:245,158,11;
  --bubble-them:#f7e7bd;--bubble-mine:#fbbf24;
}
.lc-pm-card.lc-pm-theme-doodle .lc-pm-row.mine .lc-pm-bubble{color:#3a2f10;}
.lc-pm-card.lc-pm-theme-ocean{
  --surface:#0b1620;--surface-2:#12202f;--surface-3:#1a2c3f;
  --border:rgba(56,189,248,.16);
  --text:#e6f6ff;--text-2:#9fc6dd;--text-3:#6d95aa;
  --primary:#0ea5e9;--primary-rgb:14,165,233;
  --bubble-them:#163547;--bubble-mine:#0ea5e9;
}
.lc-pm-card.lc-pm-theme-ocean .lc-pm-row .lc-pm-bubble{border:1px solid rgba(56,189,248,.28);}
.lc-pm-card.lc-pm-theme-sunset{
  --surface:#1a1020;--surface-2:#24142c;--surface-3:#301a3a;
  --border:rgba(244,114,182,.18);
  --text:#fde8f3;--text-2:#d4a6c4;--text-3:#9c6f8f;
  --primary:#d946ef;--primary-rgb:217,70,239;
  --bubble-them:#3a1f3f;--bubble-mine:#d946ef;
}
.lc-pm-card.lc-pm-theme-sunset .lc-pm-row.mine .lc-pm-bubble{background:linear-gradient(135deg,#d946ef,#8b5cf6);}
/* PM conversation backgrounds (applied to the message list) */
#lcPmList.lc-pm-bg-waves{background:linear-gradient(135deg,#0f2b46,#0d5c63);}
#lcPmList.lc-pm-bg-dusk{background:linear-gradient(160deg,#2a1e4a,#6b2d5c);}
#lcPmList.lc-pm-bg-forest{background:linear-gradient(160deg,#14281d,#2f6b3e);}
#lcPmList.lc-pm-bg-midnight{background:linear-gradient(160deg,#0d1226,#1e2a52);}
#lcPmList.lc-pm-bg-slate{background:linear-gradient(160deg,#1b2130,#2c3444);}
#lcPmList.lc-pm-bg-aurora{background:linear-gradient(135deg,#0f2b46,#14525d,#3b2f63);}
#lcPmList.lc-pm-bg-img{background-size:cover;background-position:center;background-repeat:no-repeat;}
.lc-pm-body{flex:1;display:flex;flex-direction:column;min-height:0;}
.lc-pm-list{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:6px;-webkit-overflow-scrolling:touch;background:transparent;}
.lc-pm-loading{color:var(--text-3);font-size:13px;text-align:center;padding:20px 0;}
.lc-pm-row{display:flex;align-items:flex-end;gap:6px;max-width:85%;}
.lc-pm-row.mine{align-self:flex-end;flex-direction:row-reverse;}
.lc-pm-row .lc-pm-av{width:26px;height:26px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--surface-3);align-self:flex-end;cursor:pointer;}
.lc-pm-col{display:flex;flex-direction:column;min-width:0;max-width:100%;}
.lc-pm-row .lc-pm-col{align-items:flex-start;}
.lc-pm-row.mine .lc-pm-col{align-items:flex-end;}
.lc-pm-row .lc-react-row{justify-content:flex-start;}
.lc-pm-row.mine .lc-react-row{justify-content:flex-end;}
.lc-pm-bubble{
  padding:8px 12px;
  border-radius:16px 16px 16px 4px;
  background:var(--bubble-them);
  color:var(--text);
  font-size:13.5px;
  line-height:1.45;
  word-break:break-word;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  position:relative;
}
.lc-pm-row.mine .lc-pm-bubble{background:var(--bubble-mine);color:#fff;border-radius:16px 16px 4px 16px;}
.lc-pm-bubble a{color:#7dd3fc;text-decoration:underline;}
.lc-pm-row.mine .lc-pm-bubble a{color:#dbeafe;}
.lc-pm-bubble .chat-pv-embed{width:100%;min-width:min(240px,76vw);}
.lc-pm-bubble .chat-pv-embed.cpv-aud{min-width:0;}
.lc-pm-time-above{font-size:10px;color:var(--text-3);opacity:.85;margin:0 2px 3px;line-height:1.2;white-space:nowrap;}
.lc-pm-del{
  position:absolute;
  top:-6px;right:-6px;
  width:18px;height:18px;
  border-radius:50%;
  background:var(--surface-3);
  border:1px solid var(--border);
  color:var(--text-3);
  font-size:8px;
  display:none;
  align-items:center;justify-content:center;
  cursor:pointer;
  z-index:1;
}
.lc-pm-row:hover .lc-pm-del,.lc-pm-del:focus,.lc-pm-del:active{display:flex;}
.lc-pm-row.mine .lc-pm-del{right:auto;left:-6px;}
.lc-pm-row:not(.mine) .lc-pm-col{padding-right:32px;}
.lc-pm-row.mine .lc-pm-col{padding-left:32px;}
.lc-pm-reply-btn{
  position:absolute;
  top:50%;
  right:-28px;
  transform:translateY(-50%);
  width:24px;height:24px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text-3);
  font-size:10px;
  display:inline-flex;align-items:center;justify-content:center;
  opacity:.5;
  cursor:pointer;
  z-index:2;
  transition:opacity .15s ease,color .15s ease,border-color .15s ease,background .15s ease,transform .15s ease;
}
.lc-pm-row.mine .lc-pm-reply-btn{right:auto;left:-28px;}
.lc-pm-row:hover .lc-pm-reply-btn{opacity:1;}
.lc-pm-reply-btn:hover{opacity:1;color:#fff;border-color:var(--primary);background:rgba(var(--primary-rgb),.18);transform:translateY(-50%) scale(1.08);}
.lc-pm-edit{
  position:absolute;
  top:-6px;left:-26px;
  width:18px;height:18px;
  border-radius:50%;
  background:var(--surface-3);
  border:1px solid var(--border);
  color:var(--text-3);
  font-size:8px;
  display:none;
  align-items:center;justify-content:center;
  cursor:pointer;
  z-index:1;
}
.lc-pm-row:hover .lc-pm-edit,.lc-pm-edit:focus,.lc-pm-edit:active{display:inline-flex;}
.lc-pm-edit:hover{color:#fff;border-color:var(--primary);background:rgba(var(--primary-rgb),.18);}
.lc-pm-editor{
  display:flex;flex-direction:column;gap:6px;
  margin-bottom:4px;
  min-width:180px;max-width:280px;
}
.lc-pm-edit-ta{
  width:100%;
  resize:none;
  border-radius:10px;
  border:1px solid var(--primary);
  background:var(--surface-2);
  color:var(--text);
  font-size:13px;
  line-height:1.45;
  padding:8px 10px;
  outline:none;
  font-family:inherit;
}
.lc-pm-edit-btns{display:flex;gap:6px;justify-content:flex-end;}
.lc-pm-edit-btns button{
  border:none;border-radius:8px;
  padding:5px 12px;
  font-size:12px;
  cursor:pointer;
  font-family:inherit;
}
.lc-pm-edit-save{background:var(--primary);color:#fff;}
.lc-pm-edit-save:disabled{opacity:.5;cursor:default;}
.lc-pm-edit-cancel{background:var(--surface-3);color:var(--text-2);}
.lc-pm-edit-err{font-size:11px;color:#f87171;margin-top:-2px;}
.lc-pm-bubble .lc-pm-img{max-width:200px;max-height:240px;border-radius:10px;object-fit:cover;display:block;cursor:zoom-in;background:var(--surface-3);}
.lc-pm-bubble .lc-pm-sticker{width:auto;height:auto;max-width:140px;max-height:140px;object-fit:contain;display:block;}
.lc-pm-bubble-media{padding:0;background:transparent;box-shadow:none;min-width:0;overflow:hidden;display:inline-flex;flex-direction:column;align-items:flex-start;width:max-content;max-width:100%;}
.lc-pm-bubble-media .lc-pm-sticker{padding:0;border-radius:14px;background:transparent;}
.lc-pm-bubble-media .lc-pm-img{padding:0;border-radius:14px;}
.lc-pm-reply{
  font-size:11px;
  opacity:.82;
  background:rgba(127,127,127,.18);
  border-radius:8px;
  padding:4px 8px;
  margin-bottom:4px;
  overflow:hidden;
  max-width:200px;
}
.lc-pm-reply-who{font-weight:600;margin-right:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lc-pm-reply-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;}
.lc-pm-day{
  align-self:center;
  font-size:10.5px;
  color:var(--text-3);
  background:var(--surface-2);
  padding:3px 10px;
  border-radius:10px;
  margin:8px 0 4px;
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.lc-pm-composer{
  position:relative;
  display:flex;flex-direction:column;gap:8px;
  padding:10px 12px;
  border-top:1px solid var(--border);
  flex-shrink:0;
}
.lc-pm-preview{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:12px;
}
.lc-pm-preview img{width:42px;height:42px;border-radius:8px;object-fit:cover;}
.lc-pm-preview span{flex:1;font-size:12px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lc-pm-composer-row{
  display:flex;gap:8px;align-items:flex-end;
}
.lc-pm-composer-row textarea{
  flex:1;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:20px;
  padding:10px 14px;
  font-size:14px;
  font-family:var(--font);
  resize:none;
  min-height:42px;
  max-height:108px;
  outline:none;
  box-sizing:border-box;
  line-height:1.45;
  transition:var(--transition);
}
.lc-pm-composer-row textarea::placeholder{color:var(--text-3);}
.lc-pm-composer-row textarea:focus{border-color:var(--primary);background:var(--surface);}
.lc-pm-cbtn{
  flex-shrink:0;
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text-2);
  font-size:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:var(--transition);
}
.lc-pm-cbtn:hover,.lc-pm-cbtn.active{color:#fff;border-color:var(--primary);background:rgba(var(--primary-rgb),.15);}
.lc-pm-composer > .chat-pv-cm-pick-pop{
  position:fixed;
  left:16px;
  bottom:16px;
  z-index:2147483007;
}
.lc-pm-pick-close{width:30px;height:30px;border-radius:50%;border:none;background:transparent;color:var(--text-2);font-size:13px;cursor:pointer;flex-shrink:0;margin-left:auto;margin-right:6px;transition:.15s;}
.lc-pm-pick-close:hover{color:#fff;background:var(--surface-3);}
.lc-pm-send{
  flex:0 0 auto;
  width:38px;height:38px;
  display:flex;align-items:center;justify-content:center;
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:50%;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(var(--primary-rgb),.4);
  transition:var(--transition);
}
.lc-pm-send:hover{background:var(--primary-hover);transform:scale(1.05);}
.lc-pm-send:disabled{opacity:.4;cursor:not-allowed;transform:none;}
.lc-pm-inbox-btn{position:relative;}
.lc-pm-inbox-btn .lc-pm-badge{
  position:absolute;
  top:-2px;right:-2px;
  min-width:16px;height:16px;
  padding:0 4px;
  border-radius:9px;
  background:var(--danger,#ef4444);
  color:#fff;
  font-size:10px;
  font-weight:700;
  line-height:16px;
  text-align:center;
  box-sizing:border-box;
  box-shadow:0 0 0 2px var(--surface,#15151d);
}
.lc-pm-inbox-card{max-width:420px;}
.lc-pm-inbox-search{
  display:flex;align-items:center;gap:8px;
  padding:8px 14px;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.lc-pm-inbox-search i{color:var(--text-3);font-size:12px;}
.lc-pm-inbox-search input{
  flex:1;
  background:transparent;
  border:none;
  color:var(--text);
  font-size:13px;
  font-family:var(--font);
  outline:none;
  box-sizing:border-box;
  padding:4px 0;
}
.lc-pm-inbox-search input::placeholder{color:var(--text-3);}
.lc-notes{
  flex:0 0 auto;
  display:flex;
  flex-direction:row;
  align-items:flex-end;
  gap:8px;
  margin:6px 12px 2px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-color:var(--surface-3) transparent;
  min-height:0;
}
.lc-notes::-webkit-scrollbar{height:5px;}
.lc-notes::-webkit-scrollbar-thumb{background:var(--surface-3);}
.lc-notes-inbox{
  flex:0 0 auto;
  margin:8px 10px;
  padding:0;
}
.lc-note{
  position:relative;
  display:flex;
  align-items:flex-end;
  gap:9px;
  flex:0 0 auto;
  cursor:pointer;
  border:1px solid var(--border);
  border-radius:16px 16px 16px 6px;
  background:var(--surface-2);
  padding:9px 12px;
  max-width:230px;
  transition:var(--transition);
}
.lc-note::before{
  content:"";
  position:absolute;
  left:-5px;
  bottom:10px;
  width:10px;
  height:10px;
  background:var(--surface-2);
  border-left:1px solid var(--border);
  border-bottom:1px solid var(--border);
  transform:rotate(45deg);
  z-index:0;
}
.lc-note .lc-note-av,.lc-note .lc-note-body,.lc-note .lc-note-edit{z-index:1;}
.lc-note:hover{border-color:var(--primary);background:var(--surface-3);}
.lc-note:hover::before{background:var(--surface-3);}
.lc-note.mine{border-color:rgba(var(--primary-rgb),0.4);background:rgba(var(--primary-rgb),0.10);position:relative;padding-top:24px;}
.lc-note.mine::before{background:rgba(var(--primary-rgb),0.10);border-color:rgba(var(--primary-rgb),0.4);}
.lc-note-av{width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--surface-3);flex-shrink:0;}
.lc-note-av-other{cursor:pointer;transition:var(--transition);}
.lc-note-av-other:hover{transform:scale(1.08);box-shadow:0 0 0 2px var(--primary);}
.lc-note-edit{
  position:absolute;
  top:4px;
  left:4px;
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:50%;
  background:var(--surface-3);
  color:var(--text-2);
  font-size:9px;
  cursor:pointer;
  z-index:2;
  transition:var(--transition);
}
.lc-note-edit:hover{background:var(--primary);color:#fff;}
.lc-note-body{min-width:0;}
.lc-note-name{display:block;font-size:10.5px;font-weight:600;color:var(--text-3);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;}
.lc-note-text{display:block;font-size:12.5px;line-height:1.35;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px;}
.lc-note-add{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  cursor:pointer;
  border:1px dashed var(--border);
  border-radius:16px;
  background:transparent;
  color:var(--text-3);
  font-size:12px;
  padding:9px 13px;
  transition:var(--transition);
}
.lc-note-add:hover{color:var(--text);border-color:var(--primary);background:var(--surface-2);}
.lc-note-add.has{border-style:solid;border-color:rgba(var(--primary-rgb),0.5);color:var(--primary);background:rgba(var(--primary-rgb),0.08);font-weight:600;}
.lc-note-add.has:hover{color:#fff;border-color:var(--primary);background:var(--primary);}
.lc-note-view-body{padding:16px;display:flex;flex-direction:column;gap:14px;}
.lc-note-view-bubble{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:16px 16px 16px 6px;
  padding:14px;
}
.lc-note-view-bubble::before{
  content:"";
  position:absolute;
  left:-5px;
  bottom:10px;
  width:10px;
  height:10px;
  background:var(--surface-2);
  border-left:1px solid var(--border);
  border-bottom:1px solid var(--border);
  transform:rotate(45deg);
  z-index:0;
}
.lc-note-view-av,.lc-note-view-text{z-index:1;}
.lc-note-view-av{width:46px;height:46px;border-radius:50%;object-fit:cover;background:var(--surface-3);flex-shrink:0;}
.lc-note-view-text{font-size:14px;line-height:1.5;color:var(--text);word-break:break-word;overflow-wrap:anywhere;}
.lc-note-view-reply{display:flex;align-items:flex-end;gap:8px;}
.lc-note-view-reply textarea{
  flex:1;
  resize:none;
  border:1px solid var(--border);
  border-radius:var(--radius-xs);
  background:var(--surface-2);
  color:var(--text);
  font-family:var(--font);
  font-size:13.5px;
  line-height:1.4;
  padding:10px 12px;
  outline:none;
  box-sizing:border-box;
  transition:var(--transition);
}
.lc-note-view-reply textarea:focus{border-color:var(--primary);background:var(--surface);}
.lc-note-view-send{
  width:38px;height:38px;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  border:none;
  border-radius:50%;
  background:var(--primary);
  color:#fff;
  font-size:14px;
  cursor:pointer;
  transition:var(--transition);
}
.lc-note-view-send:hover{background:var(--primary-hover);}
.lc-note-view-send:disabled{opacity:.5;cursor:not-allowed;}
.lc-pm-inbox-list{padding:6px 0;}
.lc-pm-note-btn{
  display:inline-flex;align-items:center;gap:6px;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text-3);
  font-family:var(--font);
  font-size:12px;font-weight:600;
  padding:7px 10px;border-radius:10px;
  cursor:pointer;transition:var(--transition);
  flex-shrink:0;
}
.lc-pm-note-btn:hover{color:var(--text);border-color:var(--primary);background:var(--surface-2);}
.lc-pm-note-btn.has{border-color:rgba(var(--primary-rgb),0.5);color:var(--primary);background:rgba(var(--primary-rgb),0.08);}
.lc-pm-note-btn.has:hover{color:#fff;border-color:var(--primary);background:var(--primary);}
.lc-pm-note-card{max-width:400px;}
.lc-note-modal-body{position:relative;padding:14px;border-bottom:1px solid var(--border);}
.lc-note-modal-body textarea{
  width:100%;
  resize:none;
  border:1px solid var(--border);
  border-radius:var(--radius-xs);
  background:var(--surface-2);
  color:var(--text);
  font-family:var(--font);
  font-size:14px;
  line-height:1.45;
  padding:10px 12px;
  outline:none;
  box-sizing:border-box;
  transition:var(--transition);
}
.lc-note-modal-body textarea:focus{border-color:var(--primary);background:var(--surface);}
.lc-note-count{position:absolute;bottom:22px;right:24px;font-size:10.5px;color:var(--text-3);background:rgba(16,16,24,0.7);padding:2px 7px;border-radius:8px;}
.lc-note-modal-btns{display:flex;gap:8px;padding:12px 14px;}
.lc-note-save{
  flex:1;
  border:none;
  border-radius:10px;
  background:var(--primary);
  color:#fff;
  font-family:var(--font);
  font-weight:600;
  font-size:13px;
  padding:11px;
  cursor:pointer;
  transition:var(--transition);
}
.lc-note-save:hover{background:var(--primary-hover);}
.lc-note-save:disabled{opacity:.5;cursor:not-allowed;}
.lc-note-del{
  border:1px solid rgba(239,68,68,0.45);
  background:transparent;
  color:var(--red);
  border-radius:10px;
  font-family:var(--font);
  font-weight:600;
  font-size:13px;
  padding:11px 14px;
  cursor:pointer;
  transition:var(--transition);
}
.lc-note-del:hover{background:var(--red);color:#fff;}
.lc-pm-thread{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;
  cursor:pointer;
  transition:background 0.15s ease;
}
.lc-pm-thread:hover{background:var(--surface-2);}
.lc-pm-thread-av{position:relative;width:40px;height:40px;flex-shrink:0;}
.lc-pm-thread-av img{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--surface-3);border:2px solid var(--border);}
.lc-pm-thread-av .avatar-frame-overlay{inset:-1px;}
.lc-pm-thread-dot{position:absolute;bottom:0;right:0;width:11px;height:11px;border-radius:50%;background:#34d399;border:2px solid var(--surface);}
.lc-pm-thread-meta{flex:1;min-width:0;}
.lc-pm-thread-name{font-size:13.5px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lc-pm-thread-prev{font-size:12px;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;}
.lc-pm-thread-note{display:block;font-size:11px;line-height:1.35;color:var(--highlight,#f59e0b);margin:0 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lc-pm-thread-side{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:4px;}
.lc-pm-thread-time{font-size:10.5px;color:var(--text-3);}
.lc-pm-thread-unread{min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--primary,#6366f1);color:#fff;font-size:10.5px;font-weight:700;line-height:17px;text-align:center;box-sizing:border-box;}
.lc-notif-clear{
  flex-shrink:0;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text-2);
  border-radius:8px;
  padding:5px 10px;
  font-size:11px;
  font-family:var(--font);
  cursor:pointer;
  transition:var(--transition);
  display:flex;align-items:center;gap:5px;
}
.lc-notif-clear:hover{color:#fff;background:var(--danger,#ef4444);border-color:var(--danger,#ef4444);}
.lc-notif-item{display:flex;gap:10px;align-items:flex-start;padding:10px 14px;cursor:pointer;transition:background 0.15s ease;}
.lc-notif-item:hover{background:var(--surface-2);}
.lc-notif-item.unread{background:rgba(99,102,241,0.08);}
.lc-notif-item.unread:hover{background:rgba(99,102,241,0.14);}
.lc-notif-av{width:38px;height:38px;border-radius:50%;object-fit:cover;background:var(--surface-3);flex-shrink:0;position:relative;}
.lc-notif-avwrap{position:relative;width:38px;height:38px;flex-shrink:0;}
.lc-notif-avwrap .avatar-frame-overlay{inset:0;}
.lc-notif-dot{position:absolute;top:-2px;right:-2px;width:10px;height:10px;border-radius:50%;background:var(--primary,#6366f1);border:2px solid var(--surface,#15151d);}
.lc-notif-body{flex:1;min-width:0;}
.lc-notif-text{font-size:13px;color:var(--text);line-height:1.4;word-break:break-word;}
.lc-notif-text b{font-weight:700;}
.lc-notif-snippet{display:block;font-size:12px;color:var(--text-2);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:italic;}
.lc-notif-time{display:block;font-size:10.5px;color:var(--text-3);margin-top:2px;}
.lc-notif-empty{padding:26px 16px;color:var(--text-3);font-size:13px;text-align:center;}

/* PM reactions reuse the widget's pill/row styles; align inside PM rows */
.lc-pm-row .lcw-react-row{justify-content:flex-start;}
.lc-pm-row.mine .lcw-react-row{justify-content:flex-end;}

/* PM inbox button in the widget header */
.lcw-pmbtn{position:relative;flex-shrink:0;width:30px;height:30px;border-radius:50%;border:1px solid var(--lc-border);background:var(--lc-surface-2);color:var(--lc-text-2);font-size:13px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s;}
.lcw-pmbtn:hover{color:#fff;border-color:var(--lc-primary);background:rgba(var(--lc-primary-rgb),.18);}
.lcw-pm-badge{position:absolute;top:-2px;right:-2px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;box-sizing:border-box;box-shadow:0 0 0 2px var(--lc-surface);}

/* PM envelope button on chat message rows */
.lcw-pm-btn{position:absolute;top:50%;right:-58px;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;border:1px solid var(--lc-border);background:var(--lc-surface-2);color:var(--lc-text-2);font-size:11px;display:inline-flex;align-items:center;justify-content:center;opacity:0;transition:.15s;z-index:2;}
.lcw-msg:hover .lcw-pm-btn{opacity:1;}
.lcw-pm-btn:hover{color:#fff;border-color:var(--lc-primary);background:rgba(var(--lc-primary-rgb),.18);}

/* New-message toast */
.lc-pm-toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%) translateY(20px);z-index:2147483008;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.6);padding:10px 14px;display:flex;align-items:center;gap:10px;max-width:min(92vw,380px);opacity:0;pointer-events:none;transition:.25s cubic-bezier(.4,0,.2,1);cursor:pointer;font-family:inherit;}
.lc-pm-toast.show{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto;}
.lc-pm-toast-av{width:38px;height:38px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--surface-3);}
.lc-pm-toast b{font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:210px;}
.lc-pm-toast p{margin:0;font-size:12px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px;}
.lc-pm-toast-x{width:22px;height:22px;border-radius:50%;border:none;background:var(--surface-3);color:var(--text-2);font-size:10px;cursor:pointer;flex-shrink:0;}
.lc-pm-toast-x:hover{color:#fff;}

/* PM modals on small screens: full-screen conversation/inbox */
@media (max-width:560px){
    .lc-pm-overlay{padding:0;align-items:stretch;}
    .lc-pm-card{width:100%;max-width:none;max-height:none;height:100%;height:100dvh;border-radius:0;border:none;}
    .lc-pm-composer > .chat-pv-cm-pick-pop{left:8px;right:8px;max-width:calc(100vw - 16px);}
    .lc-pm-composer-row textarea{font-size:16px;}
    .lc-pm-head{padding:10px 12px;}
}
