/* VELO AI Assistant — brand: purple #2B1679, pink #C2185B */

#velo-ai-root { position: fixed; z-index: 999999; right: 20px; bottom: 20px; font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

#velo-ai-launcher {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2B1679 0%, #C2185B 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(43, 22, 121, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
#velo-ai-launcher:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(194, 24, 91, 0.4); }

#velo-ai-panel {
  position: absolute; right: 0; bottom: 72px;
  width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  animation: veloAiIn .22s ease;
}
@keyframes veloAiIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.velo-ai-hidden { display: none !important; }

.velo-ai-header {
  background: linear-gradient(135deg, #2B1679 0%, #4A2A9E 60%, #C2185B 130%);
  color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
}
.velo-ai-title { font-family: "Outfit", "Work Sans", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .3px; }
.velo-ai-sub { font-size: 11.5px; opacity: .85; margin-top: 2px; }
#velo-ai-close { background: none; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .85; padding: 0 4px; }
#velo-ai-close:hover { opacity: 1; }

#velo-ai-messages { flex: 1; overflow-y: auto; padding: 14px; background: #F7F5FC; display: flex; flex-direction: column; gap: 10px; }
.velo-ai-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; word-wrap: break-word; white-space: pre-wrap; }
.velo-ai-bot  { background: #fff; color: #2a2a2a; border: 1px solid #E7E1F5; border-bottom-left-radius: 4px; align-self: flex-start; }
.velo-ai-user { background: #2B1679; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.velo-ai-msg a { color: #C2185B; font-weight: 600; text-decoration: underline; }
.velo-ai-user a { color: #FFD6E7; }

.velo-ai-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.velo-ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: #C2185B; opacity: .4; animation: veloAiBlink 1s infinite; }
.velo-ai-typing span:nth-child(2) { animation-delay: .18s; }
.velo-ai-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes veloAiBlink { 0%,100% { opacity: .3; transform: translateY(0);} 50% { opacity: 1; transform: translateY(-3px);} }

.velo-ai-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; background: #F7F5FC; border-top: 1px solid #EEE9F8; }
.velo-ai-chip {
  border: 1px solid #2B1679; color: #2B1679; background: #fff;
  font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer; font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.velo-ai-chip:hover { background: #2B1679; color: #fff; }

.velo-ai-inputrow { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #EEE9F8; }
#velo-ai-input {
  flex: 1; border: 1.5px solid #D9D1EE; border-radius: 999px; padding: 10px 15px;
  font-size: 13.5px; font-family: inherit; outline: none; color: #222;
}
#velo-ai-input:focus { border-color: #C2185B; }
#velo-ai-send {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: #C2185B; color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
#velo-ai-send:hover { background: #A3134C; }
#velo-ai-send:disabled { background: #D9D1EE; cursor: not-allowed; }

.velo-ai-footer { font-size: 10px; color: #8a84a0; text-align: center; padding: 6px 10px 9px; background: #fff; }

@media (max-width: 480px) {
  #velo-ai-panel { width: calc(100vw - 24px); right: -8px; height: 70vh; }
  #velo-ai-root { right: 14px; bottom: 14px; }
}
