/* Floating Neurollamas support button — all public pages */
.nl-support-fab {
  position: fixed;
  z-index: 9000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 24px);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nl-support-fab__orb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 120deg, #00ff9d, #7f5cff, #00e6ff, #00ff9d);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(0, 255, 157, 0.45);
  animation: nl-support-pulse 2.8s ease-in-out infinite;
}

.nl-support-fab__orb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #111;
}

.nl-support-fab__chat {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #07140f;
  border: 2px solid #00ff9d;
  color: #00ff9d;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.55);
}

.nl-support-fab__chat svg {
  width: 14px;
  height: 14px;
  max-width: none;
  display: block;
}

.nl-support-fab__label {
  font-family: 'Segoe UI', Vazirmatn, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #04140c;
  background: #00ff9d;
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.nl-support-fab:hover .nl-support-fab__orb,
.nl-support-fab:focus-visible .nl-support-fab__orb {
  transform: translateY(-2px) scale(1.04);
  animation: none;
}

.nl-support-fab:focus-visible {
  outline: 2px solid #00ff9d;
  outline-offset: 4px;
  border-radius: 18px;
}

@keyframes nl-support-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.45), 0 0 16px rgba(0,255,157,.35); }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.45), 0 0 28px rgba(127,92,255,.55); }
}

@media (max-width: 640px) {
  .nl-support-fab {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .nl-support-fab__orb {
    width: 58px;
    height: 58px;
  }
  .nl-support-fab__chat {
    width: 22px;
    height: 22px;
  }
  .nl-support-fab__label {
    font-size: 10px;
    padding: 3px 7px;
  }
}

@media print {
  .nl-support-fab { display: none !important; }
}
