/* ===== LAUNCHER PULSE RING ===== */
.launcher-pulse-ring {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(181, 108, 252, 0.5);
  animation: launcherPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes launcherPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ===== CHATBOT ATTENTION BUBBLE ===== */
.chatbot-attention-bubble {
  position: fixed;
  right: 105px;
  bottom: 38px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5) translateY(10px);
  transform-origin: bottom right;
  transition: none;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}

.chatbot-attention-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: all;
  animation: bubblePopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
             bubbleFloat 3s ease-in-out 0.5s infinite;
}

.chatbot-attention-bubble.hiding {
  animation: bubbleFadeOut 0.3s ease forwards;
  pointer-events: none;
}

@keyframes bubblePopIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bubbleFloat {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1) translateY(-4px);
  }
}

@keyframes bubbleFadeOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(5px);
  }
}

/* Bubble Content */
.attention-bubble-content {
  background: linear-gradient(135deg, #015DA9 0%, #7c3aed 100%);
  color: #fff;
  padding: 12px 18px;
  border-radius: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  min-height: 48px;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.attention-bubble-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Bubble Text */
.attention-bubble-text {
  display: inline-block;
  min-width: 120px;
  overflow: hidden;
}

/* Typing cursor */
.attention-bubble-text::after {
  content: '|';
  animation: cursorBlink 0.7s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
  opacity: 0.8;
}

.attention-bubble-text.typed::after {
  display: none;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Close Button */
.attention-bubble-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.attention-bubble-close:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: scale(1.1);
}

/* Arrow pointing to the chat launcher */
.attention-bubble-arrow {
  position: absolute;
  right: -6px;
  bottom: 14px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
  transform: rotate(45deg);
  border-radius: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== NOTIFICATION DOT ===== */
.launcher-notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  border-radius: 50%;
  border: 2.5px solid #fff;
  z-index: 10;
  animation: dotPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@keyframes dotPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .chatbot-attention-bubble {
    right: 80px;
    bottom: 28px;
  }

  .attention-bubble-content {
    font-size: 13px;
    padding: 10px 14px;
  }

  .launcher-pulse-ring {
    width: 55px;
    height: 55px;
  }
}
