/* 用户头像菜单 */
.user-menu-wrap { position: relative; }

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F3F4F6;
  border: none;
  border-radius: 100px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.user-menu-btn:hover { background: #E5E7EB; }

.user-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}

.user-email {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 下拉菜单 */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
}
.user-dropdown.hidden { display: none; }

.dropdown-info { padding: 14px 16px; }
.dropdown-email { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.dropdown-plan { font-size: 12px; color: #6B7280; }

.dropdown-divider { height: 1px; background: #F3F4F6; }

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #374151;
  transition: background .15s;
}
.dropdown-item:hover { background: #F9FAFB; }
.dropdown-item--danger { color: #EF4444; }
.dropdown-item--danger:hover { background: #FEF2F2; }
