#chatbot-panel {
  position: fixed;
  top: 0;
  right: calc(-1 * min(448px, 100vw));
  width: min(448px, 100vw);
  height: 100dvh;
  max-width: 100vw;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.7);
  z-index: 999999;
  transition: right 0.4s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
}

#chatbot-panel.show {
  right: 0;
}

#chatbot-header {
  padding: 18px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #0a4cff22, #247DA422);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chatbot-panel-title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.chatbot-panel-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 18px;
}

.chatbot-panel-status {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chatbot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d46a;
  box-shadow: 0 0 0 4px rgba(56, 212, 106, 0.14);
}

#close-chatbot {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}

#close-chatbot:hover {
  background: #247DA4;
  border-color: #247DA4;
  transform: scale(1.05);
}

#chatbot-frame {
  flex: 1;
  border: none;
  background: #0f0f0f;
  width: 100%;
  min-height: 0;
}

body.chatbot-open {
  overflow: hidden;
}

#close-chatbot:focus-visible,
#open-chatbot:focus-visible {
  outline: 2px solid #247DA4;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  #chatbot-panel {
    width: 100vw;
    right: -100vw;
    border-left: none;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.65);
  }
}
