:root {
  --red-main: #d41616;
  --green-main: #05a742;
  --yellow-main: #ffd700;
}

.floating-chat {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}

/* Nút chính */
.chat-toggle {
  background: var(--green-main);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: transform .3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid yellow;
}
.chat-toggle:hover {
  transform: rotate(20deg);
}

/* Menu con */
.chat-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all .3s ease;
}
.floating-chat.open .chat-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Icon con */
.chat-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #06b34a, #04983f); /* sáng - tối */
  color: #fff600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all .25s ease;
  
  /* hiệu ứng nổi */
  box-shadow:
    2px 2px 6px rgba(0,0,0,0.3),    /* bóng dưới */
    -2px -2px 6px rgba(255,255,255,0.3); /* ánh sáng trên */
    border: 1px solid yellow;
}

/* Hover nổi mạnh hơn */
.chat-item:hover {
  transform: translateY(-2px);
  box-shadow:
    4px 4px 10px rgba(0,0,0,0.35),
    -3px -3px 8px rgba(255,255,255,0.4),
    inset 0 0 3px rgba(255,255,255,0.15);
}


.chat-item img {
  width: 26px;
  height: 26px;
}

/* Hiệu ứng pulse sáng quanh icon */
.chat-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(212,22,22,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,22,22,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(212,22,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,22,22,0); }
}

@media (max-width: 576px) {
  .floating-chat {
    right: 10px;
    bottom: 60px;
  }
  .chat-toggle { width: 52px; height: 52px; }
  .chat-item { width: 44px; height: 44px; font-size: 18px; }
}


/* footer -social icon */
 .social-youtube:hover{
    background-color: #ff0000 !important;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
}
.footer-social a:hover i{
  color: var(--yellow-main);
}