/* 🎥 جلسه هنر مردمی — نقش گره، فیروزه‌ای و طلایی، قاب‌های طاق‌دار */
:root{--m-bg:#06262b;--m-bg2:#0a3338;--m-card:#0d3a40;--m-line:rgba(243,210,122,.18);--m-gold:#D4A84F;--m-gold2:#F3D27A;--m-teal:#14A3AE;--m-teal2:#4FC0C6;--m-red:#d9473a;--m-txt:#EAF6F6;--m-mut:#9CC3C5;--m-r:18px}
[hidden]{display:none!important}

/* ═════════ صفحه اتاق (تمام‌صفحه) ═════════ */
.hbm-body{margin:0;background:var(--m-bg);color:var(--m-txt);font-family:Vazirmatn,Tahoma,sans-serif;font-size:15px;line-height:1.7;overflow:hidden;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}
.hbm-body *{box-sizing:border-box}
.hbm-body button,.hbm-body input,.hbm-body select,.hbm-body textarea{font:inherit;color:inherit}
.hbm-body a{color:var(--m-gold2)}
.hbm{position:relative;height:calc(var(--vh,1vh)*100);width:100%;background:radial-gradient(ellipse at 85% -10%,rgba(20,163,174,.28),transparent 55%),radial-gradient(ellipse at 0% 110%,rgba(212,168,79,.14),transparent 50%),var(--hbm-girih) var(--m-bg);background-size:auto,auto,110px;display:flex;flex-direction:column}
.hbm>section{display:none;flex:1;min-height:0}
.hbm[data-view=pre] .hbm-pre,.hbm[data-view=wait] .hbm-wait,.hbm[data-view=end] .hbm-end{display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.hbm[data-view=room] .hbm-room{display:grid;grid-template-rows:auto 1fr auto;position:relative}

/* کارت پیش از ورود */
.hbm-pre-card{width:min(460px,100%);background:linear-gradient(180deg,rgba(13,58,64,.92),rgba(6,38,43,.94));border:1px solid var(--m-line);border-radius:28px;padding:22px 22px 18px;box-shadow:0 30px 80px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06);text-align:center;position:relative;backdrop-filter:blur(6px)}
.hbm-pre-card::before{content:"";position:absolute;inset:-1px -1px auto;height:16px;border-radius:28px 28px 0 0;background:var(--hbm-islimi) repeat-x center/auto 16px;opacity:.55}
.hbm-pre-card h2{font-family:Lalezar,Vazirmatn,sans-serif;font-weight:400;font-size:26px;color:var(--m-gold2);margin:8px 0 4px}
.hbm-pre-card p{color:var(--m-mut);margin:0 0 14px}
.hbm-brand{display:flex;gap:12px;align-items:center;text-align:right;margin:8px 0 14px}
.hbm-brand img{width:46px;height:46px;object-fit:contain}
.hbm-brand b{display:block;font-size:17px;line-height:1.5}
.hbm-brand small{color:var(--m-mut)}
.hbm-pre-v{position:relative;margin-bottom:12px}
.hbm-arch{position:relative;aspect-ratio:4/3;border-radius:46% 46% 18px 18px/34% 34% 18px 18px;overflow:hidden;background:var(--m-card);border:2px solid var(--m-gold);box-shadow:0 0 0 6px rgba(212,168,79,.12),0 18px 40px rgba(0,0,0,.35)}
.hbm-arch video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:none}
.hbm.pre-cam .hbm-arch video{display:block}
.hbm.pre-cam .hbm-pre-off{display:none}
.hbm-pre-off{position:absolute;inset:0;display:grid;place-items:center;background:var(--hbm-girih) center/90px}
.hbm-av-big{width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--m-gold),#8a6a30);font-size:40px;font-weight:700;color:#fff;box-shadow:0 0 0 6px rgba(212,168,79,.2)}
.hbm-meter{position:absolute;inset:auto 18% 10px;height:5px;border-radius:9px;background:rgba(255,255,255,.15);overflow:hidden}
.hbm-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--m-teal2),var(--m-gold2));transition:width .12s}
.hbm-pre-btns{display:flex;gap:12px;justify-content:center;margin-top:-28px;position:relative}
.hbm-devs{display:grid;gap:8px;text-align:right;margin:4px 0 12px}
.hbm-devs label,.hbm-name{display:grid;gap:4px;font-size:13px;color:var(--m-mut);text-align:right}
.hbm select,.hbm input,.hbm textarea,.hbm-modal select,.hbm-modal input,.hbm-modal textarea{width:100%;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:10px 12px;outline:0;color:var(--m-txt)}
.hbm select option{background:var(--m-bg2)}
.hbm input:focus,.hbm textarea:focus,.hbm select:focus{border-color:var(--m-teal2);box-shadow:0 0 0 3px rgba(79,192,198,.18)}
.hbm-small{font-size:13px;color:var(--m-mut);margin:8px 0}
.hbm-pre-msg{min-height:22px;color:#ffb4a8;font-size:13px;margin-top:8px}
.hbm-alert{background:rgba(217,71,58,.15);border:1px solid rgba(217,71,58,.4);border-radius:12px;padding:10px;margin:10px 0}
.hbm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:10px;padding:12px 18px;border-radius:14px;border:0;cursor:pointer;font-weight:700;font-size:16px;color:#1d1405!important;text-decoration:none;background:linear-gradient(180deg,var(--m-gold2),var(--m-gold));box-shadow:0 8px 22px rgba(212,168,79,.28),inset 0 1px 0 rgba(255,255,255,.5);transition:transform .15s,filter .15s}
.hbm-btn:hover{filter:brightness(1.06)}.hbm-btn:active{transform:scale(.98)}
.hbm-btn:disabled{opacity:.6;cursor:wait}
.hbm-btn.ghost{background:transparent;color:var(--m-txt)!important;border:1px solid rgba(255,255,255,.22);box-shadow:none}
.hbm-btn.danger{background:linear-gradient(180deg,#e9604f,var(--m-red));color:#fff!important;box-shadow:0 8px 22px rgba(217,71,58,.3)}
.hbm-spin8{width:64px;height:64px;margin:6px auto;background:var(--m-gold);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0l14.6 14.6H85.4v20.8L100 50 85.4 64.6v20.8H64.6L50 100 35.4 85.4H14.6V64.6L0 50l14.6-14.6V14.6h20.8z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0l14.6 14.6H85.4v20.8L100 50 85.4 64.6v20.8H64.6L50 100 35.4 85.4H14.6V64.6L0 50l14.6-14.6V14.6h20.8z'/%3E%3C/svg%3E") center/contain no-repeat;animation:hbm-rot 3s linear infinite}
@keyframes hbm-rot{to{transform:rotate(360deg)}}
.hbm-star{font-size:44px;color:var(--m-gold2);line-height:1}
.hbm-end-recs{display:grid;gap:6px}

/* دکمه‌های گرد */
.hbm-cb{position:relative;width:52px;height:52px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.1);color:#fff;display:inline-grid;place-items:center;cursor:pointer;transition:background .15s,transform .12s;padding:0;flex-shrink:0}
.hbm-cb svg{width:24px;height:24px}
.hbm-cb:hover{background:rgba(255,255,255,.18)}
.hbm-cb:active{transform:scale(.94)}
.hbm-cb.off{background:var(--m-red);border-color:transparent}
.hbm-cb.on{background:var(--m-teal2);color:#04282c;border-color:transparent}
.hbm-cb.rec{background:var(--m-red);animation:hbm-pulse 1.4s infinite}
@keyframes hbm-pulse{50%{box-shadow:0 0 0 8px rgba(217,71,58,.25)}}
.hbm-pre-btns .hbm-cb{background:rgba(6,38,43,.85);backdrop-filter:blur(6px)}
.hbm-pre-btns .hbm-cb.off{background:var(--m-red)}

/* ═════════ اتاق ═════════ */
.hbm-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;padding-top:max(8px,env(safe-area-inset-top));background:linear-gradient(180deg,rgba(6,38,43,.95),rgba(6,38,43,.6));border-bottom:1px solid var(--m-line);z-index:3}
.hbm-top::after{content:"";position:absolute;inset:auto 0 -9px;height:8px;background:var(--hbm-islimi) repeat-x center/auto 8px;opacity:.35;pointer-events:none}
.hbm-t-l{display:flex;gap:10px;align-items:center;min-width:0}
.hbm-t-l img{width:34px;height:34px;object-fit:contain}
.hbm-t-l b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}
.hbm-t-l small{color:var(--m-mut);font-size:12px}
.hbm-recdot{color:#ff8a7d;font-weight:700;animation:hbm-blink 1.2s infinite}
@keyframes hbm-blink{50%{opacity:.4}}
.hbm-t-r{display:flex;gap:6px;align-items:center}
.hbm-ib{width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;font-size:16px;line-height:1}
.hbm-ib:hover{background:rgba(255,255,255,.14)}
.hbm-net{display:inline-flex;align-items:flex-end;gap:2px;height:16px;margin-inline-end:6px}
.hbm-net i{width:4px;border-radius:2px;background:rgba(255,255,255,.25)}
.hbm-net i:nth-child(1){height:6px}.hbm-net i:nth-child(2){height:11px}.hbm-net i:nth-child(3){height:16px}
.hbm-net i.on{background:#5ad39a}
.hbm-net[data-q="1"] i.on{background:#f0b44c}
.hbm-room.offline .hbm-net i{background:var(--m-red)}

.hbm-stage{position:relative;min-height:0;display:flex;padding:10px;gap:10px;overflow:hidden}
.hbm-main{display:none;flex:1;min-width:0;position:relative}
.hbm-stage.staged .hbm-main{display:flex}
.hbm-grid{flex:1;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:8px;min-width:0;min-height:0}
.hbm-stage.staged .hbm-grid{flex:0 0 220px;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;overflow-y:auto;align-content:stretch}
.hbm-stage.staged .hbm-grid .hbm-tile{width:100%!important}

.hbm-tile{position:relative;width:var(--tw,320px);aspect-ratio:16/9;max-height:100%;border-radius:var(--m-r);overflow:hidden;background:var(--hbm-girih) center/80px,linear-gradient(160deg,#0f4249,#082d32);border:1px solid rgba(255,255,255,.08);box-shadow:0 10px 26px rgba(0,0,0,.28);transition:box-shadow .2s,border-color .2s;isolation:isolate}
.hbm-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none;background:#000}
.hbm-tile.cam video{display:block}
.hbm-tile.me video{transform:scaleX(-1)}
.hbm-tile.cam .hbm-av{display:none}
.hbm-av{position:absolute;inset:0;display:grid;place-items:center}
.hbm-av span,.hbm-av img{width:min(34%,110px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--m-gold),#7d5f27);color:#fff;font-size:clamp(20px,5vw,42px);font-weight:700;box-shadow:0 0 0 5px rgba(212,168,79,.18)}
.hbm-av img{object-fit:cover;position:absolute;z-index:1}
.hbm-tile.speaking{border-color:var(--m-gold2);box-shadow:0 0 0 3px var(--m-gold2),0 0 26px rgba(243,210,122,.45)}
.hbm-tile.speaking .hbm-av span,.hbm-tile.speaking .hbm-av img{animation:hbm-talk .9s ease-in-out infinite}
@keyframes hbm-talk{50%{box-shadow:0 0 0 12px rgba(212,168,79,.28)}}
.hbm-tile.weak::after{content:"⏳ در حال اتصال…";position:absolute;inset:auto 8px 40px auto;font-size:11px;background:rgba(0,0,0,.5);padding:2px 8px;border-radius:9px}
.hbm-tag{position:absolute;inset:auto auto 8px 8px;right:8px;left:auto;display:flex;align-items:center;gap:6px;max-width:calc(100% - 16px);background:rgba(4,30,34,.7);backdrop-filter:blur(6px);padding:3px 10px;border-radius:10px;font-size:13px;z-index:2}
.hbm-tag b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbm-mi svg{width:15px;height:15px;color:#ff8a7d;display:block}
.hbm-mi:empty{display:none}
.hbm-hand{position:absolute;top:8px;right:8px;font-size:22px;display:none;z-index:2;animation:hbm-wave 1s ease-in-out infinite;transform-origin:70% 90%}
.hbm-tile.hand .hbm-hand{display:block}
.hbm-tile.hand{border-color:var(--m-gold)}
@keyframes hbm-wave{50%{transform:rotate(14deg)}}
.hbm-pin{position:absolute;top:8px;left:8px;width:30px;height:30px;border-radius:9px;border:0;background:rgba(4,30,34,.6);color:#fff;display:grid;place-items:center;cursor:pointer;opacity:0;transition:opacity .2s;z-index:2}
.hbm-pin svg{width:16px;height:16px}
.hbm-tile:hover .hbm-pin,.hbm-tile.pinned .hbm-pin{opacity:1}
.hbm-tile.pinned .hbm-pin{background:var(--m-gold);color:#1d1405}
.hbm-main .hbm-tile{width:100%!important;height:100%;aspect-ratio:auto}
.hbm-scr{flex:1;position:relative;border-radius:var(--m-r);overflow:hidden;background:#000;border:1px solid var(--m-line)}
.hbm-scr+.hbm-scr{margin-inline-start:8px}
.hbm-scr video{width:100%;height:100%;object-fit:contain;display:block}

/* نوار پایین */
.hbm-bar{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom));background:linear-gradient(0deg,rgba(6,38,43,.98),rgba(6,38,43,.75));border-top:1px solid var(--m-line);z-index:3;flex-wrap:nowrap}
.hbm-bar .hbm-cb{width:auto;min-width:56px;height:auto;border-radius:16px;padding:7px 8px 4px;display:inline-flex;flex-direction:column;gap:2px;background:transparent;border-color:transparent}
.hbm-bar .hbm-cb .i{width:44px;height:36px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.1);transition:background .15s}
.hbm-bar .hbm-cb small{font-size:11px;color:var(--m-mut);white-space:nowrap}
.hbm-bar .hbm-cb:hover .i{background:rgba(255,255,255,.18)}
.hbm-bar .hbm-cb.off .i{background:var(--m-red)}
.hbm-bar .hbm-cb.on .i{background:var(--m-teal2);color:#04282c}
.hbm-bar .hbm-cb.rec .i{background:var(--m-red);animation:hbm-pulse 1.4s infinite}
.hbm-bar .hbm-cb.rec{animation:none}
.hbm-bar .hbm-leave .i{width:60px;background:var(--m-red)}
.hbm-bar .hbm-leave:hover .i{background:#ef5a4b}
.hbm-badge{position:absolute;top:2px;left:8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--m-gold2);color:#1d1405;font-size:11px;font-style:normal;font-weight:700;display:grid;place-items:center}
.hbm-reactbar,.hbm-morebar{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);display:flex;gap:4px;padding:8px;border-radius:18px;background:var(--m-bg2);border:1px solid var(--m-line);box-shadow:0 16px 40px rgba(0,0,0,.4);animation:hbm-pop .18s}
.hbm-reactbar button{font-size:26px;width:46px;height:46px;border:0;background:transparent;border-radius:12px;cursor:pointer;transition:transform .12s}
.hbm-reactbar button:hover{background:rgba(255,255,255,.08);transform:scale(1.2)}
.hbm-morebar{flex-direction:column;min-width:250px;gap:2px}
.hbm-morebar button{text-align:right;padding:10px 14px;border:0;background:transparent;border-radius:10px;cursor:pointer}
.hbm-morebar button:hover{background:rgba(255,255,255,.08)}
@keyframes hbm-pop{from{opacity:0;transform:translate(-50%,8px)}}

/* پنل کناری */
.hbm-side{position:absolute;top:60px;bottom:86px;left:10px;width:350px;background:rgba(10,51,56,.97);border:1px solid var(--m-line);border-radius:22px;display:flex;flex-direction:column;z-index:4;box-shadow:0 20px 60px rgba(0,0,0,.45);overflow:hidden;animation:hbm-in .2s}
@keyframes hbm-in{from{opacity:0;transform:translateX(-14px)}}
.hbm.side-open .hbm-stage{padding-left:370px}
.hbm-tabs{display:flex;gap:4px;padding:8px;border-bottom:1px solid var(--m-line);background:var(--hbm-girih) center/70px,rgba(0,0,0,.15)}
.hbm-tabs button{flex:1;border:0;background:transparent;border-radius:11px;padding:7px 4px;cursor:pointer;font-size:13px;color:var(--m-mut)}
.hbm-tabs button.on{background:rgba(212,168,79,.18);color:var(--m-gold2);font-weight:700}
.hbm-tabs em{font-style:normal;background:rgba(255,255,255,.1);border-radius:8px;padding:0 6px;font-size:11px}
.hbm-tabs .hbm-x{flex:0 0 36px;font-size:20px}
body:not(.hbm-is-mod) .hbm-only-mod{display:none!important}
.hbm-pane{display:none;flex:1;min-height:0;flex-direction:column}
.hbm-pane.on{display:flex}
.hbm-msgs{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.hbm-msg{max-width:88%;align-self:flex-start;background:rgba(255,255,255,.07);border-radius:14px 14px 14px 4px;padding:6px 11px}
.hbm-msg.me{align-self:flex-end;background:rgba(20,163,174,.28);border-radius:14px 14px 4px 14px}
.hbm-msg.pv{border:1px dashed var(--m-gold)}
.hbm-msg b{display:block;font-size:12px;color:var(--m-gold2)}
.hbm-msg b i{font-style:normal;color:var(--m-mut);font-weight:400}
.hbm-msg p{margin:0;white-space:pre-wrap;word-break:break-word}
.hbm-msg small{display:block;text-align:left;font-size:10px;color:var(--m-mut)}
.hbm-sys{align-self:center;font-size:12px;color:var(--m-mut);background:rgba(0,0,0,.2);padding:2px 10px;border-radius:9px}
.hbm-chatf{display:flex;gap:6px;padding:10px;border-top:1px solid var(--m-line);flex-wrap:wrap}
.hbm-chatf .hbm-to{flex:1 0 100%;padding:6px 10px;font-size:13px}
.hbm-chatf textarea{flex:1;resize:none;min-height:42px;max-height:120px;border-radius:14px}
.hbm-chatf button{width:46px;border:0;border-radius:14px;background:var(--m-gold);color:#1d1405;font-size:18px;cursor:pointer;transform:scaleX(-1)}
.hbm-people,.hbm-waiting{padding:8px 10px;overflow-y:auto}
.hbm-people{flex:1}
.hbm-wh{display:flex;justify-content:space-between;align-items:center;padding:6px 4px;color:var(--m-gold2)}
.hbm-pr{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;position:relative}
.hbm-pr:hover{background:rgba(255,255,255,.05)}
.hbm-pr.hand{background:rgba(212,168,79,.12)}
.hbm-pa{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:linear-gradient(135deg,var(--m-gold),#7d5f27);color:#fff;font-weight:700;object-fit:cover}
.hbm-pr>b{flex:1;min-width:0;font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbm-pr>b small{display:block;font-weight:400;font-size:11px;color:var(--m-gold2)}
.hbm-ps{display:flex;gap:4px;align-items:center}
.hbm-ps i svg{width:17px;height:17px;display:block}
.hbm-ps i.off{color:#ff8a7d}
.hbm-mini{border:1px solid rgba(255,255,255,.2);background:transparent;border-radius:9px;padding:3px 9px;font-size:12px;cursor:pointer}
.hbm-mini.ok{background:var(--m-teal);border-color:transparent}
.hbm-pm{position:relative}
.hbm-pm summary{list-style:none;cursor:pointer;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;font-size:18px}
.hbm-pm summary::-webkit-details-marker{display:none}
.hbm-pm summary:hover{background:rgba(255,255,255,.08)}
.hbm-pm>div{position:absolute;left:0;top:32px;z-index:5;background:var(--m-bg);border:1px solid var(--m-line);border-radius:14px;padding:6px;min-width:210px;box-shadow:0 16px 40px rgba(0,0,0,.5)}
.hbm-pm button{display:block;width:100%;text-align:right;border:0;background:transparent;padding:8px 10px;border-radius:9px;cursor:pointer;font-size:13px}
.hbm-pm button:hover{background:rgba(255,255,255,.08)}
.hbm-pm button.danger{color:#ff8a7d}
.hbm-hostp{padding:12px;overflow-y:auto}
.hbm-hb{display:grid;gap:6px;margin-bottom:10px}
.hbm-hb .hbm-btn{margin:0;font-size:14px;padding:9px}
.hbm-hostp hr{border:0;border-top:1px solid var(--m-line);margin:12px 0}
.hbm-sw{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 4px;cursor:pointer;font-size:14px;border-bottom:1px dashed rgba(255,255,255,.07)}
.hbm-sw input{position:absolute;opacity:0;width:1px;height:1px}
.hbm-sw i{width:42px;height:24px;border-radius:12px;background:rgba(255,255,255,.18);position:relative;flex-shrink:0;transition:background .2s}
.hbm-sw i::after{content:"";position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:right .2s}
.hbm-sw input:checked+i{background:var(--m-teal)}
.hbm-sw input:checked+i::after{right:21px}
.hbm-sw input:focus-visible+i{outline:2px solid var(--m-gold2)}

/* واکنش‌ها و پیام‌های کوتاه */
.hbm-reacts{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}
.hbm-fly{position:absolute;bottom:0;display:flex;flex-direction:column;align-items:center;animation:hbm-fly 3.4s ease-out forwards}
.hbm-fly span{font-size:42px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.4))}
.hbm-fly small{font-size:11px;background:rgba(0,0,0,.45);border-radius:8px;padding:0 6px}
@keyframes hbm-fly{0%{transform:translateY(20px) scale(.6);opacity:0}12%{opacity:1;transform:translateY(-40px) scale(1)}100%{transform:translateY(-62vh) translateX(20px);opacity:0}}
.hbm-toasts{position:absolute;top:10px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:6px;z-index:6;width:min(420px,92%);pointer-events:none}
.hbm-toast{pointer-events:auto;display:flex;align-items:center;gap:10px;justify-content:space-between;background:rgba(10,51,56,.97);border:1px solid var(--m-line);border-inline-start:4px solid var(--m-gold);padding:9px 14px;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.4);font-size:14px;animation:hbm-tin .25s;transition:opacity .4s,transform .4s}
.hbm-toast.warn{border-inline-start-color:var(--m-red)}
.hbm-toast.out{opacity:0;transform:translateY(-8px)}
.hbm-toast button{border:0;background:var(--m-gold);color:#1d1405;border-radius:9px;padding:4px 12px;font-weight:700;cursor:pointer;white-space:nowrap}
@keyframes hbm-tin{from{opacity:0;transform:translateY(-10px)}}

/* پنجره‌ها (اتاق و صفحه جلسه‌ها) */
.hbm-modal{position:fixed;inset:0;z-index:100000;background:rgba(2,18,20,.7);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:14px}
.hbm-sheet{position:relative;width:min(520px,100%);max-height:calc(100% - 10px);overflow-y:auto;background:linear-gradient(180deg,#0d3a40,#082d32);color:var(--m-txt);border:1px solid var(--m-line);border-radius:24px;padding:20px;box-shadow:0 30px 80px rgba(0,0,0,.5);animation:hbm-up .22s;font-family:Vazirmatn,Tahoma,sans-serif}
.hbm-sheet::before{content:"";position:absolute;inset:0 0 auto;height:14px;background:var(--hbm-islimi,none) repeat-x center/auto 14px;opacity:.5;border-radius:24px 24px 0 0}
@keyframes hbm-up{from{opacity:0;transform:translateY(16px)}}
.hbm-sheet h3{font-family:Lalezar,Vazirmatn,sans-serif;font-weight:400;font-size:24px;color:var(--m-gold2);margin:6px 0 12px}
.hbm-sheet h4{margin:14px 0 6px;color:var(--m-gold2);font-size:15px}
.hbm-sheet label{display:grid;gap:4px;font-size:13px;color:var(--m-mut);margin-bottom:10px}
.hbm-x{position:absolute;top:10px;left:12px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;font-size:20px;cursor:pointer;z-index:1}
.hbm-link{display:flex;gap:6px}
.hbm-link .hbm-btn{width:auto;margin:0;padding:8px 16px;font-size:14px}
.hbm-shares{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.hbm-shares a,.hbm-shares button{flex:1;text-align:center;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.08);border:0;color:var(--m-txt)!important;text-decoration:none;cursor:pointer;font-size:13px;white-space:nowrap}
.hbm-sugg{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.hbm-sugg button,.hbm-picked span{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);border-radius:20px;padding:3px 10px 3px 4px;cursor:pointer;font-size:13px;color:var(--m-txt)}
.hbm-sugg button.on{background:var(--m-teal);border-color:transparent}
.hbm-sugg img,.hbm-picked img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.hbm-row2{display:flex;gap:8px}
.hbm-row2 .hbm-btn{flex:1}
.hbm-invres{margin-top:8px;font-size:14px}

/* ═════════ موبایل ═════════ */
@media (max-width:760px){
	.hbm-bar{gap:2px;justify-content:space-around;padding-inline:4px}
	.hbm-bar .hbm-cb{min-width:0;padding:4px 2px 2px}
	.hbm-bar .hbm-cb .i{width:44px;height:44px;border-radius:50%}
	.hbm-bar .hbm-cb small{display:none}
	.hbm-bar [data-act=hand],.hbm-bar [data-act=people],.hbm-bar [data-act=rec]{display:none}
	.hbm-bar .hbm-leave .i{width:52px;border-radius:22px}
	.hbm-side{inset:0;width:auto;border-radius:0;top:0;bottom:0;z-index:7}
	.hbm.side-open .hbm-stage{padding-left:10px}
	.hbm-stage{padding:6px;gap:6px}
	.hbm-stage.staged{flex-direction:column}
	.hbm-stage.staged .hbm-grid{flex:0 0 100px;flex-direction:row;overflow-x:auto;overflow-y:hidden}
	.hbm-stage.staged .hbm-grid .hbm-tile{width:150px!important;flex-shrink:0;height:auto}
	.hbm-grid[data-n="2"]{flex-direction:column;flex-wrap:nowrap}
	.hbm-grid[data-n="2"] .hbm-tile{width:100%!important;flex:1;aspect-ratio:auto}
	.hbm-grid[data-n="1"] .hbm-tile{width:100%!important;height:100%;aspect-ratio:auto}
	.hbm-t-r [data-act=layout],.hbm-t-r [data-act=full]{display:none}
	.hbm-pin{opacity:.8}
	.hbm-morebar{min-width:min(280px,92vw)}
	.hbm-modal{align-items:flex-end;padding:0}
	.hbm-sheet{border-radius:24px 24px 0 0;max-height:92%}
}
/* تماس دونفره: تصویر خودم کوچک گوشه (مثل اسکایپ/بله) */
@media (max-width:760px){
	.hbm-grid[data-n="2"].pip .hbm-tile.me{position:absolute;width:110px!important;height:150px;flex:none;bottom:12px;left:12px;z-index:4;border:2px solid var(--m-gold);aspect-ratio:auto}
	.hbm-grid[data-n="2"].pip .hbm-tile:not(.me){height:100%}
}
@media (prefers-reduced-motion:reduce){.hbm *{animation:none!important;transition:none!important}}

/* ═════════ صفحه «جلسه‌ها» در قالب سایت ═════════ */
.hbm-home{--m-bg:#06262b}
.hbm-hero{padding:46px 0 40px;color:#fff;position:relative}
.hbm-hero .container{display:flex;flex-wrap:wrap;gap:22px;align-items:flex-end;justify-content:space-between}
.hbm-hero h1{font-family:var(--font-display);font-weight:400;color:#fff;font-size:42px;line-height:1.3;margin:10px 0 6px}
.hbm-hero h1 em{display:block;font-style:normal;color:var(--m-gold2);font-size:.6em}
.hbm-hero p{color:#cfe9ea;max-width:560px;margin:0}
.hbm-chip{display:inline-block;background:rgba(243,210,122,.16);color:var(--m-gold2);border:1px solid rgba(243,210,122,.35);border-radius:99px;padding:3px 14px;font-size:13px}
.hbm-joincode{display:flex;gap:6px;background:rgba(255,255,255,.1);padding:6px;border-radius:16px;border:1px solid rgba(255,255,255,.18);width:min(420px,100%)}
.hbm-joincode input{flex:1;background:transparent;border:0;color:#fff;padding:8px 12px;outline:0;min-width:0}
.hbm-joincode input::placeholder{color:#a9d5d7}
.hbm-wrap{padding-top:26px;padding-bottom:50px}
.hbm-starts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:-56px;position:relative;z-index:2}
.hbm-start{position:relative;text-align:right;display:grid;gap:4px;padding:20px 18px 18px;border-radius:22px 22px 18px 18px;border:1px solid var(--g-100,#edebe7);background:#fff;box-shadow:0 14px 34px rgba(7,63,70,.12);cursor:pointer;transition:transform .18s,box-shadow .18s;overflow:hidden;isolation:isolate;font-family:inherit}
.hbm-start::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,var(--f-400,#14A3AE),var(--gold,#B08D4F))}
.hbm-start::after{content:"";position:absolute;left:-30px;bottom:-30px;width:120px;height:120px;background:url(img/girih-teal.svg) center/60px;opacity:.12;border-radius:50%;z-index:-1}
.hbm-start:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(7,63,70,.18)}
.hbm-start span{font-size:30px;width:58px;height:58px;display:grid;place-items:center;border-radius:46% 46% 14px 14px/40% 40% 14px 14px;background:var(--f-50,#E3F4F4)}
.hbm-start b{font-size:17px;color:var(--f-900,#073F46);margin-top:6px}
.hbm-start small{color:var(--g-400,#7F7A72);font-size:13px}
.hbm-h{margin:34px 0 12px;font-family:var(--font-display);font-weight:400;font-size:26px}
.hbm-list{display:grid;gap:10px}
.hbm-item{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--g-100,#edebe7);border-radius:16px;padding:12px 14px;box-shadow:var(--shadow-s)}
.hbm-item.ended{opacity:.78;background:var(--g-50,#F4F2EE)}
.hbm-ic{font-size:24px;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--f-50,#E3F4F4);flex-shrink:0}
.hbm-it{flex:1;min-width:180px}
.hbm-it b{display:block;color:var(--f-900,#073F46)}
.hbm-it small{color:var(--g-400,#7F7A72)}
.hbm-recs{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.hbm-recs a{font-size:12px;background:var(--gold-l,#F3EBDD);border-radius:9px;padding:2px 9px;color:#6b4f1d}
.hbm-live{color:var(--green,#1E8E5A);font-weight:700;font-size:13px;animation:hbm-blink 1.6s infinite}
.hbm-end{color:var(--g-400,#7F7A72);font-size:13px}
.hbm-card.hbm-login{background:#fff;border-radius:20px;padding:22px;box-shadow:var(--shadow);margin-top:-40px;position:relative;z-index:2;max-width:520px}
.hbm-form .hbm-seg{display:flex;gap:4px;background:rgba(0,0,0,.25);border-radius:14px;padding:4px;margin-bottom:12px}
.hbm-form .hbm-seg label{flex:1;margin:0;display:block}
.hbm-form .hbm-seg input{position:absolute;opacity:0;width:1px}
.hbm-form .hbm-seg span{display:block;text-align:center;padding:8px 4px;border-radius:11px;cursor:pointer;color:var(--m-mut);font-size:14px}
.hbm-form .hbm-seg input:checked+span{background:var(--m-gold);color:#1d1405;font-weight:700}
.hbm-form .hbm-row{display:flex;gap:8px}.hbm-form .hbm-row>label{flex:1}
.hbm-opts{border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:6px 12px 2px;margin:0 0 12px}
.hbm-opts legend{color:var(--m-gold2);padding:0 6px;font-size:13px}
.hbm-opts label{display:flex!important;align-items:center;gap:8px;margin:0 0 6px!important;color:var(--m-txt)!important;cursor:pointer}
.hbm-opts input{width:auto!important;accent-color:var(--m-gold)}
.hbm-invite{border-top:1px dashed rgba(255,255,255,.14);padding-top:10px;margin-bottom:6px}
.hbm-invite>b{display:block;color:var(--m-gold2);margin-bottom:6px}
.hbm-inv-row{display:flex;gap:6px}
.hbm-inv-row .btn{white-space:nowrap}
.hbm-picked{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.hbm-picked span{background:var(--m-teal);border-color:transparent}
.hbm-ring{display:flex!important;align-items:center;gap:8px;color:var(--m-txt)!important}
.hbm-ring input{width:auto!important}
.hbm-msg{min-height:20px;margin-top:8px;color:#ffb4a8}
.hbm-sheet .btn{font-family:inherit}
@media (max-width:900px){.hbm-starts{grid-template-columns:repeat(2,minmax(0,1fr))}.hbm-hero h1{font-size:32px}}
@media (max-width:420px){.hbm-start{padding:14px 12px}.hbm-start b{font-size:15px}}

/* ═════════ صفحهٔ مستقیم تماس خصوصی پیش از وصل شدن ═════════ */
.hbm-direct-call .hbm-pre-card{display:none!important}
.hbm-direct-call .hbm-direct-screen{width:min(430px,100%);min-height:min(66vh,620px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 24px;text-align:center;border:1px solid rgba(255,255,255,.12);border-radius:30px;background:radial-gradient(ellipse at 50% 24%,rgba(38,154,163,.32),transparent 55%),linear-gradient(180deg,rgba(8,48,55,.98),rgba(5,31,37,.98));box-shadow:0 28px 80px rgba(0,0,0,.42);color:#fff}
.hbm-direct-call .hbm-direct-avatar{position:relative;width:156px;height:156px;display:grid;place-items:center;margin-bottom:30px}
.hbm-direct-call .hbm-direct-avatar i{position:absolute;inset:0;border:1px solid rgba(106,219,224,.52);border-radius:50%;animation:hbm-call-wave 2.8s ease-out infinite}
.hbm-direct-call .hbm-direct-avatar i:nth-child(2){animation-delay:.9s}
.hbm-direct-call .hbm-direct-avatar i:nth-child(3){animation-delay:1.8s}
.hbm-direct-call .hbm-direct-avatar b{width:112px;height:112px;display:grid;place-items:center;border:3px solid rgba(255,255,255,.8);border-radius:50%;background:linear-gradient(145deg,#39b7be,#176b75);box-shadow:0 12px 36px rgba(0,0,0,.3);font-size:46px;font-weight:500;color:#fff}
.hbm-direct-call .hbm-direct-name{max-width:100%;font-size:23px;color:#fff}
.hbm-direct-call .hbm-direct-status{min-height:28px;margin:6px 0 26px;color:#c5e5e7;font-size:15px}
.hbm-direct-call .hbm-direct-status.error{color:#ffb4a8}
.hbm-direct-call .hbm-direct-screen .hbm-btn{width:min(240px,100%);margin-top:10px}
.hbm-direct-call .hbm-direct-screen .hbm-direct-cancel{min-height:54px;border-radius:28px}
.hbm-direct-call .hbm-direct-screen .hbm-direct-retry{background:linear-gradient(180deg,#78d4d6,#29aab3);color:#06262b!important}
.hbm-direct-call .hbm-go{display:none!important}
/* ═════════ رابط تماس خصوصی: حالت تماس‌گیرنده/پاسخ‌داده‌شده ═════════ */
.hbm-1on1 .hbm-top{display:none}
.hbm-1on1 .hbm-room{grid-template-rows:minmax(0,1fr) auto}
.hbm-1on1 .hbm-stage{display:block;padding:0;background:radial-gradient(ellipse at 50% 34%,rgba(20,163,174,.22),transparent 54%),linear-gradient(180deg,#092d33,#061f24)}
.hbm-1on1 .hbm-grid{display:none}
.hbm-1on1 .hbm-callhead{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:24px 20px calc(100px + env(safe-area-inset-bottom));text-align:center;pointer-events:none}
.hbm-1on1 .hbm-ch-av{position:relative;width:136px;height:136px;display:grid;place-items:center;margin:0 0 18px}
.hbm-1on1 .hbm-ch-av i{position:absolute;inset:0;border:1px solid rgba(114,211,218,.42);border-radius:50%;animation:hbm-call-wave 2.8s ease-out infinite}
.hbm-1on1 .hbm-ch-av i:nth-child(2){animation-delay:.9s}
.hbm-1on1 .hbm-ch-av i:nth-child(3){animation-delay:1.8s}
@keyframes hbm-call-wave{0%{transform:scale(.72);opacity:.9}100%{transform:scale(1.48);opacity:0}}
.hbm-1on1 .hbm-ch-img{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#3ab7be,#19757e);border:3px solid rgba(255,255,255,.8);box-shadow:0 12px 36px rgba(0,0,0,.3);font-size:42px;font-weight:700;color:#fff}
.hbm-1on1 .hbm-ch-img img{width:100%;height:100%;object-fit:cover}
.hbm-1on1 .hbm-ch-n{font-size:24px;font-weight:700;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.hbm-1on1 .hbm-ch-s{font-size:15px;color:#c5e5e7;min-height:26px}
.hbm-1on1 .hbm-ch-e2e{font-size:12px;font-style:normal;color:#9cc3c5;margin-top:4px}
.hbm-1on1 .hbm-bar{gap:14px;padding-top:12px;background:linear-gradient(0deg,rgba(3,20,24,.98),rgba(3,20,24,.82));}
.hbm-1on1 .hbm-bar [data-act=chat],.hbm-1on1 .hbm-bar [data-act=people],.hbm-1on1 .hbm-bar [data-act=hand],.hbm-1on1 .hbm-bar [data-act=screen],.hbm-1on1 .hbm-bar [data-act=rec],.hbm-1on1 .hbm-bar [data-act=more]{display:none!important}
.hbm-1on1 .hbm-bar .hbm-leave .i{width:60px;height:52px;border-radius:28px}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-grid{display:flex;position:absolute;inset:0;align-content:stretch;align-items:stretch;justify-content:center;flex-wrap:nowrap;gap:0;padding:0}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-grid .hbm-tile:not(.me){position:absolute;inset:0;width:100%!important;height:100%;max-height:none;aspect-ratio:auto;border:0;border-radius:0}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-grid .hbm-tile.me{position:absolute;top:18px;right:18px;width:min(27vw,112px)!important;height:auto;aspect-ratio:3/4;border-radius:18px;z-index:3}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-callhead{inset:max(14px,env(safe-area-inset-top)) 14px auto;justify-content:flex-start;flex-direction:row;gap:10px;width:max-content;max-width:calc(100% - 28px);padding:8px 12px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(4,27,32,.72);backdrop-filter:blur(12px);text-align:right}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-ch-av{width:38px;height:38px;margin:0;flex:0 0 38px}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-ch-av i{display:none}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-ch-img{width:36px;height:36px;border:1px solid rgba(255,255,255,.8);font-size:15px}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-ch-n{font-size:14px}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-ch-s{font-size:12px;min-height:0}
.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-ch-e2e{display:none}
@media(max-width:760px){.hbm-1on1 .hbm-callhead{padding-bottom:calc(112px + env(safe-area-inset-bottom))}.hbm-1on1 .hbm-bar{gap:8px}.hbm-1on1 .hbm-bar .hbm-cb{min-width:52px}.hbm-1on1.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-grid .hbm-tile.me{top:calc(64px + env(safe-area-inset-top));right:12px;width:26vw!important}}
/* ═════════ زنگ تماس ورودی (همه صفحات سایت و اپ) ═════════ */
.hb-ring{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:rgba(2,18,20,.78);backdrop-filter:blur(6px);padding:16px;font-family:Vazirmatn,Tahoma,sans-serif;direction:rtl}
.hb-ring-c{width:min(340px,100%);text-align:center;color:#fff;background:radial-gradient(ellipse at 50% 0,rgba(20,163,174,.35),transparent 60%),linear-gradient(180deg,#0d3a40,#06262b);border:1px solid rgba(243,210,122,.25);border-radius:30px;padding:28px 20px 22px;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.hb-ring-av{width:110px;height:110px;margin:4px auto 14px;border-radius:50%;display:grid;place-items:center;font-size:44px;background:linear-gradient(135deg,#D4A84F,#7d5f27);animation:hb-ring-p 1.5s infinite}
@keyframes hb-ring-p{0%{box-shadow:0 0 0 0 rgba(243,210,122,.55)}100%{box-shadow:0 0 0 34px rgba(243,210,122,0)}}
.hb-ring-c b{display:block;font-size:20px;margin-bottom:2px}
.hb-ring-c small{color:#9CC3C5}
.hb-ring-b{display:flex;justify-content:space-around;margin-top:24px}
.hb-ring-b button{width:66px;height:66px;border-radius:50%;border:0;font-size:28px;cursor:pointer;color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.35)}
.hb-ring-b .no{background:#d9473a;transform:rotate(135deg)}
.hb-ring-b .yes{background:#1E9E62;animation:hb-ring-s .9s ease-in-out infinite}
@keyframes hb-ring-s{25%{transform:rotate(-14deg)}75%{transform:rotate(14deg)}}
.hb-ring-b span{display:block;font-size:12px;color:#9CC3C5;margin-top:6px}
.hbm-sheet .btn-outline{color:#fff!important;border-color:rgba(255,255,255,.3)!important;background:transparent!important}
.hbm-sheet .btn{border-radius:14px}
.hbm-ib{display:grid;place-items:center}
.hbm-tabs .hbm-x{position:static;flex:0 0 34px;height:34px;background:transparent}
.hbm-hero{padding-bottom:96px}
.hbm-modal .hbm-sheet input:not([type=checkbox]):not([type=radio]),.hbm-modal .hbm-sheet select,.hbm-modal .hbm-sheet textarea{background:rgba(0,0,0,.25)!important;color:var(--m-txt)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:12px!important;box-shadow:none}
.hbm-modal .hbm-sheet input::placeholder,.hbm-modal .hbm-sheet textarea::placeholder{color:#7fa9ab}
.hbm-modal .hbm-sheet select option{background:#0a3338}
@media (max-width:760px){.hbm-hero{padding-bottom:80px}.hbm-starts{margin-top:-46px}}

/* ⚙ تنظیمات صدا و تصویر (تعویض میکروفن/دوربین وسط جلسه، دوربین مجازی vMix/OBS، کیفیت) */
.hbm-dv{position:relative;aspect-ratio:16/9;max-height:32vh;margin-inline:auto;border-radius:16px;overflow:hidden;background:#06262a;margin:6px 0 10px}
.hbm-dv video{width:100%;height:100%;object-fit:contain;transform:scaleX(-1)}
.hbm-dv-off{position:absolute;inset:0;display:none;place-items:center;font-size:13px;color:var(--m-mut)}
.hbm-dv.off video{display:none}.hbm-dv.off .hbm-dv-off{display:grid}
.hbm-devs2{margin:0 0 10px}
.hbm-devs2 select{width:100%}
.hbm-devs2 .hbm-dmeter{position:static;height:6px;margin:-2px 0 4px}
.hbm-devs2 .hbm-sw{display:flex;color:inherit;font-size:14px}
.hbm-devs2 .hbm-sw small{display:block;font-size:11.5px;color:var(--m-mut);font-weight:400}
.hbm-help{margin:4px 0 12px;font-size:13px;line-height:2;text-align:right}
.hbm-help summary{cursor:pointer;font-weight:700;color:var(--m-gold2)}
.hbm-help ol{margin:6px 18px 0 0;padding:0}
.hbm-tile[data-q="1"]::before{content:"📶 اینترنت ضعیف";position:absolute;top:8px;right:8px;z-index:3;font-size:11px;background:rgba(192,57,43,.75);color:#fff;padding:2px 8px;border-radius:9px}
@media (max-width:760px){.hbm-bar [data-act=dev]{display:none}}

/* ═════ out33: فرم ساده «جلسه تازه» ═════ */
.hbm-wiz{padding:0!important;width:min(480px,100%)}
.hbm-wiz .hbm-form{padding:18px 18px 0}
.hbm-wiz-h{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding-inline-end:40px}
.hbm-wiz-ic{font-size:30px;width:56px;height:56px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,var(--m-gold),#f0cf7d);box-shadow:0 8px 20px rgba(226,176,74,.35)}
.hbm-wiz-h h3{margin:0!important}.hbm-wiz-h small{color:var(--m-mut);font-size:12.5px}
.hbm-step{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:12px;margin-bottom:10px}
.hbm-step-t{display:flex;align-items:center;gap:8px;color:#fff;font-size:14.5px;margin-bottom:10px}
.hbm-step-t i{font-style:normal;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--m-gold);color:#1d1405;font-size:13px}
.hbm-step-t small{color:var(--m-mut);font-weight:400}
.hbm-kinds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px}
.hbm-kinds button{display:grid;justify-items:center;gap:2px;padding:10px 2px;border-radius:14px;border:1.5px solid rgba(255,255,255,.12);background:rgba(0,0,0,.2);color:#e6f3f3;font:600 13px Vazirmatn,Tahoma,sans-serif;cursor:pointer;transition:.15s}
.hbm-kinds button span{font-size:24px}
.hbm-kinds button.on{border-color:var(--m-gold);background:rgba(226,176,74,.16);color:#fff;box-shadow:0 0 0 3px rgba(226,176,74,.15)}
.hbm-pills{display:flex;gap:6px;flex-wrap:wrap}
.hbm-pills label{flex:1 1 140px;margin:0!important;display:block!important}
.hbm-pills input{position:absolute;opacity:0;width:1px}
.hbm-pills span{display:block;text-align:center;padding:10px 6px;border-radius:13px;border:1.5px solid rgba(255,255,255,.12);color:#d6ebec;cursor:pointer;font-size:14px}
.hbm-pills input:checked+span{border-color:var(--m-gold);background:rgba(226,176,74,.16);color:#fff;font-weight:700}
.hbm-pills input:focus-visible+span{outline:2px solid var(--m-gold)}
.hbm-later{margin:10px 0 0!important}.hbm-later small{color:var(--m-mut)}
.hbm-who{margin-bottom:10px}
.hbm-inv-row{display:flex;gap:6px}.hbm-inv-row input{flex:1;min-width:0}
.hbm-mini{border:1px solid rgba(255,255,255,.2);background:transparent;color:#fff;border-radius:12px;padding:0 12px;font:inherit;cursor:pointer;white-space:nowrap}
.hbm-ph,.hbm-more{margin-top:8px}
.hbm-ph summary,.hbm-more summary{cursor:pointer;color:var(--m-gold2);font-size:13.5px;padding:6px 2px;list-style:none}
.hbm-ph summary::-webkit-details-marker,.hbm-more summary::-webkit-details-marker{display:none}
.hbm-ph summary::after,.hbm-more summary::after{content:" ▾";opacity:.7}
.hbm-ph[open] summary::after,.hbm-more[open] summary::after{content:" ▴"}
.hbm-ph small{color:var(--m-mut);font-size:12px}
.hbm-more{background:rgba(255,255,255,.03);border-radius:16px;padding:4px 12px 6px;margin-bottom:6px}
.hbm-sw{display:flex!important;align-items:center;gap:10px;margin:8px 0!important;color:#e6f3f3!important;font-size:13.5px!important;cursor:pointer}
.hbm-sw input{position:absolute;opacity:0;width:1px}
.hbm-sw i{flex:0 0 40px;height:23px;border-radius:20px;background:rgba(255,255,255,.18);position:relative;transition:.2s}
.hbm-sw i::after{content:"";position:absolute;top:3px;right:3px;width:17px;height:17px;border-radius:50%;background:#fff;transition:.2s}
.hbm-sw input:checked+i{background:var(--m-teal2,#3fc1b0)}
.hbm-sw input:checked+i::after{right:20px}
.hbm-sw input:focus-visible+i{outline:2px solid var(--m-gold)}
.hbm-wiz-f{position:sticky;bottom:0;margin:0 -18px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(0deg,#082d32 70%,rgba(8,45,50,0))}
.hbm-go2{width:100%;border:0;border-radius:16px;padding:14px;font:800 16px Vazirmatn,Tahoma,sans-serif;color:#1d1405;background:linear-gradient(135deg,#f0cf7d,var(--m-gold));box-shadow:0 10px 24px rgba(226,176,74,.3);cursor:pointer}
.hbm-go2:disabled{opacity:.7}
.hbm-wiz .hbm-msg{color:#ffb4a8;font-size:13px;margin-top:6px;text-align:center}
@media (max-width:420px){.hbm-kinds button{font-size:12px;padding:8px 0}.hbm-kinds button span{font-size:21px}}

/* ═════ out33: صفحه دورهمی در گوشی ═════ */
.hbm-home,.hbm-body{overflow-x:hidden}
.hbm-tvwrap:empty{display:none}
.hbm-tvwrap .hbm-tv{flex-wrap:wrap}
@media (max-width:760px){
	.hbm-hero h1{font-size:30px}.hbm-hero .container{gap:14px}
	.hbm-starts{gap:10px}
	.hbm-start{padding:14px 12px 12px}
	.hbm-start span{width:46px;height:46px;font-size:24px}
	.hbm-tvwrap .hbm-tv{padding:14px!important;gap:10px!important}
	.hbm-tvwrap .hbm-tv>span:first-child{font-size:34px!important}
	.hbm-item{gap:8px}.hbm-item .hbm-it{flex:1 1 60%;min-width:0}
}

/* ═════ out33: اتاق جلسه در گوشی‌های کوچک ═════ */
@media (max-width:760px){
	.hbm-bar{gap:0;justify-content:space-between;padding-inline:6px}
	.hbm-bar .hbm-cb{flex:1 1 0;min-width:0;padding:4px 0 2px}
	.hbm-bar .hbm-cb .i{width:min(44px,11.5vw);height:min(44px,11.5vw)}
	.hbm-bar .hbm-leave .i{width:min(54px,14vw)}
	.hbm-bar [data-act=screen]{display:none}
	.hbm-toasts{width:calc(100% - 20px);max-width:420px}
	.hbm-toast{font-size:13px}
	.hbm-top{padding-inline:10px}
	.hbm-top .hbm-title{display:block;max-width:52vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (max-height:500px) and (orientation:landscape){
	.hbm-top{padding-block:4px}
	.hbm-bar{padding-block:4px}
	.hbm-bar .hbm-cb small{display:none}
	.hbm-bar .hbm-cb .i{width:40px;height:40px;border-radius:50%}
	.hbm-pre-card{max-height:96vh;overflow:auto}
}
.hbm-morebar button[data-act]{display:block!important}
#hb-pl{max-width:100vw;overflow:hidden}
/* out33: حالت کوچک (تصویر در تصویر) در اپ */
html.hbm-pip .hbm-top,html.hbm-pip .hbm-bar,html.hbm-pip .hbm-side,html.hbm-pip .hbm-toasts,html.hbm-pip .hbm-reacts,html.hbm-pip #hbm-dlg{display:none!important}
html.hbm-pip .hbm[data-view=room] .hbm-room{grid-template-rows:1fr!important}
html.hbm-pip .hbm-stage{padding:0!important;gap:2px!important}
html.hbm-pip .hbm-stage.staged{flex-direction:column}
html.hbm-pip .hbm-stage.staged .hbm-grid{flex:0 0 28%!important}
html.hbm-pip .hbm-tile{border-radius:0!important}
html.hbm-pip .hbm-tile .hbm-name,html.hbm-pip .hbm-tile .hbm-tb{font-size:10px!important}
html.hbm-pip .hbm-grid:has(.hbm-tile:not(.me)) .hbm-tile.me{position:absolute!important;width:30%!important;height:auto!important;aspect-ratio:3/4;bottom:6px;left:6px;z-index:3;border:2px solid #fff;border-radius:8px!important}
html.hbm-pip .hbm-tile button,html.hbm-pip .hbm-tile .hbm-tb{display:none!important}
html.hbm-pip .hbm-grid{width:100%;height:100%}
html.hbm-pip .hbm-grid>.hbm-tile:only-child{width:100%!important;height:100%!important}

.hbm-rate{margin:14px auto 0;max-width:380px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:18px;padding:14px;text-align:center}.hbm-rate b{display:block;margin-bottom:6px}.hbm-stars{display:flex;justify-content:center;gap:6px;direction:ltr}.hbm-stars button{border:0;background:none;font-size:36px;color:rgba(255,255,255,.3);cursor:pointer;transition:.15s;line-height:1}.hbm-stars button.on{color:#F5C04A;transform:scale(1.12)}.hbm-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:10px 0}.hbm-chips button{border:1px solid rgba(255,255,255,.25);background:none;color:inherit;border-radius:999px;padding:4px 10px;font:inherit;font-size:12.5px;cursor:pointer}.hbm-chips button.on{background:#0E7F89;border-color:#0E7F89}.hbm-rate textarea{width:100%;border-radius:12px;border:0;padding:8px;font:inherit;margin-bottom:8px;color:#222}.hbm-rate-msg{margin:8px 0 0;color:#9be3c4}

/* ═════ out46: تماس خصوصی دونفره — نمایی جدا از تماس گروهی (شبیه تلگرام) ═════ */
.hbm-1on1 .hbm-stage{position:relative;background:radial-gradient(circle at 30% 20%,#1E7F89,#0B3D44 55%,#06262a);overflow:hidden}
.hbm-1on1 .hbm-stage:before{content:"";position:absolute;inset:0;opacity:.09;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 6l8 18 18-8-8 18 18 8-18 8 8 18-18-8-8 18-8-18-18 8 8-18-18-8 18-8-8-18 18 8z' fill='none' stroke='%23E2B04A' stroke-width='1.2'/%3E%3C/svg%3E")}.hbm-1on1 .hbm-stage:after{content:"";position:absolute;left:50%;top:38%;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;background:radial-gradient(circle,rgba(20,163,174,.35),transparent 65%);pointer-events:none;animation:hbmBreath 6s ease-in-out infinite}@keyframes hbmBreath{50%{transform:scale(1.12);opacity:.7}}
@keyframes hbmSpin{to{transform:rotate(360deg)}}
.hbm-1on1 .hbm-grid{display:block!important;position:absolute;inset:0;padding:0!important}
.hbm-1on1 .hbm-grid .hbm-tile:not(.me){position:absolute!important;inset:0!important;width:auto!important;height:auto!important;border-radius:0!important;margin:0!important;background:transparent}
.hbm-1on1 .hbm-grid .hbm-tile:not(.me) video{width:100%;height:100%;object-fit:cover}
.hbm-1on1 .hbm-grid .hbm-tile.me{position:absolute!important;top:16px;left:16px;width:112px!important;height:160px!important;border-radius:18px!important;z-index:6;box-shadow:0 12px 30px rgba(0,0,0,.45);border:2px solid rgba(255,255,255,.25);touch-action:none;cursor:grab;overflow:hidden}
@media(min-width:900px){.hbm-1on1 .hbm-grid .hbm-tile.me{width:220px!important;height:150px!important}}
.hbm-1on1 .hbm-grid .hbm-tile .hbm-av{background:transparent}
.hbm-callhead{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;pointer-events:none;color:#fff;text-align:center;transition:.4s}
.hbm-ch-av{position:relative;width:132px;height:132px;margin-bottom:14px}
.hbm-ch-av i{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(255,255,255,.35);animation:hbmRing 2.4s ease-out infinite}
.hbm-ch-av i:nth-child(2){animation-delay:.8s}.hbm-ch-av i:nth-child(3){animation-delay:1.6s}
@keyframes hbmRing{from{transform:scale(1);opacity:.9}to{transform:scale(1.9);opacity:0}}
.hbm-ch-img{position:absolute;inset:0;border-radius:50%;overflow:hidden;display:grid;place-items:center;font-size:52px;font-weight:800;background:linear-gradient(135deg,#14A3AE,#0E7F89);box-shadow:0 14px 34px rgba(0,0,0,.4)}
.hbm-ch-img img{width:100%;height:100%;object-fit:cover}
.hbm-ch-n{font-size:26px;font-weight:800;text-shadow:0 4px 14px rgba(0,0,0,.4)}
.hbm-ch-s{font-size:16px;opacity:.9;letter-spacing:1px}
.hbm-ch-e2e{font-style:normal;font-size:12px;opacity:.7;margin-top:6px}
/* تماس تصویری وصل‌شده: سربرگ کوچک بالا، تصویر طرف مقابل تمام‌صفحه */
.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-callhead{justify-content:flex-start;padding-top:18px;background:linear-gradient(rgba(0,0,0,.45),transparent 30%)}
.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-ch-av{display:none}
.hbm-1on1-live:not(.hbm-1on1-audio) .hbm-ch-n{font-size:19px}
/* تماس صوتی: فقط آواتار بزرگ و نوار صدا */
.hbm-1on1-audio .hbm-grid{opacity:0;pointer-events:none}
.hbm-1on1-live .hbm-ch-av i{animation-duration:3.2s;border-color:rgba(155,227,196,.4)}
/* دکمه‌های گرد بزرگ پایین، قرمز برای قطع */
.hbm-1on1 .hbm-bar{background:transparent!important;box-shadow:none!important;justify-content:center;gap:14px}
.hbm-1on1 .hbm-bar .hbm-cb{width:60px;height:60px;border-radius:50%!important;background:rgba(255,255,255,.16)!important;backdrop-filter:blur(8px);border:0}
.hbm-1on1 .hbm-bar .hbm-cb.hbm-leave{background:#e5484d!important;box-shadow:0 10px 24px rgba(229,72,77,.45)}
.hbm-1on1 .hbm-top .hbm-title{opacity:0}

/* out47: رفع هم‌پوشانی و هویت بصری تماس خصوصی */
.hbm-1on1 .hbm-stage{background:linear-gradient(180deg,#0E5A60 0%,#0A3F45 55%,#06272b 100%)!important}
.hbm-1on1 .hbm-callhead{z-index:3}
.hbm-1on1 .hbm-morebar,.hbm-1on1 .hbm-side,.hbm-1on1 .hbm-modal,.hbm-1on1 .hbm-reactbar,.hbm-1on1 .hbm-toasts{z-index:40!important;position:relative}
.hbm-1on1 .hbm-morebar:not([hidden])~*{}
.hbm-1on1 .hbm-morebar:not([hidden]){position:fixed!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important;transform:none!important;bottom:104px;background:rgba(6,39,43,.96)!important;backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12);border-radius:22px;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.hbm-1on1 .hbm-top{background:transparent!important;border:0!important;box-shadow:none!important}
.hbm-1on1 .hbm-top .hbm-count,.hbm-1on1 .hbm-top [data-act="invite"],.hbm-1on1 .hbm-top [data-act="layout"]{display:none!important}
.hbm-1on1 .hbm-top small{font-size:0}.hbm-1on1 .hbm-top small .hbm-recdot:not([hidden]){font-size:12px}
.hbm-ch-img{border:4px solid rgba(255,255,255,.15)}
.hbm-ch-n{margin-top:4px}
.hbm-1on1 .hbm-bar{padding:14px 10px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.35))!important}
.hbm-1on1 .hbm-bar .hbm-cb small{font-size:11px;opacity:.85}
.hbm-1on1 .hbm-bar .hbm-cb.hbm-spk.on{background:#fff!important;color:#0A3F45}
@media(max-width:600px){.hbm-1on1 .hbm-bar{gap:8px}.hbm-1on1 .hbm-bar .hbm-cb{width:56px;height:56px}}

/* تماس خصوصی: گزینه‌های مخصوص جلسه گروهی پنهان */
.hbm-1on1 .hbm-morebar [data-act="hand"],.hbm-1on1 .hbm-morebar [data-act="people"],.hbm-1on1 .hbm-morebar [data-act="rec"],.hbm-1on1 .hbm-morebar [data-act="invite"],.hbm-1on1 .hbm-morebar [data-act="layout"],.hbm-1on1 .hbm-morebar [data-act="host"],.hbm-1on1 .hbm-morebar [data-mo="host"],.hbm-1on1 .hbm-morebar [data-mo="copy"],.hbm-1on1 .hbm-morebar [data-mo="link"]{display:none!important}
.hbm-1on1 .hbm-bar{flex-wrap:nowrap;overflow:hidden;max-width:100vw;box-sizing:border-box}
@media(max-width:420px){.hbm-1on1 .hbm-bar{gap:6px;padding-left:6px;padding-right:6px}.hbm-1on1 .hbm-bar .hbm-cb{width:52px;height:52px;flex:none}.hbm-1on1 .hbm-bar .hbm-cb small{display:none}}

/* out48: تماس خصوصی تمام‌صفحه، کنترل‌های یکدست و وضعیت اتصال دقیق */
.hbm-direct-call .hbm{height:100vh;height:100dvh;min-height:100svh;width:100%;overflow:hidden}
.hbm-direct-call .hbm[data-view=room] .hbm-room{height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto}
.hbm-direct-call .hbm-room{min-height:0}
.hbm-1on1 .hbm-stage{position:relative;display:block;min-height:0!important;padding:0!important;overflow:hidden;border:0;border-radius:0}
.hbm-1on1 .hbm-callhead{z-index:5;inset:0;padding:24px 20px calc(118px + env(safe-area-inset-bottom));}
.hbm-1on1 .hbm-bar{position:relative;z-index:10;flex:none;min-height:100px;gap:clamp(8px,3vw,20px);justify-content:center;overflow:visible;padding:10px 16px max(18px,calc(env(safe-area-inset-bottom) + 12px));background:linear-gradient(0deg,rgba(2,17,22,.96),rgba(2,17,22,.45))!important;border:0}
.hbm-1on1 .hbm-bar [data-act="react"],.hbm-1on1 .hbm-bar [data-act="dev"]{display:none!important}
.hbm-1on1 .hbm-bar .hbm-cb{position:relative;display:flex!important;flex:0 0 64px;width:64px;min-width:64px;height:76px;align-items:center;justify-content:flex-start;gap:4px;padding:0 0 2px;background:transparent!important;border:0!important;backdrop-filter:none;overflow:visible}
.hbm-1on1 .hbm-bar .hbm-cb .i{display:grid;place-items:center;width:58px;height:58px;flex:none;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(255,255,255,.14);color:#fff}
.hbm-1on1 .hbm-bar .hbm-cb .i svg{width:25px;height:25px}
.hbm-1on1 .hbm-bar .hbm-cb small{display:block;position:absolute;inset:auto 0 0;font-size:10px;line-height:1.2;color:rgba(255,255,255,.82);white-space:nowrap}
.hbm-1on1 .hbm-bar .hbm-cb.off .i{background:rgba(255,255,255,.2);color:#fff}
.hbm-1on1 .hbm-bar .hbm-spk.on .i{background:#fff;color:#0a3f45}
.hbm-1on1 .hbm-bar .hbm-cb.hbm-leave .i{width:62px;height:62px;border:0;border-radius:50%;background:#e5484d;color:#fff;box-shadow:0 10px 25px rgba(229,72,77,.4)}
.hbm-1on1 .hbm-bar .hbm-leave .i svg{width:29px;height:29px}
.hbm-1on1-live:not(.hbm-1on1-audio):not(.hbm-1on1-video-live) .hbm-grid{display:none!important}
.hbm-1on1-live:not(.hbm-1on1-audio):not(.hbm-1on1-video-live) .hbm-callhead{justify-content:center;padding-bottom:calc(118px + env(safe-area-inset-bottom));background:none}
.hbm-1on1-video-live .hbm-grid{display:flex!important;position:absolute;inset:0;align-content:stretch;align-items:stretch;justify-content:center;flex-wrap:nowrap;gap:0;padding:0}
.hbm-1on1-video-live .hbm-grid .hbm-tile:not(.me){position:absolute;inset:0;width:100%!important;height:100%;max-height:none;aspect-ratio:auto;border:0;border-radius:0}
.hbm-1on1-video-live .hbm-grid .hbm-tile.me{position:absolute;top:calc(18px + env(safe-area-inset-top));right:14px;left:auto;width:min(27vw,112px)!important;height:auto;aspect-ratio:3/4;border:2px solid rgba(255,255,255,.82);border-radius:18px;z-index:6}
.hbm-1on1-video-live .hbm-grid .hbm-tile.me:not(.cam){display:none}
.hbm-1on1-video-live .hbm-callhead{inset:max(14px,env(safe-area-inset-top)) 14px auto;justify-content:flex-start;flex-direction:row;gap:10px;width:max-content;max-width:calc(100% - 28px);padding:8px 12px;border:1px solid rgba(255,255,255,.18);border-radius:22px;background:rgba(4,27,32,.72);backdrop-filter:blur(12px);text-align:right}
.hbm-1on1-video-live .hbm-ch-av{display:none}
.hbm-1on1-video-live .hbm-ch-n{font-size:14px}
.hbm-1on1-video-live .hbm-ch-s{font-size:12px;min-height:0}
.hbm-1on1-video-live .hbm-ch-e2e{display:none}
@media(max-width:420px){.hbm-1on1 .hbm-bar{gap:4px;padding-inline:8px}.hbm-1on1 .hbm-bar .hbm-cb{flex-basis:60px;width:60px;min-width:60px}.hbm-1on1 .hbm-bar .hbm-cb .i{width:54px;height:54px}.hbm-1on1 .hbm-bar .hbm-cb.hbm-leave .i{width:60px;height:60px}}
@media(max-height:520px) and (orientation:landscape){.hbm-1on1 .hbm-bar{min-height:72px;padding-block:4px}.hbm-1on1 .hbm-bar .hbm-cb{height:60px}.hbm-1on1 .hbm-bar .hbm-cb small{display:none}.hbm-1on1 .hbm-callhead{padding-bottom:72px}}
@media(prefers-reduced-motion:reduce){.hbm-1on1 .hbm-ch-av i,.hbm-1on1 .hbm-direct-avatar i{animation:none!important}}
.hbm-1on1 .hbm-bar .hbm-cb[hidden]{display:none!important}
