/* ══ CHAT WIDGET ══════════════════════════════════ */
#jvl-chat-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a6fa5, #5a82c0);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(74,111,165,0.5);
  z-index: 999;
  transition: transform .2s, box-shadow .2s;
}

#jvl-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(74,111,165,0.7);
}

#jvl-chat-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

#jvl-chat-box {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 340px;
  height: 512px;
  background: #0f1720;
  border: 1px solid rgba(74,111,165,0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}

#jvl-chat-box.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, #1a2a40, #1e3350);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(74,111,165,0.2);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a6fa5, #5a82c0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-header-text h4 {
  font-size: .85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.chat-header-text span {
  font-size: .7rem;
  color: #22c55e;
}

.chat-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: color .15s;
}

.chat-close:hover { color: #e2e8f0; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(74,111,165,0.3) transparent;
}

.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg.bot {
  background: rgba(74,111,165,0.15);
  border: 1px solid rgba(74,111,165,0.2);
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: linear-gradient(135deg, #4a6fa5, #5a82c0);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.typing {
  background: rgba(74,111,165,0.1);
  border: 1px solid rgba(74,111,165,0.15);
  color: #94a3b8;
  align-self: flex-start;
  font-style: italic;
  font-size: .78rem;
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid rgba(74,111,165,0.2);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: #0f1720;
}

.chat-input-area input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(74,111,165,0.3);
  border-radius: 8px;
  padding: 9px 12px;
  color: #e2e8f0;
  font-size: .83rem;
  outline: none;
  transition: border-color .2s;
}

.chat-input-area input:focus { border-color: #4a6fa5; }
.chat-input-area input::placeholder { color: #4a5568; }

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4a6fa5, #5a82c0);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
  flex-shrink: 0;
}

.chat-send:hover { opacity: .85; }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }

.chat-send svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.chat-footer {
  text-align: center;
  font-size: .65rem;
  color: #4a5568;
  padding: 6px;
  background: #0f1720;
  border-top: 1px solid rgba(255,255,255,0.04);
}


