#chatbot-root {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 999999;
}

#chatbot-root > * {
  pointer-events: auto;
}

#chatbot-root * {
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
}

#chatbot-bubble {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgb(250, 100, 0), #ff3c00);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
  animation: chatbot-pulse 2.4s ease-in-out infinite, chatbot-float 3.2s ease-in-out infinite;
}

#chatbot-bubble:hover {
  animation: chatbot-pulse 2.4s ease-in-out infinite, chatbot-wiggle 0.4s ease-in-out;
  box-shadow: 0 12px 40px rgba(250, 100, 0, 0.5);
}

#chatbot-bubble:active {
  transform: scale(0.95);
}

@keyframes chatbot-pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 0 rgba(250,100,0,0.35); }
  50%      { box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 14px rgba(250,100,0,0); }
}

@keyframes chatbot-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes chatbot-wiggle {
  0%, 100% { rotate: 0deg; }
  25%      { rotate: -6deg; }
  75%      { rotate: 6deg; }
}

#chatbot-bubble .chatbot-dot {
  position: absolute;
  top: -2px;
  right: 28px;
  width: 28px;
  height: 14px;
  border-radius: 50%;
  background: #ff3c00;
  border: 2px solid #0f0f0f;
  z-index: 2;
}

#chatbot-panel {
  position: absolute;
  bottom: 100px;
  right: 28px;
  width: 370px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(165deg, #17171a 0%, #0e0e10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 50px rgba(250, 100, 0, 0.12);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.28s cubic-bezier(0.23, 1, 0.32, 1), transform 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}

#chatbot-panel.chatbot-open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

#chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #121212 0%, #1c1c1c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

#chatbot-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgb(250, 100, 0), #ff3c00);
  box-shadow: 0 0 12px rgba(250, 100, 0, 0.5);
}

#chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgb(250, 100, 0), #ff3c00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 14px rgba(250, 100, 0, 0.35);
  padding: 6px;
}

#chatbot-avatar .chatbot-status {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #121212;
  animation: chatbot-status-pulse 2s infinite ease-in-out;
}

@keyframes chatbot-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(46, 204, 113, 0); }
}

#chatbot-header-text {
  flex: 1;
  min-width: 0;
}

#chatbot-header h4 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
}

#chatbot-header span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
  margin-top: 2px;
}

#chatbot-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

#chatbot-close:hover {
  color: rgb(250, 100, 0);
  background: rgba(250, 100, 0, 0.1);
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#chatbot-messages::-webkit-scrollbar {
  width: 6px;
}
#chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(250, 100, 0, 0.4);
  border-radius: 4px;
}

.chatbot-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: chatbot-fade-in 0.25s ease both;
}

.chatbot-row.user {
  justify-content: flex-end;
}

.chatbot-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgb(250, 100, 0), #ff3c00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.chatbot-msg {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
}

@keyframes chatbot-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chatbot-msg.bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 4px;
}

.chatbot-msg.user {
  background: linear-gradient(145deg, rgb(250, 100, 0), #ff3c00);
  color: #0f0f0f;
  font-weight: 400;
  border-bottom-right-radius: 4px;
}

.chatbot-msg.typing {
  display: flex;
  gap: 4px;
  padding: 14px;
}

.chatbot-msg.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: chatbot-bounce 1.2s infinite ease-in-out;
}

.chatbot-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-4px); opacity: 1; }
}

#chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}

.chatbot-chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgb(250, 100, 0);
  background: rgba(250, 100, 0, 0.1);
  border: 1px solid rgba(250, 100, 0, 0.3);
  border-radius: 20px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  opacity: 0;
  animation: chatbot-chip-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.chatbot-chip:hover {
  background: rgba(250, 100, 0, 0.2);
  border-color: rgba(250, 100, 0, 0.6);
  transform: translateY(-1px) scale(1.03);
}

@keyframes chatbot-chip-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #131313;
}

#chatbot-input {
  flex: 1;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 11px 16px;
  color: #fff;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  resize: none;
  outline: none;
  max-height: 96px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#chatbot-input:focus {
  border-color: rgb(250, 100, 0);
  box-shadow: 0 0 0 3px rgba(250, 100, 0, 0.12);
}

#chatbot-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, rgb(250, 100, 0), #ff3c00);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#chatbot-send:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 16px rgba(250, 100, 0, 0.4);
}

#chatbot-send:disabled {
  background: #444;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#chatbot-send svg {
  width: 16px;
  height: 16px;
  fill: #0f0f0f;
  margin-left: 2px;
}

#chatbot-footer-note {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  padding: 6px 0 10px;
  letter-spacing: 0.3px;
}

.chatbot-face {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.chatbot-face-bubble { width: 100%; height: 100%; }
.chatbot-face-avatar { width: 100%; height: 100%; }
.chatbot-face-mini { width: 100%; height: 100%; }

.chatbot-face .chatbot-eye ellipse {
  fill: #fff;
}
.chatbot-face .chatbot-pupil {
  fill: #0f0f0f;
  transition: transform 0.05s linear;
}
.chatbot-face .chatbot-eye {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.1s ease;
}
.chatbot-face .chatbot-eye.chatbot-blinking {
  transform: scaleY(0.08);
}

.chatbot-face-blush {
  fill: #ffb3c6;
  opacity: 0.55;
}

.chatbot-face-mouth {
  fill: none;
  stroke: #0f0f0f;
  stroke-width: 4;
  stroke-linecap: round;
  transition: d 0.2s ease;
}

.chatbot-mini-avatar .chatbot-face-mouth {
  stroke-width: 5;
}

.chatbot-face-bow {
  fill: #ffb3c6;
  stroke: #ff8fab;
  stroke-width: 0.6;
}
.chatbot-face-bow-knot {
  fill: #ff8fab;
}

@keyframes chatbot-bounce-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
#chatbot-bubble.chatbot-bounce { animation: chatbot-bounce-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
#chatbot-avatar.chatbot-bounce { animation: chatbot-bounce-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes chatbot-sparkle-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4) translateY(0); }
  30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1) translateY(-6px); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) translateY(-22px); }
}
.chatbot-sparkle {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 16px;
  pointer-events: none;
  animation: chatbot-sparkle-pop 0.8s ease-out forwards;
  z-index: 5;
}

#chatbot-quick-replies.chatbot-chips-return .chatbot-chip {
  animation: chatbot-chip-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (max-width: 480px) {
  #chatbot-panel {
    width: auto;
    height: 68vh;
    bottom: 92px;
    right: 16px;
    left: 16px;
  }
}

#chatbot-bubble {
  right: 20px;
  bottom: 20px;
}