[hidden]{display:none!important}
.fab,.chat,.toast{font-family:Vazirmatn,Tahoma,sans-serif;line-height:1.8;color:#fff;box-sizing:border-box}.chat *{box-sizing:border-box;font-family:inherit}
/* floating contact + chat */
.fab{position:fixed;left:18px;bottom:18px;z-index:60;display:flex;flex-direction:column;gap:10px;align-items:center}
.fab a,.fab button{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;border:0;cursor:pointer;box-shadow:0 10px 26px -8px rgba(0,0,0,.5);transition:transform .2s}
.fab a:hover,.fab button:hover{transform:translateY(-2px) scale(1.04)}
.fab .wa{background:#25d366}.fab .tg{background:#2aabee}.fab .ch{background:var(--accent,#a6ffc6);color:var(--onaccent,#08391f);width:60px;height:60px;position:relative}
.fab .ch i{position:absolute;top:-2px;right:-2px;background:#ff5d5d;color:#fff;font-style:normal;font-size:11px;min-width:20px;height:20px;border-radius:99px;display:grid;place-items:center}
.fab .ch i[hidden]{display:none}
.chat{position:fixed;left:18px;bottom:96px;z-index:61;width:min(370px,calc(100vw - 36px));height:min(540px,calc(100vh - 130px));display:flex;flex-direction:column;background:#0b4428;border:1px solid rgba(255,255,255,.12);border-radius:22px;box-shadow:0 30px 80px -20px rgba(0,0,0,.6);overflow:hidden;transform-origin:bottom left;transition:transform .25s,opacity .25s}
.chat[hidden]{display:flex;transform:scale(.9);opacity:0;pointer-events:none}
.chat header{padding:16px 18px;background:linear-gradient(135deg,#12603a,#0d5532);display:flex;align-items:center;gap:10px}
.chat header img{width:36px;height:36px;border-radius:10px}
.chat header div{flex:1;line-height:1.4}.chat header small{color:rgba(255,255,255,.66)}
.chat header button{background:none;border:0;color:#fff;font-size:22px;cursor:pointer}
.chat .msgs{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px}
.chat .m{max-width:82%;padding:9px 13px;border-radius:16px;font-size:14px;white-space:pre-wrap;word-wrap:break-word}
.chat .m.user{align-self:flex-start;background:var(--accent,#a6ffc6);color:var(--onaccent,#08391f);border-bottom-right-radius:4px}
.chat .m.admin{align-self:flex-end;background:rgba(255,255,255,.1);border-bottom-left-radius:4px}
.chat .m small{display:block;font-size:10px;opacity:.6;margin-top:2px}
.chat .intro{background:rgba(255,255,255,.06);border-radius:14px;padding:12px;font-size:13px;color:rgba(255,255,255,.66)}
.chat .intro input{margin-top:8px;height:40px;font-size:14px}
.chat form{display:flex;gap:8px;padding:10px;border-top:1px solid rgba(255,255,255,.12)}
.chat form textarea{flex:1;resize:none;height:44px;max-height:110px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.2);padding:10px 12px;outline:none}
.chat form button{width:44px;height:44px;border-radius:12px;border:0;background:var(--accent,#a6ffc6);color:var(--onaccent,#08391f);cursor:pointer;display:grid;place-items:center}
.toast{position:fixed;top:80px;left:50%;transform:translateX(-50%);z-index:99;background:#06150d;border:1px solid rgba(255,255,255,.12);padding:10px 18px;border-radius:12px;box-shadow:0 20px 50px -20px rgba(0,0,0,.45);font-size:14px;animation:tin .25s}
@keyframes tin{from{opacity:0;transform:translate(-50%,-8px)}}

.chat .inp{width:100%;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.18);padding:0 12px;color:#fff;outline:none}
