:root{--red:#e11c1f;--red-opaque:rgba(225,28,31,0.22);--red-hover:#fb1e21;--green:#287e74;--green-hover:#1f6a62}
*{box-sizing:border-box}

/* Floating container */
.hvy-floating{position:fixed;right:20px;bottom:20px;z-index:99999;display:flex;align-items:center;justify-content:center}

/* Toggle button */
.hvy-toggle{position:relative;width:64px;height:64px;border-radius:50%;background:var(--red);color:#fff;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(0,0,0,0.18);transition:background .18s ease,transform .18s ease;overflow:visible;animation:hvy-shake 3s infinite ease-in-out}
.hvy-toggle:hover{background:var(--red-hover)}
.hvy-toggle i{font-size:18px; position:relative; z-index:2}

/* Continuous pulse */
.hvy-toggle::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:var(--red-opaque);animation:hvy-pulse 2.6s infinite ease-out;z-index:1}

@keyframes hvy-shake{0%,100%{transform:rotate(0)}20%{transform:rotate(6deg)}40%{transform:rotate(-6deg)}60%{transform:rotate(4deg)}80%{transform:rotate(-4deg)}}
@keyframes hvy-pulse{0%{transform:translate(-50%,-50%) scale(0.8);opacity:0.7}70%{transform:translate(-50%,-50%) scale(1.8);opacity:0.12}100%{transform:translate(-50%,-50%) scale(2.2);opacity:0}}

/* Tooltip */
.hvy-toggle[data-tooltip]:hover::before{content:attr(data-tooltip);position:absolute;right:78px;top:50%;transform:translateY(-50%);background:rgba(0,0,0,0.78);color:#fff;padding:8px 10px;border-radius:6px;white-space:nowrap;font-size:13px;box-shadow:0 6px 18px rgba(0,0,0,0.18)}

/* Panel */
.hvy-panel{position:fixed;right:20px;bottom:100px;width:380px;max-width:calc(100% - 40px);background:#fff;border-radius:12px;box-shadow:0 18px 50px rgba(8,20,30,0.14);overflow:hidden;display:none;flex-direction:column;z-index:99998}
.hvy-panel.open{display:flex}

/* Panel header with close button inside */
.panel-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #eef2f4}
.panel-header h2{margin:0;font-size:16px;color:var(--green);font-weight:800}
.panel-close{width:34px;height:34px;border-radius:6px;border:0;background:transparent;color:#555;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:background .16s ease,color .16s ease}
.panel-close:hover{background:var(--red);color:#fff}

/* Tabs */
.hvy-tabs{display:flex;background:#fafafa;border-bottom:1px solid #eef2f4}
.hvy-tab{flex:1;padding:10px 12px;text-align:center;font-weight:700;font-size:13px;cursor:pointer;position:relative;color:#2b2b2b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.hvy-tab.active{background:#fff;border-bottom:3px solid var(--green);color:var(--green)}
.hvy-tab .tab-icon{margin-right:6px}
.hvy-badge{position:absolute;top:8px;right:12px;background:var(--red);color:#fff;border-radius:50%;padding:3px 7px;font-size:12px;font-weight:800; min-width: 15px; height: 15px; line-height: 9px; text-align: center; display: inline-flex; justify-content: center; align-items: center;}

.hvy-body{padding:12px 14px;max-height:420px;overflow:auto}

.branch{background:#fff;border:1px solid #f0f2f3;border-radius:10px;padding:12px;margin-bottom:10px;box-shadow:0 2px 6px rgba(0,0,0,0.03)}
.branch h4{margin:0 0 6px 0;font-size:15px;color:#111}
.branch p{margin:0;font-size:13px;color:#666}
.branch .meta{margin-top:8px;display:flex;gap:8px;align-items:center}
.branch .action{margin-left:auto}
.hvy-action{background:var(--green);color:#fff;padding:8px 12px;border-radius:8px;text-decoration:none;font-weight:700;display:inline-block;white-space:nowrap;}
.hvy-action:hover{background:var(--green-hover)}

/* Responsive */
@media (max-width:900px){.hvy-panel{right:16px;bottom:92px;width:360px}}
@media (max-width:520px){.hvy-panel{left:12px;right:12px;bottom:80px;width:auto;border-radius:12px}.hvy-toggle{width:56px;height:56px}.hvy-toggle::after{width:56px;height:56px}.hvy-toggle i{font-size:18px}}

/* scrollbar */
.hvy-body::-webkit-scrollbar{width:8px}
.hvy-body::-webkit-scrollbar-thumb{background:#e6e9eb;border-radius:8px}