.topbarActions,
.topbar-nav,
.mobileMenuCtas,
.panel-session {
  position: relative;
}

@media (min-width: 981px) {
  .topbarActions {
    margin-left: auto;
    padding-right: 0;
  }

  .topbarActions [data-auth-link] {
    margin-right: -6px;
  }
}

.auth-profile-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 160;
  width: min(92vw, 300px);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.26s cubic-bezier(.22, 1, .36, 1);
}

.auth-profile-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.auth-profile-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 28, 0.94);
  color: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.auth-profile-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.auth-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.auth-profile-copy {
  min-width: 0;
}

.auth-profile-name,
.auth-profile-username {
  margin: 0;
}

.auth-profile-name {
  font-weight: 700;
  line-height: 1.2;
}

.auth-profile-username {
  margin-top: 0.24rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-profile-actions {
  display: grid;
}

.auth-profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.auth-profile-action.danger {
  background: linear-gradient(135deg, rgba(255, 103, 124, 0.22), rgba(255, 142, 160, 0.22));
}

.global-welcome-toast,
.welcome-toast {
  transform: translate(-50%, -26px) scale(0.94);
  filter: blur(10px);
  transition:
    transform 0.56s cubic-bezier(.22, 1, .36, 1),
    opacity 0.34s ease,
    filter 0.42s ease !important;
}

.global-welcome-toast.is-visible,
.welcome-toast.is-visible {
  transform: translate(-50%, 0) scale(1);
  filter: blur(0);
}

.global-welcome-toast-card,
.welcome-toast-card {
  animation: sessionToastPulse 0.85s ease;
}

@keyframes sessionToastPulse {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
