/* BASE STYLES */
#help-widget {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 1150;
}

/* TOGGLE BUTTON */
.help-toggle {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
  transition: all 0.2s;
  position: relative;
}

.help-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

.help-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  animation: pulse 2s infinite;
  z-index: -1;
}

/* POPUP */
.help-popup {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 300px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.help-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.help-card {
  padding: 20px;
}

/* HEADER */
.help-head {
  text-align: center;
  margin-bottom: 16px;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
  color: #4f46e5;
  margin-bottom: 8px;
}

.help-head h5 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.help-head p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

/* TIME & STATUS */
.help-time {
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}

.time-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.time-status strong {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

#statusDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

#statusDot.online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

#statusDot.offline {
  background: #9ca3af;
}

.help-time small {
  display: block;
  font-size: 11px;
  color: #6b7280;
}

/* ACTIONS */
.help-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.help-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.help-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.help-btn i {
  font-size: 18px;
}

.help-btn.wa {
  color: #059669;
}

.help-btn.wa:hover {
  background: #f0fdf4;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.15);
}

.help-btn.tg {
  color: #2563eb;
}

.help-btn.tg:hover {
  background: #eff6ff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.help-btn.tk {
  color: #dc2626;
}

.help-btn.tk:hover {
  background: #fef2f2;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.1);
}

/* FOOTER */
.help-foot {
  text-align: center;
  font-size: 11px;
  color: #6b7280;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.help-foot i {
  color: #4f46e5;
  margin-right: 4px;
}

/* ANIMATIONS */
@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  70% {
    opacity: 0;
    transform: scale(1.4);
  }

  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* MOBILE RESPONSIVE */
@media (max-width: 640px) {
  #help-widget {
    right: 16px;
    bottom: 16px;
  }

  .help-popup {
    width: calc(100vw - 32px);
    max-width: 320px;
    right: 0;
    bottom: 60px;
  }

  .help-toggle {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}
