/* Chat flutuante da landing. Mobile first, paleta vibrante. */
.chat{position:fixed;right:16px;bottom:16px;z-index:90;font-family:"Inter",system-ui,sans-serif}

.chat-fab{position:relative;width:58px;height:58px;border-radius:50%;border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;color:#fff;cursor:pointer;
  background:linear-gradient(135deg,#7c3aed,#ec4899 55%,#f97316);box-shadow:0 12px 34px rgba(236,72,153,.5);animation:chat-pulse 2.6s ease-out infinite;transition:transform .2s}
.chat-fab:hover{transform:scale(1.06)}
.chat-fab svg{width:28px;height:28px}
.chat-close{font-size:30px;line-height:1;font-weight:300}
.chat-badge{position:absolute;top:-3px;right:-3px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#22d3ee;color:#04121f;font-size:12px;font-weight:800;display:grid;place-items:center;border:2px solid #05030d}
@keyframes chat-pulse{0%{box-shadow:0 12px 34px rgba(236,72,153,.5),0 0 0 0 rgba(236,72,153,.45)}70%,100%{box-shadow:0 12px 34px rgba(236,72,153,.5),0 0 0 18px rgba(236,72,153,0)}}

.chat-teaser{position:absolute;right:70px;bottom:10px;white-space:nowrap;padding:10px 14px;border-radius:14px 14px 4px 14px;background:#fff;color:#1e1b2e;font-size:13px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.4);cursor:pointer;animation:chat-pop .35s cubic-bezier(.16,1,.3,1)}

.chat-panel{position:fixed;left:12px;right:12px;bottom:84px;height:min(560px,calc(100dvh - 110px));display:flex;flex-direction:column;overflow:hidden;
  background:#0d0a1f;border:1px solid rgba(167,139,250,.35);border-radius:18px;box-shadow:0 30px 80px -10px rgba(124,58,237,.6);animation:chat-pop .3s cubic-bezier(.16,1,.3,1);transform-origin:bottom right}
@keyframes chat-pop{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}

.chat-head{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:linear-gradient(110deg,rgba(124,58,237,.55),rgba(236,72,153,.4),rgba(249,115,22,.35));border-bottom:1px solid rgba(255,255,255,.12)}
.chat-avatar{position:relative;flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#05030d;color:#fff;font-size:12px;font-weight:700;letter-spacing:-1px}
.chat-avatar i{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:#34d399;border:2px solid #2a1650}
.chat-title{flex:1;min-width:0}
.chat-title strong{display:block;color:#fff;font-size:15px}
.chat-title small{color:rgba(255,255,255,.8);font-size:12px}
.chat-icon{flex:none;width:36px;height:36px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:rgba(5,3,13,.35);color:#fff;display:grid;place-items:center;font-size:20px;line-height:1;cursor:pointer}
.chat-icon:hover{background:rgba(5,3,13,.6)}

.chat-body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth;
  background:radial-gradient(400px 260px at 100% 0%,rgba(124,58,237,.14),transparent 70%)}
.chat-body{scrollbar-width:thin;scrollbar-color:rgba(167,139,250,.35) transparent;overscroll-behavior:contain}
.chat-body::-webkit-scrollbar{width:6px}
.chat-body::-webkit-scrollbar-track{background:transparent}
.chat-body::-webkit-scrollbar-thumb{background:rgba(167,139,250,.3);border-radius:999px}
.chat-body::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#7c3aed,#ec4899)}
.chat-body::-webkit-scrollbar-button{display:none;width:0;height:0}
.msg{max-width:84%;padding:10px 13px;border-radius:16px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-break:break-word;animation:chat-pop .25s ease}
.msg.bot{align-self:flex-start;background:#1a1438;color:#ede9fe;border:1px solid rgba(167,139,250,.22);border-bottom-left-radius:5px}
.msg.me{align-self:flex-end;background:linear-gradient(135deg,#7c3aed,#ec4899);color:#fff;border-bottom-right-radius:5px}
.typing{display:flex;gap:4px;padding:13px 14px}
.typing span{width:7px;height:7px;border-radius:50%;background:#c4b5fd;animation:chat-dot 1s infinite ease-in-out}
.typing span:nth-child(2){animation-delay:.15s}
.typing span:nth-child(3){animation-delay:.3s}
@keyframes chat-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}

.chat-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.chat-quick button{padding:9px 13px;border-radius:999px;border:1px solid rgba(244,114,182,.55);background:rgba(236,72,153,.1);color:#fbcfe8;font-size:13px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s}
.chat-quick button:hover{background:rgba(236,72,153,.25);border-color:#f472b6;color:#fff}

.chat-final{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.chat-final .btn{width:100%;justify-content:center}
.chat-link{background:none;border:0;color:#a79fc9;font-size:13px;text-decoration:underline;cursor:pointer;padding:6px}

.chat-input{display:flex;gap:8px;padding:10px;border-top:1px solid rgba(167,139,250,.2);background:#08051a}
.chat-input input{flex:1;min-width:0;padding:12px 14px;border-radius:12px;border:1px solid rgba(167,139,250,.3);background:#05030d;color:#fff;font-size:16px;outline:none}
.chat-input input:focus{border-color:#ec4899;box-shadow:0 0 0 3px rgba(236,72,153,.22)}
.chat-input input:disabled{opacity:.5}
.chat-input button{flex:none;width:46px;border-radius:12px;border:0;background:linear-gradient(135deg,#7c3aed,#ec4899);color:#fff;font-size:17px;cursor:pointer}
.chat-input button:disabled{opacity:.4;cursor:default}

@media(min-width:560px){
  .chat{right:24px;bottom:24px}
  .chat-panel{left:auto;right:24px;bottom:96px;width:370px}
}
@media(prefers-reduced-motion:reduce){.chat *{animation:none!important;transition:none!important}}
