.tg-callpop{position:fixed;top:52px;left:50%;z-index:9999;display:flex;align-items:center;gap:14px;min-width:340px;padding:12px 14px 12px 16px;border-radius:18px;background:rgba(20,28,24,.96);color:#fff;box-shadow:0 10px 40px rgba(0,0,0,.5);transform:translateX(-50%);direction:rtl;font-family:"Vazirmatn","Segoe UI",Tahoma,sans-serif;animation:tg-callpop-in .3s cubic-bezier(.2,.8,.2,1)}
.tg-callpop.light{background:rgba(255,255,255,.97);color:#0f1712;box-shadow:0 10px 40px rgba(0,0,0,.22)}
@keyframes tg-callpop-in{from{opacity:0;transform:translate(-50%,-16px) scale(.96)}to{opacity:1;transform:translate(-50%,0)}}
.tg-callpop-av{position:relative;width:64px;height:64px;flex:none}
.tg-callpop .tg-avatar{position:relative;z-index:1;display:inline-grid;place-items:center;border-radius:50%;background:var(--tg-av-bg,linear-gradient(#72d5fd,#2a9ef1));color:#fff;font-weight:500;overflow:hidden}
.tg-callpop .tg-avatar-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.tg-callpop .tg-avatar.has-img .tg-avatar-img{opacity:1}
.tg-callpop .tg-avatar.has-img .tg-avatar-t{visibility:hidden}
.tg-ring-wave{position:absolute;inset:0;border-radius:50%;border:2px solid #37e17c;opacity:0;animation:tg-ring 1.8s ease-out infinite;pointer-events:none}
.tg-ring-wave.d2{animation-delay:.9s}
@keyframes tg-ring{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.55);opacity:0}}
.tg-callpop-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tg-callpop-info b{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-callpop-info span{font-size:13.5px;opacity:.7}
.tg-callpop-btns{display:flex;gap:10px}
.tg-cbtn{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0}
.tg-cbtn-c{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);color:#fff;transition:filter .15s,transform .12s,background-color .15s}
.tg-cbtn:hover .tg-cbtn-c{filter:brightness(1.15)}
.tg-cbtn:active .tg-cbtn-c{transform:scale(.92)}
.tg-cbtn .tgico{font-size:26px;font-family:"tgico"!important;line-height:1}
.tg-cbtn-t{font-size:12.5px;opacity:.85;white-space:nowrap}
.tg-cbtn.decline .tg-cbtn-c,.tg-cbtn.end .tg-cbtn-c{background:#ff4d55}
.tg-cbtn.accept .tg-cbtn-c{background:#2fcf6e;animation:tg-shake 1.6s infinite}
@keyframes tg-shake{0%,60%,100%{transform:none}65%{transform:rotate(-14deg)}75%{transform:rotate(12deg)}85%{transform:rotate(-8deg)}}
.tg-cbtn.on .tg-cbtn-c{background:#fff;color:#16201b}
.tg-cbtn.mic.on .tg-cbtn-c{background:linear-gradient(135deg,#00a3b4,#00cb47)}
.tg-cbtn.mic.off .tg-cbtn-c{background:linear-gradient(135deg,#4eabf8,#3478f6)}
.tg-cbtn.off .tg-cbtn-c{background:rgba(255,255,255,.28)}
#ch.tg .tg-center.has-callbar .tg-chat,#ch.tg .tg-center.has-callbar .tg-chat-empty{top:34px}
#ch.tg .tg-callbar{position:absolute;top:0;left:0;right:0;height:34px;z-index:8;display:flex;align-items:center;gap:6px;padding:0 10px 0 6px;background:linear-gradient(90deg,#1aa356,#16b38f);color:#fff;animation:tg-fade-in .2s}
#ch.tg .tg-callbar-main{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;font-size:14px;height:100%}
#ch.tg .tg-callbar-main b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ch.tg .tg-callbar-main .tg-call-timer{opacity:.9;font-variant-numeric:tabular-nums}
#ch.tg .tg-callbar-btn{width:30px;height:30px;color:#fff}
#ch.tg .tg-callbar-btn .tgico{font-size:20px}
#ch.tg .tg-callbar-btn:hover{background:rgba(255,255,255,.15)}
#ch.tg .tg-callbar-btn.end{background:rgba(0,0,0,.18)}
#ch.tg .tg-call-sig{display:inline-flex;align-items:flex-end;gap:2px;height:14px}
#ch.tg .tg-call-sig i{width:3px;border-radius:1px;background:currentColor;opacity:.9}
#ch.tg .tg-call-sig i:nth-child(1){height:5px}
#ch.tg .tg-call-sig i:nth-child(2){height:9px}
#ch.tg .tg-call-sig i:nth-child(3){height:13px}
#ch.tg .tg-call-sig[data-q="poor"] i:nth-child(n+2),#ch.tg .tg-call-sig[data-q="lost"] i{opacity:.3}
#ch.tg .tg-call-sig[data-q="good"] i:nth-child(3){opacity:.3}
#ch.tg .tg-callscreen{position:absolute;inset:0;z-index:9;display:flex;flex-direction:column;background:radial-gradient(900px 600px at 50% 20%,#1f5c3b,#0f2a1d 60%,#0a1812);color:#fff;animation:tg-cs-in .25s var(--tg-ease)}
#ch.tg .tg-callscreen.closing{animation:tg-cs-out .2s var(--tg-ease) forwards}
@keyframes tg-cs-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes tg-cs-out{to{opacity:0;transform:scale(.97)}}
#ch.tg .tg-cs-top{flex:none;display:flex;align-items:center;gap:10px;height:60px;padding:0 14px}
#ch.tg .tg-cs-min{color:#fff}
#ch.tg .tg-cs-min:hover{background:rgba(255,255,255,.1)}
#ch.tg .tg-cs-title{flex:1;display:flex;flex-direction:column;align-items:center;min-width:0}
#ch.tg .tg-cs-title b{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#ch.tg .tg-cs-title span{font-size:13px;opacity:.75}
#ch.tg .tg-cs-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:10px 20px}
#ch.tg .tg-cs-peer{display:flex;flex-direction:column;align-items:center;gap:10px}
#ch.tg .tg-cs-peer-av{position:relative;width:132px;height:132px;margin-bottom:10px}
#ch.tg .tg-cs-peer .tg-ring-wave{animation:none}
#ch.tg .tg-cs-peer .tg-ring-wave.on{animation:tg-ring 1.8s ease-out infinite}
#ch.tg .tg-cs-peer.speaking .tg-avatar{box-shadow:0 0 0 4px rgba(55,225,124,.7)}
#ch.tg .tg-cs-peer b{font-size:24px;font-weight:600}
#ch.tg .tg-cs-peer>span{font-size:15px;opacity:.8}
#ch.tg .tg-cs-grid{width:100%;height:100%;display:grid;grid-template-columns:repeat(var(--cols,2),1fr);gap:10px;align-content:center}
#ch.tg .tg-cs-grid.spot{grid-template-columns:1fr;grid-template-rows:1fr auto}
#ch.tg .tg-cs-strip{display:flex;gap:8px;overflow-x:auto;justify-content:center}
#ch.tg .tg-cs-strip .tg-vtile{width:150px;height:96px;flex:none}
#ch.tg .tg-vtile{position:relative;min-height:150px;border-radius:14px;overflow:hidden;background:rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 2px transparent;transition:box-shadow .15s}
#ch.tg .tg-vtile.speaking{box-shadow:inset 0 0 0 3px #37e17c}
#ch.tg .tg-vtile video{width:100%;height:100%;object-fit:cover}
#ch.tg .tg-vtile.scr video{object-fit:contain;background:#000}
#ch.tg .tg-vtile-name{position:absolute;bottom:8px;right:10px;display:flex;align-items:center;gap:6px;padding:3px 8px;border-radius:8px;background:rgba(0,0,0,.45);font-size:13px}
#ch.tg .tg-vtile-name .tgico{font-size:16px}
#ch.tg .tg-cs-empty{display:flex;flex-direction:column;align-items:center;gap:10px;opacity:.75;grid-column:1/-1}
#ch.tg .tg-cs-empty .tgico{font-size:48px}
#ch.tg .tg-cs-bar{flex:none;display:flex;justify-content:center;gap:22px;padding:14px 20px 26px}
#ch.tg .tg-cs-bar .tg-cbtn-c{width:56px;height:56px}
#ch.tg .tg-vplate{display:flex;flex-direction:column}
#ch.tg .tg-vplate-item{display:flex;align-items:center;gap:12px;height:48px;padding:0 10px 0 14px}
#ch.tg .tg-vplate-item+.tg-vplate-item{border-top:1px solid var(--tg-border)}
#ch.tg .tg-vplate-ic{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(var(--tg-primary-rgb),.14);color:var(--tg-primary);flex:none}
#ch.tg .tg-vplate-ic .tgico{font-size:18px}
#ch.tg .tg-vplate-item.live .tg-vplate-ic{background:var(--tg-primary);color:var(--tg-primary-text)}
#ch.tg .tg-vplate-t{flex:1;min-width:0;display:flex;flex-direction:column}
#ch.tg .tg-vplate-t b{font-size:14px;font-weight:600;line-height:18px}
#ch.tg .tg-vplate-t span{font-size:13px;color:var(--tg-text-2);line-height:17px}
#ch.tg .tg-vplate-avs{display:flex}
#ch.tg .tg-vplate-avs .tg-avatar{border:2px solid var(--tg-surface);margin-inline-start:-8px;font-size:11px!important}
#ch.tg .tg-vplate-avs .tg-avatar.speaking{border-color:var(--tg-primary)}
#ch.tg .tg-vplate-join{height:32px;padding:0 14px;border-radius:16px;background:var(--tg-primary);color:var(--tg-primary-text);font-size:14px}
#ch.tg .tg-vplate-item.joined .tg-vplate-join{background:rgba(var(--tg-primary-rgb),.16);color:var(--tg-primary)}
#ch.tg .tg-scr-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:4px 0 8px}
#ch.tg .tg-scr-item{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:12px;background:var(--tg-surface-2);text-align:center}
#ch.tg .tg-scr-item:hover{background:var(--tg-surface-3)}
#ch.tg .tg-scr-item img,#ch.tg .tg-scr-ph{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#000;display:block}
#ch.tg .tg-scr-item b{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-callpop{gap:16px;min-width:360px;padding:12px 12px 12px 18px;border-radius:22px;background:rgba(18,26,22,.9);-webkit-backdrop-filter:blur(24px) saturate(1.5);backdrop-filter:blur(24px) saturate(1.5);border:1px solid rgba(255,255,255,.07);box-shadow:0 12px 48px rgba(0,0,0,.55)}
.tg-callpop.light{background:rgba(255,255,255,.9);border-color:rgba(0,0,0,.06)}
.tg-callpop-av{width:56px;height:56px}
.tg-callpop .tg-avatar{width:56px!important;height:56px!important;font-size:22px!important}
.tg-callpop-info b{font-size:16.5px}
.tg-callpop-info span{display:flex;align-items:center;gap:6px;font-size:13.5px;opacity:.75}
.tg-callpop-info span::before{content:"";width:7px;height:7px;border-radius:50%;background:#37e17c;animation:tg-pulse 1.2s infinite}
.tg-callpop .tg-cbtn-c{width:46px;height:46px}
.tg-callpop .tg-cbtn .tgico{font-size:24px}
.tg-cbtn.accept .tg-cbtn-c{background:#2fcf6e;box-shadow:0 0 0 0 rgba(47,207,110,.6);animation:tg-shake 1.6s infinite,tg-accept-glow 1.6s infinite}
@keyframes tg-accept-glow{0%{box-shadow:0 0 0 0 rgba(47,207,110,.55)}70%{box-shadow:0 0 0 12px rgba(47,207,110,0)}100%{box-shadow:0 0 0 0 rgba(47,207,110,0)}}
.tg-cbtn.decline .tg-cbtn-c,.tg-cbtn.end .tg-cbtn-c{background:#ff4d55;box-shadow:0 4px 14px rgba(255,77,85,.35)}
#ch.tg .tg-callbar{height:36px;gap:4px;padding:0 8px;background:linear-gradient(90deg,#16a34f,#1bb98a 55%,#16a34f);background-size:200% 100%;animation:tg-fade-in .2s,tg-callbar-flow 6s linear infinite;box-shadow:0 1px 6px rgba(0,0,0,.25)}
#ch.tg .tg-callbar.muted{background:linear-gradient(90deg,#3570e6,#4f8af5 55%,#3570e6);background-size:200% 100%}
#ch.tg .tg-callbar.ringing{background:linear-gradient(90deg,#2b7a52,#349467 55%,#2b7a52);background-size:200% 100%}
@keyframes tg-callbar-flow{from{background-position:0 0}to{background-position:200% 0}}
#ch.tg .tg-center.has-callbar .tg-chat,#ch.tg .tg-center.has-callbar .tg-chat-empty{top:36px}
#ch.tg .tg-callbar-main{gap:8px;font-size:14px;letter-spacing:0}
#ch.tg .tg-callbar-main b{font-weight:600}
#ch.tg .tg-callbar-main .tg-call-timer{opacity:.85;font-size:13.5px}
#ch.tg .tg-callbar-main .tg-call-timer::before{content:"·";margin-inline-end:8px;opacity:.7}
#ch.tg .tg-callbar-btn{width:30px;height:30px;border-radius:50%}
#ch.tg .tg-callbar-btn .tgico{font-size:19px}
#ch.tg .tg-callbar-btn.end{background:rgba(0,0,0,.22)}
#ch.tg .tg-callbar-btn.end:hover{background:#ff4d55}
#ch.tg .tg-callscreen{background:radial-gradient(1100px 700px at 30% -10%,rgba(55,225,124,.30),transparent 60%),radial-gradient(900px 700px at 110% 110%,rgba(22,150,130,.32),transparent 60%),linear-gradient(170deg,#0e1f17,#0a1611 60%,#08120e)}
#ch.tg .tg-callscreen::before{content:"";position:absolute;inset:0;background:radial-gradient(600px 400px at 50% 40%,rgba(255,255,255,.04),transparent 70%);pointer-events:none}
#ch.tg .tg-cs-top{position:relative;z-index:1;height:64px;padding:0 12px}
#ch.tg .tg-cs-top .tg-btn-icon{color:#fff}
#ch.tg .tg-cs-top .tg-btn-icon:hover{background:rgba(255,255,255,.1)}
#ch.tg .tg-cs-title b{font-size:17px}
#ch.tg .tg-cs-title span{font-size:13.5px;opacity:.7;font-variant-numeric:tabular-nums}
#ch.tg .tg-cs-top .tg-call-sig{color:#fff;opacity:.85;width:40px;justify-content:center}
#ch.tg .tg-cs-stage{position:relative;z-index:1;padding:8px 24px}
#ch.tg .tg-cs-peer{gap:6px}
#ch.tg .tg-cs-peer-av{width:160px;height:160px;margin-bottom:18px}
#ch.tg .tg-cs-peer-av .tg-avatar{width:160px!important;height:160px!important;font-size:64px!important;box-shadow:0 10px 40px rgba(0,0,0,.35)}
#ch.tg .tg-cs-peer .tg-ring-wave{border-color:rgba(255,255,255,.35)}
#ch.tg .tg-cs-peer.speaking .tg-avatar{box-shadow:0 0 0 5px rgba(55,225,124,.85),0 10px 40px rgba(0,0,0,.35)}
#ch.tg .tg-cs-peer b{font-size:26px;font-weight:600;letter-spacing:.2px}
#ch.tg .tg-cs-peer>span{font-size:15.5px;opacity:.75;font-variant-numeric:tabular-nums}
#ch.tg .tg-cs-grid{gap:8px;max-width:1100px;margin:0 auto}
#ch.tg .tg-vtile{min-height:160px;border-radius:16px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);transition:box-shadow .2s,background-color .2s}
#ch.tg .tg-vtile:hover{background:rgba(255,255,255,.085)}
#ch.tg .tg-vtile.speaking{box-shadow:inset 0 0 0 3px #37e17c,0 0 24px rgba(55,225,124,.18)}
#ch.tg .tg-vtile-av{display:grid;place-items:center}
#ch.tg .tg-vtile.speaking .tg-vtile-av .tg-avatar{animation:tg-speak 1.2s ease-in-out infinite}
@keyframes tg-speak{0%,100%{box-shadow:0 0 0 0 rgba(55,225,124,.5)}50%{box-shadow:0 0 0 10px rgba(55,225,124,0)}}
#ch.tg .tg-vtile-name{left:8px;right:8px;bottom:8px;justify-content:flex-start;padding:4px 10px;border-radius:10px;background:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,.25));font-size:13.5px;font-weight:500;max-width:calc(100% - 16px);width:max-content;margin-inline-start:auto}
#ch.tg .tg-vtile-name span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ch.tg .tg-vtile-name .tgico{font-size:16px;opacity:.85}
#ch.tg .tg-cs-strip .tg-vtile{min-height:0;border-radius:12px}
#ch.tg .tg-cs-empty{opacity:.7}
#ch.tg .tg-cs-bar{position:relative;z-index:1;align-items:flex-end;gap:20px;padding:12px 20px 28px}
#ch.tg .tg-cs-bar .tg-cbtn-c{width:56px;height:56px;background:rgba(255,255,255,.12);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
#ch.tg .tg-cs-bar .tg-cbtn:hover .tg-cbtn-c{background:rgba(255,255,255,.2);filter:none}
#ch.tg .tg-cs-bar .tg-cbtn.on .tg-cbtn-c{background:#fff;color:#12201a}
#ch.tg .tg-cs-bar .tg-cbtn.off .tg-cbtn-c{background:rgba(255,255,255,.24)}
#ch.tg .tg-cs-bar .tg-cbtn.mic .tg-cbtn-c{width:72px;height:72px}
#ch.tg .tg-cs-bar .tg-cbtn.mic .tgico{font-size:32px}
#ch.tg .tg-cs-bar .tg-cbtn.mic.on .tg-cbtn-c{background:linear-gradient(135deg,#16b38f,#37e17c);color:#05210f;animation:tg-mic-live 2.4s ease-in-out infinite}
#ch.tg .tg-cs-bar .tg-cbtn.mic.off .tg-cbtn-c{background:linear-gradient(135deg,#3570e6,#5a9bff);color:#fff}
@keyframes tg-mic-live{0%,100%{box-shadow:0 0 0 0 rgba(55,225,124,.45)}50%{box-shadow:0 0 0 12px rgba(55,225,124,0)}}
#ch.tg .tg-cs-bar .tg-cbtn.end .tg-cbtn-c,#ch.tg .tg-cs-bar .tg-cbtn.decline .tg-cbtn-c{background:#ff4d55}
#ch.tg .tg-cs-bar .tg-cbtn.end:hover .tg-cbtn-c{background:#ff3640}
#ch.tg .tg-cs-bar .tg-cbtn.accept .tg-cbtn-c{background:#2fcf6e}
#ch.tg .tg-cs-bar .tg-cbtn-t{font-size:13px;opacity:.85}
#ch.tg .tg-vplate-item{height:52px;gap:12px;padding:0 10px 0 14px;background:linear-gradient(90deg,rgba(var(--tg-primary-rgb),.0),rgba(var(--tg-primary-rgb),.06))}
#ch.tg .tg-vplate-item.live .tg-vplate-ic{background:var(--tg-primary);color:var(--tg-primary-text);animation:tg-speak 2s ease-in-out infinite}
#ch.tg .tg-vplate-ic{width:36px;height:36px}
#ch.tg .tg-vplate-ic .tgico{font-size:20px}
#ch.tg .tg-vplate-t span{color:var(--tg-primary)}
#ch.tg .tg-vplate-avs .tg-avatar{width:28px!important;height:28px!important;box-shadow:0 0 0 2px var(--tg-surface);border:0}
#ch.tg .tg-vplate-avs .tg-avatar.speaking{box-shadow:0 0 0 2px var(--tg-primary)}
#ch.tg .tg-vplate-join{height:34px;padding:0 16px;border-radius:17px;font-weight:600}
#ch.tg .tg-vplate-join:hover{background:var(--tg-primary);filter:brightness(1.08)}
