/* ── دکمه شناور پشتیبانی آنلاین ── */

.tc-support-fab {
  position: fixed;
  right: 1.15rem;
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  pointer-events: none;
  transition: none;
  will-change: auto;
}

.tc-support-fab__inner {
  pointer-events: auto;
  animation: none;
}

.tc-support-fab__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 3.35rem;
  padding: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 52%, #5b21b6 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 10px 28px rgba(91, 33, 182, 0.38),
    0 2px 8px rgba(46, 35, 77, 0.12);
  transition:
    max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-support-fab__link:hover,
.tc-support-fab__link:focus-visible {
  max-width: 13rem;
  padding-inline: 1rem 1.15rem;
  box-shadow:
    0 14px 34px rgba(91, 33, 182, 0.45),
    0 4px 12px rgba(46, 35, 77, 0.14);
  transform: none;
  outline: none;
}

.tc-support-fab__pulse {
  display: none;
}

.tc-support-fab__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.tc-support-fab__icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.tc-support-fab__label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateX(0.35rem);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.tc-support-fab__link:hover .tc-support-fab__label,
.tc-support-fab__link:focus-visible .tc-support-fab__label {
  opacity: 1;
  transform: translateX(0);
}

.tc-support-fab__badge {
  position: absolute;
  top: -0.2rem;
  left: -0.15rem;
  z-index: 2;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #f97316;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes tc-support-fab-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes tc-support-fab-pulse {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .tc-support-fab {
    right: 0.85rem;
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }

  .tc-support-fab__link {
    max-width: 3.15rem;
    padding: 0.65rem;
  }

  .tc-support-fab__link:hover,
  .tc-support-fab__link:focus-visible {
    max-width: 11.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-support-fab__inner {
    animation: none;
  }

  .tc-support-fab__pulse {
    animation: none;
    opacity: 0;
  }

  .tc-support-fab {
    transition: none;
  }
}
