#hdbot{--hdbot-c:#0f9d58;--hdbot-mob:80px;position:fixed;right:20px;bottom:20px;z-index:2147483000;font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Nastaliq Urdu","Jameel Noori Nastaleeq",sans-serif;color:#1f2937}
#hdbot *{box-sizing:border-box}
#hdbot button{font:inherit;cursor:pointer}
#hdbot .hdbot-fab{width:60px;height:60px;border-radius:50%;border:0;background:var(--hdbot-c);color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.22);transition:transform .2s;position:relative;padding:0}
#hdbot .hdbot-fab:hover{transform:scale(1.06)}
#hdbot .hdbot-dot{position:absolute;top:4px;right:4px;width:13px;height:13px;border-radius:50%;background:#ef4444;border:2px solid #fff}
#hdbot.open .hdbot-fab{transform:none}
#hdbot .hdbot-fab svg{display:block;transition:transform .2s,opacity .2s}
#hdbot .hdbot-ic-close{display:none!important}
#hdbot.open .hdbot-ic-chat{display:none!important}
#hdbot.open .hdbot-ic-close{display:block!important}
#hdbot .hdbot-panel{position:absolute;right:0;bottom:74px;width:370px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 110px);background:#fff;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;transition:opacity .2s,transform .2s}
#hdbot.open .hdbot-panel{opacity:1;transform:none;pointer-events:auto}
#hdbot header{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:var(--hdbot-c);color:#fff}
#hdbot .hdbot-av{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;font-weight:700;font-size:13px}
#hdbot .hdbot-ttl{flex:1;display:flex;flex-direction:column;line-height:1.2}
#hdbot .hdbot-ttl small{opacity:.85;font-size:12px}
#hdbot header button{background:transparent;border:0;color:#fff;font-size:22px;width:34px;height:34px;border-radius:8px;line-height:1}
#hdbot header button:hover{background:rgba(255,255,255,.15)}
#hdbot .hdbot-reset{font-size:18px!important}
#hdbot .hdbot-body{flex:1;overflow-y:auto;padding:14px;background:#f5f7f6;display:flex;flex-direction:column;gap:8px}
#hdbot .hdbot-msg{max-width:85%;padding:9px 12px;border-radius:14px;white-space:normal;word-wrap:break-word}
#hdbot .hdbot-msg.bot{background:#fff;border:1px solid #e5e7eb;align-self:flex-start;border-bottom-left-radius:4px}
#hdbot .hdbot-msg.me{background:var(--hdbot-c);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
#hdbot .hdbot-msg.ur{direction:rtl;text-align:right;font-size:15px;line-height:1.9}
#hdbot .hdbot-msg a{color:inherit;text-decoration:underline}
#hdbot .hdbot-act{align-self:flex-start;background:#fff;border:1.5px solid var(--hdbot-c);color:var(--hdbot-c);border-radius:999px;padding:6px 14px;font-weight:600}
#hdbot .hdbot-act:hover{background:var(--hdbot-c);color:#fff}
#hdbot .hdbot-typing{display:flex;gap:4px;padding:12px 14px}
#hdbot .hdbot-typing i{width:7px;height:7px;border-radius:50%;background:#9ca3af;animation:hdbotb 1s infinite}
#hdbot .hdbot-typing i:nth-child(2){animation-delay:.15s}
#hdbot .hdbot-typing i:nth-child(3){animation-delay:.3s}
@keyframes hdbotb{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
#hdbot .hdbot-quick{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0;background:#f5f7f6}
#hdbot .hdbot-quick button{background:#fff;border:1px solid #d1d5db;border-radius:999px;padding:5px 11px;font-size:12.5px;color:#374151}
#hdbot .hdbot-quick button:hover{border-color:var(--hdbot-c);color:var(--hdbot-c)}
#hdbot .hdbot-form{display:flex;gap:8px;padding:10px 12px;background:#f5f7f6;border-top:1px solid #eef0ef}
#hdbot .hdbot-form input{flex:1;border:1px solid #d1d5db;border-radius:999px;padding:10px 14px;font:inherit;outline:none;background:#fff;color:#111;min-width:0}
#hdbot .hdbot-form input:focus{border-color:var(--hdbot-c)}
#hdbot .hdbot-form button{width:42px;height:42px;border-radius:50%;border:0;background:var(--hdbot-c);color:#fff;font-size:16px;flex:none}
#hdbot .hdbot-foot{text-align:center;font-size:11px;color:#9ca3af;padding:0 0 7px;background:#f5f7f6}
@media (max-width:600px){
  #hdbot{right:14px;bottom:calc(14px + var(--hdbot-mob))}
  #hdbot .hdbot-fab{width:54px;height:54px}
  #hdbot.open{right:0;bottom:0;left:0;top:0}
  #hdbot.open .hdbot-fab{display:none}
  #hdbot .hdbot-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0}
}
