.sales-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  font-family: 'Inter', 'Outfit', sans-serif;
}

.sales-chat-bubble {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

/* Notification Balloon */
.sales-notification-balloon {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 240px;
  padding: 16px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  color: #e4e4e7;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: none;
  cursor: pointer;
  animation: popInSales 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
  z-index: 10001;
}

.sales-notification-balloon::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(139, 92, 246, 0.3);
}

.sales-notification-balloon .close-notif {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  color: #71717a;
  cursor: pointer;
}

.sales-notification-balloon .insider-name {
  display: block;
  font-weight: 800;
  color: #a78bfa;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes popInSales {
  from { transform: scale(0.5) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes pulseSales {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.pulse-active {
  animation: pulseSales 2s infinite;
}

.sales-chat-bubble:hover {
  transform: scale(1.1);
}

.sales-chat-bubble .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #000;
  display: none;
}

.sales-chat-window {
  width: 380px;
  max-width: 90vw;
  height: 520px;
  max-height: 80vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
  transform-origin: bottom right;
  animation: slideUpSales 0.4s ease-out;
}

@keyframes slideUpSales {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.sales-chat-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sales-chat-header .avatar {
  width: 32px;
  height: 32px;
  background: #8b5cf6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
}

.sales-chat-header .title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.sales-chat-header .status {
  font-size: 11px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sales-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sales-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.sales-message.ai {
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.sales-message.user {
  background: #8b5cf6;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.sales-chat-input {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
}

.sales-chat-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.sales-chat-input input:focus {
  border-color: #8b5cf6;
}

.sales-chat-input button {
  background: #8b5cf6;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}

.sales-chat-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.typing-indicator-sales {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  align-self: flex-start;
}

.typing-indicator-sales span {
  width: 6px;
  height: 6px;
  background: #52525b;
  border-radius: 50%;
  animation: bounceSales 1.4s infinite ease-in-out;
}

@keyframes bounceSales {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}
