:root {
  --chatbot-bg: rgba(10, 15, 26, 0.92);
  --chatbot-panel: rgba(15, 23, 38, 0.96);
  --chatbot-border: rgba(34, 211, 238, 0.18);
  --chatbot-border-strong: rgba(34, 211, 238, 0.32);
  --chatbot-text: #f0f4ff;
  --chatbot-muted: rgba(240, 244, 255, 0.6);
  --chatbot-cyan: #22d3ee;
  --chatbot-blue: #0088e4;
}

.reside-chatbot-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  border: 1px solid var(--chatbot-border-strong);
  background: linear-gradient(135deg, rgba(0,111,204,0.95), rgba(34,211,238,0.92));
  color: white;
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 111, 204, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reside-chatbot-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 111, 204, 0.35); }

.reside-chatbot-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  width: min(390px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 120px));
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--chatbot-border);
  background: var(--chatbot-panel);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 80px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.reside-chatbot-panel.open { display: flex; }

.reside-chatbot-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.reside-chatbot-header h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--chatbot-text);
}
.reside-chatbot-header p {
  display: none;
}
.reside-chatbot-close {
  border: 0;
  background: rgba(255,255,255,0.06);
  color: var(--chatbot-text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

.reside-chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reside-chatbot-bubble {
  border-radius: 18px;
  padding: 14px 15px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.07);
}
.reside-chatbot-bubble.bot {
  background: rgba(255,255,255,0.04);
  color: var(--chatbot-text);
}
.reside-chatbot-bubble.note {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.2);
  color: #c6f6ff;
}
.reside-chatbot-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0,111,204,0.24), rgba(34,211,238,0.16));
  border-color: rgba(34,211,238,0.18);
  color: var(--chatbot-text);
}
.reside-chatbot-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 2px;
}
.reside-chatbot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(198,246,255,0.82);
  display: inline-block;
  animation: resideChatbotBounce 1.15s infinite ease-in-out;
}
.reside-chatbot-typing span:nth-child(2) { animation-delay: 0.14s; }
.reside-chatbot-typing span:nth-child(3) { animation-delay: 0.28s; }
@keyframes resideChatbotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.28; }
  40% { transform: translateY(-3px); opacity: 0.9; }
}

.reside-chatbot-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reside-chatbot-prompt {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--chatbot-text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.reside-chatbot-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 12, 20, 0.55);
}
.reside-chatbot-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.reside-chatbot-input {
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--chatbot-text);
  padding: 12px 13px;
  font-size: 13px;
  outline: none;
}
.reside-chatbot-send {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--chatbot-blue), var(--chatbot-cyan));
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.reside-chatbot-footer small {
  display: none;
}

@media (max-width: 640px) {
  .reside-chatbot-panel {
    right: 12px;
    left: 12px;
    bottom: 84px;
    width: auto;
    height: min(72vh, 640px);
  }
  .reside-chatbot-launcher {
    right: 12px;
    bottom: 12px;
  }
}
auncher {
    right: 12px;
    bottom: 12px;
  }
}
{
    right: 12px;
    bottom: 12px;
  }
}
