:root {
  --bg: #0f0f14;
  --panel: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.15);

  --accent: #d66efd;        
  --accent-soft: #f3c6ff;

  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.65);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}


#chatbot {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 340px;
  max-height: 72vh;

  background: linear-gradient(
    180deg,
    rgba(30,30,40,0.9),
    rgba(15,15,20,0.95)
  );

  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);

  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

#chatbot.open {
  display: flex;
}


#chatbot-header {
  padding: 14px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;

  background: linear-gradient(
    90deg,
    rgba(214,110,253,0.25),
    rgba(214,110,253,0.05)
  );

  color: var(--text);
}


#chatbot-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
}

#chatbot-body .bot,
#chatbot-body .user {
  max-width: 82%;
  padding: 10px 14px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: var(--radius-md);
  animation: popIn 0.25s ease-out;
}

#chatbot-body .bot {
  background: var(--panel);
  color: var(--text);
  align-self: flex-start;
}

#chatbot-body .user {
  background: linear-gradient(
    135deg,
    var(--accent),
    #9b5cff
  );
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
}


@keyframes popIn {
  from {
    transform: translateY(6px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}


#chatbot-body button {
  width: auto;
  max-width: 100%;
  display: inline-block;

  padding: 6px 14px;
  margin: 4px 4px 4px 0;

  font-size: 13px;

  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);

  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#chatbot-body button:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

#chatbot-body button:active {
  transform: scale(0.97);
}


.chat-contact-form {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
}

.chat-contact-form input,
.chat-contact-form textarea {
  width: 100%;
  max-width: 100%;
  resize: none;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.chat-contact-form input::placeholder,
.chat-contact-form textarea::placeholder {
  color: var(--text-muted);
}

.chat-contact-form input:focus,
.chat-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(214,110,253,0.3);
}

.chat-contact-form button {
  background: linear-gradient(
    135deg,
    var(--accent),
    #9b5cff
  );
  border: none;
  color: #fff;
}


#chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;

  background: linear-gradient(
    135deg,
    var(--accent),
    #9b5cff
  );

  color: #fff;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 10px 30px rgba(214,110,253,0.4);
  z-index: 10000;
}

#chatbot-toggle:hover {
  transform: scale(1.05);
}




#chatInput {
  width: 100%;
  margin: 10px;
  padding: 10px 14px;

  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text);
  font-size: 14px;

  outline: none;
}

#chatInput::placeholder {
  color: var(--text-muted);
}

#chatInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(214,110,253,0.25);
}

#chatbot-body::-webkit-scrollbar {
  width: 8px;
}

#chatbot-body::-webkit-scrollbar-track {
  background: transparent;
}

#chatbot-body::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(214,110,253,0.6),
    rgba(155,92,255,0.6)
  );
  border-radius: 6px;
}


@media (max-width: 480px) {
  #chatbot {
    left: 10px;
    right: 10px;
    width: auto;
  }
}


#chatbot-body .bot {
  position: relative;
  padding-left: 36px;
}

#chatbot-body .bot::before {
  content: "S";
  position: absolute;
  left: 0;
  top: 0;

  width: 26px;
  height: 26px;

  background: linear-gradient(
    135deg,
    var(--accent),
    #9b5cff
  );
  color: #fff;

  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;
}

#chatbot-body .user {
  position: relative;
  padding-right: 36px;
}

#chatbot-body .user::after {
  content: "Te";
  position: absolute;
  right: 0;
  top: 0;

  width: 26px;
  height: 26px;

  background: rgba(255,255,255,0.25);
  color: #fff;

  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;
}

#chatbot,
#chatbot * {
  box-sizing: border-box;
}

#chatbot-body {
  overflow-y: auto;
  overflow-x: hidden;
}
