/* Main website — logged-in client profile button in header */
.site-header-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.75rem;
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: rgba(43, 43, 43, 0.92);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-header-profile:hover,
.site-header-profile:focus-visible {
  border-color: rgba(17, 166, 242, 0.45);
  background: rgba(17, 166, 242, 0.08);
  outline: none;
}

.site-header-profile.open {
  border-color: rgba(17, 166, 242, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-header-profile__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #11a6f2, #0d8fd4);
  flex-shrink: 0;
}

.site-header-profile__name {
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header-profile__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid rgba(43, 43, 43, 0.12);
  border-radius: 12px;
  padding: 0.4rem;
  z-index: 1100;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.site-header-profile.open .site-header-profile__dropdown {
  display: flex;
}

.site-header-profile__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(43, 43, 43, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.site-header-profile__item:hover {
  background: rgba(17, 166, 242, 0.12);
  color: rgba(43, 43, 43, 0.98);
}

.site-header-profile__item--logout:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
}

.site-header-profile__item:disabled {
  opacity: 0.6;
  cursor: wait;
}

.header-action {
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .site-header-profile {
    margin-right: 0.5rem;
    padding: 0.25rem;
  }

  .site-header-profile__dropdown {
    right: 0;
    min-width: 190px;
  }
}
