/* ============================================================
   Trend is My Friend — Header Account Orb
   ============================================================ */

.auth-widget {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.auth-widget:empty {
  display: none;
}

.auth-orb {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 201, 107, 0.58);
  border-radius: 999px;
  padding: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.10), transparent 38%),
    rgba(240, 201, 107, 0.08);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.auth-orb:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(240, 201, 107, 0.78);
  color: var(--ink);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.13), transparent 38%),
    rgba(240, 201, 107, 0.15);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-orb:focus-visible {
  outline: 2px solid rgba(240, 201, 107, 0.78);
  outline-offset: 3px;
}

.auth-orb:disabled {
  cursor: default;
  opacity: 0.72;
}

.auth-orb-user {
  border-color: rgba(240, 201, 107, 0.66);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.11), transparent 38%),
    rgba(240, 201, 107, 0.10);
}

.auth-orb-setup {
  border-color: rgba(240, 201, 107, 0.74);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(240, 201, 107, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-orb-guest {
  color: #f8edcf;
}

.auth-orb-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}

.auth-orb-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-orb-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(240, 201, 107, 0.9);
  box-shadow: 0 0 0 0 rgba(240, 201, 107, 0.4);
  animation: authOrbPulse 1.4s ease-out infinite;
}

@keyframes authOrbPulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 201, 107, 0.42); }
  70% { box-shadow: 0 0 0 9px rgba(240, 201, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 201, 107, 0); }
}

@media (max-width: 620px) {
  .auth-orb {
    width: 34px;
    height: 34px;
  }
}
