.tg-btn,.tg-badge,.tg-toast{font-family:Segoe UI,-apple-system,BlinkMacSystemFont,Arial,sans-serif}
.tg-btn{position:fixed;right:24px;bottom:24px;width:auto;height:auto;border:0;border-radius:50%;background:linear-gradient(135deg,#0088cc,#0da8f2);box-shadow:0 10px 25px rgba(0,136,204,.32);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:99999;-webkit-tap-highlight-color:transparent;transition:transform .2s ease,box-shadow .2s ease}
.tg-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(0,136,204,.38)}
.tg-btn svg{width:27px;height:27px;fill:#fff}
.tg-icon-close{display:none}
.tg-btn.open .tg-icon-plane{display:none}
.tg-btn.open .tg-icon-close{display:block}
.tg-dot{display:none;position:absolute;top:1px;right:1px;width:15px;height:15px;background:#ff3b30;border:2px solid #fff;border-radius:50%}
.tg-badge{display:none;position:fixed;right:24px;bottom:88px;z-index:99997;max-width:280px;padding:10px 14px 10px 12px;border-radius:16px 16px 4px 16px;background:linear-gradient(135deg,#fff,#f4fbff);border:1px solid rgba(0,136,204,.14);box-shadow:0 10px 28px rgba(0,0,0,.10),0 2px 8px rgba(0,136,204,.10)}
.tg-badge-inner{display:flex;align-items:center;gap:10px}
.tg-badge-icon{width:28px;height:28px;min-width:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0088cc,#11a8f2)}
.tg-badge-icon svg{width:14px;height:14px;fill:#fff}
.tg-badge-title{font-size:11px;font-weight:700;text-transform:uppercase;color:#0088cc}
.tg-badge-message{font-size:12.8px;font-weight:600;color:#1f2937}
.tg-toast{position:fixed;right:24px;bottom:96px;width:min(350px,calc(100vw - 32px));background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.14);z-index:99998;opacity:0;visibility:hidden;transform:translateY(18px) scale(.96);transition:all .28s ease}
.tg-toast.active{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.tg-toast-header{background:linear-gradient(135deg,#0088cc,#0b76bf);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:10px}
.tg-toast-header svg{width:20px;height:20px;fill:#fff}
.tg-toast-header-info{flex:1}
.tg-toast-header-title{font-size:14px;font-weight:700}
.tg-toast-header-sub{font-size:11.5px;opacity:.9;margin-top:2px}
.tg-online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#59e16e;margin-right:4px}
.tg-toast-close{border:0;background:rgba(255,255,255,.15);color:#fff;width:2%;height:2%;border-radius:50%;font-size:18px;cursor:pointer}
.tg-toast-body{padding:16px}
.tg-chat-msg{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}
.tg-avatar{width:40px;height:40px;min-width:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;position:relative}
.tg-avatar:after{content:'';position:absolute;right:1px;bottom:1px;width:10px;height:10px;border-radius:50%;background:#59e16e;border:2px solid #fff}
.tg-bubble{flex:1;background:#f1f5f9;border-radius:2px 14px 14px 14px;padding:10px 13px;font-size:13.5px;line-height:1.5;color:#334155}
.tg-name{font-size:12.5px;font-weight:700;margin-bottom:3px}
.tg-role{font-size:11px;font-weight:400;color:#8a8f98}
.tg-time{margin-top:5px;font-size:10.5px;color:#9aa3af;text-align:right}
.tg-typing{display:none;align-items:center;gap:6px;padding:0 0 12px 50px;color:#98a2b3;font-size:12px}
.tg-typing-dots span{display:inline-block;width:5px;height:5px;border-radius:50%;background:#b8c0cc;margin-right:2px}
.tg-toast-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;border-radius:11px;text-decoration:none;background:linear-gradient(135deg,#0088cc,#0da8f2);color:#fff;font-size:14px;font-weight:700}
.tg-toast-cta svg{width:18px;height:18px;fill:#fff}

@media(max-width:768px){
.tg-btn{right:16px;bottom:16px;width:72px;height:72px}
.tg-btn svg{width:34px;height:34px}
.tg-toast{left:12px;right:12px;bottom:98px;width:auto}
.tg-badge{right:14px;bottom:90px;max-width:calc(100vw - 90px)}
}

@media(max-width:480px){
.tg-btn{right:14px;bottom:14px;width:70px;height:70px}
.tg-btn svg{width:32px;height:32px}
.tg-toast{left:8px;right:8px;bottom:96px;width:auto}
.tg-badge{right:12px;bottom:88px;max-width:calc(100vw - 82px)}
.tg-avatar{width:36px;height:36px;min-width:36px}

}