.chat-toggle {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background-color: #3b46f1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(59, 70, 241, 0.6);
  cursor: pointer;
  z-index: 999;
  animation: pulse-skillbox 1.6s ease infinite;
  transition: transform 0.3s ease;
}

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

@keyframes pulse-skillbox {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 70, 241, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(59, 70, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 70, 241, 0);
  }
}

.chat-toggle i {
  font-size: 20px;
}

.chat-panel {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 350px;
  max-height: 500px;
  background: black;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.1);
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 998;
  pointer-events: none;
  border-bottom: 1px solid #f0f0f0;
  border-top: 1px solid #3b46f1;
  transform-origin: bottom right;
}

.chat-panel.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.chat-header {
  background: #3b46f1;
  border: 2px solid #3b46f1;
  color: white;
  padding: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.chat-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    order: 1;
}

.chat-title {
    font-size: 1.1rem;
    font-weight: 700;
    order: 2;
    text-align: center;
    flex: 1;
    margin: 0 15px;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    order: 3;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.chat-body {
  padding: 25px;
  font-size: 14px;
  color: #333;
  background: #fff;
}

.chat-body .fw-bold {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 8px;
}

.chat-body .text-secondary {
  color: #64748b !important;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

.chat-body .d-flex.gap-3 {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.chat-body .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.chat-body .btn-outline-primary {
  border-color: #3b46f1;
  color: #3b46f1;
  background: white;
}

.chat-body .btn-outline-primary:hover {
  background: #3b46f1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 70, 241, 0.3);
}

.chat-body .btn-outline-success {
  border-color: #25d366;
  color: #25d366;
  background: white;
}

.chat-body .btn-outline-success:hover {
  background: #25d366;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.chat-body .bi-telegram {
  font-size: 1.2rem;
}

.chat-body .bi-whatsapp {
  font-size: 1.2rem;
}

.chat-toggle.hide {
  display: none;
}

@media (max-width: 480px) {
  .chat-panel {
    width: 320px;
    right: 20px;
    bottom: 110px;
  }

  .chat-body {
    padding: 20px;
  }

  .chat-body .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}
