.chat-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--accent-color);
  color: #04111d;
  font-weight: 700;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-panel {
  position: fixed;
  bottom: 90px;
  right: 1.5rem;
  width: min(360px, calc(100% - 2rem));
  background: rgba(5, 5, 5, 0.92);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(15px);
  max-height: 70vh;
}

.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-message.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.12);
}

.chat-message.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
}

.chat-input {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 0.75rem;
}

.chat-input input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.65rem 0.85rem;
  color: var(--text-color);
}

.chat-input button {
  border-radius: 8px;
  border: none;
  background: var(--accent-color);
  color: #03182b;
  font-weight: 600;
  padding: 0.65rem 0.9rem;
}

@media (max-width: 640px) {
  .chat-panel {
    right: 1rem;
    width: calc(100% - 2rem);
  }
}
