#axum-chat-bubble {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
  color: #000;
  font-size: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

#axum-chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

#axum-chat-panel {
  position: fixed;
  bottom: 86px;
  right: 18px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: #0b1220;
  color: #e8eefc;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  overflow: hidden;
  display: none;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  flex-direction: column;
}

#axum-chat-header {
  padding: 14px 16px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#axum-chat-header-title {
  color: #D4AF37;
  font-weight: 700;
  font-size: 16px;
}

#axum-chat-header-subtitle {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

#axum-chat-close {
  border: none;
  background: transparent;
  color: #D4AF37;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

#axum-chat-close:hover {
  background: rgba(212, 175, 55, 0.1);
}

#axum-chat-messages {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
}

.axum-msg {
  margin: 10px 0;
  display: flex;
}

.axum-msg.user {
  justify-content: flex-end;
}

.axum-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.axum-msg.user .axum-bubble {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #D4AF37;
}

.axum-msg.bot .axum-bubble {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

#axum-chat-input {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 10px;
  display: flex;
  gap: 8px;
  background: #0a0f18;
}

#axum-chat-input textarea {
  flex: 1;
  resize: none;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(255,255,255,.04);
  color: #e8eefc;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}

#axum-chat-input textarea:focus {
  border-color: #D4AF37;
}

#axum-chat-input button {
  width: 72px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

#axum-chat-input button:hover {
  transform: scale(1.02);
}

#axum-handoff {
  padding: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: none;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0a0f18;
}

#axum-handoff-title {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
  color: #D4AF37;
}

#axum-handoff input,
#axum-handoff textarea {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(255,255,255,.04);
  color: #e8eefc;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

#axum-handoff input:focus,
#axum-handoff textarea:focus {
  border-color: #D4AF37;
}

#axum-handoff button {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

#axum-handoff button:hover {
  transform: scale(1.02);
}

#axum-handoff-status {
  margin-top: 8px;
  font-size: 13px;
  color: #4CAF50;
}

@media (max-width: 400px) {
  #axum-chat-panel {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 76px;
    height: calc(100vh - 120px);
  }
  
  #axum-chat-bubble {
    right: 10px;
    bottom: 10px;
  }
}
