/* ===== VERC chat widget ===== */
.verc-chat-btn{
  position:fixed;right:22px;bottom:22px;z-index:900;
  display:flex;align-items:center;gap:10px;
  font-family:'Manrope',system-ui,sans-serif;font-weight:700;font-size:.95rem;
  color:#08110b;cursor:pointer;border:none;
  padding:14px 20px;border-radius:999px;
  background:linear-gradient(140deg,#8fe07a,#4fbf6b);
  box-shadow:0 10px 30px rgba(79,191,107,.4);
  transition:transform .15s ease,box-shadow .2s ease;
}
.verc-chat-btn:hover{transform:translateY(-2px)}
.verc-chat-btn svg{width:20px;height:20px}
.verc-chat-btn.hidden{display:none}

.verc-chat{
  position:fixed;right:22px;bottom:22px;z-index:901;
  width:min(400px,calc(100vw - 32px));height:min(600px,calc(100vh - 40px));
  display:none;flex-direction:column;overflow:hidden;
  font-family:'Manrope',system-ui,sans-serif;
  background:#0f1a13;border:1px solid rgba(255,255,255,.14);border-radius:20px;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.verc-chat.open{display:flex}

.verc-chat-head{
  display:flex;align-items:center;gap:12px;padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(140deg,rgba(79,191,107,.16),rgba(58,160,255,.08));
}
.verc-chat-head .mark{
  width:34px;height:34px;border-radius:9px;flex:none;display:grid;place-items:center;
  background:linear-gradient(140deg,#4fbf6b,#2f8f4f);
}
.verc-chat-head .mark svg{width:19px;height:19px}
.verc-chat-head h4{font-family:'Unbounded',sans-serif;font-size:1rem;font-weight:700;color:#eef4ee;margin:0}
.verc-chat-head p{font-size:.75rem;color:#a4b6a8;margin:2px 0 0}
.verc-chat-close{margin-left:auto;background:none;border:none;color:#a4b6a8;cursor:pointer;font-size:1.5rem;line-height:1;padding:0 4px}
.verc-chat-close:hover{color:#eef4ee}

.verc-chat-body{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:14px}
.verc-msg{max-width:85%;padding:11px 15px;border-radius:14px;font-size:.94rem;line-height:1.55;white-space:pre-wrap;word-wrap:break-word}
.verc-msg.user{align-self:flex-end;background:#4fbf6b;color:#08110b;border-bottom-right-radius:5px}
.verc-msg.bot{align-self:flex-start;background:#18291e;color:#eef4ee;border:1px solid rgba(255,255,255,.08);border-bottom-left-radius:5px}
.verc-msg.bot a{color:#8fe07a}
.verc-sources{align-self:flex-start;max-width:85%;display:flex;flex-wrap:wrap;gap:6px;margin-top:-6px}
.verc-sources a{
  font-size:.75rem;font-weight:600;color:#8fe07a;text-decoration:none;
  padding:4px 10px;border:1px solid rgba(79,191,107,.3);border-radius:999px;
  background:rgba(79,191,107,.08);
}
.verc-sources a:hover{background:rgba(79,191,107,.16)}
.verc-typing{align-self:flex-start;color:#7d9082;font-size:.9rem;padding:8px 4px}
.verc-typing span{display:inline-block;animation:verc-blink 1.2s infinite}
.verc-typing span:nth-child(2){animation-delay:.2s}
.verc-typing span:nth-child(3){animation-delay:.4s}
@keyframes verc-blink{0%,60%,100%{opacity:.2}30%{opacity:1}}

.verc-chat-foot{padding:12px;border-top:1px solid rgba(255,255,255,.08)}
.verc-chat-form{display:flex;gap:8px}
.verc-chat-input{
  flex:1;font-family:inherit;font-size:.94rem;color:#eef4ee;
  background:#132018;border:1px solid rgba(255,255,255,.16);border-radius:12px;
  padding:11px 14px;outline:none;resize:none;max-height:100px;
}
.verc-chat-input:focus{border-color:#4fbf6b}
.verc-chat-send{
  flex:none;width:44px;border:none;border-radius:12px;cursor:pointer;color:#08110b;
  background:linear-gradient(140deg,#8fe07a,#4fbf6b);display:grid;place-items:center;
}
.verc-chat-send:disabled{opacity:.5;cursor:default}
.verc-chat-send svg{width:18px;height:18px}
.verc-disclaimer{font-size:.68rem;color:#7d9082;text-align:center;margin-top:8px}
