.online-service-panel {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  overflow: hidden;
  width: 52px;
  height: 52px;
}

.service-item:hover {
  width: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transform: translateX(-5px);
}

.service-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-size: 22px;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.service-item:hover .service-icon {
  transform: scale(1.05);
}

.service-info {
  display: flex;
  flex-direction: column;
  padding: 8px 15px 8px 8px;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  color: #fff;
  position: relative;
  z-index: 1;
}

.service-item:hover .service-info {
  opacity: 1;
  max-width: 200px;
}

.service-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.service-value {
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

.service-tooltip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.service-item:hover .service-tooltip {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.whatsapp-item { background: linear-gradient(135deg, #25D366, #128C7E); }
.whatsapp-item .service-icon { background: linear-gradient(135deg, #25D366, #128C7E); }

.phone-item { background: linear-gradient(135deg, #4DA3FF, #0056b3); }
.phone-item .service-icon { background: linear-gradient(135deg, #4DA3FF, #0056b3); }

.email-item { background: linear-gradient(135deg, #FF6B6B, #c5221f); }
.email-item .service-icon { background: linear-gradient(135deg, #FF6B6B, #c5221f); }

.wechat-item { background: linear-gradient(135deg, #2EE67A, #06ad56); }
.wechat-item .service-icon { background: linear-gradient(135deg, #2EE67A, #06ad56); }

.service-item {
  animation: serviceFadeInUp 0.5s ease backwards;
}
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes serviceFadeInUp {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.wechat-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wechat-modal.show {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

.wechat-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 340px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wechat-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  background: none;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.wechat-modal-close:hover {
  color: #333;
  background: #f0f0f0;
}

.wechat-qr-img {
  max-width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .online-service-panel {
    right: 12px;
    gap: 8px;
  }

  .service-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 18px;
  }

  .service-info {
    display: none;
  }

  .service-tooltip {
    display: none;
  }

  .service-item.active {
    width: auto;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  }

  .service-item.active .service-info {
    display: flex;
    opacity: 1;
    max-width: 150px;
  }

  .service-item.active .service-icon {
    transform: scale(1.05);
  }

  .wechat-modal-content {
    margin: 0 15px;
    padding: 20px;
  }
}