/* Account avatar dropdown — shared desktop + mobile */
.eb-acc-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1200;
}

.eb-acc-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  line-height: 0;
}

.eb-acc-menu-trigger img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.eb-acc-menu-caret {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;
  line-height: 1;
}

/* Light surfaces (legacy header) */
.header-wrap .eb-acc-menu-trigger img,
.user-info-dropdown .eb-acc-menu-trigger img {
  border-color: rgba(37, 58, 137, 0.2);
}

.header-wrap .eb-acc-menu-caret {
  color: #5a6478;
}

.eb-acc-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  max-width: min(92vw, 300px);
  background: #fff;
  border: 1px solid rgba(28, 20, 16, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(28, 20, 16, 0.16);
  overflow: hidden;
  z-index: 1300;
}

.eb-acc-menu-panel[hidden] {
  display: none !important;
}

.eb-acc-menu-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #2b1d24 0%, #4a3038 100%);
  color: #faf6f1;
}

.eb-acc-menu-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.eb-acc-menu-head strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
}

.eb-acc-menu-head span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.1rem;
}

.eb-acc-menu-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.eb-acc-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  color: #2a2430 !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.3;
}

.eb-acc-menu-list a:hover,
.eb-acc-menu-list a:focus {
  background: rgba(37, 58, 137, 0.06);
  color: #253a89 !important;
}

.eb-acc-menu-list a i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.85;
  font-size: 0.9rem;
}

.eb-acc-menu-sep {
  height: 1px;
  margin: 0.35rem 0;
  background: rgba(28, 20, 16, 0.08);
  list-style: none;
  padding: 0;
}

.eb-acc-menu-logout {
  color: #b42318 !important;
}

.eb-acc-menu-logout:hover,
.eb-acc-menu-logout:focus {
  background: rgba(180, 35, 24, 0.06) !important;
  color: #912018 !important;
}

/* Mobile bottom bar: open menu upward */
.nang-bottom .eb-acc-menu-panel {
  top: auto;
  bottom: calc(100% + 10px);
  right: 0;
  left: auto;
}

.nang-bottom .eb-acc-menu {
  /* fit bottom nav item */
}

.nang-bottom .eb-acc-menu-trigger {
  flex-direction: column;
  gap: 0.15rem;
  color: inherit;
}

.nang-bottom .eb-acc-menu-trigger img {
  width: 26px;
  height: 26px;
  border-width: 1.5px;
}

.nang-bottom .eb-acc-menu-caret {
  display: none;
}

.nang-bottom .eb-acc-menu-label,
.eb-acc-menu--bottom .eb-acc-menu-label {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  margin-top: 2px;
}

/* Match bottom nav item spacing */
.nang-bottom .eb-acc-menu--bottom {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}

.nang-bottom .eb-acc-menu--bottom .eb-acc-menu-trigger {
  width: 100%;
  justify-content: center;
  padding: 0.25rem 0;
  color: inherit;
}

/* Keep avatar trigger compact in top social nav */
.nang-nav-actions .eb-acc-menu-trigger img,
.eb-site-nav-actions .eb-acc-menu-trigger img {
  width: 36px;
  height: 36px;
}

@media (max-width: 767px) {
  .eb-acc-menu-panel {
    min-width: 240px;
  }
  .nang-nav-actions .eb-acc-menu-caret {
    display: none;
  }
}
