/* =============================================================
   FLOATING ACTION BUTTONS — hgl-float.css
   3 fixed FABs: Social | Lead Gen | Chat
============================================================= */

/* Stack container */
#float-stack{position:fixed;bottom:2rem;right:1.5rem;display:flex;flex-direction:column;align-items:center;gap:.65rem;z-index:900}

/* Individual button */
.fab{width:50px;height:50px;border-radius:50%;background:#0D1C3E;border:1.5px solid rgba(228,160,18,.35);display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;box-shadow:0 4px 20px rgba(0,0,0,.35);transition:transform .2s,border-color .2s,background .2s,box-shadow .2s;flex-shrink:0;outline:none}
.fab:hover{transform:scale(1.1);border-color:#E4A012;box-shadow:0 6px 24px rgba(0,0,0,.35),0 0 0 5px rgba(228,160,18,.12)}
.fab:focus-visible{outline:2px solid #E4A012;outline-offset:3px}
.fab svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .2s,fill .2s;pointer-events:none}
.fab.active{background:#E4A012;border-color:#E4A012;box-shadow:0 6px 24px rgba(228,160,18,.3)}
.fab.active svg{stroke:#0D1C3E}

/* Tooltip (left side) */
.fab::before{content:attr(data-tip);position:absolute;right:calc(100% + .6rem);top:50%;transform:translateY(-50%);background:rgba(13,28,62,.95);color:#fff;font-size:.7rem;font-weight:600;font-family:'Inter',sans-serif;white-space:nowrap;padding:.3rem .65rem;border-radius:7px;pointer-events:none;opacity:0;transition:opacity .15s .05s;letter-spacing:.02em;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.fab:hover::before{opacity:1}

/* ── Social popup ────────────────────────────────────────── */
#fab-social-popup{position:absolute;right:calc(100% + .65rem);bottom:0;background:rgba(11,22,50,.97);border:1px solid rgba(228,160,18,.2);border-radius:14px;padding:.5rem;display:flex;flex-direction:column;gap:.3rem;min-width:175px;opacity:0;transform:translateX(8px) scale(.95);pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 12px 40px rgba(0,0,0,.45);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#fab-social-popup.open{opacity:1;transform:translateX(0) scale(1);pointer-events:all}

.fab-social-link{display:flex;align-items:center;gap:.65rem;padding:.62rem .85rem;border-radius:9px;text-decoration:none;color:#fff;font-size:.81rem;font-weight:500;font-family:'Inter',sans-serif;transition:background .15s;white-space:nowrap}
.fab-social-link:hover{background:rgba(255,255,255,.08)}
.fab-social-link svg{flex-shrink:0;border-radius:4px}

/* ── Chat panel ──────────────────────────────────────────── */
#chat-panel{position:fixed;bottom:2rem;right:calc(1.5rem + 50px + .75rem);width:320px;background:#0c1a3a;border:1px solid rgba(228,160,18,.18);border-radius:20px;box-shadow:0 24px 64px rgba(0,0,0,.45);z-index:901;overflow:hidden;display:flex;flex-direction:column;max-height:430px;opacity:0;transform:translateY(14px) scale(.97);pointer-events:none;transition:opacity .25s,transform .25s}
#chat-panel.open{opacity:1;transform:translateY(0) scale(1);pointer-events:all}

/* Chat header */
#chat-head{display:flex;align-items:center;gap:.75rem;padding:.9rem 1.1rem;border-bottom:1px solid rgba(255,255,255,.07);flex-shrink:0}
.chat-ava{width:34px;height:34px;border-radius:50%;background:rgba(228,160,18,.15);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.chat-ava svg{width:16px;height:16px;stroke:#E4A012;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chat-name-row{flex:1}
.chat-name{font-family:'Manrope',sans-serif;font-size:.84rem;font-weight:700;color:#fff}
.chat-status{font-size:.65rem;color:rgba(255,255,255,.4);display:flex;align-items:center;gap:.3rem;margin-top:.12rem}
.chat-status-dot{width:5px;height:5px;border-radius:50%;background:#22c55e;flex-shrink:0}
#chat-close-btn{background:none;border:none;color:rgba(255,255,255,.3);cursor:pointer;padding:.3rem;border-radius:6px;transition:color .15s,background .15s;display:flex;align-items:center;justify-content:center;flex-shrink:0}
#chat-close-btn:hover{color:#fff;background:rgba(255,255,255,.08)}
#chat-close-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Messages area */
#chat-msgs{flex:1;overflow-y:auto;padding:.9rem;display:flex;flex-direction:column;gap:.6rem;min-height:190px;max-height:250px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent}
#chat-msgs::-webkit-scrollbar{width:4px}
#chat-msgs::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:2px}

.chat-bubble{max-width:84%;padding:.55rem .88rem;border-radius:14px;font-size:.8rem;line-height:1.58;font-family:'Inter',sans-serif;word-break:break-word}
.chat-bubble.bot{background:rgba(255,255,255,.07);color:rgba(255,255,255,.82);border-bottom-left-radius:4px;align-self:flex-start}
.chat-bubble.user{background:#E4A012;color:#0D1C3E;border-bottom-right-radius:4px;align-self:flex-end;font-weight:500}

/* Typing indicator */
.chat-typing{display:flex;align-items:center;gap:.32rem;padding:.6rem .88rem;background:rgba(255,255,255,.07);border-radius:14px;border-bottom-left-radius:4px;align-self:flex-start;width:54px}
.chat-typing span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);display:inline-block;animation:chatdot 1.2s infinite ease-in-out}
.chat-typing span:nth-child(2){animation-delay:.2s}
.chat-typing span:nth-child(3){animation-delay:.4s}
@keyframes chatdot{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}

/* Input row */
#chat-input-row{display:flex;align-items:center;gap:.45rem;padding:.75rem .9rem;border-top:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.02);flex-shrink:0}
#chat-input{flex:1;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:.52rem .78rem;color:#fff;font-size:.8rem;font-family:'Inter',sans-serif;outline:none;transition:border-color .15s;min-width:0}
#chat-input::placeholder{color:rgba(255,255,255,.28)}
#chat-input:focus{border-color:rgba(228,160,18,.4)}
#chat-send-btn{width:34px;height:34px;border-radius:9px;background:#E4A012;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,transform .1s}
#chat-send-btn:hover{background:#f0b61a}
#chat-send-btn:active{transform:scale(.9)}
#chat-send-btn svg{width:14px;height:14px;stroke:#0D1C3E;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:520px){
  #float-stack{right:1rem;bottom:1.25rem}
  .fab{width:46px;height:46px}
  .fab svg{width:18px;height:18px}
  .fab::before{display:none}
  #chat-panel{width:calc(100vw - 1rem - 46px - 1rem);right:calc(1rem + 46px + .5rem);bottom:1.25rem;max-height:380px}
  #fab-social-popup{right:calc(100% + .5rem)}
}
