#it3m-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* دکمه ربات */
.it3m-chatbot-toggle {
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #00d0ff, #00ff95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.it3m-chatbot-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

/* پنل چت */
.it3m-chatbot-panel {
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 560px;
  max-height: calc(100vh - 110px);
  background: rgba(7, 16, 33, 0.96);
  color: #ffffff;
  border: 1px solid rgba(0, 208, 255, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

.it3m-chatbot-panel.hidden {
  display: none;
}

/* هدر */
.it3m-chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0, 208, 255, 0.14), rgba(0, 255, 149, 0.14));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.it3m-chatbot-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.it3m-chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* پیام‌ها */
.it3m-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.it3m-msg {
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 14px;
}

.it3m-msg-bot {
  background: rgba(255,255,255,0.08);
  align-self: flex-start;
}

.it3m-msg-user {
  background: rgba(0,208,255,0.18);
  align-self: flex-end;
}

/* دکمه‌های سریع */
.it3m-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.it3m-quick-btn,
.it3m-link-btn {
  border: 1px solid rgba(0, 208, 255, 0.35);
  background: rgba(255,255,255,0.04);
  color: #7efcff;
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}

.it3m-chatbot-links {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
  flex-wrap: wrap;
}

/* فرم */
.it3m-chatbot-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.it3m-chatbot-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(0,208,255,0.35);
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 12px 14px;
  outline: none;
}

.it3m-chatbot-form button {
  width: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00d0ff, #00ff95);
}

/* حباب پیام بالای ربات */
.it3m-chatbot-teaser {
  position: absolute;
  right: 18px;
  bottom: 92px;
  z-index: 10000;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;

  padding: 12px 18px;
  background: linear-gradient(135deg, #00d0ff, #00ff95);
  color: #06343c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;

  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;

  animation: teaserFloat 2.2s ease-in-out infinite;
}

/* نوک حباب */
.it3m-chatbot-teaser::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #00d0ff, #00ff95);
  transform: rotate(45deg);
  border-radius: 2px;
}

.it3m-chatbot-teaser.hidden {
  display: none;
}

/* حرکت نرم */
@keyframes teaserFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* موبایل */
@media (max-width: 640px) {
  #it3m-chatbot {
    right: 12px;
    bottom: 12px;
  }

  .it3m-chatbot-panel {
    width: calc(100vw - 24px);
    height: 70vh;
  }

  .it3m-chatbot-teaser {
    right: 10px;
    bottom: 82px;
    font-size: 13px;
    padding: 10px 14px;
  }

  .it3m-chatbot-teaser::after {
    right: 26px;
  }
}