#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #EA60A7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    cursor: pointer;
    font-size: 26px;
    z-index: 10000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: pulse-zoom 2.5s ease-in-out infinite; 
  }
   #chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }

  #chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #chatbot-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 400px;
    max-width: 95vw;
    height: 540px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    transform-origin: bottom left;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;

  }

  #chatbot-panel.open {
    transform: scale(1);
    opacity: 1;
  }

  #chatbot-header {
    background: #EA60A7;
    color: white;
    padding: 12px 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
  }

  #chatbot-frame {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
  }

  @media screen and (max-width: 600px) {
    #chatbot-toggle {
      width: 56px;
      height: 56px;
    }

    #chatbot-panel {
       top: 10dvh;
    height: 80dvh;
    bottom: auto;
    left: 16px;
    width: 95vw;
    border-radius: 12px;
    }
  }
  .sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 18px;
  animation: sparkle-fly 1.2s ease-out forwards;
  opacity: 1.2;
  z-index: 10001;
}

@keyframes sparkle-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.8);
    opacity: 0;
  }
}
@keyframes pulse-zoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.13);
  }
  100% {
    transform: scale(1);
  }
}

#chatbot-toggle.attention {
  animation: pulse-zoom 1.5s ease-in-out infinite;
}