.fc-nav-user-button {
  position: relative;
  isolation: isolate;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fc-nav-user-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5px;
  pointer-events: none;
  border: 1px solid rgba(6, 182, 212, 0.42);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-nav-user-button i {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.fc-nav-user-button:hover,
.fc-nav-user-button:focus-visible,
.fc-nav-user-button[aria-expanded="true"] {
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.14), 0 10px 28px rgba(124, 58, 237, 0.2);
}

.fc-nav-user-button[aria-expanded="true"]::before {
  opacity: 1;
  transform: scale(1);
}

.fc-nav-user-button[aria-expanded="true"] i {
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.58));
  transform: scale(1.08);
}

.fc-nav-actions .fc-profile-menu,
.nav-user-dropdown .fc-profile-menu {
  top: calc(100% + 14px) !important;
  right: 0 !important;
  left: auto !important;
  display: block;
  width: min(340px, calc(100vw - 28px));
  min-width: 0;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 4%, rgba(6, 182, 212, 0.18), transparent 34%),
    radial-gradient(circle at 10% 96%, rgba(124, 58, 237, 0.2), transparent 42%),
    rgba(15, 16, 35, 0.96) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 12px 36px rgba(76, 29, 149, 0.22);
  backdrop-filter: blur(24px) saturate(145%);
  transform: translate3d(0, -12px, 0) scale(0.96) !important;
  transform-origin: top right;
  transition:
    opacity 0.22s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.34s;
}

.fc-nav-actions .fc-profile-menu {
  position: absolute !important;
}

.fc-nav-actions .fc-profile-menu.show,
.nav-user-dropdown .fc-profile-menu.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition-delay: 0s;
}

.fc-profile-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(103, 232, 249, 0.2);
  border-left: 1px solid rgba(103, 232, 249, 0.2);
  background: #11152a;
  transform: rotate(45deg);
}

.fc-profile-header {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px;
}

.fc-profile-avatar {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.72), rgba(6, 182, 212, 0.48));
  box-shadow: 0 10px 28px rgba(76, 29, 149, 0.28);
  font-size: 1.12rem;
}

.fc-profile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-profile-copy small,
.fc-profile-copy span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fc-profile-copy strong,
.fc-profile-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-profile-copy strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 850;
}

.fc-profile-copy span {
  letter-spacing: 0;
}

.fc-profile-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 8px 8px 68px;
  padding: 5px 9px;
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  font-size: 0.68rem;
  font-weight: 800;
}

.fc-profile-divider {
  height: 1px;
  margin: 4px 6px 8px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.fc-profile-menu .fc-profile-action {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.fc-profile-menu .fc-profile-action:hover,
.fc-profile-menu .fc-profile-action:focus-visible {
  color: #fff !important;
  border-color: rgba(124, 58, 237, 0.24);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.08));
  outline: none;
  transform: translateX(2px);
}

.fc-profile-action-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 11px;
  background: rgba(124, 58, 237, 0.13);
  font-size: 1rem;
}

.fc-profile-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-profile-action-copy strong {
  font-size: 0.84rem;
  font-weight: 850;
}

.fc-profile-action-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-profile-action > .bi-chevron-right {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.72rem;
  transition: transform 0.22s ease, color 0.22s ease;
}

.fc-profile-action:hover > .bi-chevron-right,
.fc-profile-action:focus-visible > .bi-chevron-right {
  color: #67e8f9;
  transform: translateX(2px);
}

.fc-profile-menu .fc-profile-logout:hover,
.fc-profile-menu .fc-profile-logout:focus-visible {
  border-color: rgba(251, 113, 133, 0.2);
  background: rgba(244, 63, 94, 0.09);
}

.fc-profile-logout .fc-profile-action-icon {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.18);
  background: rgba(244, 63, 94, 0.1);
}

.fc-profile-menu .nav-logout-form {
  margin: 0;
}

@media (max-width: 1199.98px) {
  .nav-user-dropdown .fc-profile-menu {
    top: auto !important;
    width: 100%;
    margin-top: 0.55rem !important;
    transform-origin: top center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-nav-user-button,
  .fc-nav-user-button::before,
  .fc-nav-user-button i,
  .fc-profile-menu,
  .fc-profile-action,
  .fc-profile-action > .bi-chevron-right {
    transition-duration: 0.001ms !important;
  }
}
