/* Profile avatar toggle (website + parent portal) */
.sb-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sb-profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.sb-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #151f3d, #2a3d73);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 2px solid #b8963a;
}

.sb-profile-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 24px;
  margin-bottom: 10px;
}

.sb-profile-caret {
  color: #151f3d;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
}

.navbar .sb-profile-caret {
  color: #151f3d;
}

.parent-topbar .sb-profile-caret {
  color: #fff;
}

.sb-profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(21, 31, 61, 0.18);
  border: 1px solid #e8ecf4;
  z-index: 1000;
  overflow: hidden;
}

.sb-profile-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 14px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #e8ecf4;
  border-top: 1px solid #e8ecf4;
  transform: rotate(45deg);
}

.sb-profile-menu-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px 16px;
  border-bottom: 1px solid #eef1f6;
}

.sb-profile-name {
  font-size: 16px;
  color: #151f3d;
  margin-bottom: 2px;
}

.sb-profile-email {
  font-size: 12px;
  color: #6b7280;
  word-break: break-all;
}

.sb-profile-menu-list {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.sb-profile-menu-list a,
.sb-profile-menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.sb-profile-menu-list a:hover,
.sb-profile-menu-list button:hover {
  background: #f4f7fb;
  color: #151f3d;
}

.sb-profile-menu-list i {
  font-size: 18px;
  color: #64748b;
}

.sb-profile.is-open .sb-profile-menu {
  display: block;
}

.sb-profile-menu[hidden] {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.parent-topbar .sb-profile-avatar {
  border-color: #b8963a;
}

.parent-user .sb-profile-menu {
  right: 0;
}
